Skip to content
Snippets Groups Projects
Commit f2d62105 authored by Andy Summers's avatar Andy Summers
Browse files

Add P_ORIG_SYS_DOCUMENT_REF to order payment

parent 572dd3af
No related branches found
No related tags found
1 merge request!68Add P_ORIG_SYS_DOCUMENT_REF to order payment
{ {
"name": "adi-ia/cbs-techstore-client-php", "name": "adi-ia/cbs-techstore-client-php",
"description": "A PHP client used to connect with the CBS API and perform requests", "description": "A PHP client used to connect with the CBS API and perform requests",
"version": "6.2.1", "version": "6.2.2",
"license": "Apache-2.0", "license": "Apache-2.0",
"homepage": "https://wiki.doit.wisc.edu/confluence/display/ADIIA/CBS", "homepage": "https://wiki.doit.wisc.edu/confluence/display/ADIIA/CBS",
"authors": [ "authors": [
......
...@@ -14,6 +14,9 @@ class OrderPayment extends MagentoOrder ...@@ -14,6 +14,9 @@ class OrderPayment extends MagentoOrder
/** @var string */ /** @var string */
private $orderNumber; private $orderNumber;
/** @var string */
private $origSysDocumentRef;
/** @var string Approval Code (check #, CC approval) */ /** @var string Approval Code (check #, CC approval) */
private $paymentInfo; private $paymentInfo;
...@@ -65,6 +68,24 @@ class OrderPayment extends MagentoOrder ...@@ -65,6 +68,24 @@ class OrderPayment extends MagentoOrder
return $this; return $this;
} }
/**
* @return string
*/
public function getOrigSysDocumentRef()
{
return $this->origSysDocumentRef;
}
/**
* @param string $origSysDocumentRef
* @return OrderPayment
*/
public function setOrigSysDocumentRef($origSysDocumentRef)
{
$this->origSysDocumentRef = $origSysDocumentRef;
return $this;
}
/** /**
* @return string * @return string
*/ */
......
...@@ -37,6 +37,7 @@ class OrderPaymentInputParametersMapper ...@@ -37,6 +37,7 @@ class OrderPaymentInputParametersMapper
'' ''
)) ))
->setP_ORDER_NUMBER($payment->getOrderNumber()) ->setP_ORDER_NUMBER($payment->getOrderNumber())
->setP_ORIG_SYS_DOCUMENT_REF($payment->getOrigSysDocumentRef())
->setP_PAYMENT_INFO($payment->getPaymentInfo()) ->setP_PAYMENT_INFO($payment->getPaymentInfo())
->setP_PAYMENT_TYPE($payment->getPaymentType()) ->setP_PAYMENT_TYPE($payment->getPaymentType())
->setP_CASH_REGISTER($payment->getRegister()) ->setP_CASH_REGISTER($payment->getRegister())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment