1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Neta\Shopware\SDK\Entity. |
4
|
|
|
* |
5
|
|
|
* Copyright 2016 LeadCommerce |
6
|
|
|
* |
7
|
|
|
* @author Alexander Mahrt <[email protected]> |
8
|
|
|
* @copyright 2016 LeadCommerce <[email protected]> |
9
|
|
|
*/ |
10
|
|
|
|
11
|
|
|
namespace Neta\Shopware\SDK\Entity; |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* Class Billing. |
15
|
|
|
*/ |
16
|
|
|
class Billing extends Base |
17
|
|
|
{ |
18
|
|
|
/** |
19
|
|
|
* @var int |
20
|
|
|
*/ |
21
|
|
|
protected $id; |
22
|
|
|
/** |
23
|
|
|
* @var int |
24
|
|
|
*/ |
25
|
|
|
protected $customerId; |
26
|
|
|
/** |
27
|
|
|
* @var int |
28
|
|
|
*/ |
29
|
|
|
protected $countryId; |
30
|
|
|
/** |
31
|
|
|
* @var int |
32
|
|
|
*/ |
33
|
|
|
protected $stateId; |
34
|
|
|
/** |
35
|
|
|
* @var string |
36
|
|
|
*/ |
37
|
|
|
protected $company; |
38
|
|
|
/** |
39
|
|
|
* @var string |
40
|
|
|
*/ |
41
|
|
|
protected $department; |
42
|
|
|
/** |
43
|
|
|
* @var string |
44
|
|
|
*/ |
45
|
|
|
protected $salutation; |
46
|
|
|
/** |
47
|
|
|
* @var string |
48
|
|
|
*/ |
49
|
|
|
protected $number; |
50
|
|
|
/** |
51
|
|
|
* @var string |
52
|
|
|
*/ |
53
|
|
|
protected $firstName; |
54
|
|
|
/** |
55
|
|
|
* @var string |
56
|
|
|
*/ |
57
|
|
|
protected $lastName; |
58
|
|
|
/** |
59
|
|
|
* @var string |
60
|
|
|
*/ |
61
|
|
|
protected $street; |
62
|
|
|
/** |
63
|
|
|
* @var string |
64
|
|
|
*/ |
65
|
|
|
protected $streetNumber; |
66
|
|
|
/** |
67
|
|
|
* @var string |
68
|
|
|
*/ |
69
|
|
|
protected $zipCode; |
70
|
|
|
/** |
71
|
|
|
* @var string |
72
|
|
|
*/ |
73
|
|
|
protected $city; |
74
|
|
|
/** |
75
|
|
|
* @var string |
76
|
|
|
*/ |
77
|
|
|
protected $phone; |
78
|
|
|
/** |
79
|
|
|
* @var string |
80
|
|
|
*/ |
81
|
|
|
protected $fax; |
82
|
|
|
/** |
83
|
|
|
* @var int |
84
|
|
|
*/ |
85
|
|
|
protected $vatId; |
86
|
|
|
/** |
87
|
|
|
* @var string |
88
|
|
|
*/ |
89
|
|
|
protected $birthday; |
90
|
|
|
/** |
91
|
|
|
* @var BillingAttribute[] |
92
|
|
|
*/ |
93
|
|
|
protected $attribute; |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @return int |
97
|
|
|
*/ |
98
|
|
|
public function getId() |
99
|
|
|
{ |
100
|
|
|
return $this->id; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @param int $id |
105
|
|
|
* |
106
|
|
|
* @return Billing |
107
|
|
|
*/ |
108
|
|
|
public function setId($id) |
109
|
|
|
{ |
110
|
|
|
$this->id = $id; |
111
|
|
|
|
112
|
|
|
return $this; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* @return int |
117
|
|
|
*/ |
118
|
|
|
public function getCustomerId() |
119
|
|
|
{ |
120
|
|
|
return $this->customerId; |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* @param int $customerId |
125
|
|
|
* |
126
|
|
|
* @return Billing |
127
|
|
|
*/ |
128
|
|
|
public function setCustomerId($customerId) |
129
|
|
|
{ |
130
|
|
|
$this->customerId = $customerId; |
131
|
|
|
|
132
|
|
|
return $this; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* @return int |
137
|
|
|
*/ |
138
|
|
|
public function getCountryId() |
139
|
|
|
{ |
140
|
|
|
return $this->countryId; |
141
|
|
|
} |
142
|
|
|
|
143
|
|
|
/** |
144
|
|
|
* @param int $countryId |
145
|
|
|
* |
146
|
|
|
* @return Billing |
147
|
|
|
*/ |
148
|
|
|
public function setCountryId($countryId) |
149
|
|
|
{ |
150
|
|
|
$this->countryId = $countryId; |
151
|
|
|
|
152
|
|
|
return $this; |
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
/** |
156
|
|
|
* @return int |
157
|
|
|
*/ |
158
|
|
|
public function getStateId() |
159
|
|
|
{ |
160
|
|
|
return $this->stateId; |
161
|
|
|
} |
162
|
|
|
|
163
|
|
|
/** |
164
|
|
|
* @param int $stateId |
165
|
|
|
* |
166
|
|
|
* @return Billing |
167
|
|
|
*/ |
168
|
|
|
public function setStateId($stateId) |
169
|
|
|
{ |
170
|
|
|
$this->stateId = $stateId; |
171
|
|
|
|
172
|
|
|
return $this; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* @return string |
177
|
|
|
*/ |
178
|
|
|
public function getCompany() |
179
|
|
|
{ |
180
|
|
|
return $this->company; |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
/** |
184
|
|
|
* @param string $company |
185
|
|
|
* |
186
|
|
|
* @return Billing |
187
|
|
|
*/ |
188
|
|
|
public function setCompany($company) |
189
|
|
|
{ |
190
|
|
|
$this->company = $company; |
191
|
|
|
|
192
|
|
|
return $this; |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
/** |
196
|
|
|
* @return string |
197
|
|
|
*/ |
198
|
|
|
public function getDepartment() |
199
|
|
|
{ |
200
|
|
|
return $this->department; |
201
|
|
|
} |
202
|
|
|
|
203
|
|
|
/** |
204
|
|
|
* @param string $department |
205
|
|
|
* |
206
|
|
|
* @return Billing |
207
|
|
|
*/ |
208
|
|
|
public function setDepartment($department) |
209
|
|
|
{ |
210
|
|
|
$this->department = $department; |
211
|
|
|
|
212
|
|
|
return $this; |
213
|
|
|
} |
214
|
|
|
|
215
|
|
|
/** |
216
|
|
|
* @return string |
217
|
|
|
*/ |
218
|
|
|
public function getSalutation() |
219
|
|
|
{ |
220
|
|
|
return $this->salutation; |
221
|
|
|
} |
222
|
|
|
|
223
|
|
|
/** |
224
|
|
|
* @param string $salutation |
225
|
|
|
* |
226
|
|
|
* @return Billing |
227
|
|
|
*/ |
228
|
|
|
public function setSalutation($salutation) |
229
|
|
|
{ |
230
|
|
|
$this->salutation = $salutation; |
231
|
|
|
|
232
|
|
|
return $this; |
233
|
|
|
} |
234
|
|
|
|
235
|
|
|
/** |
236
|
|
|
* @return string |
237
|
|
|
*/ |
238
|
|
|
public function getNumber() |
239
|
|
|
{ |
240
|
|
|
return $this->number; |
241
|
|
|
} |
242
|
|
|
|
243
|
|
|
/** |
244
|
|
|
* @param string $number |
245
|
|
|
* |
246
|
|
|
* @return Billing |
247
|
|
|
*/ |
248
|
|
|
public function setNumber($number) |
249
|
|
|
{ |
250
|
|
|
$this->number = $number; |
251
|
|
|
|
252
|
|
|
return $this; |
253
|
|
|
} |
254
|
|
|
|
255
|
|
|
/** |
256
|
|
|
* @return string |
257
|
|
|
*/ |
258
|
|
|
public function getFirstName() |
259
|
|
|
{ |
260
|
|
|
return $this->firstName; |
261
|
|
|
} |
262
|
|
|
|
263
|
|
|
/** |
264
|
|
|
* @param string $firstName |
265
|
|
|
* |
266
|
|
|
* @return Billing |
267
|
|
|
*/ |
268
|
|
|
public function setFirstName($firstName) |
269
|
|
|
{ |
270
|
|
|
$this->firstName = $firstName; |
271
|
|
|
|
272
|
|
|
return $this; |
273
|
|
|
} |
274
|
|
|
|
275
|
|
|
/** |
276
|
|
|
* @return string |
277
|
|
|
*/ |
278
|
|
|
public function getLastName() |
279
|
|
|
{ |
280
|
|
|
return $this->lastName; |
281
|
|
|
} |
282
|
|
|
|
283
|
|
|
/** |
284
|
|
|
* @param string $lastName |
285
|
|
|
* |
286
|
|
|
* @return Billing |
287
|
|
|
*/ |
288
|
|
|
public function setLastName($lastName) |
289
|
|
|
{ |
290
|
|
|
$this->lastName = $lastName; |
291
|
|
|
|
292
|
|
|
return $this; |
293
|
|
|
} |
294
|
|
|
|
295
|
|
|
/** |
296
|
|
|
* @return string |
297
|
|
|
*/ |
298
|
|
|
public function getStreet() |
299
|
|
|
{ |
300
|
|
|
return $this->street; |
301
|
|
|
} |
302
|
|
|
|
303
|
|
|
/** |
304
|
|
|
* @param string $street |
305
|
|
|
* |
306
|
|
|
* @return Billing |
307
|
|
|
*/ |
308
|
|
|
public function setStreet($street) |
309
|
|
|
{ |
310
|
|
|
$this->street = $street; |
311
|
|
|
|
312
|
|
|
return $this; |
313
|
|
|
} |
314
|
|
|
|
315
|
|
|
/** |
316
|
|
|
* @return string |
317
|
|
|
*/ |
318
|
|
|
public function getStreetNumber() |
319
|
|
|
{ |
320
|
|
|
return $this->streetNumber; |
321
|
|
|
} |
322
|
|
|
|
323
|
|
|
/** |
324
|
|
|
* @param string $streetNumber |
325
|
|
|
* |
326
|
|
|
* @return Billing |
327
|
|
|
*/ |
328
|
|
|
public function setStreetNumber($streetNumber) |
329
|
|
|
{ |
330
|
|
|
$this->streetNumber = $streetNumber; |
331
|
|
|
|
332
|
|
|
return $this; |
333
|
|
|
} |
334
|
|
|
|
335
|
|
|
/** |
336
|
|
|
* @return string |
337
|
|
|
*/ |
338
|
|
|
public function getZipCode() |
339
|
|
|
{ |
340
|
|
|
return $this->zipCode; |
341
|
|
|
} |
342
|
|
|
|
343
|
|
|
/** |
344
|
|
|
* @param string $zipCode |
345
|
|
|
* |
346
|
|
|
* @return Billing |
347
|
|
|
*/ |
348
|
|
|
public function setZipCode($zipCode) |
349
|
|
|
{ |
350
|
|
|
$this->zipCode = $zipCode; |
351
|
|
|
|
352
|
|
|
return $this; |
353
|
|
|
} |
354
|
|
|
|
355
|
|
|
/** |
356
|
|
|
* @return string |
357
|
|
|
*/ |
358
|
|
|
public function getCity() |
359
|
|
|
{ |
360
|
|
|
return $this->city; |
361
|
|
|
} |
362
|
|
|
|
363
|
|
|
/** |
364
|
|
|
* @param string $city |
365
|
|
|
* |
366
|
|
|
* @return Billing |
367
|
|
|
*/ |
368
|
|
|
public function setCity($city) |
369
|
|
|
{ |
370
|
|
|
$this->city = $city; |
371
|
|
|
|
372
|
|
|
return $this; |
373
|
|
|
} |
374
|
|
|
|
375
|
|
|
/** |
376
|
|
|
* @return string |
377
|
|
|
*/ |
378
|
|
|
public function getPhone() |
379
|
|
|
{ |
380
|
|
|
return $this->phone; |
381
|
|
|
} |
382
|
|
|
|
383
|
|
|
/** |
384
|
|
|
* @param string $phone |
385
|
|
|
* |
386
|
|
|
* @return Billing |
387
|
|
|
*/ |
388
|
|
|
public function setPhone($phone) |
389
|
|
|
{ |
390
|
|
|
$this->phone = $phone; |
391
|
|
|
|
392
|
|
|
return $this; |
393
|
|
|
} |
394
|
|
|
|
395
|
|
|
/** |
396
|
|
|
* @return string |
397
|
|
|
*/ |
398
|
|
|
public function getFax() |
399
|
|
|
{ |
400
|
|
|
return $this->fax; |
401
|
|
|
} |
402
|
|
|
|
403
|
|
|
/** |
404
|
|
|
* @param string $fax |
405
|
|
|
* |
406
|
|
|
* @return Billing |
407
|
|
|
*/ |
408
|
|
|
public function setFax($fax) |
409
|
|
|
{ |
410
|
|
|
$this->fax = $fax; |
411
|
|
|
|
412
|
|
|
return $this; |
413
|
|
|
} |
414
|
|
|
|
415
|
|
|
/** |
416
|
|
|
* @return int |
417
|
|
|
*/ |
418
|
|
|
public function getVatId() |
419
|
|
|
{ |
420
|
|
|
return $this->vatId; |
421
|
|
|
} |
422
|
|
|
|
423
|
|
|
/** |
424
|
|
|
* @param int $vatId |
425
|
|
|
* |
426
|
|
|
* @return Billing |
427
|
|
|
*/ |
428
|
|
|
public function setVatId($vatId) |
429
|
|
|
{ |
430
|
|
|
$this->vatId = $vatId; |
431
|
|
|
|
432
|
|
|
return $this; |
433
|
|
|
} |
434
|
|
|
|
435
|
|
|
/** |
436
|
|
|
* @return string |
437
|
|
|
*/ |
438
|
|
|
public function getBirthday() |
439
|
|
|
{ |
440
|
|
|
return $this->birthday; |
441
|
|
|
} |
442
|
|
|
|
443
|
|
|
/** |
444
|
|
|
* @param string $birthday |
445
|
|
|
* |
446
|
|
|
* @return Billing |
447
|
|
|
*/ |
448
|
|
|
public function setBirthday($birthday) |
449
|
|
|
{ |
450
|
|
|
$this->birthday = $birthday; |
451
|
|
|
|
452
|
|
|
return $this; |
453
|
|
|
} |
454
|
|
|
|
455
|
|
|
/** |
456
|
|
|
* @return BillingAttribute[] |
457
|
|
|
*/ |
458
|
|
|
public function getAttributes() |
459
|
|
|
{ |
460
|
|
|
return $this->attribute; |
461
|
|
|
} |
462
|
|
|
|
463
|
|
|
/** |
464
|
|
|
* @param BillingAttribute[] $attribute |
465
|
|
|
* |
466
|
|
|
* @return Billing |
467
|
|
|
*/ |
468
|
|
|
public function setAttributes($attribute) |
469
|
|
|
{ |
470
|
|
|
$this->attribute = $attribute; |
471
|
|
|
|
472
|
|
|
return $this; |
473
|
|
|
} |
474
|
|
|
} |
475
|
|
|
|