commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
MyBusinessUnitDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
15 
17 {
18  public const DISCRIMINATOR_FIELD = 'unitType';
19  public const FIELD_KEY = 'key';
20  public const FIELD_UNIT_TYPE = 'unitType';
21  public const FIELD_NAME = 'name';
22  public const FIELD_CONTACT_EMAIL = 'contactEmail';
23  public const FIELD_CUSTOM = 'custom';
24  public const FIELD_ADDRESSES = 'addresses';
25  public const FIELD_SHIPPING_ADDRESSES = 'shippingAddresses';
26  public const FIELD_DEFAULT_SHIPPING_ADDRESS = 'defaultShippingAddress';
27  public const FIELD_BILLING_ADDRESSES = 'billingAddresses';
28  public const FIELD_DEFAULT_BILLING_ADDRESS = 'defaultBillingAddress';
29 
36  public function getKey();
37 
44  public function getUnitType();
45 
52  public function getName();
53 
60  public function getContactEmail();
61 
68  public function getCustom();
69 
76  public function getAddresses();
77 
85  public function getShippingAddresses();
86 
93  public function getDefaultShippingAddress();
94 
102  public function getBillingAddresses();
103 
110  public function getDefaultBillingAddress();
111 
115  public function setKey(?string $key): void;
116 
120  public function setName(?string $name): void;
121 
125  public function setContactEmail(?string $contactEmail): void;
126 
130  public function setCustom(?CustomFieldsDraft $custom): void;
131 
135  public function setAddresses(?BaseAddressCollection $addresses): void;
136 
140  public function setShippingAddresses(?array $shippingAddresses): void;
141 
145  public function setDefaultShippingAddress(?int $defaultShippingAddress): void;
146 
150  public function setBillingAddresses(?array $billingAddresses): void;
151 
155  public function setDefaultBillingAddress(?int $defaultBillingAddress): void;
156 }
setDefaultShippingAddress(?int $defaultShippingAddress)
setDefaultBillingAddress(?int $defaultBillingAddress)
setAddresses(?BaseAddressCollection $addresses)
setShippingAddresses(?array $shippingAddresses)
setBillingAddresses(?array $billingAddresses)