Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
 class CheckoutByAmazon_Service_Model_ContractCharges extends CheckoutByAmazon_Service_Model_Charges
4
{
5
 
6
      public function __construct($data = null)
7
      {
8
           parent::__construct($data);
9
      }
10
 
11
      /**
12
       * Sets the value of the ContractTax.
13
       *
14
       * @param PromotionList ContractTax
15
       * @return void
16
       */
17
 
18
      public function setContractTax($amount)
19
      {
20
            //$this->Charges->setContractTax($amount);
21
          parent::setTax( new CheckoutByAmazon_Service_Model_Price(array('CurrencyCode' =>
22
                                CheckoutByAmazon_Service_MerchantValues::getInstance()->getCurrencyCode(),  'Amount' => $amount)));
23
      }
24
 
25
      /**
26
       * Sets the value of the ContractShippingCharges.
27
       *
28
       * @param PromotionList ContractShippingCharges
29
       * @return void
30
       */
31
      public function setContractShippingCharges($amount)
32
      {
33
         // $this->Charges->setContractShippingCharges($amount);
34
        parent::setShipping( new CheckoutByAmazon_Service_Model_Price(array('CurrencyCode' =>
35
                                   CheckoutByAmazon_Service_MerchantValues::getInstance()->getCurrencyCode(),'Amount' => $amount)));
36
      }
37
 
38
      /**
39
       * Sets the value of the Promotions.
40
       *
41
       * @param PromotionList Promotions
42
       * @return void
43
       */
44
      public function setContractPromotions($value)
45
      {
46
           //$this->Charges->setContractPromotions($PromotionListObject);
47
                parent::setPromotions($value);
48
 
49
      }
50
 
51
 
52
 
53
}
54
 
55
?>
56