home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / php / PEAR / Services / Ebay / Call / SetSellerPaymentAddress.php < prev    next >
Encoding:
PHP Script  |  2008-07-02  |  1.4 KB  |  51 lines

  1. <?PHP
  2. /**
  3.  * Set the payment adress for the seller
  4.  *
  5.  * $Id: SetSellerPaymentAddress.php,v 1.1 2004/10/28 17:14:53 schst Exp $
  6.  *
  7.  * @package Services_Ebay
  8.  * @author  Stephan Schmidt <schst@php.net>
  9.  * @link    http://developer.ebay.com/DevZone/docs/API_Doc/Functions/SetSellerPaymentAddress/SetSellerPaymentAddressLogic.htm
  10.  */
  11. class Services_Ebay_Call_SetSellerPaymentAddress extends Services_Ebay_Call 
  12. {
  13.    /**
  14.     * verb of the API call
  15.     *
  16.     * @var  string
  17.     */
  18.     protected $verb = 'SetSellerPaymentAddress';
  19.  
  20.    /**
  21.     * parameter map that is used, when scalar parameters are passed
  22.     *
  23.     * @var  array
  24.     */
  25.     protected $paramMap = array(
  26.                                  'Name',
  27.                                  'Street1',
  28.                                  'Street2',
  29.                                  'City',
  30.                                  'StateOrProvince',
  31.                                  'Country',
  32.                                  'Zip',
  33.                                  'Phone'
  34.                                 );
  35.     
  36.    /**
  37.     * make the API call
  38.     *
  39.     * @param    object Services_Ebay_Session
  40.     * @return   string
  41.     */
  42.     public function call(Services_Ebay_Session $session)
  43.     {
  44.         $return = parent::call($session);
  45.         if ($return['CallStatus']['Status'] === 'Success') {
  46.             return true;
  47.         }
  48.         return false;
  49.     }
  50. }
  51. ?>