commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
DivisionBusinessUnitImportBuilder.php
1<?php
2
3declare(strict_types=1);
10
22use stdClass;
23
28{
33 private $key;
34
39 private $name;
40
45 private $status;
46
51 private $contactEmail;
52
57 private $associates;
58
63 private $addresses;
64
69 private $shippingAddresses;
70
75 private $defaultShippingAddress;
76
81 private $billingAddresses;
82
87 private $defaultBillingAddress;
88
93 private $stores;
94
99 private $custom;
100
105 private $storeMode;
106
111 private $parentUnit;
112
117 private $associateMode;
118
123 private $approvalRuleMode;
124
131 public function getKey()
132 {
133 return $this->key;
134 }
135
142 public function getName()
143 {
144 return $this->name;
145 }
146
153 public function getStatus()
154 {
155 return $this->status;
156 }
157
164 public function getContactEmail()
165 {
166 return $this->contactEmail;
167 }
168
175 public function getAssociates()
176 {
177 return $this->associates;
178 }
179
186 public function getAddresses()
187 {
188 return $this->addresses;
189 }
190
197 public function getShippingAddresses()
198 {
199 return $this->shippingAddresses;
200 }
201
209 {
210 return $this->defaultShippingAddress;
211 }
212
219 public function getBillingAddresses()
220 {
221 return $this->billingAddresses;
222 }
223
230 public function getDefaultBillingAddress()
231 {
232 return $this->defaultBillingAddress;
233 }
234
241 public function getStores()
242 {
243 return $this->stores;
244 }
245
252 public function getCustom()
253 {
254 return $this->custom instanceof CustomBuilder ? $this->custom->build() : $this->custom;
255 }
256
263 public function getStoreMode()
264 {
265 return $this->storeMode;
266 }
267
274 public function getParentUnit()
275 {
276 return $this->parentUnit instanceof BusinessUnitKeyReferenceBuilder ? $this->parentUnit->build() : $this->parentUnit;
277 }
278
285 public function getAssociateMode()
286 {
287 return $this->associateMode;
288 }
289
296 public function getApprovalRuleMode()
297 {
298 return $this->approvalRuleMode;
299 }
300
305 public function withKey(?string $key)
306 {
307 $this->key = $key;
308
309 return $this;
310 }
311
316 public function withName(?string $name)
317 {
318 $this->name = $name;
319
320 return $this;
321 }
322
327 public function withStatus(?string $status)
328 {
329 $this->status = $status;
330
331 return $this;
332 }
333
338 public function withContactEmail(?string $contactEmail)
339 {
340 $this->contactEmail = $contactEmail;
341
342 return $this;
343 }
344
349 public function withAssociates(?AssociateDraftCollection $associates)
350 {
351 $this->associates = $associates;
352
353 return $this;
354 }
355
360 public function withAddresses(?AddressCollection $addresses)
361 {
362 $this->addresses = $addresses;
363
364 return $this;
365 }
366
371 public function withShippingAddresses(?array $shippingAddresses)
372 {
373 $this->shippingAddresses = $shippingAddresses;
374
375 return $this;
376 }
377
382 public function withDefaultShippingAddress(?int $defaultShippingAddress)
383 {
384 $this->defaultShippingAddress = $defaultShippingAddress;
385
386 return $this;
387 }
388
393 public function withBillingAddresses(?array $billingAddresses)
394 {
395 $this->billingAddresses = $billingAddresses;
396
397 return $this;
398 }
399
404 public function withDefaultBillingAddress(?int $defaultBillingAddress)
405 {
406 $this->defaultBillingAddress = $defaultBillingAddress;
407
408 return $this;
409 }
410
415 public function withStores(?StoreKeyReferenceCollection $stores)
416 {
417 $this->stores = $stores;
418
419 return $this;
420 }
421
426 public function withCustom(?Custom $custom)
427 {
428 $this->custom = $custom;
429
430 return $this;
431 }
432
437 public function withStoreMode(?string $storeMode)
438 {
439 $this->storeMode = $storeMode;
440
441 return $this;
442 }
443
448 public function withParentUnit(?BusinessUnitKeyReference $parentUnit)
449 {
450 $this->parentUnit = $parentUnit;
451
452 return $this;
453 }
454
459 public function withAssociateMode(?string $associateMode)
460 {
461 $this->associateMode = $associateMode;
462
463 return $this;
464 }
465
470 public function withApprovalRuleMode(?string $approvalRuleMode)
471 {
472 $this->approvalRuleMode = $approvalRuleMode;
473
474 return $this;
475 }
476
481 public function withCustomBuilder(?CustomBuilder $custom)
482 {
483 $this->custom = $custom;
484
485 return $this;
486 }
487
493 {
494 $this->parentUnit = $parentUnit;
495
496 return $this;
497 }
498
500 {
502 $this->key,
503 $this->name,
504 $this->status,
505 $this->contactEmail,
506 $this->associates,
507 $this->addresses,
508 $this->shippingAddresses,
509 $this->defaultShippingAddress,
510 $this->billingAddresses,
511 $this->defaultBillingAddress,
512 $this->stores,
513 $this->custom instanceof CustomBuilder ? $this->custom->build() : $this->custom,
514 $this->storeMode,
515 $this->parentUnit instanceof BusinessUnitKeyReferenceBuilder ? $this->parentUnit->build() : $this->parentUnit,
516 $this->associateMode,
517 $this->approvalRuleMode
518 );
519 }
520
521 public static function of(): DivisionBusinessUnitImportBuilder
522 {
523 return new self();
524 }
525}