function ToAmount($amountValue, $currency)
 {
     $a = new AmountType();
     $a->setTypeValue($amountValue);
     $a->setTypeAttribute('currencyID', $currency);
     return $a;
 }
示例#2
0
 /**
  * Class Constructor 
  **/
 function __construct()
 {
     parent::__construct('RefundLineType', 'urn:ebay:apis:eBLBaseComponents');
     if (!isset(self::$_elements[__CLASS__])) {
         self::$_elements[__CLASS__] = array_merge(self::$_elements[get_parent_class()], array());
     }
     $this->_attributes = array_merge($this->_attributes, array('type' => array('name' => ' type', 'type' => 'RefundLineTypeCodeType', 'use' => 'optional')));
 }