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

Merge branch 'payent-origsysdocref' into 'master'

Add P_ORIG_SYS_DOCUMENT_REF to order payment

See merge request !68
parents 572dd3af f2d62105
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",
"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": [
......
......@@ -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
*/
......
......@@ -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())
......
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