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

Source for file GetShippingRates.php

Documentation is available at GetShippingRates.php

  1. <?PHP
  2. /**
  3.  * Get shipping rates
  4.  *
  5.  * $Id$
  6.  *
  7.  * @package Services_Ebay
  8.  * @author  Stephan Schmidt <schst@php.net>
  9.  * @link    http://developer.ebay.com/DevZone/docs/API_Doc/Functions/GetShippingRates/GetShippingRatesLogic.htm
  10.  */
  11. {
  12.    /**
  13.     * verb of the API call
  14.     *
  15.     * @var  string 
  16.     */
  17.     protected $verb = 'GetShippingRates';
  18.  
  19.    /**
  20.     * parameter map that is used, when scalar parameters are passed
  21.     *
  22.     * @var  array 
  23.     */
  24.     protected $paramMap = array(
  25.                                  'ShipFromZipCode',
  26.                                  'ShipToZipCode',
  27.                                  'ShippingPackage',
  28.                                  'WeightMajor',
  29.                                  'WeightMinor'
  30.                                 );
  31.    /**
  32.     * make the API call
  33.     *
  34.     * @param    object Services_Ebay_Session 
  35.     * @return   string 
  36.     */
  37.     public function call(Services_Ebay_Session $session)
  38.     {
  39.         $return = parent::call($session);
  40.         if (isset($return['ShippingRates']['ShippingRate'][0])) {
  41.             return $return['ShippingRates']['ShippingRate'];
  42.         }
  43.         return array($return['ShippingRates']['ShippingRate']);
  44.     }
  45. }
  46. ?>

Documentation generated on Mon, 11 Mar 2019 15:49:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.