Created
          June 4, 2012 08:43 
        
      - 
      
- 
        Save milosh012/2867285 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or 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
    
  
  
    
  | <?php | |
| $shipment = array('Packages' => array( | |
| array( | |
| 'ValueAmount' => 123, | |
| 'ValueCurrency' => 'USD', | |
| "Weight" => 2, //2x12x6x8 | |
| "Length" => 8, | |
| "Width" => 6, | |
| "Height" => 12, | |
| "IsMetric" => true, | |
| 'PackageType' => 'commercial', | |
| 'ContainsRestrictedItems' => false, | |
| 'Items' => array(array( | |
| 'Description' => 'iPhone', | |
| 'ValueAmount' => 123, | |
| 'ValueCurrency' => 'USD', | |
| 'Quantity' => 2, | |
| 'UnitType' => 'single', | |
| 'StoreId' => 104, | |
| 'OrderId' => 73, | |
| 'ItemId' => 97)) | |
| ), | |
| array( | |
| 'ValueAmount' => 123, | |
| 'ValueCurrency' => 'USD', | |
| "Weight" => 12, //12x10x2x11 | |
| "Length" => 11, | |
| "Width" => 2, | |
| "Height" => 10, | |
| "IsMetric" => true, | |
| 'PackageType' => 'commercial', | |
| 'ContainsRestrictedItems' => false, | |
| 'Items' => array( | |
| array( | |
| 'Description' => 'iPad', | |
| 'ValueAmount' => 123, | |
| 'ValueCurrency' => 'USD', | |
| 'Quantity' => 2, | |
| 'UnitType' => 'single', | |
| 'StoreId' => 104, | |
| 'OrderId' => 74, | |
| 'ItemId' => 101), | |
| array( | |
| 'Description' => 'iMac', | |
| 'ValueAmount' => 123, | |
| 'ValueCurrency' => 'USD', | |
| 'Quantity' => 2, | |
| 'UnitType' => 'single', | |
| 'StoreId' => 104, | |
| 'OrderId' => 74, | |
| 'ItemId' => 100) | |
| ) | |
| ) | |
| ), | |
| 'DestinationAddress' => array( | |
| 'CountryCode' => "AU", | |
| 'City' => "Fyshwick", | |
| 'Division' => null, | |
| 'PostalCode' => "2609", | |
| 'Line1' => "Hawkstone Road", | |
| 'Line2' => "", | |
| 'FirstName' => "Milos", | |
| 'LastName' => "Janjic", | |
| 'TelephoneNumber' => "2121212", | |
| 'TelephoneAreaCode' => "04", | |
| 'CompanyName' => null, | |
| 'EmailAddress' => "[email protected]", | |
| 'IsResidential' => true | |
| ), | |
| 'CollectionAddress' => array( | |
| 'CountryCode' => "AU", | |
| 'City' => "Sydney", | |
| 'Division' => null, | |
| 'PostalCode' => "2000", | |
| 'Line1' => "Hawkstone Road", | |
| 'Line2' => "", | |
| 'FirstName' => "Milos", | |
| 'LastName' => "Janjic", | |
| 'TelephoneNumber' => "2121212", | |
| 'TelephoneAreaCode' => "212", | |
| 'CompanyName' => null, | |
| 'EmailAddress' => "[email protected]", | |
| 'IsResidential' => true | |
| ), | |
| 'Origin' => "ecommerce", | |
| 'Id' => 79, | |
| 'Currency' => 'USD', | |
| 'PickupAt' => '1300', | |
| 'PickupCloseAt' => '1700', | |
| 'RateId' => '62260', | |
| 'Courier' => 'Fastway', | |
| 'ServiceType' => 'Fastway', | |
| 'PickupDate' => '2012-04-23', | |
| 'DropOff' => false, | |
| 'Est' => '2012-04-24 18:00:00', | |
| 'HumanEst' => 'Next day, by 6:00pm', | |
| ); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment