|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
/* |
|
6
|
|
|
* This file is part of the timechimp bundle package. |
|
7
|
|
|
* (c) Connect Holland. |
|
8
|
|
|
*/ |
|
9
|
|
|
|
|
10
|
|
|
namespace ConnectHolland\TimechimpBundle\Api\Model; |
|
11
|
|
|
|
|
12
|
|
|
class Customer |
|
13
|
|
|
{ |
|
14
|
|
|
/** |
|
15
|
|
|
* @var int |
|
16
|
|
|
*/ |
|
17
|
|
|
protected $id; |
|
18
|
|
|
/** |
|
19
|
|
|
* @var bool |
|
20
|
|
|
*/ |
|
21
|
|
|
protected $active; |
|
22
|
|
|
/** |
|
23
|
|
|
* @var string |
|
24
|
|
|
*/ |
|
25
|
|
|
protected $relationId; |
|
26
|
|
|
/** |
|
27
|
|
|
* Customer name is required. |
|
28
|
|
|
* |
|
29
|
|
|
* @var string |
|
30
|
|
|
*/ |
|
31
|
|
|
protected $name; |
|
32
|
|
|
/** |
|
33
|
|
|
* @var string |
|
34
|
|
|
*/ |
|
35
|
|
|
protected $address; |
|
36
|
|
|
/** |
|
37
|
|
|
* @var string |
|
38
|
|
|
*/ |
|
39
|
|
|
protected $postalCode; |
|
40
|
|
|
/** |
|
41
|
|
|
* @var string |
|
42
|
|
|
*/ |
|
43
|
|
|
protected $city; |
|
44
|
|
|
/** |
|
45
|
|
|
* @var string |
|
46
|
|
|
*/ |
|
47
|
|
|
protected $country; |
|
48
|
|
|
/** |
|
49
|
|
|
* @var string |
|
50
|
|
|
*/ |
|
51
|
|
|
protected $phone; |
|
52
|
|
|
/** |
|
53
|
|
|
* @var string |
|
54
|
|
|
*/ |
|
55
|
|
|
protected $email; |
|
56
|
|
|
/** |
|
57
|
|
|
* @var string |
|
58
|
|
|
*/ |
|
59
|
|
|
protected $website; |
|
60
|
|
|
/** |
|
61
|
|
|
* @var int |
|
62
|
|
|
*/ |
|
63
|
|
|
protected $paymentPeriod; |
|
64
|
|
|
/** |
|
65
|
|
|
* @var float |
|
66
|
|
|
*/ |
|
67
|
|
|
protected $tax; |
|
68
|
|
|
/** |
|
69
|
|
|
* @var float |
|
70
|
|
|
*/ |
|
71
|
|
|
protected $hourlyRate; |
|
72
|
|
|
/** |
|
73
|
|
|
* @var float |
|
74
|
|
|
*/ |
|
75
|
|
|
protected $mileageRate; |
|
76
|
|
|
/** |
|
77
|
|
|
* @var string |
|
78
|
|
|
*/ |
|
79
|
|
|
protected $iban; |
|
80
|
|
|
/** |
|
81
|
|
|
* @var string |
|
82
|
|
|
*/ |
|
83
|
|
|
protected $bic; |
|
84
|
|
|
/** |
|
85
|
|
|
* @var string |
|
86
|
|
|
*/ |
|
87
|
|
|
protected $vatNumber; |
|
88
|
|
|
/** |
|
89
|
|
|
* @var string |
|
90
|
|
|
*/ |
|
91
|
|
|
protected $kvkNumber; |
|
92
|
|
|
/** |
|
93
|
|
|
* @var string |
|
94
|
|
|
*/ |
|
95
|
|
|
protected $invoiceAddress; |
|
96
|
|
|
/** |
|
97
|
|
|
* @var string |
|
98
|
|
|
*/ |
|
99
|
|
|
protected $invoicePostalCode; |
|
100
|
|
|
/** |
|
101
|
|
|
* @var string |
|
102
|
|
|
*/ |
|
103
|
|
|
protected $invoiceCity; |
|
104
|
|
|
/** |
|
105
|
|
|
* @var string |
|
106
|
|
|
*/ |
|
107
|
|
|
protected $invoiceCountry; |
|
108
|
|
|
/** |
|
109
|
|
|
* @var string |
|
110
|
|
|
*/ |
|
111
|
|
|
protected $notes; |
|
112
|
|
|
/** |
|
113
|
|
|
* @var string |
|
114
|
|
|
*/ |
|
115
|
|
|
protected $clientId; |
|
116
|
|
|
/** |
|
117
|
|
|
* @var int[] |
|
118
|
|
|
*/ |
|
119
|
|
|
protected $tagIds; |
|
120
|
|
|
/** |
|
121
|
|
|
* @var string[] |
|
122
|
|
|
*/ |
|
123
|
|
|
protected $tagNames; |
|
124
|
|
|
/** |
|
125
|
|
|
* @var int |
|
126
|
|
|
*/ |
|
127
|
|
|
protected $vatRateId; |
|
128
|
|
|
/** |
|
129
|
|
|
* @var float |
|
130
|
|
|
*/ |
|
131
|
|
|
protected $vatRatePercentage; |
|
132
|
|
|
|
|
133
|
|
|
public function getId(): int |
|
134
|
|
|
{ |
|
135
|
|
|
return $this->id; |
|
136
|
|
|
} |
|
137
|
|
|
|
|
138
|
|
|
public function setId(int $id): self |
|
139
|
|
|
{ |
|
140
|
|
|
$this->id = $id; |
|
141
|
|
|
|
|
142
|
|
|
return $this; |
|
143
|
|
|
} |
|
144
|
|
|
|
|
145
|
|
|
public function getActive(): bool |
|
146
|
|
|
{ |
|
147
|
|
|
return $this->active; |
|
148
|
|
|
} |
|
149
|
|
|
|
|
150
|
|
|
public function setActive(bool $active): self |
|
151
|
|
|
{ |
|
152
|
|
|
$this->active = $active; |
|
153
|
|
|
|
|
154
|
|
|
return $this; |
|
155
|
|
|
} |
|
156
|
|
|
|
|
157
|
|
|
public function getRelationId(): string |
|
158
|
|
|
{ |
|
159
|
|
|
return $this->relationId; |
|
160
|
|
|
} |
|
161
|
|
|
|
|
162
|
|
|
public function setRelationId(string $relationId): self |
|
163
|
|
|
{ |
|
164
|
|
|
$this->relationId = $relationId; |
|
165
|
|
|
|
|
166
|
|
|
return $this; |
|
167
|
|
|
} |
|
168
|
|
|
|
|
169
|
|
|
/** |
|
170
|
|
|
* Customer name is required. |
|
171
|
|
|
*/ |
|
172
|
|
|
public function getName(): string |
|
173
|
|
|
{ |
|
174
|
|
|
return $this->name; |
|
175
|
|
|
} |
|
176
|
|
|
|
|
177
|
|
|
/** |
|
178
|
|
|
* Customer name is required. |
|
179
|
|
|
*/ |
|
180
|
|
|
public function setName(string $name): self |
|
181
|
|
|
{ |
|
182
|
|
|
$this->name = $name; |
|
183
|
|
|
|
|
184
|
|
|
return $this; |
|
185
|
|
|
} |
|
186
|
|
|
|
|
187
|
|
|
public function getAddress(): string |
|
188
|
|
|
{ |
|
189
|
|
|
return $this->address; |
|
190
|
|
|
} |
|
191
|
|
|
|
|
192
|
|
|
public function setAddress(string $address): self |
|
193
|
|
|
{ |
|
194
|
|
|
$this->address = $address; |
|
195
|
|
|
|
|
196
|
|
|
return $this; |
|
197
|
|
|
} |
|
198
|
|
|
|
|
199
|
|
|
public function getPostalCode(): string |
|
200
|
|
|
{ |
|
201
|
|
|
return $this->postalCode; |
|
202
|
|
|
} |
|
203
|
|
|
|
|
204
|
|
|
public function setPostalCode(string $postalCode): self |
|
205
|
|
|
{ |
|
206
|
|
|
$this->postalCode = $postalCode; |
|
207
|
|
|
|
|
208
|
|
|
return $this; |
|
209
|
|
|
} |
|
210
|
|
|
|
|
211
|
|
|
public function getCity(): string |
|
212
|
|
|
{ |
|
213
|
|
|
return $this->city; |
|
214
|
|
|
} |
|
215
|
|
|
|
|
216
|
|
|
public function setCity(string $city): self |
|
217
|
|
|
{ |
|
218
|
|
|
$this->city = $city; |
|
219
|
|
|
|
|
220
|
|
|
return $this; |
|
221
|
|
|
} |
|
222
|
|
|
|
|
223
|
|
|
public function getCountry(): string |
|
224
|
|
|
{ |
|
225
|
|
|
return $this->country; |
|
226
|
|
|
} |
|
227
|
|
|
|
|
228
|
|
|
public function setCountry(string $country): self |
|
229
|
|
|
{ |
|
230
|
|
|
$this->country = $country; |
|
231
|
|
|
|
|
232
|
|
|
return $this; |
|
233
|
|
|
} |
|
234
|
|
|
|
|
235
|
|
|
public function getPhone(): string |
|
236
|
|
|
{ |
|
237
|
|
|
return $this->phone; |
|
238
|
|
|
} |
|
239
|
|
|
|
|
240
|
|
|
public function setPhone(string $phone): self |
|
241
|
|
|
{ |
|
242
|
|
|
$this->phone = $phone; |
|
243
|
|
|
|
|
244
|
|
|
return $this; |
|
245
|
|
|
} |
|
246
|
|
|
|
|
247
|
|
|
public function getEmail(): string |
|
248
|
|
|
{ |
|
249
|
|
|
return $this->email; |
|
250
|
|
|
} |
|
251
|
|
|
|
|
252
|
|
|
public function setEmail(string $email): self |
|
253
|
|
|
{ |
|
254
|
|
|
$this->email = $email; |
|
255
|
|
|
|
|
256
|
|
|
return $this; |
|
257
|
|
|
} |
|
258
|
|
|
|
|
259
|
|
|
public function getWebsite(): string |
|
260
|
|
|
{ |
|
261
|
|
|
return $this->website; |
|
262
|
|
|
} |
|
263
|
|
|
|
|
264
|
|
|
public function setWebsite(string $website): self |
|
265
|
|
|
{ |
|
266
|
|
|
$this->website = $website; |
|
267
|
|
|
|
|
268
|
|
|
return $this; |
|
269
|
|
|
} |
|
270
|
|
|
|
|
271
|
|
|
public function getPaymentPeriod(): int |
|
272
|
|
|
{ |
|
273
|
|
|
return $this->paymentPeriod; |
|
274
|
|
|
} |
|
275
|
|
|
|
|
276
|
|
|
public function setPaymentPeriod(int $paymentPeriod): self |
|
277
|
|
|
{ |
|
278
|
|
|
$this->paymentPeriod = $paymentPeriod; |
|
279
|
|
|
|
|
280
|
|
|
return $this; |
|
281
|
|
|
} |
|
282
|
|
|
|
|
283
|
|
|
public function getTax(): float |
|
284
|
|
|
{ |
|
285
|
|
|
return $this->tax; |
|
286
|
|
|
} |
|
287
|
|
|
|
|
288
|
|
|
public function setTax(float $tax): self |
|
289
|
|
|
{ |
|
290
|
|
|
$this->tax = $tax; |
|
291
|
|
|
|
|
292
|
|
|
return $this; |
|
293
|
|
|
} |
|
294
|
|
|
|
|
295
|
|
|
public function getHourlyRate(): float |
|
296
|
|
|
{ |
|
297
|
|
|
return $this->hourlyRate; |
|
298
|
|
|
} |
|
299
|
|
|
|
|
300
|
|
|
public function setHourlyRate(float $hourlyRate): self |
|
301
|
|
|
{ |
|
302
|
|
|
$this->hourlyRate = $hourlyRate; |
|
303
|
|
|
|
|
304
|
|
|
return $this; |
|
305
|
|
|
} |
|
306
|
|
|
|
|
307
|
|
|
public function getMileageRate(): float |
|
308
|
|
|
{ |
|
309
|
|
|
return $this->mileageRate; |
|
310
|
|
|
} |
|
311
|
|
|
|
|
312
|
|
|
public function setMileageRate(float $mileageRate): self |
|
313
|
|
|
{ |
|
314
|
|
|
$this->mileageRate = $mileageRate; |
|
315
|
|
|
|
|
316
|
|
|
return $this; |
|
317
|
|
|
} |
|
318
|
|
|
|
|
319
|
|
|
public function getIban(): string |
|
320
|
|
|
{ |
|
321
|
|
|
return $this->iban; |
|
322
|
|
|
} |
|
323
|
|
|
|
|
324
|
|
|
public function setIban(string $iban): self |
|
325
|
|
|
{ |
|
326
|
|
|
$this->iban = $iban; |
|
327
|
|
|
|
|
328
|
|
|
return $this; |
|
329
|
|
|
} |
|
330
|
|
|
|
|
331
|
|
|
public function getBic(): string |
|
332
|
|
|
{ |
|
333
|
|
|
return $this->bic; |
|
334
|
|
|
} |
|
335
|
|
|
|
|
336
|
|
|
public function setBic(string $bic): self |
|
337
|
|
|
{ |
|
338
|
|
|
$this->bic = $bic; |
|
339
|
|
|
|
|
340
|
|
|
return $this; |
|
341
|
|
|
} |
|
342
|
|
|
|
|
343
|
|
|
public function getVatNumber(): string |
|
344
|
|
|
{ |
|
345
|
|
|
return $this->vatNumber; |
|
346
|
|
|
} |
|
347
|
|
|
|
|
348
|
|
|
public function setVatNumber(string $vatNumber): self |
|
349
|
|
|
{ |
|
350
|
|
|
$this->vatNumber = $vatNumber; |
|
351
|
|
|
|
|
352
|
|
|
return $this; |
|
353
|
|
|
} |
|
354
|
|
|
|
|
355
|
|
|
public function getKvkNumber(): string |
|
356
|
|
|
{ |
|
357
|
|
|
return $this->kvkNumber; |
|
358
|
|
|
} |
|
359
|
|
|
|
|
360
|
|
|
public function setKvkNumber(string $kvkNumber): self |
|
361
|
|
|
{ |
|
362
|
|
|
$this->kvkNumber = $kvkNumber; |
|
363
|
|
|
|
|
364
|
|
|
return $this; |
|
365
|
|
|
} |
|
366
|
|
|
|
|
367
|
|
|
public function getInvoiceAddress(): string |
|
368
|
|
|
{ |
|
369
|
|
|
return $this->invoiceAddress; |
|
370
|
|
|
} |
|
371
|
|
|
|
|
372
|
|
|
public function setInvoiceAddress(string $invoiceAddress): self |
|
373
|
|
|
{ |
|
374
|
|
|
$this->invoiceAddress = $invoiceAddress; |
|
375
|
|
|
|
|
376
|
|
|
return $this; |
|
377
|
|
|
} |
|
378
|
|
|
|
|
379
|
|
|
public function getInvoicePostalCode(): string |
|
380
|
|
|
{ |
|
381
|
|
|
return $this->invoicePostalCode; |
|
382
|
|
|
} |
|
383
|
|
|
|
|
384
|
|
|
public function setInvoicePostalCode(string $invoicePostalCode): self |
|
385
|
|
|
{ |
|
386
|
|
|
$this->invoicePostalCode = $invoicePostalCode; |
|
387
|
|
|
|
|
388
|
|
|
return $this; |
|
389
|
|
|
} |
|
390
|
|
|
|
|
391
|
|
|
public function getInvoiceCity(): string |
|
392
|
|
|
{ |
|
393
|
|
|
return $this->invoiceCity; |
|
394
|
|
|
} |
|
395
|
|
|
|
|
396
|
|
|
public function setInvoiceCity(string $invoiceCity): self |
|
397
|
|
|
{ |
|
398
|
|
|
$this->invoiceCity = $invoiceCity; |
|
399
|
|
|
|
|
400
|
|
|
return $this; |
|
401
|
|
|
} |
|
402
|
|
|
|
|
403
|
|
|
public function getInvoiceCountry(): string |
|
404
|
|
|
{ |
|
405
|
|
|
return $this->invoiceCountry; |
|
406
|
|
|
} |
|
407
|
|
|
|
|
408
|
|
|
public function setInvoiceCountry(string $invoiceCountry): self |
|
409
|
|
|
{ |
|
410
|
|
|
$this->invoiceCountry = $invoiceCountry; |
|
411
|
|
|
|
|
412
|
|
|
return $this; |
|
413
|
|
|
} |
|
414
|
|
|
|
|
415
|
|
|
public function getNotes(): string |
|
416
|
|
|
{ |
|
417
|
|
|
return $this->notes; |
|
418
|
|
|
} |
|
419
|
|
|
|
|
420
|
|
|
public function setNotes(string $notes): self |
|
421
|
|
|
{ |
|
422
|
|
|
$this->notes = $notes; |
|
423
|
|
|
|
|
424
|
|
|
return $this; |
|
425
|
|
|
} |
|
426
|
|
|
|
|
427
|
|
|
public function getClientId(): string |
|
428
|
|
|
{ |
|
429
|
|
|
return $this->clientId; |
|
430
|
|
|
} |
|
431
|
|
|
|
|
432
|
|
|
public function setClientId(string $clientId): self |
|
433
|
|
|
{ |
|
434
|
|
|
$this->clientId = $clientId; |
|
435
|
|
|
|
|
436
|
|
|
return $this; |
|
437
|
|
|
} |
|
438
|
|
|
|
|
439
|
|
|
/** |
|
440
|
|
|
* @return int[] |
|
441
|
|
|
*/ |
|
442
|
|
|
public function getTagIds(): array |
|
443
|
|
|
{ |
|
444
|
|
|
return $this->tagIds; |
|
445
|
|
|
} |
|
446
|
|
|
|
|
447
|
|
|
/** |
|
448
|
|
|
* @param int[] $tagIds |
|
449
|
|
|
*/ |
|
450
|
|
|
public function setTagIds(array $tagIds): self |
|
451
|
|
|
{ |
|
452
|
|
|
$this->tagIds = $tagIds; |
|
453
|
|
|
|
|
454
|
|
|
return $this; |
|
455
|
|
|
} |
|
456
|
|
|
|
|
457
|
|
|
/** |
|
458
|
|
|
* @return string[] |
|
459
|
|
|
*/ |
|
460
|
|
|
public function getTagNames(): array |
|
461
|
|
|
{ |
|
462
|
|
|
return $this->tagNames; |
|
463
|
|
|
} |
|
464
|
|
|
|
|
465
|
|
|
/** |
|
466
|
|
|
* @param string[] $tagNames |
|
467
|
|
|
*/ |
|
468
|
|
|
public function setTagNames(array $tagNames): self |
|
469
|
|
|
{ |
|
470
|
|
|
$this->tagNames = $tagNames; |
|
471
|
|
|
|
|
472
|
|
|
return $this; |
|
473
|
|
|
} |
|
474
|
|
|
|
|
475
|
|
|
public function getVatRateId(): int |
|
476
|
|
|
{ |
|
477
|
|
|
return $this->vatRateId; |
|
478
|
|
|
} |
|
479
|
|
|
|
|
480
|
|
|
public function setVatRateId(int $vatRateId): self |
|
481
|
|
|
{ |
|
482
|
|
|
$this->vatRateId = $vatRateId; |
|
483
|
|
|
|
|
484
|
|
|
return $this; |
|
485
|
|
|
} |
|
486
|
|
|
|
|
487
|
|
|
public function getVatRatePercentage(): float |
|
488
|
|
|
{ |
|
489
|
|
|
return $this->vatRatePercentage; |
|
490
|
|
|
} |
|
491
|
|
|
|
|
492
|
|
|
public function setVatRatePercentage(float $vatRatePercentage): self |
|
493
|
|
|
{ |
|
494
|
|
|
$this->vatRatePercentage = $vatRatePercentage; |
|
495
|
|
|
|
|
496
|
|
|
return $this; |
|
497
|
|
|
} |
|
498
|
|
|
} |
|
499
|
|
|
|