Skip to content

Commit

Permalink
Added concardis Order ID property to Gateway and Invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
ukramer committed May 19, 2017
1 parent e94e8a8 commit 536744b
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
28 changes: 28 additions & 0 deletions lib/Payrexx/Models/Request/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ class Gateway extends \Payrexx\Models\Base
*/
protected $fields;

/**
* optional
*
* @access protected
* @var string
*/
protected $concardisOrderId;

/**
* mandatory
*
Expand Down Expand Up @@ -184,6 +192,26 @@ public function addField($type, $value, $name = array())
);
}

/**
* @access public
* @return string
*/
public function getConcardisOrderId()
{
return $this->concardisOrderId;
}

/**
* Set a custom order ID for the Concardis PSPs
*
* @access public
* @param string $concardisOrderId
*/
public function setConcardisOrderId($concardisOrderId)
{
$this->concardisOrderId = $concardisOrderId;
}

/**
* @access public
* @return string
Expand Down
18 changes: 18 additions & 0 deletions lib/Payrexx/Models/Request/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class Invoice extends \Payrexx\Models\Base
protected $subscriptionPeriodMinAmount = '';
protected $subscriptionCancellationInterval = '';
protected $fields = array();
protected $concardisOrderId = '';

/**
* @return string
Expand Down Expand Up @@ -363,6 +364,23 @@ public function addField($type, $mandatory, $defaultValue = '', $name = '')
);
}

/**
* @return string
*/
public function getConcardisOrderId()
{
return $this->concardisOrderId;
}

/**
* Define an ORDER ID which should be used for the Concardis PSPs
* @param string $concardisOrderId
*/
public function setConcardisOrderId($concardisOrderId)
{
$this->concardisOrderId = $concardisOrderId;
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 536744b

Please sign in to comment.