commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
BusinessUnit
BusinessUnitDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\BusinessUnit
;
10
11
use
Commercetools\Api\Models\Common\BaseAddressCollection
;
12
use
Commercetools\Api\Models\Store\StoreResourceIdentifierCollection
;
13
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
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
}
Commercetools\Api\Models\BusinessUnit\AssociateDraftCollection
Definition:
AssociateDraftCollection.php:22
Commercetools\Api\Models\Common\BaseAddressCollection
Definition:
BaseAddressCollection.php:26
Commercetools\Api\Models\Store\StoreResourceIdentifierCollection
Definition:
StoreResourceIdentifierCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft
Definition:
BusinessUnitDraft.php:18
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getName
getName()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\setContactEmail
setContactEmail(?string $contactEmail)
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_SHIPPING_ADDRESSES
const FIELD_SHIPPING_ADDRESSES
Definition:
BusinessUnitDraft.php:31
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\setAssociateMode
setAssociateMode(?string $associateMode)
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_DEFAULT_SHIPPING_ADDRESS
const FIELD_DEFAULT_SHIPPING_ADDRESS
Definition:
BusinessUnitDraft.php:32
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getStoreMode
getStoreMode()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\setBillingAddresses
setBillingAddresses(?array $billingAddresses)
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\setStatus
setStatus(?string $status)
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\setName
setName(?string $name)
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\setDefaultBillingAddress
setDefaultBillingAddress(?int $defaultBillingAddress)
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_ASSOCIATES
const FIELD_ASSOCIATES
Definition:
BusinessUnitDraft.php:28
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_APPROVAL_RULE_MODE
const FIELD_APPROVAL_RULE_MODE
Definition:
BusinessUnitDraft.php:29
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getDefaultBillingAddress
getDefaultBillingAddress()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getStores
getStores()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\setShippingAddresses
setShippingAddresses(?array $shippingAddresses)
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_ADDRESSES
const FIELD_ADDRESSES
Definition:
BusinessUnitDraft.php:30
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_UNIT_TYPE
const FIELD_UNIT_TYPE
Definition:
BusinessUnitDraft.php:24
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getAssociateMode
getAssociateMode()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\setDefaultShippingAddress
setDefaultShippingAddress(?int $defaultShippingAddress)
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getKey
getKey()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_STORE_MODE
const FIELD_STORE_MODE
Definition:
BusinessUnitDraft.php:23
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getContactEmail
getContactEmail()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_KEY
const FIELD_KEY
Definition:
BusinessUnitDraft.php:20
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getShippingAddresses
getShippingAddresses()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\setStores
setStores(?StoreResourceIdentifierCollection $stores)
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getUnitType
getUnitType()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\setAssociates
setAssociates(?AssociateDraftCollection $associates)
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_CONTACT_EMAIL
const FIELD_CONTACT_EMAIL
Definition:
BusinessUnitDraft.php:26
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
BusinessUnitDraft.php:35
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getBillingAddresses
getBillingAddresses()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_DEFAULT_BILLING_ADDRESS
const FIELD_DEFAULT_BILLING_ADDRESS
Definition:
BusinessUnitDraft.php:34
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\setApprovalRuleMode
setApprovalRuleMode(?string $approvalRuleMode)
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_STORES
const FIELD_STORES
Definition:
BusinessUnitDraft.php:22
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getDefaultShippingAddress
getDefaultShippingAddress()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_ASSOCIATE_MODE
const FIELD_ASSOCIATE_MODE
Definition:
BusinessUnitDraft.php:27
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getAssociates
getAssociates()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getAddresses
getAddresses()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_BILLING_ADDRESSES
const FIELD_BILLING_ADDRESSES
Definition:
BusinessUnitDraft.php:33
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getStatus
getStatus()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_STATUS
const FIELD_STATUS
Definition:
BusinessUnitDraft.php:21
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\DISCRIMINATOR_FIELD
const DISCRIMINATOR_FIELD
Definition:
BusinessUnitDraft.php:19
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\setStoreMode
setStoreMode(?string $storeMode)
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getCustom
getCustom()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\setAddresses
setAddresses(?BaseAddressCollection $addresses)
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\getApprovalRuleMode
getApprovalRuleMode()
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft\FIELD_NAME
const FIELD_NAME
Definition:
BusinessUnitDraft.php:25
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\BusinessUnit
Definition:
Associate.php:9
Generated by
1.9.1