Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* @var $headerApi HeaderAPI_Input */
- $headerApi = new stdClass();
- $headerApi->APIVersion = "1";
- $headerApi->HeaderAuth = new stdClass();
- $headerApi->HeaderAuth->SignOn->UserName = 'NetmindTest';
- $headerApi->HeaderAuth->SignOn->Password = 'Pwd123456';
- $headerApi->HeaderAuth->SignOn->APPID = 'PAPI';
- /* @var $shippingRequest ShippingRequest */
- $shippingRequest = new stdClass();
- $shippingRequest->NormalizeAddresses = true;
- $shippingRequest->Shipment = new stdClass();
- $shippingRequest->Shipment->Label = new stdClass();
- $shippingRequest->Shipment->Label->Recipient = new stdClass();
- $shippingRequest->Shipment->Label->Recipient->Address = new stdClass();
- $shippingRequest->Shipment->Label->Recipient->Address->StreetAddress = 'Pal';
- $shippingRequest->Shipment->Label->Recipient->Address->PostCode = '2013';
- $shippingRequest->Shipment->Label->Recipient->Address->City = 'Milnao';
- $shippingRequest->Shipment->Label->Recipient->Address->District = 'MI';
- $shippingRequest->Shipment->Label->Recipient->Address->Name = 'Gino';
- $shippingRequest->Shipment->Label->Recipient->Address->Name2 = 'Bartali';
- $shippingRequest->Shipment->Label->Recipient->Address->PhoneNumber = '0810291';
- $shippingRequest->Shipment->Label->Recipient->Address->Email = 'efr@wedfe.it';
- $shippingRequest->Shipment->Label->Recipient->Address->PhoneNumber2 = '3443645';
- $shippingRequest->Shipment->Label->Sender = new stdClass();
- $shippingRequest->Shipment->Label->Sender->StreetAddress = 'Padova';
- $shippingRequest->Shipment->Label->Sender->PostCode = '2013';
- $shippingRequest->Shipment->Label->Sender->City = 'Milnao';
- $shippingRequest->Shipment->Label->Sender->District = 'MI';
- $shippingRequest->Shipment->Label->Sender->Name = 'pezzotto';
- $shippingRequest->Shipment->Label->Sender->Name2 = 'oso';
- $shippingRequest->Shipment->Label->Size = 'XS';
- $shippingRequest->Shipment->Label->Product = 'Sistema incompleto';
- $shippingRequest->Shipment->Label->PackagesQuantity = '1';
- $shippingRequest->Shipment->Customer = new stdClass();
- $shippingRequest->Shipment->Customer->Code = null;
- $shippingRequest->Shipment->Customer->MerchantId = null;
- $shippingRequest->Shipment->Pickup = new stdClass();
- $shippingRequest->Shipment->Pickup->PickupType = null;
- $shippingRequest->Shipment->Pickup->PickupDate = '2015-07-17T09:00:00';
- $shippingRequest->Shipment->Pickup->Agency = null;
- $shippingRequest->Shipment->Pickup->Address = new stdClass();
- $shippingRequest->Shipment->Pickup->Address->StreetAddress = 'Via pome';
- $shippingRequest->Shipment->Pickup->Address->StreetNumber = null;
- $shippingRequest->Shipment->Pickup->Address->PostCode = '80100';
- $shippingRequest->Shipment->Pickup->Address->City = 'Milano';
- $shippingRequest->Shipment->Pickup->Address->District = 'MI';
- $shippingRequest->Shipment->Pickup->Address->Name = 'Netsoft';
- $shippingRequest->Shipment->Pickup->Address->PhoneNumber = '081020';
- $shippingRequest->Shipment->Pickup->Address->Email = 'sff@fedfef.it';
- $shippingRequest->Shipment->Pickup->Note = 'Note';
- $shippingRequest->Shipment->Delivery = new stdClass();
- $shippingRequest->Shipment->Delivery->Check = new stdClass();
- $shippingRequest->Shipment->Delivery->Check->Amount = '180';
- $obj= new stdClass();
- $obj->HeaderAPI = $headerApi;
- $obj->ShippingRequest = $shippingRequest;
- // Invio $obj
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement