1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Speicher210\Fastbill\Api\Model\Notification\Customer; |
4
|
|
|
|
5
|
|
|
use JMS\Serializer\Annotation as JMS; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Customer in a notification model. |
9
|
|
|
*/ |
10
|
|
|
class Customer |
11
|
|
|
{ |
12
|
|
|
/** |
13
|
|
|
* The customer ID. |
14
|
|
|
* |
15
|
|
|
* @var integer |
16
|
|
|
* |
17
|
|
|
* @JMS\Type("integer") |
18
|
|
|
* @JMS\SerializedName("customer_id") |
19
|
|
|
*/ |
20
|
|
|
protected $customerId; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* The external customer ID. |
24
|
|
|
* |
25
|
|
|
* @var string |
26
|
|
|
* |
27
|
|
|
* @JMS\Type("string") |
28
|
|
|
* @JMS\SerializedName("customer_ext_uid") |
29
|
|
|
*/ |
30
|
|
|
protected $customerExternalId; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* Hash. |
34
|
|
|
* |
35
|
|
|
* @var string |
36
|
|
|
* |
37
|
|
|
* @JMS\Type("string") |
38
|
|
|
* @JMS\SerializedName("hash") |
39
|
|
|
*/ |
40
|
|
|
protected $hash; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* The own customer number. |
44
|
|
|
* |
45
|
|
|
* @var string |
46
|
|
|
* |
47
|
|
|
* @JMS\Type("string") |
48
|
|
|
* @JMS\SerializedName("customer_number") |
49
|
|
|
*/ |
50
|
|
|
protected $customerNumber; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* The company name of the customer. |
54
|
|
|
* |
55
|
|
|
* @var string |
56
|
|
|
* |
57
|
|
|
* @JMS\Type("string") |
58
|
|
|
* @JMS\SerializedName("companyname") |
59
|
|
|
*/ |
60
|
|
|
protected $companyName; |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* The academic title of the customer. |
64
|
|
|
* |
65
|
|
|
* @var string |
66
|
|
|
* |
67
|
|
|
* @JMS\Type("string") |
68
|
|
|
* @JMS\SerializedName("title") |
69
|
|
|
*/ |
70
|
|
|
protected $title; |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* The salutation of the customer. |
74
|
|
|
* |
75
|
|
|
* @var string |
76
|
|
|
* |
77
|
|
|
* @JMS\Type("string") |
78
|
|
|
* @JMS\SerializedName("salutation") |
79
|
|
|
*/ |
80
|
|
|
protected $salutation; |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* The first name of the customer. |
84
|
|
|
* |
85
|
|
|
* @var string |
86
|
|
|
* |
87
|
|
|
* @JMS\Type("string") |
88
|
|
|
* @JMS\SerializedName("firstname") |
89
|
|
|
*/ |
90
|
|
|
protected $firstName; |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* The last name of the customer. |
94
|
|
|
* |
95
|
|
|
* @var string |
96
|
|
|
* |
97
|
|
|
* @JMS\Type("string") |
98
|
|
|
* @JMS\SerializedName("lastname") |
99
|
|
|
*/ |
100
|
|
|
protected $lastName; |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* The address of the customer. |
104
|
|
|
* |
105
|
|
|
* @var string |
106
|
|
|
* |
107
|
|
|
* @JMS\Type("string") |
108
|
|
|
* @JMS\SerializedName("address") |
109
|
|
|
*/ |
110
|
|
|
protected $address; |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* The second row of an address of the customer. |
114
|
|
|
* |
115
|
|
|
* @var string |
116
|
|
|
* |
117
|
|
|
* @JMS\Type("string") |
118
|
|
|
* @JMS\SerializedName("address_2") |
119
|
|
|
*/ |
120
|
|
|
protected $address2; |
121
|
|
|
|
122
|
|
|
/** |
123
|
|
|
* The zip code of the customer. |
124
|
|
|
* |
125
|
|
|
* @var string |
126
|
|
|
* |
127
|
|
|
* @JMS\Type("string") |
128
|
|
|
* @JMS\SerializedName("zipcode") |
129
|
|
|
*/ |
130
|
|
|
protected $zipCode; |
131
|
|
|
|
132
|
|
|
/** |
133
|
|
|
* The city of the customer. |
134
|
|
|
* |
135
|
|
|
* @var string |
136
|
|
|
* |
137
|
|
|
* @JMS\Type("string") |
138
|
|
|
* @JMS\SerializedName("city") |
139
|
|
|
*/ |
140
|
|
|
protected $city; |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* The country code of the customer. |
144
|
|
|
* |
145
|
|
|
* @var string |
146
|
|
|
* |
147
|
|
|
* @JMS\Type("string") |
148
|
|
|
* @JMS\SerializedName("country_code") |
149
|
|
|
*/ |
150
|
|
|
protected $countryCode; |
151
|
|
|
|
152
|
|
|
/** |
153
|
|
|
* The email address of the customer. |
154
|
|
|
* |
155
|
|
|
* @var string |
156
|
|
|
* |
157
|
|
|
* @JMS\Type("string") |
158
|
|
|
* @JMS\SerializedName("email") |
159
|
|
|
*/ |
160
|
|
|
protected $email; |
161
|
|
|
|
162
|
|
|
/** |
163
|
|
|
* The phone number of the customer. |
164
|
|
|
* |
165
|
|
|
* @var string |
166
|
|
|
* @JMS\Type("string") |
167
|
|
|
* @JMS\SerializedName("phone") |
168
|
|
|
*/ |
169
|
|
|
protected $phone; |
170
|
|
|
|
171
|
|
|
/** |
172
|
|
|
* The payment data URL. |
173
|
|
|
* |
174
|
|
|
* @var string |
175
|
|
|
* |
176
|
|
|
* @JMS\Type("string") |
177
|
|
|
* @JMS\SerializedName("payment_data_url") |
178
|
|
|
*/ |
179
|
|
|
protected $paymentDataUrl; |
180
|
|
|
|
181
|
|
|
/** |
182
|
|
|
* The dashboard URL. |
183
|
|
|
* |
184
|
|
|
* @var string |
185
|
|
|
* |
186
|
|
|
* @JMS\Type("string") |
187
|
|
|
* @JMS\SerializedName("dashboard_url") |
188
|
|
|
*/ |
189
|
|
|
protected $dashboardUrl; |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* @return int |
193
|
|
|
*/ |
194
|
|
|
public function getCustomerId() |
195
|
|
|
{ |
196
|
|
|
return $this->customerId; |
197
|
|
|
} |
198
|
|
|
|
199
|
|
|
/** |
200
|
|
|
* @param int $customerId |
201
|
|
|
* @return Customer |
202
|
|
|
*/ |
203
|
|
|
public function setCustomerId($customerId) |
204
|
|
|
{ |
205
|
|
|
$this->customerId = $customerId; |
206
|
|
|
|
207
|
|
|
return $this; |
208
|
|
|
} |
209
|
|
|
|
210
|
|
|
/** |
211
|
|
|
* Get the customer external ID. |
212
|
|
|
* |
213
|
|
|
* @return int |
214
|
|
|
*/ |
215
|
|
|
public function getCustomerExternalId() |
216
|
|
|
{ |
217
|
|
|
return $this->customerExternalId; |
218
|
|
|
} |
219
|
|
|
|
220
|
|
|
/** |
221
|
|
|
* Set the customer external ID. |
222
|
|
|
* |
223
|
|
|
* @param int $customerExternalId The customer external ID. |
224
|
|
|
* @return Customer |
225
|
|
|
*/ |
226
|
|
|
public function setCustomerExternalId($customerExternalId) |
227
|
|
|
{ |
228
|
|
|
$this->customerExternalId = $customerExternalId; |
|
|
|
|
229
|
|
|
|
230
|
|
|
return $this; |
231
|
|
|
} |
232
|
|
|
|
233
|
|
|
/** |
234
|
|
|
* Get the hash. |
235
|
|
|
* |
236
|
|
|
* @return string |
237
|
|
|
*/ |
238
|
|
|
public function getHash() |
239
|
|
|
{ |
240
|
|
|
return $this->hash; |
241
|
|
|
} |
242
|
|
|
|
243
|
|
|
/** |
244
|
|
|
* Set the hash. |
245
|
|
|
* |
246
|
|
|
* @param string $hash The hash. |
247
|
|
|
* @return Customer |
248
|
|
|
*/ |
249
|
|
|
public function setHash($hash) |
250
|
|
|
{ |
251
|
|
|
$this->hash = $hash; |
252
|
|
|
|
253
|
|
|
return $this; |
254
|
|
|
} |
255
|
|
|
|
256
|
|
|
/** |
257
|
|
|
* Get the customer number. |
258
|
|
|
* |
259
|
|
|
* @return int The customer number. |
260
|
|
|
*/ |
261
|
|
|
public function getCustomerNumber() |
262
|
|
|
{ |
263
|
|
|
return $this->customerNumber; |
264
|
|
|
} |
265
|
|
|
|
266
|
|
|
/** |
267
|
|
|
* Set the customer number. |
268
|
|
|
* |
269
|
|
|
* @param int $customerNumber The customer number. |
270
|
|
|
* @return Customer |
271
|
|
|
*/ |
272
|
|
|
public function setCustomerNumber($customerNumber) |
273
|
|
|
{ |
274
|
|
|
$this->customerNumber = $customerNumber; |
|
|
|
|
275
|
|
|
|
276
|
|
|
return $this; |
277
|
|
|
} |
278
|
|
|
|
279
|
|
|
/** |
280
|
|
|
* Get the company name. |
281
|
|
|
* |
282
|
|
|
* @return string |
283
|
|
|
*/ |
284
|
|
|
public function getCompanyName() |
285
|
|
|
{ |
286
|
|
|
return $this->companyName; |
287
|
|
|
} |
288
|
|
|
|
289
|
|
|
/** |
290
|
|
|
* Set the company name. |
291
|
|
|
* |
292
|
|
|
* @param string $companyName The company name. |
293
|
|
|
* @return Customer |
294
|
|
|
*/ |
295
|
|
|
public function setCompanyName($companyName) |
296
|
|
|
{ |
297
|
|
|
$this->companyName = $companyName; |
298
|
|
|
|
299
|
|
|
return $this; |
300
|
|
|
} |
301
|
|
|
|
302
|
|
|
/** |
303
|
|
|
* Get the title. |
304
|
|
|
* |
305
|
|
|
* @return string |
306
|
|
|
*/ |
307
|
|
|
public function getTitle() |
308
|
|
|
{ |
309
|
|
|
return $this->title; |
310
|
|
|
} |
311
|
|
|
|
312
|
|
|
/** |
313
|
|
|
* Set the title. |
314
|
|
|
* |
315
|
|
|
* @param string $title The title. |
316
|
|
|
* @return Customer |
317
|
|
|
*/ |
318
|
|
|
public function setTitle($title) |
319
|
|
|
{ |
320
|
|
|
$this->title = $title; |
321
|
|
|
|
322
|
|
|
return $this; |
323
|
|
|
} |
324
|
|
|
|
325
|
|
|
/** |
326
|
|
|
* Get the salutation. |
327
|
|
|
* |
328
|
|
|
* @return string |
329
|
|
|
*/ |
330
|
|
|
public function getSalutation() |
331
|
|
|
{ |
332
|
|
|
return $this->salutation; |
333
|
|
|
} |
334
|
|
|
|
335
|
|
|
/** |
336
|
|
|
* Set the salutation. |
337
|
|
|
* |
338
|
|
|
* @param string $salutation The salutation. |
339
|
|
|
* @return Customer |
340
|
|
|
*/ |
341
|
|
|
public function setSalutation($salutation) |
342
|
|
|
{ |
343
|
|
|
$this->salutation = $salutation; |
344
|
|
|
|
345
|
|
|
return $this; |
346
|
|
|
} |
347
|
|
|
|
348
|
|
|
/** |
349
|
|
|
* Get the first name. |
350
|
|
|
* |
351
|
|
|
* @return string |
352
|
|
|
*/ |
353
|
|
|
public function getFirstName() |
354
|
|
|
{ |
355
|
|
|
return $this->firstName; |
356
|
|
|
} |
357
|
|
|
|
358
|
|
|
/** |
359
|
|
|
* Set the first name. |
360
|
|
|
* |
361
|
|
|
* @param string $firstName The first name. |
362
|
|
|
* @return Customer |
363
|
|
|
*/ |
364
|
|
|
public function setFirstName($firstName) |
365
|
|
|
{ |
366
|
|
|
$this->firstName = $firstName; |
367
|
|
|
|
368
|
|
|
return $this; |
369
|
|
|
} |
370
|
|
|
|
371
|
|
|
/** |
372
|
|
|
* Get the last name. |
373
|
|
|
* |
374
|
|
|
* @return string |
375
|
|
|
*/ |
376
|
|
|
public function getLastName() |
377
|
|
|
{ |
378
|
|
|
return $this->lastName; |
379
|
|
|
} |
380
|
|
|
|
381
|
|
|
/** |
382
|
|
|
* Set the last name. |
383
|
|
|
* |
384
|
|
|
* @param string $lastName The last name. |
385
|
|
|
* @return Customer |
386
|
|
|
*/ |
387
|
|
|
public function setLastName($lastName) |
388
|
|
|
{ |
389
|
|
|
$this->lastName = $lastName; |
390
|
|
|
|
391
|
|
|
return $this; |
392
|
|
|
} |
393
|
|
|
|
394
|
|
|
/** |
395
|
|
|
* Get the address. |
396
|
|
|
* |
397
|
|
|
* @return string |
398
|
|
|
*/ |
399
|
|
|
public function getAddress() |
400
|
|
|
{ |
401
|
|
|
return $this->address; |
402
|
|
|
} |
403
|
|
|
|
404
|
|
|
/** |
405
|
|
|
* Set the address. |
406
|
|
|
* |
407
|
|
|
* @param string $address The address. |
408
|
|
|
* @return Customer |
409
|
|
|
*/ |
410
|
|
|
public function setAddress($address) |
411
|
|
|
{ |
412
|
|
|
$this->address = $address; |
413
|
|
|
|
414
|
|
|
return $this; |
415
|
|
|
} |
416
|
|
|
|
417
|
|
|
/** |
418
|
|
|
* Get the address2. |
419
|
|
|
* |
420
|
|
|
* @return string |
421
|
|
|
*/ |
422
|
|
|
public function getAddress2() |
423
|
|
|
{ |
424
|
|
|
return $this->address2; |
425
|
|
|
} |
426
|
|
|
|
427
|
|
|
/** |
428
|
|
|
* Set the address2. |
429
|
|
|
* |
430
|
|
|
* @param string $address2 The address2. |
431
|
|
|
* @return Customer |
432
|
|
|
*/ |
433
|
|
|
public function setAddress2($address2) |
434
|
|
|
{ |
435
|
|
|
$this->address2 = $address2; |
436
|
|
|
|
437
|
|
|
return $this; |
438
|
|
|
} |
439
|
|
|
|
440
|
|
|
/** |
441
|
|
|
* Get the zip code. |
442
|
|
|
* |
443
|
|
|
* @return string |
444
|
|
|
*/ |
445
|
|
|
public function getZipCode() |
446
|
|
|
{ |
447
|
|
|
return $this->zipCode; |
448
|
|
|
} |
449
|
|
|
|
450
|
|
|
/** |
451
|
|
|
* Set the zip code. |
452
|
|
|
* |
453
|
|
|
* @param string $zipCode The zip code. |
454
|
|
|
* @return Customer |
455
|
|
|
*/ |
456
|
|
|
public function setZipCode($zipCode) |
457
|
|
|
{ |
458
|
|
|
$this->zipCode = $zipCode; |
459
|
|
|
|
460
|
|
|
return $this; |
461
|
|
|
} |
462
|
|
|
|
463
|
|
|
/** |
464
|
|
|
* Get the city. |
465
|
|
|
* |
466
|
|
|
* @return string |
467
|
|
|
*/ |
468
|
|
|
public function getCity() |
469
|
|
|
{ |
470
|
|
|
return $this->city; |
471
|
|
|
} |
472
|
|
|
|
473
|
|
|
/** |
474
|
|
|
* Set the city. |
475
|
|
|
* |
476
|
|
|
* @param string $city The city. |
477
|
|
|
* @return Customer |
478
|
|
|
*/ |
479
|
|
|
public function setCity($city) |
480
|
|
|
{ |
481
|
|
|
$this->city = $city; |
482
|
|
|
|
483
|
|
|
return $this; |
484
|
|
|
} |
485
|
|
|
|
486
|
|
|
/** |
487
|
|
|
* Get the country code. |
488
|
|
|
* |
489
|
|
|
* @return string |
490
|
|
|
*/ |
491
|
|
|
public function getCountryCode() |
492
|
|
|
{ |
493
|
|
|
return $this->countryCode; |
494
|
|
|
} |
495
|
|
|
|
496
|
|
|
/** |
497
|
|
|
* Set the country code. |
498
|
|
|
* |
499
|
|
|
* @param string $countryCode The country code. |
500
|
|
|
* @return Customer |
501
|
|
|
*/ |
502
|
|
|
public function setCountryCode($countryCode) |
503
|
|
|
{ |
504
|
|
|
$this->countryCode = $countryCode; |
505
|
|
|
|
506
|
|
|
return $this; |
507
|
|
|
} |
508
|
|
|
|
509
|
|
|
/** |
510
|
|
|
* Get the email. |
511
|
|
|
* |
512
|
|
|
* @return string |
513
|
|
|
*/ |
514
|
|
|
public function getEmail() |
515
|
|
|
{ |
516
|
|
|
return $this->email; |
517
|
|
|
} |
518
|
|
|
|
519
|
|
|
/** |
520
|
|
|
* Set the email. |
521
|
|
|
* |
522
|
|
|
* @param string $email The email. |
523
|
|
|
* @return Customer |
524
|
|
|
*/ |
525
|
|
|
public function setEmail($email) |
526
|
|
|
{ |
527
|
|
|
$this->email = $email; |
528
|
|
|
|
529
|
|
|
return $this; |
530
|
|
|
} |
531
|
|
|
|
532
|
|
|
/** |
533
|
|
|
* Get the phone number of the customer. |
534
|
|
|
* |
535
|
|
|
* @return string |
536
|
|
|
*/ |
537
|
|
|
public function getPhone() |
538
|
|
|
{ |
539
|
|
|
return $this->phone; |
540
|
|
|
} |
541
|
|
|
|
542
|
|
|
/** |
543
|
|
|
* Set the phone number of the customer. |
544
|
|
|
* |
545
|
|
|
* @param string $phone The phone number to set. |
546
|
|
|
* @return $this |
547
|
|
|
*/ |
548
|
|
|
public function setPhone($phone) |
549
|
|
|
{ |
550
|
|
|
$this->phone = $phone; |
551
|
|
|
|
552
|
|
|
return $this; |
553
|
|
|
} |
554
|
|
|
|
555
|
|
|
/** |
556
|
|
|
* Get the payment data URL. |
557
|
|
|
* |
558
|
|
|
* @return string |
559
|
|
|
*/ |
560
|
|
|
public function getPaymentDataUrl() |
561
|
|
|
{ |
562
|
|
|
return $this->paymentDataUrl; |
563
|
|
|
} |
564
|
|
|
|
565
|
|
|
/** |
566
|
|
|
* Set the payment data URL. |
567
|
|
|
* |
568
|
|
|
* @param string $paymentDataUrl The payment data URL. |
569
|
|
|
* @return Customer |
570
|
|
|
*/ |
571
|
|
|
public function setPaymentDataUrl($paymentDataUrl) |
572
|
|
|
{ |
573
|
|
|
$this->paymentDataUrl = $paymentDataUrl; |
574
|
|
|
|
575
|
|
|
return $this; |
576
|
|
|
} |
577
|
|
|
|
578
|
|
|
/** |
579
|
|
|
* Get the dashboard URL. |
580
|
|
|
* |
581
|
|
|
* @return string |
582
|
|
|
*/ |
583
|
|
|
public function getDashboardUrl() |
584
|
|
|
{ |
585
|
|
|
return $this->dashboardUrl; |
586
|
|
|
} |
587
|
|
|
|
588
|
|
|
/** |
589
|
|
|
* Set the dashboard URL. |
590
|
|
|
* |
591
|
|
|
* @param string $dashboardUrl The dashboard URL. |
592
|
|
|
* @return Customer |
593
|
|
|
*/ |
594
|
|
|
public function setDashboardUrl($dashboardUrl) |
595
|
|
|
{ |
596
|
|
|
$this->dashboardUrl = $dashboardUrl; |
597
|
|
|
|
598
|
|
|
return $this; |
599
|
|
|
} |
600
|
|
|
} |
601
|
|
|
|
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.