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_PurchaseContract
24
 *
25
 * Properties:
26
 * <ul>
27
 *
28
 * <li>Id: IdType</li>
29
 * <li>ExpirationTimeStamp: string</li>
30
 * <li>MerchantId: IdType</li>
31
 * <li>MarketplaceId: IdType</li>
32
 * <li>State: PurchaseContractState</li>
33
 * <li>Metadata: byte[]</li>
34
 * <li>Destinations: CheckoutByAmazon_Service_Model_DestinationList</li>
35
 * <li>PurchaseItems: CheckoutByAmazon_Service_Model_ItemList</li>
36
 * <li>Charges: CheckoutByAmazon_Service_Model_Charges</li>
37
 *
38
 * </ul>
39
 */
40
class CheckoutByAmazon_Service_Model_PurchaseContract extends CheckoutByAmazon_Service_Model
41
{
42
 
43
 
44
    /**
45
     * Construct new CheckoutByAmazon_Service_Model_PurchaseContract
46
     *
47
     * @param mixed $data DOMElement or Associative Array to construct from.
48
     *
49
     * Valid properties:
50
     * <ul>
51
     *
52
     * <li>Id: IdType</li>
53
     * <li>ExpirationTimeStamp: string</li>
54
     * <li>MerchantId: IdType</li>
55
     * <li>MarketplaceId: IdType</li>
56
     * <li>State: PurchaseContractState</li>
57
     * <li>Metadata: byte[]</li>
58
     * <li>Destinations: CheckoutByAmazon_Service_Model_DestinationList</li>
59
     * <li>PurchaseItems: CheckoutByAmazon_Service_Model_ItemList</li>
60
     * <li>Charges: CheckoutByAmazon_Service_Model_Charges</li>
61
     *
62
     * </ul>
63
     */
64
    public function __construct($data = null)
65
    {
66
        $this->_fields = array (
67
        'Id' => array('FieldValue' => null, 'FieldType' => 'IdType'),
68
        'ExpirationTimeStamp' => array('FieldValue' => null, 'FieldType' => 'string'),
69
        'MerchantId' => array('FieldValue' => null, 'FieldType' => 'IdType'),
70
        'MarketplaceId' => array('FieldValue' => null, 'FieldType' => 'IdType'),
71
        'State' => array('FieldValue' => null, 'FieldType' => 'PurchaseContractState'),
72
        'Metadata' => array('FieldValue' => null, 'FieldType' => 'byte[]'),
73
        'Destinations' => array('FieldValue' => null, 'FieldType' => 'CheckoutByAmazon_Service_Model_DestinationList'),
74
        'PurchaseItems' => array('FieldValue' => null, 'FieldType' => 'CheckoutByAmazon_Service_Model_ItemList'),
75
        'Charges' => array('FieldValue' => null, 'FieldType' => 'CheckoutByAmazon_Service_Model_Charges'),
76
        );
77
        parent::__construct($data);
78
    }
79
 
80
        /**
81
     * Gets the value of the Id property.
82
     *
83
     * @return IdType Id
84
     */
85
    public function getId()
86
    {
87
        return $this->_fields['Id']['FieldValue'];
88
    }
89
 
90
    /**
91
     * Sets the value of the Id property.
92
     *
93
     * @param IdType Id
94
     * @return this instance
95
     */
96
    public function setId($value)
97
    {
98
        $this->_fields['Id']['FieldValue'] = $value;
99
        return $this;
100
    }
101
 
102
 
103
    /**
104
     * Checks if Id is set
105
     *
106
     * @return bool true if Id  is set
107
     */
108
    public function isSetId()
109
    {
110
        return !is_null($this->_fields['Id']['FieldValue']);
111
    }
112
 
113
    /**
114
     * Gets the value of the ExpirationTimeStamp property.
115
     *
116
     * @return string ExpirationTimeStamp
117
     */
118
    public function getExpirationTimeStamp()
119
    {
120
        return $this->_fields['ExpirationTimeStamp']['FieldValue'];
121
    }
122
 
123
    /**
124
     * Sets the value of the ExpirationTimeStamp property.
125
     *
126
     * @param string ExpirationTimeStamp
127
     * @return this instance
128
     */
129
    public function setExpirationTimeStamp($value)
130
    {
131
        $this->_fields['ExpirationTimeStamp']['FieldValue'] = $value;
132
        return $this;
133
    }
134
 
135
 
136
    /**
137
     * Checks if ExpirationTimeStamp is set
138
     *
139
     * @return bool true if ExpirationTimeStamp  is set
140
     */
141
    public function isSetExpirationTimeStamp()
142
    {
143
        return !is_null($this->_fields['ExpirationTimeStamp']['FieldValue']);
144
    }
145
 
146
    /**
147
     * Gets the value of the MerchantId property.
148
     *
149
     * @return IdType MerchantId
150
     */
151
    public function getMerchantId()
152
    {
153
        return $this->_fields['MerchantId']['FieldValue'];
154
    }
155
 
156
    /**
157
     * Sets the value of the MerchantId property.
158
     *
159
     * @param IdType MerchantId
160
     * @return this instance
161
     */
162
    public function setMerchantId($value)
163
    {
164
        $this->_fields['MerchantId']['FieldValue'] = $value;
165
        return $this;
166
    }
167
 
168
 
169
    /**
170
     * Checks if MerchantId is set
171
     *
172
     * @return bool true if MerchantId  is set
173
     */
174
    public function isSetMerchantId()
175
    {
176
        return !is_null($this->_fields['MerchantId']['FieldValue']);
177
    }
178
 
179
    /**
180
     * Gets the value of the MarketplaceId property.
181
     *
182
     * @return IdType MarketplaceId
183
     */
184
    public function getMarketplaceId()
185
    {
186
        return $this->_fields['MarketplaceId']['FieldValue'];
187
    }
188
 
189
    /**
190
     * Sets the value of the MarketplaceId property.
191
     *
192
     * @param IdType MarketplaceId
193
     * @return this instance
194
     */
195
    public function setMarketplaceId($value)
196
    {
197
        $this->_fields['MarketplaceId']['FieldValue'] = $value;
198
        return $this;
199
    }
200
 
201
 
202
    /**
203
     * Checks if MarketplaceId is set
204
     *
205
     * @return bool true if MarketplaceId  is set
206
     */
207
    public function isSetMarketplaceId()
208
    {
209
        return !is_null($this->_fields['MarketplaceId']['FieldValue']);
210
    }
211
 
212
    /**
213
     * Gets the value of the State property.
214
     *
215
     * @return PurchaseContractState State
216
     */
217
    public function getState()
218
    {
219
        return $this->_fields['State']['FieldValue'];
220
    }
221
 
222
    /**
223
     * Sets the value of the State property.
224
     *
225
     * @param PurchaseContractState State
226
     * @return this instance
227
     */
228
    public function setState($value)
229
    {
230
        $this->_fields['State']['FieldValue'] = $value;
231
        return $this;
232
    }
233
 
234
 
235
    /**
236
     * Checks if State is set
237
     *
238
     * @return bool true if State  is set
239
     */
240
    public function isSetState()
241
    {
242
        return !is_null($this->_fields['State']['FieldValue']);
243
    }
244
 
245
    /**
246
     * Gets the value of the Metadata property.
247
     *
248
     * @return byte[] Metadata
249
     */
250
    public function getMetadata()
251
    {
252
        return $this->_fields['Metadata']['FieldValue'];
253
    }
254
 
255
    /**
256
     * Sets the value of the Metadata property.
257
     *
258
     * @param byte[] Metadata
259
     * @return this instance
260
     */
261
    public function setMetadata($value)
262
    {
263
        $this->_fields['Metadata']['FieldValue'] = $value;
264
        return $this;
265
    }
266
 
267
 
268
    /**
269
     * Checks if Metadata is set
270
     *
271
     * @return bool true if Metadata  is set
272
     */
273
    public function isSetMetadata()
274
    {
275
        return !is_null($this->_fields['Metadata']['FieldValue']);
276
    }
277
 
278
    /**
279
     * Gets the value of the Destinations.
280
     *
281
     * @return DestinationList Destinations
282
     */
283
    public function getDestinations()
284
    {
285
        return $this->_fields['Destinations']['FieldValue'];
286
    }
287
 
288
    /**
289
     * Sets the value of the Destinations.
290
     *
291
     * @param DestinationList Destinations
292
     * @return void
293
     */
294
    public function setDestinations($value)
295
    {
296
        $this->_fields['Destinations']['FieldValue'] = $value;
297
        return;
298
    }
299
 
300
    /**
301
     * Checks if Destinations  is set
302
     *
303
     * @return bool true if Destinations property is set
304
     */
305
    public function isSetDestinations()
306
    {
307
        return !is_null($this->_fields['Destinations']['FieldValue']);
308
 
309
    }
310
 
311
    /**
312
     * Gets the value of the PurchaseItems.
313
     *
314
     * @return ItemList PurchaseItems
315
     */
316
    public function getPurchaseItems()
317
    {
318
        return $this->_fields['PurchaseItems']['FieldValue'];
319
    }
320
 
321
    /**
322
     * Sets the value of the PurchaseItems.
323
     *
324
     * @param ItemList PurchaseItems
325
     * @return void
326
     */
327
    public function setPurchaseItems($value)
328
    {
329
        $this->_fields['PurchaseItems']['FieldValue'] = $value;
330
        return;
331
    }
332
 
333
 
334
    /**
335
     * Checks if PurchaseItems  is set
336
     *
337
     * @return bool true if PurchaseItems property is set
338
     */
339
    public function isSetPurchaseItems()
340
    {
341
        return !is_null($this->_fields['PurchaseItems']['FieldValue']);
342
 
343
    }
344
 
345
    /**
346
     * Gets the value of the Charges.
347
     *
348
     * @return Charges Charges
349
     */
350
    public function getCharges()
351
    {
352
        return $this->_fields['Charges']['FieldValue'];
353
    }
354
 
355
    /**
356
     * Sets the value of the Charges.
357
     *
358
     * @param Charges Charges
359
     * @return void
360
     */
361
    public function setCharges($value)
362
    {
363
        $this->_fields['Charges']['FieldValue'] = $value;
364
        return;
365
    }
366
 
367
 
368
    /**
369
     * Checks if Charges  is set
370
     *
371
     * @return bool true if Charges property is set
372
     */
373
    public function isSetCharges()
374
    {
375
        return !is_null($this->_fields['Charges']['FieldValue']);
376
 
377
    }
378
 
379
}
380
?>