From f2d62105de6d24300dea46e69b82121851884370 Mon Sep 17 00:00:00 2001 From: Andy Summers <andrew.summers@wisc.edu> Date: Thu, 25 May 2017 10:54:17 -0500 Subject: [PATCH] Add P_ORIG_SYS_DOCUMENT_REF to order payment --- composer.json | 2 +- .../cbs/order/payment/OrderPayment.php | 21 +++++++++++++++++++ .../OrderPaymentInputParametersMapper.php | 1 + 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e8d6b91..e787b0f 100755 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "adi-ia/cbs-techstore-client-php", "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", "homepage": "https://wiki.doit.wisc.edu/confluence/display/ADIIA/CBS", "authors": [ diff --git a/src/main/edu/wisc/services/cbs/order/payment/OrderPayment.php b/src/main/edu/wisc/services/cbs/order/payment/OrderPayment.php index cbc5f24..e76e09f 100644 --- a/src/main/edu/wisc/services/cbs/order/payment/OrderPayment.php +++ b/src/main/edu/wisc/services/cbs/order/payment/OrderPayment.php @@ -14,6 +14,9 @@ class OrderPayment extends MagentoOrder /** @var string */ private $orderNumber; + /** @var string */ + private $origSysDocumentRef; + /** @var string Approval Code (check #, CC approval) */ private $paymentInfo; @@ -65,6 +68,24 @@ class OrderPayment extends MagentoOrder 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 */ diff --git a/src/main/edu/wisc/services/cbs/order/payment/OrderPaymentInputParametersMapper.php b/src/main/edu/wisc/services/cbs/order/payment/OrderPaymentInputParametersMapper.php index a927ff7..af923e2 100644 --- a/src/main/edu/wisc/services/cbs/order/payment/OrderPaymentInputParametersMapper.php +++ b/src/main/edu/wisc/services/cbs/order/payment/OrderPaymentInputParametersMapper.php @@ -37,6 +37,7 @@ class OrderPaymentInputParametersMapper '' )) ->setP_ORDER_NUMBER($payment->getOrderNumber()) + ->setP_ORIG_SYS_DOCUMENT_REF($payment->getOrigSysDocumentRef()) ->setP_PAYMENT_INFO($payment->getPaymentInfo()) ->setP_PAYMENT_TYPE($payment->getPaymentType()) ->setP_CASH_REGISTER($payment->getRegister()) -- GitLab