Created
April 1, 2017 19:26
-
-
Save rakeshkumar125/5d33bb1b769f863f61616e651eb7ef58 to your computer and use it in GitHub Desktop.
function for populate values REF, INV, PO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addPackageLineItem($input) | |
{ | |
$packageLineItem = array | |
( | |
'SequenceNumber' => 1, | |
'GroupPackageCount' => 1, | |
'Weight' => array | |
( | |
'Value' => $input['Weight'], | |
'Units' => 'LB' | |
), | |
'Dimensions' => array | |
( | |
'Length' => $input['Length'], | |
'Width' => $input['Width'], | |
'Height' => $input['Height'], | |
'Units' => 'IN' | |
), | |
'CustomerReferences' => array( | |
'0' => array('CustomerReferenceType' => 'CUSTOMER_REFERENCE','Value' => 'CR1234'), | |
'1' => array('CustomerReferenceType' => 'INVOICE_NUMBER','Value' => 'IV1234'), | |
'2' => array('CustomerReferenceType' => 'P_O_NUMBER','Value' => 'PO1234') | |
) | |
); | |
return $packageLineItem; | |
} // end of function addPackageLineItem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment