commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Me
MyCartDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Me
;
10
11
use
Commercetools\Api\Models\BusinessUnit\BusinessUnitResourceIdentifier
;
12
use
Commercetools\Api\Models\Common\BaseAddress
;
13
use
Commercetools\Api\Models\Common\BaseAddressCollection
;
14
use
Commercetools\Api\Models\ShippingMethod\ShippingMethodResourceIdentifier
;
15
use
Commercetools\Api\Models\Store\StoreResourceIdentifier
;
16
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
17
use
Commercetools\Base\DateTimeImmutableCollection
;
18
use
Commercetools\Base\JsonObject
;
19
20
interface
MyCartDraft
extends
JsonObject
21
{
22
public
const
FIELD_CURRENCY
=
'currency'
;
23
public
const
FIELD_CUSTOMER_EMAIL
=
'customerEmail'
;
24
public
const
FIELD_BUSINESS_UNIT
=
'businessUnit'
;
25
public
const
FIELD_STORE
=
'store'
;
26
public
const
FIELD_LINE_ITEMS
=
'lineItems'
;
27
public
const
FIELD_TAX_MODE
=
'taxMode'
;
28
public
const
FIELD_INVENTORY_MODE
=
'inventoryMode'
;
29
public
const
FIELD_BILLING_ADDRESS
=
'billingAddress'
;
30
public
const
FIELD_SHIPPING_ADDRESS
=
'shippingAddress'
;
31
public
const
FIELD_SHIPPING_METHOD
=
'shippingMethod'
;
32
public
const
FIELD_ITEM_SHIPPING_ADDRESSES
=
'itemShippingAddresses'
;
33
public
const
FIELD_SHIPPING_MODE
=
'shippingMode'
;
34
public
const
FIELD_DISCOUNT_CODES
=
'discountCodes'
;
35
public
const
FIELD_COUNTRY
=
'country'
;
36
public
const
FIELD_LOCALE
=
'locale'
;
37
public
const
FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION
=
'deleteDaysAfterLastModification'
;
38
public
const
FIELD_CUSTOM
=
'custom'
;
39
46
public
function
getCurrency
();
47
54
public
function
getCustomerEmail
();
55
62
public
function
getBusinessUnit
();
63
70
public
function
getStore
();
71
78
public
function
getLineItems
();
79
86
public
function
getTaxMode
();
87
94
public
function
getInventoryMode
();
95
102
public
function
getBillingAddress
();
103
110
public
function
getShippingAddress
();
111
118
public
function
getShippingMethod
();
119
128
public
function
getItemShippingAddresses
();
129
139
public
function
getShippingMode
();
140
147
public
function
getDiscountCodes
();
148
156
public
function
getCountry
();
157
165
public
function
getLocale
();
166
175
public
function
getDeleteDaysAfterLastModification
();
176
183
public
function
getCustom
();
184
188
public
function
setCurrency
(?
string
$currency): void;
189
193
public
function
setCustomerEmail
(?
string
$customerEmail): void;
194
198
public
function
setBusinessUnit
(?
BusinessUnitResourceIdentifier
$businessUnit): void;
199
203
public
function
setStore
(?
StoreResourceIdentifier
$store): void;
204
208
public
function
setLineItems
(?
MyLineItemDraftCollection
$lineItems): void;
209
213
public
function
setTaxMode
(?
string
$taxMode): void;
214
218
public
function
setInventoryMode
(?
string
$inventoryMode): void;
219
223
public
function
setBillingAddress
(?
BaseAddress
$billingAddress): void;
224
228
public
function
setShippingAddress
(?
BaseAddress
$shippingAddress): void;
229
233
public
function
setShippingMethod
(?
ShippingMethodResourceIdentifier
$shippingMethod): void;
234
238
public
function
setItemShippingAddresses
(?
BaseAddressCollection
$itemShippingAddresses): void;
239
243
public
function
setShippingMode
(?
string
$shippingMode): void;
244
248
public
function
setDiscountCodes
(?array $discountCodes): void;
249
253
public
function
setCountry
(?
string
$country): void;
254
258
public
function
setLocale
(?
string
$locale): void;
259
263
public
function
setDeleteDaysAfterLastModification
(?
int
$deleteDaysAfterLastModification): void;
264
268
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
269
}
Commercetools\Api\Models\Common\BaseAddressCollection
Definition:
BaseAddressCollection.php:26
Commercetools\Api\Models\Me\MyLineItemDraftCollection
Definition:
MyLineItemDraftCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\BusinessUnit\BusinessUnitResourceIdentifier
Definition:
BusinessUnitResourceIdentifier.php:16
Commercetools\Api\Models\Common\BaseAddress
Definition:
BaseAddress.php:15
Commercetools\Api\Models\Me\MyCartDraft
Definition:
MyCartDraft.php:21
Commercetools\Api\Models\Me\MyCartDraft\setTaxMode
setTaxMode(?string $taxMode)
Commercetools\Api\Models\Me\MyCartDraft\getInventoryMode
getInventoryMode()
Commercetools\Api\Models\Me\MyCartDraft\FIELD_CUSTOMER_EMAIL
const FIELD_CUSTOMER_EMAIL
Definition:
MyCartDraft.php:23
Commercetools\Api\Models\Me\MyCartDraft\getLocale
getLocale()
Commercetools\Api\Models\Me\MyCartDraft\setInventoryMode
setInventoryMode(?string $inventoryMode)
Commercetools\Api\Models\Me\MyCartDraft\FIELD_BILLING_ADDRESS
const FIELD_BILLING_ADDRESS
Definition:
MyCartDraft.php:29
Commercetools\Api\Models\Me\MyCartDraft\setShippingAddress
setShippingAddress(?BaseAddress $shippingAddress)
Commercetools\Api\Models\Me\MyCartDraft\getCurrency
getCurrency()
Commercetools\Api\Models\Me\MyCartDraft\setDiscountCodes
setDiscountCodes(?array $discountCodes)
Commercetools\Api\Models\Me\MyCartDraft\FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION
const FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION
Definition:
MyCartDraft.php:37
Commercetools\Api\Models\Me\MyCartDraft\setLocale
setLocale(?string $locale)
Commercetools\Api\Models\Me\MyCartDraft\getDeleteDaysAfterLastModification
getDeleteDaysAfterLastModification()
Commercetools\Api\Models\Me\MyCartDraft\setLineItems
setLineItems(?MyLineItemDraftCollection $lineItems)
Commercetools\Api\Models\Me\MyCartDraft\FIELD_DISCOUNT_CODES
const FIELD_DISCOUNT_CODES
Definition:
MyCartDraft.php:34
Commercetools\Api\Models\Me\MyCartDraft\getLineItems
getLineItems()
Commercetools\Api\Models\Me\MyCartDraft\setCustomerEmail
setCustomerEmail(?string $customerEmail)
Commercetools\Api\Models\Me\MyCartDraft\setDeleteDaysAfterLastModification
setDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification)
Commercetools\Api\Models\Me\MyCartDraft\getDiscountCodes
getDiscountCodes()
Commercetools\Api\Models\Me\MyCartDraft\getCustomerEmail
getCustomerEmail()
Commercetools\Api\Models\Me\MyCartDraft\FIELD_CURRENCY
const FIELD_CURRENCY
Definition:
MyCartDraft.php:22
Commercetools\Api\Models\Me\MyCartDraft\getShippingMethod
getShippingMethod()
Commercetools\Api\Models\Me\MyCartDraft\FIELD_LINE_ITEMS
const FIELD_LINE_ITEMS
Definition:
MyCartDraft.php:26
Commercetools\Api\Models\Me\MyCartDraft\FIELD_BUSINESS_UNIT
const FIELD_BUSINESS_UNIT
Definition:
MyCartDraft.php:24
Commercetools\Api\Models\Me\MyCartDraft\FIELD_COUNTRY
const FIELD_COUNTRY
Definition:
MyCartDraft.php:35
Commercetools\Api\Models\Me\MyCartDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Me\MyCartDraft\FIELD_LOCALE
const FIELD_LOCALE
Definition:
MyCartDraft.php:36
Commercetools\Api\Models\Me\MyCartDraft\getBillingAddress
getBillingAddress()
Commercetools\Api\Models\Me\MyCartDraft\FIELD_ITEM_SHIPPING_ADDRESSES
const FIELD_ITEM_SHIPPING_ADDRESSES
Definition:
MyCartDraft.php:32
Commercetools\Api\Models\Me\MyCartDraft\getCustom
getCustom()
Commercetools\Api\Models\Me\MyCartDraft\FIELD_SHIPPING_ADDRESS
const FIELD_SHIPPING_ADDRESS
Definition:
MyCartDraft.php:30
Commercetools\Api\Models\Me\MyCartDraft\setStore
setStore(?StoreResourceIdentifier $store)
Commercetools\Api\Models\Me\MyCartDraft\getItemShippingAddresses
getItemShippingAddresses()
Commercetools\Api\Models\Me\MyCartDraft\setCurrency
setCurrency(?string $currency)
Commercetools\Api\Models\Me\MyCartDraft\FIELD_SHIPPING_METHOD
const FIELD_SHIPPING_METHOD
Definition:
MyCartDraft.php:31
Commercetools\Api\Models\Me\MyCartDraft\setBillingAddress
setBillingAddress(?BaseAddress $billingAddress)
Commercetools\Api\Models\Me\MyCartDraft\getCountry
getCountry()
Commercetools\Api\Models\Me\MyCartDraft\setShippingMode
setShippingMode(?string $shippingMode)
Commercetools\Api\Models\Me\MyCartDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
MyCartDraft.php:38
Commercetools\Api\Models\Me\MyCartDraft\getStore
getStore()
Commercetools\Api\Models\Me\MyCartDraft\setShippingMethod
setShippingMethod(?ShippingMethodResourceIdentifier $shippingMethod)
Commercetools\Api\Models\Me\MyCartDraft\setBusinessUnit
setBusinessUnit(?BusinessUnitResourceIdentifier $businessUnit)
Commercetools\Api\Models\Me\MyCartDraft\getBusinessUnit
getBusinessUnit()
Commercetools\Api\Models\Me\MyCartDraft\setCountry
setCountry(?string $country)
Commercetools\Api\Models\Me\MyCartDraft\getShippingMode
getShippingMode()
Commercetools\Api\Models\Me\MyCartDraft\FIELD_INVENTORY_MODE
const FIELD_INVENTORY_MODE
Definition:
MyCartDraft.php:28
Commercetools\Api\Models\Me\MyCartDraft\getShippingAddress
getShippingAddress()
Commercetools\Api\Models\Me\MyCartDraft\getTaxMode
getTaxMode()
Commercetools\Api\Models\Me\MyCartDraft\FIELD_TAX_MODE
const FIELD_TAX_MODE
Definition:
MyCartDraft.php:27
Commercetools\Api\Models\Me\MyCartDraft\FIELD_SHIPPING_MODE
const FIELD_SHIPPING_MODE
Definition:
MyCartDraft.php:33
Commercetools\Api\Models\Me\MyCartDraft\setItemShippingAddresses
setItemShippingAddresses(?BaseAddressCollection $itemShippingAddresses)
Commercetools\Api\Models\Me\MyCartDraft\FIELD_STORE
const FIELD_STORE
Definition:
MyCartDraft.php:25
Commercetools\Api\Models\ShippingMethod\ShippingMethodResourceIdentifier
Definition:
ShippingMethodResourceIdentifier.php:16
Commercetools\Api\Models\Store\StoreResourceIdentifier
Definition:
StoreResourceIdentifier.php:16
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Me
Definition:
MyBusinessUnitAddAddressAction.php:9
Generated by
1.9.1