commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
BusinessUnitDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 
17 interface BusinessUnitDraft extends JsonObject
18 {
19  public const DISCRIMINATOR_FIELD = 'unitType';
20  public const FIELD_KEY = 'key';
21  public const FIELD_STATUS = 'status';
22  public const FIELD_STORES = 'stores';
23  public const FIELD_STORE_MODE = 'storeMode';
24  public const FIELD_UNIT_TYPE = 'unitType';
25  public const FIELD_NAME = 'name';
26  public const FIELD_CONTACT_EMAIL = 'contactEmail';
27  public const FIELD_ASSOCIATE_MODE = 'associateMode';
28  public const FIELD_ASSOCIATES = 'associates';
29  public const FIELD_APPROVAL_RULE_MODE = 'approvalRuleMode';
30  public const FIELD_ADDRESSES = 'addresses';
31  public const FIELD_SHIPPING_ADDRESSES = 'shippingAddresses';
32  public const FIELD_DEFAULT_SHIPPING_ADDRESS = 'defaultShippingAddress';
33  public const FIELD_BILLING_ADDRESSES = 'billingAddresses';
34  public const FIELD_DEFAULT_BILLING_ADDRESS = 'defaultBillingAddress';
35  public const FIELD_CUSTOM = 'custom';
36 
43  public function getKey();
44 
51  public function getStatus();
52 
62  public function getStores();
63 
71  public function getStoreMode();
72 
79  public function getUnitType();
80 
87  public function getName();
88 
95  public function getContactEmail();
96 
104  public function getAssociateMode();
105 
112  public function getAssociates();
113 
122  public function getApprovalRuleMode();
123 
130  public function getAddresses();
131 
139  public function getShippingAddresses();
140 
147  public function getDefaultShippingAddress();
148 
156  public function getBillingAddresses();
157 
164  public function getDefaultBillingAddress();
165 
172  public function getCustom();
173 
177  public function setKey(?string $key): void;
178 
182  public function setStatus(?string $status): void;
183 
187  public function setStores(?StoreResourceIdentifierCollection $stores): void;
188 
192  public function setStoreMode(?string $storeMode): void;
193 
197  public function setName(?string $name): void;
198 
202  public function setContactEmail(?string $contactEmail): void;
203 
207  public function setAssociateMode(?string $associateMode): void;
208 
212  public function setAssociates(?AssociateDraftCollection $associates): void;
213 
217  public function setApprovalRuleMode(?string $approvalRuleMode): void;
218 
222  public function setAddresses(?BaseAddressCollection $addresses): void;
223 
227  public function setShippingAddresses(?array $shippingAddresses): void;
228 
232  public function setDefaultShippingAddress(?int $defaultShippingAddress): void;
233 
237  public function setBillingAddresses(?array $billingAddresses): void;
238 
242  public function setDefaultBillingAddress(?int $defaultBillingAddress): void;
243 
247  public function setCustom(?CustomFieldsDraft $custom): void;
248 }
setDefaultShippingAddress(?int $defaultShippingAddress)
setStores(?StoreResourceIdentifierCollection $stores)
setAssociates(?AssociateDraftCollection $associates)
setAddresses(?BaseAddressCollection $addresses)