Services_Ebay
[ class tree: Services_Ebay ] [ index: Services_Ebay ] [ all elements ]

Source for file Shipment.php

Documentation is available at Shipment.php

  1. <?PHP
  2. /**
  3.  * Model for a shipment
  4.  *
  5.  *
  6.  * @package Services_Ebay
  7.  * @author  Stephan Schmidt <schst@php.net>
  8.  */
  9. {
  10.     protected $properties = array(
  11.                                     'CurrencyId'   => 1,
  12.                                     'Transactions' => array()
  13.                                 );
  14.  
  15.  
  16.                                 
  17.     public function SetPackageDimensions($Depth$Length$Width)
  18.     {
  19.         $this->properties['PackageDimensions'= array(
  20.                                                         'Depth'         => $Depth,
  21.                                                         'Length'        => $Length,
  22.                                                         'Width'         => $Width,
  23.                                                         'UnitOfMeasure' => 1
  24.                                                     );
  25.     }
  26.                                 
  27.     public function AddTransaction($ItemId$TransactionId)
  28.     {
  29.         array_push($this->properties['Transactions']array'ItemId' => $ItemId'TransactionId' => $TransactionId ));
  30.     }
  31.  
  32.     public function SetFromAddress($CompanyName$Name$Street1$Street2$City$Zip$StateOrProvince$Country$Phone = null)
  33.     {
  34.         $this->properties['ShipFromAddress'= array(
  35.                                                         'CompanyName'     => $CompanyName,
  36.                                                         'Name'            => $Name,
  37.                                                         'Street1'         => $Street1,
  38.                                                         'Street2'         => $Street2,
  39.                                                         'City'            => $City,
  40.                                                         'Zip'             => $Zip,
  41.                                                         'StateOrProvince' => $StateOrProvince,
  42.                                                         'Country'         => $Country,
  43.                                                         'Phone'           => $Phone
  44.                                                     );
  45.     }
  46.  
  47.     public function SetAddress($Type$CompanyName$Name$Street1$Street2$City$Zip$StateOrProvince$Country$Phone = null)
  48.     {
  49.         $this->properties['ShippingAddress'= array(
  50.                                                         'AddressType'     => $Type,
  51.                                                         'CompanyName'     => $CompanyName,
  52.                                                         'Name'            => $Name,
  53.                                                         'Street1'         => $Street1,
  54.                                                         'Street2'         => $Street2,
  55.                                                         'City'            => $City,
  56.                                                         'Zip'             => $Zip,
  57.                                                         'StateOrProvince' => $StateOrProvince,
  58.                                                         'Country'         => $Country,
  59.                                                         'Phone'           => $Phone
  60.                                                     );
  61.     }
  62. }
  63. ?>

Documentation generated on Mon, 11 Mar 2019 13:58:29 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.