commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
BusinessUnit.php
1 <?php
2 
3 declare(strict_types=1);
10 
19 use DateTimeImmutable;
20 
21 interface BusinessUnit extends BaseResource
22 {
23  public const DISCRIMINATOR_FIELD = 'unitType';
24  public const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy';
25  public const FIELD_CREATED_BY = 'createdBy';
26  public const FIELD_KEY = 'key';
27  public const FIELD_STATUS = 'status';
28  public const FIELD_STORES = 'stores';
29  public const FIELD_STORE_MODE = 'storeMode';
30  public const FIELD_UNIT_TYPE = 'unitType';
31  public const FIELD_NAME = 'name';
32  public const FIELD_CONTACT_EMAIL = 'contactEmail';
33  public const FIELD_CUSTOM = 'custom';
34  public const FIELD_ADDRESSES = 'addresses';
35  public const FIELD_SHIPPING_ADDRESS_IDS = 'shippingAddressIds';
36  public const FIELD_DEFAULT_SHIPPING_ADDRESS_ID = 'defaultShippingAddressId';
37  public const FIELD_BILLING_ADDRESS_IDS = 'billingAddressIds';
38  public const FIELD_DEFAULT_BILLING_ADDRESS_ID = 'defaultBillingAddressId';
39  public const FIELD_ASSOCIATE_MODE = 'associateMode';
40  public const FIELD_ASSOCIATES = 'associates';
41  public const FIELD_INHERITED_ASSOCIATES = 'inheritedAssociates';
42  public const FIELD_PARENT_UNIT = 'parentUnit';
43  public const FIELD_TOP_LEVEL_UNIT = 'topLevelUnit';
44  public const FIELD_APPROVAL_RULE_MODE = 'approvalRuleMode';
45 
52  public function getId();
53 
60  public function getVersion();
61 
68  public function getCreatedAt();
69 
76  public function getLastModifiedAt();
77 
84  public function getLastModifiedBy();
85 
92  public function getCreatedBy();
93 
100  public function getKey();
101 
108  public function getStatus();
109 
118  public function getStores();
119 
126  public function getStoreMode();
127 
134  public function getUnitType();
135 
142  public function getName();
143 
150  public function getContactEmail();
151 
158  public function getCustom();
159 
166  public function getAddresses();
167 
174  public function getShippingAddressIds();
175 
182  public function getDefaultShippingAddressId();
183 
190  public function getBillingAddressIds();
191 
198  public function getDefaultBillingAddressId();
199 
206  public function getAssociateMode();
207 
214  public function getAssociates();
215 
222  public function getInheritedAssociates();
223 
230  public function getParentUnit();
231 
238  public function getTopLevelUnit();
239 
247  public function getApprovalRuleMode();
248 
252  public function setId(?string $id): void;
253 
257  public function setVersion(?int $version): void;
258 
262  public function setCreatedAt(?DateTimeImmutable $createdAt): void;
263 
267  public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
268 
272  public function setLastModifiedBy(?LastModifiedBy $lastModifiedBy): void;
273 
277  public function setCreatedBy(?CreatedBy $createdBy): void;
278 
282  public function setKey(?string $key): void;
283 
287  public function setStatus(?string $status): void;
288 
292  public function setStores(?StoreKeyReferenceCollection $stores): void;
293 
297  public function setStoreMode(?string $storeMode): void;
298 
302  public function setName(?string $name): void;
303 
307  public function setContactEmail(?string $contactEmail): void;
308 
312  public function setCustom(?CustomFields $custom): void;
313 
317  public function setAddresses(?AddressCollection $addresses): void;
318 
322  public function setShippingAddressIds(?array $shippingAddressIds): void;
323 
327  public function setDefaultShippingAddressId(?string $defaultShippingAddressId): void;
328 
332  public function setBillingAddressIds(?array $billingAddressIds): void;
333 
337  public function setDefaultBillingAddressId(?string $defaultBillingAddressId): void;
338 
342  public function setAssociateMode(?string $associateMode): void;
343 
347  public function setAssociates(?AssociateCollection $associates): void;
348 
352  public function setInheritedAssociates(?InheritedAssociateCollection $inheritedAssociates): void;
353 
357  public function setParentUnit(?BusinessUnitKeyReference $parentUnit): void;
358 
362  public function setTopLevelUnit(?BusinessUnitKeyReference $topLevelUnit): void;
363 
367  public function setApprovalRuleMode(?string $approvalRuleMode): void;
368 }
setCreatedAt(?DateTimeImmutable $createdAt)
setDefaultBillingAddressId(?string $defaultBillingAddressId)
setDefaultShippingAddressId(?string $defaultShippingAddressId)
setTopLevelUnit(?BusinessUnitKeyReference $topLevelUnit)
setShippingAddressIds(?array $shippingAddressIds)
setParentUnit(?BusinessUnitKeyReference $parentUnit)
setAddresses(?AddressCollection $addresses)
setStores(?StoreKeyReferenceCollection $stores)
setInheritedAssociates(?InheritedAssociateCollection $inheritedAssociates)
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setAssociates(?AssociateCollection $associates)