|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
namespace Inspirum\Balikobot\Model\PackageData\Package; |
|
6
|
|
|
|
|
7
|
|
|
use DateTimeInterface; |
|
8
|
|
|
use Inspirum\Balikobot\Definitions\Attribute; |
|
9
|
|
|
|
|
10
|
|
|
trait DeliveryData |
|
11
|
|
|
{ |
|
12
|
1 |
|
public function setNoteDriver(string $noteDriver): void |
|
13
|
|
|
{ |
|
14
|
1 |
|
$this->offsetSet(Attribute::NOTE_DRIVER, $noteDriver); |
|
|
|
|
|
|
15
|
|
|
} |
|
16
|
|
|
|
|
17
|
1 |
|
public function setNoteCustomer(string $noteCustomer): void |
|
18
|
|
|
{ |
|
19
|
1 |
|
$this->offsetSet(Attribute::NOTE_CUSTOMER, $noteCustomer); |
|
20
|
|
|
} |
|
21
|
|
|
|
|
22
|
1 |
|
public function setComfortExclusiveService(bool $comfortExclusiveService = true): void |
|
23
|
|
|
{ |
|
24
|
1 |
|
$this->offsetSet(Attribute::COMFORT_EXCLUSIVE_SERVICE, (int) $comfortExclusiveService); |
|
25
|
|
|
} |
|
26
|
|
|
|
|
27
|
1 |
|
public function setPersDeliveryFloor(bool $persDeliveryFloor = true): void |
|
28
|
|
|
{ |
|
29
|
1 |
|
$this->offsetSet(Attribute::PERS_DELIVERY_FLOOR, (int) $persDeliveryFloor); |
|
30
|
|
|
} |
|
31
|
|
|
|
|
32
|
1 |
|
public function setPersDeliveryBuilding(bool $persDeliveryBuilding = true): void |
|
33
|
|
|
{ |
|
34
|
1 |
|
$this->offsetSet(Attribute::PERS_DELIVERY_BUILDING, (int) $persDeliveryBuilding); |
|
35
|
|
|
} |
|
36
|
|
|
|
|
37
|
1 |
|
public function setPersDeliveryDepartment(bool $persDeliveryDepartment = true): void |
|
38
|
|
|
{ |
|
39
|
1 |
|
$this->offsetSet(Attribute::PERS_DELIVERY_DEPARTMENT, (int) $persDeliveryDepartment); |
|
40
|
|
|
} |
|
41
|
|
|
|
|
42
|
1 |
|
public function setPIN(string $pin): void |
|
43
|
|
|
{ |
|
44
|
1 |
|
$this->offsetSet(Attribute::PIN, $pin); |
|
45
|
|
|
} |
|
46
|
|
|
|
|
47
|
1 |
|
public function setSatDelivery(bool $satDelivery = true): void |
|
48
|
|
|
{ |
|
49
|
1 |
|
$this->offsetSet(Attribute::SAT_DELIVERY, (int) $satDelivery); |
|
50
|
|
|
} |
|
51
|
|
|
|
|
52
|
1 |
|
public function setRequireFullAge(bool $requireFullAge = true): void |
|
53
|
|
|
{ |
|
54
|
1 |
|
$this->offsetSet(Attribute::REQUIRE_FULL_AGE, (int) $requireFullAge); |
|
55
|
|
|
} |
|
56
|
|
|
|
|
57
|
1 |
|
public function setFullAgeMinimum(string $fullAgeMinimum): void |
|
58
|
|
|
{ |
|
59
|
1 |
|
$this->offsetSet(Attribute::FULL_AGE_MINIMUM, $fullAgeMinimum); |
|
60
|
|
|
} |
|
61
|
|
|
|
|
62
|
1 |
|
public function setFullAgeData(string $fullAgeData): void |
|
63
|
|
|
{ |
|
64
|
1 |
|
$this->offsetSet(Attribute::FULL_AGE_DATA, $fullAgeData); |
|
65
|
|
|
} |
|
66
|
|
|
|
|
67
|
1 |
|
public function setPassword(string $password): void |
|
68
|
|
|
{ |
|
69
|
1 |
|
$this->offsetSet(Attribute::PASSWORD, $password); |
|
70
|
|
|
} |
|
71
|
|
|
|
|
72
|
1 |
|
public function setDelInsurance(bool $delInsurance = true): void |
|
73
|
|
|
{ |
|
74
|
1 |
|
$this->offsetSet(Attribute::DEL_INSURANCE, (int) $delInsurance); |
|
75
|
|
|
} |
|
76
|
|
|
|
|
77
|
1 |
|
public function setDelEvening(bool $delEvening = true): void |
|
78
|
|
|
{ |
|
79
|
1 |
|
$this->offsetSet(Attribute::DEL_EVENING, (int) $delEvening); |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
1 |
|
public function setDelExworks(bool $delExworks = true): void |
|
83
|
|
|
{ |
|
84
|
1 |
|
$this->offsetSet(Attribute::DEL_EXWORKS, (int) $delExworks); |
|
85
|
|
|
} |
|
86
|
|
|
|
|
87
|
1 |
|
public function setDelAccountNumber(string $delAccountNumber): void |
|
88
|
|
|
{ |
|
89
|
1 |
|
$this->offsetSet(Attribute::DEL_EXWORKS_ACCOUNT_NUMBER, $delAccountNumber); |
|
90
|
|
|
} |
|
91
|
|
|
|
|
92
|
1 |
|
public function setDelZip(string $delZip): void |
|
93
|
|
|
{ |
|
94
|
1 |
|
$this->offsetSet(Attribute::DEL_EXWORKS_ZIP, $delZip); |
|
95
|
|
|
} |
|
96
|
|
|
|
|
97
|
1 |
|
public function setDelCountryCode(string $countryCode): void |
|
98
|
|
|
{ |
|
99
|
1 |
|
$this->offsetSet(Attribute::DEL_EXWORKS_COUNTRY_CODE, $countryCode); |
|
100
|
|
|
} |
|
101
|
|
|
|
|
102
|
1 |
|
public function setComfortService(bool $comfort = true): void |
|
103
|
|
|
{ |
|
104
|
1 |
|
$this->offsetSet(Attribute::COMFORT_SERVICE, (int) $comfort); |
|
105
|
|
|
} |
|
106
|
|
|
|
|
107
|
1 |
|
public function setComfortServicePlus(bool $comfort = true): void |
|
108
|
|
|
{ |
|
109
|
1 |
|
$this->offsetSet(Attribute::COMFORT_SERVICE_PLUS, (int) $comfort); |
|
110
|
|
|
} |
|
111
|
|
|
|
|
112
|
1 |
|
public function setDeliveryDate(DateTimeInterface $deliveryDate): void |
|
113
|
|
|
{ |
|
114
|
1 |
|
$this->offsetSet(Attribute::DELIVERY_DATE, $deliveryDate->format('Y-m-d')); |
|
115
|
|
|
} |
|
116
|
|
|
|
|
117
|
1 |
|
public function setDateDelivery(DateTimeInterface $deliveryDate): void |
|
118
|
|
|
{ |
|
119
|
1 |
|
$this->offsetSet(Attribute::DATE_DELIVERY, $deliveryDate->format('Y-m-d')); |
|
120
|
|
|
} |
|
121
|
|
|
|
|
122
|
1 |
|
public function setDeliveryTimeFrom(DateTimeInterface $deliveryTimeFrom): void |
|
123
|
|
|
{ |
|
124
|
1 |
|
$this->offsetSet(Attribute::DELIVERY_TIME_FROM, $deliveryTimeFrom->format('H:i')); |
|
125
|
|
|
} |
|
126
|
|
|
|
|
127
|
1 |
|
public function setDeliveryTimeTo(DateTimeInterface $deliveryTimeTo): void |
|
128
|
|
|
{ |
|
129
|
1 |
|
$this->offsetSet(Attribute::DELIVERY_TIME_TO, $deliveryTimeTo->format('H:i')); |
|
130
|
|
|
} |
|
131
|
|
|
|
|
132
|
1 |
|
public function setSwap(bool $swap): void |
|
133
|
|
|
{ |
|
134
|
1 |
|
$this->offsetSet(Attribute::SWAP, (int) $swap); |
|
135
|
|
|
} |
|
136
|
|
|
|
|
137
|
1 |
|
public function setSwapOption(string $swapOption): void |
|
138
|
|
|
{ |
|
139
|
1 |
|
$this->offsetSet(Attribute::SWAP_OPTION, $swapOption); |
|
140
|
|
|
} |
|
141
|
|
|
|
|
142
|
1 |
|
public function setOpenBeforePayment(bool $openBeforePayment = true): void |
|
143
|
|
|
{ |
|
144
|
1 |
|
$this->offsetSet(Attribute::OPEN_BEFORE_PAYMENT, (int) $openBeforePayment); |
|
145
|
|
|
} |
|
146
|
|
|
|
|
147
|
1 |
|
public function setTestBeforePayment(bool $testBeforePayment = true): void |
|
148
|
|
|
{ |
|
149
|
1 |
|
$this->offsetSet(Attribute::TEST_BEFORE_PAYMENT, (int) $testBeforePayment); |
|
150
|
|
|
} |
|
151
|
|
|
|
|
152
|
1 |
|
public function setNote(string $note): void |
|
153
|
|
|
{ |
|
154
|
1 |
|
$this->offsetSet(Attribute::NOTE, $note); |
|
155
|
|
|
} |
|
156
|
|
|
|
|
157
|
1 |
|
public function setRecHouseNumber(string $recHouseNumber): void |
|
158
|
|
|
{ |
|
159
|
1 |
|
$this->offsetSet(Attribute::REC_HOUSE_NUMBER, $recHouseNumber); |
|
160
|
|
|
} |
|
161
|
|
|
|
|
162
|
1 |
|
public function setRecBlock(string $recBlock): void |
|
163
|
|
|
{ |
|
164
|
1 |
|
$this->offsetSet(Attribute::REC_BLOCK, $recBlock); |
|
165
|
|
|
} |
|
166
|
|
|
|
|
167
|
1 |
|
public function setRecEnterance(string $recEnteracne): void |
|
168
|
|
|
{ |
|
169
|
1 |
|
$this->offsetSet(Attribute::REC_ENTERANCE, $recEnteracne); |
|
170
|
|
|
} |
|
171
|
|
|
|
|
172
|
1 |
|
public function setFloor(string $recFloor): void |
|
173
|
|
|
{ |
|
174
|
1 |
|
$this->offsetSet(Attribute::REC_FLOOR, $recFloor); |
|
175
|
|
|
} |
|
176
|
|
|
|
|
177
|
1 |
|
public function setFlatNumber(string $recFlatNumber): void |
|
178
|
|
|
{ |
|
179
|
1 |
|
$this->offsetSet(Attribute::REC_FLAT_NUMBER, $recFlatNumber); |
|
180
|
|
|
} |
|
181
|
|
|
|
|
182
|
1 |
|
public function setDeliveryCosts(float $deliveryCosts): void |
|
183
|
|
|
{ |
|
184
|
1 |
|
$this->offsetSet(Attribute::DELIVERY_COSTS, $deliveryCosts); |
|
185
|
|
|
} |
|
186
|
|
|
|
|
187
|
1 |
|
public function setDeliveryCostsEUR(float $deliveryCosts): void |
|
188
|
|
|
{ |
|
189
|
1 |
|
$this->offsetSet(Attribute::DELIVERY_COSTS_EUR, $deliveryCosts); |
|
190
|
|
|
} |
|
191
|
|
|
|
|
192
|
1 |
|
public function setPickupDate(DateTimeInterface $pickupDate): void |
|
193
|
|
|
{ |
|
194
|
1 |
|
$this->offsetSet(Attribute::PICKUP_DATE, $pickupDate->format('Y-m-d')); |
|
195
|
|
|
} |
|
196
|
|
|
|
|
197
|
1 |
|
public function setPickupTimeFrom(DateTimeInterface $pickupTimeFrom): void |
|
198
|
|
|
{ |
|
199
|
1 |
|
$this->offsetSet(Attribute::PICKUP_TIME_FROM, $pickupTimeFrom->format('H:i')); |
|
200
|
|
|
} |
|
201
|
|
|
|
|
202
|
1 |
|
public function setPickupTimeTo(DateTimeInterface $pickupTimeTo): void |
|
203
|
|
|
{ |
|
204
|
1 |
|
$this->offsetSet(Attribute::PICKUP_TIME_TO, $pickupTimeTo->format('H:i')); |
|
205
|
|
|
} |
|
206
|
|
|
|
|
207
|
1 |
|
public function setDeclarationComments(string $value): void |
|
208
|
|
|
{ |
|
209
|
1 |
|
$this->offsetSet(Attribute::DECLARATION_COMMENTS, $value); |
|
210
|
|
|
} |
|
211
|
|
|
|
|
212
|
1 |
|
public function setDeclarationChargesDiscount(float $value): void |
|
213
|
|
|
{ |
|
214
|
1 |
|
$this->offsetSet(Attribute::DECLARATION_CHARGES_DISCOUNT, $value); |
|
215
|
|
|
} |
|
216
|
|
|
|
|
217
|
1 |
|
public function setDeclarationInsuranceCharges(float $value): void |
|
218
|
|
|
{ |
|
219
|
1 |
|
$this->offsetSet(Attribute::DECLARATION_INSURANCE_CHARGES, $value); |
|
220
|
|
|
} |
|
221
|
|
|
|
|
222
|
1 |
|
public function setDeclarationOtherCharges(float $value): void |
|
223
|
|
|
{ |
|
224
|
1 |
|
$this->offsetSet(Attribute::DECLARATION_OTHER_CHARGES, $value); |
|
225
|
|
|
} |
|
226
|
|
|
|
|
227
|
1 |
|
public function setDeclarationTransportCharges(float $value): void |
|
228
|
|
|
{ |
|
229
|
1 |
|
$this->offsetSet(Attribute::DECLARATION_TRANSPORT_CHARGES, $value); |
|
230
|
|
|
} |
|
231
|
|
|
|
|
232
|
1 |
|
public function setIsAlcohol(bool $value): void |
|
233
|
|
|
{ |
|
234
|
1 |
|
$this->offsetSet(Attribute::IS_ALCOHOL, (int) $value); |
|
235
|
|
|
} |
|
236
|
|
|
|
|
237
|
1 |
|
public function setShipperVat(string $code): void |
|
238
|
|
|
{ |
|
239
|
1 |
|
$this->offsetSet(Attribute::SHIPPER_VAT, $code); |
|
240
|
|
|
} |
|
241
|
|
|
|
|
242
|
1 |
|
public function setShipperAccountNumber(string $number): void |
|
243
|
|
|
{ |
|
244
|
1 |
|
$this->offsetSet(Attribute::SHIPPER_ACCOUNT_NUMBER, $number); |
|
245
|
|
|
} |
|
246
|
|
|
|
|
247
|
1 |
|
public function setPickupManipulationLift(bool $value): void |
|
248
|
|
|
{ |
|
249
|
1 |
|
$this->offsetSet(Attribute::PICKUP_MANIPULATION_LIFT, $value); |
|
250
|
|
|
} |
|
251
|
|
|
|
|
252
|
1 |
|
public function setDeliveryManipulationLift(bool $value): void |
|
253
|
|
|
{ |
|
254
|
1 |
|
$this->offsetSet(Attribute::DELIVERY_MANIPULATION_LIFT, $value); |
|
255
|
|
|
} |
|
256
|
|
|
} |
|
257
|
|
|
|