/**
  * @param $address_1
  * @param $address_2
  * @param $city
  * @param $state
  * @param $country
  * @param $zip_code
  * @return AddressExt
  */
 private function buildAddressInformation($address_1, $address_2, $city, $state, $country, $zip_code)
 {
     // New up a AddressExt object
     $address = new AddressExt();
     // Set information via method attributes
     $address->setAddress1($address_1);
     $address->setAddress2($address_2);
     $address->setCity($city);
     $address->setState($state);
     $address->setCountry($country);
     $address->setZip($zip_code);
     // Return the properly formatted AddressExt object.
     return $address;
 }
$contact_info->setName("Johnathon Doe");
$contact_info->setEmailAddress1("*****@*****.**");
$contact_info->setFax("9548884213");
$contact_info->setVendor("A Vendor");
// transaction information
$transaction = new TransactionInfoExt(new DateTime(), new DateTime(), new DateTime());
$transaction->setPONum("293473718734");
$transaction->setReferenceNum("ThisIsATest1234");
// address ext information
$address = new AddressExt();
$address->setAddress1("1233 Garden Rd.");
$address->setAddress2("");
$address->setCity("Weston");
$address->setState("Florida");
$address->setCountry("United States");
$address->setZip("33327");
// contact info set address
$contact_info->setAddress($address);
$order->setShipTo($contact_info);
$order->setNotes("Hello World, Testing from Fulfillment API plugin");
$order->setTransInfo($transaction);
// shipping instructions object
$shipping_instructions = new ShippingInstructions();
// all details
$shipping_instructions->setAccount("An Account");
$shipping_instructions->setBillingCode("6555-5554");
$shipping_instructions->setCarrier("A Carrier");
$shipping_instructions->setCarrierDesc("Carrier Description");
$shipping_instructions->setMode("Generic");
$shipping_instructions->setShipService("FedEx");
$shipping_instructions->setShippingNotes("Shipping Notes");