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