Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/*******************************************************************************
3
 *  Copyright 2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
 *  Licensed under the Apache License, Version 2.0 (the "License");
5
 *
6
 *  You may not use this file except in compliance with the License.
7
 *  You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
8
 *  This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9
 *  CONDITIONS OF ANY KIND, either express or implied. See the License for the
10
 *  specific language governing permissions and limitations under the License.
11
 * *****************************************************************************
12
 */
13
 
14
 
15
/**
16
 *  @see CheckoutByAmazon_Service_Model
17
 */
18
require_once ('CheckoutByAmazon/Service/Model.php');
19
 
20
 
21
 
22
/**
23
 * CheckoutByAmazon_Service_Model_Charges
24
 *
25
 * Properties:
26
 * <ul>
27
 *
28
 * <li>Tax: CheckoutByAmazon_Service_Model_Price</li>
29
 * <li>Shipping: CheckoutByAmazon_Service_Model_Price</li>
30
 * <li>GiftWrap: CheckoutByAmazon_Service_Model_Price</li>
31
 * <li>Promotions: CheckoutByAmazon_Service_Model_PromotionList</li>
32
 *
33
 * </ul>
34
 */
35
class CheckoutByAmazon_Service_Model_Charges extends CheckoutByAmazon_Service_Model
36
{
37
 
38
 
39
    /**
40
     * Construct new CheckoutByAmazon_Service_Model_Charges
41
     *
42
     * @param mixed $data DOMElement or Associative Array to construct from.
43
     *
44
     * Valid properties:
45
     * <ul>
46
     *
47
     * <li>Tax: CheckoutByAmazon_Service_Model_Price</li>
48
     * <li>Shipping: CheckoutByAmazon_Service_Model_Price</li>
49
     * <li>GiftWrap: CheckoutByAmazon_Service_Model_Price</li>
50
     * <li>Promotions: CheckoutByAmazon_Service_Model_PromotionList</li>
51
     *
52
     * </ul>
53
     */
54
    public function __construct($data = null)
55
    {
56
        $this->_fields = array (
57
        'Tax' => array('FieldValue' => null, 'FieldType' => 'CheckoutByAmazon_Service_Model_Price'),
58
        'Shipping' => array('FieldValue' => null, 'FieldType' => 'CheckoutByAmazon_Service_Model_Price'),
59
        'GiftWrap' => array('FieldValue' => null, 'FieldType' => 'CheckoutByAmazon_Service_Model_Price'),
60
        'Promotions' => array('FieldValue' => null, 'FieldType' => 'CheckoutByAmazon_Service_Model_PromotionList'),
61
        );
62
        parent::__construct($data);
63
    }
64
 
65
        /**
66
     * Gets the value of the Tax.
67
     *
68
     * @return Price Tax
69
     */
70
    public function getTax()
71
    {
72
        return $this->_fields['Tax']['FieldValue'];
73
    }
74
 
75
    /**
76
     * Sets the value of the Tax.
77
     *
78
     * @param Price Tax
79
     * @return void
80
     */
81
    public function setTax($value)
82
    {
83
        $this->_fields['Tax']['FieldValue'] = $value;
84
        return;
85
    }
86
 
87
 
88
    /**
89
     * Checks if Tax  is set
90
     *
91
     * @return bool true if Tax property is set
92
     */
93
    public function isSetTax()
94
    {
95
        return !is_null($this->_fields['Tax']['FieldValue']);
96
 
97
    }
98
 
99
    /**
100
     * Gets the value of the Shipping.
101
     *
102
     * @return Price Shipping
103
     */
104
    public function getShipping()
105
    {
106
        return $this->_fields['Shipping']['FieldValue'];
107
    }
108
 
109
    /**
110
     * Sets the value of the Shipping.
111
     *
112
     * @param Price Shipping
113
     * @return void
114
     */
115
    public function setShipping($value)
116
    {
117
        $this->_fields['Shipping']['FieldValue'] = $value;
118
        return;
119
    }
120
 
121
 
122
    /**
123
     * Checks if Shipping  is set
124
     *
125
     * @return bool true if Shipping property is set
126
     */
127
    public function isSetShipping()
128
    {
129
        return !is_null($this->_fields['Shipping']['FieldValue']);
130
 
131
    }
132
 
133
    /**
134
     * Gets the value of the GiftWrap.
135
     *
136
     * @return Price GiftWrap
137
     */
138
    public function getGiftWrap()
139
    {
140
        return $this->_fields['GiftWrap']['FieldValue'];
141
    }
142
 
143
    /**
144
     * Sets the value of the GiftWrap.
145
     *
146
     * @param Price GiftWrap
147
     * @return void
148
     */
149
    public function setGiftWrap($value)
150
    {
151
        $this->_fields['GiftWrap']['FieldValue'] = $value;
152
        return;
153
    }
154
 
155
 
156
    /**
157
     * Checks if GiftWrap  is set
158
     *
159
     * @return bool true if GiftWrap property is set
160
     */
161
    public function isSetGiftWrap()
162
    {
163
        return !is_null($this->_fields['GiftWrap']['FieldValue']);
164
 
165
    }
166
 
167
    /**
168
     * Gets the value of the Promotions.
169
     *
170
     * @return PromotionList Promotions
171
     */
172
    public function getPromotions()
173
    {
174
        return $this->_fields['Promotions']['FieldValue'];
175
    }
176
 
177
    /**
178
     * Sets the value of the Promotions.
179
     *
180
     * @param PromotionList Promotions
181
     * @return void
182
     */
183
    public function setPromotions($value)
184
    {
185
        $this->_fields['Promotions']['FieldValue'] = $value;
186
        return;
187
    }
188
 
189
 
190
    /**
191
     * Checks if Promotions  is set
192
     *
193
     * @return bool true if Promotions property is set
194
     */
195
    public function isSetPromotions()
196
    {
197
        return !is_null($this->_fields['Promotions']['FieldValue']);
198
 
199
    }
200
 
201
}
202
?>