commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Cart
CartDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Cart
;
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\CustomerGroup\CustomerGroupResourceIdentifier
;
15
use
Commercetools\Api\Models\ShippingMethod\ShippingMethodResourceIdentifier
;
16
use
Commercetools\Api\Models\Store\StoreResourceIdentifier
;
17
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
18
use
Commercetools\Base\DateTimeImmutableCollection
;
19
use
Commercetools\Base\JsonObject
;
20
21
interface
CartDraft
extends
JsonObject
22
{
23
public
const
FIELD_CURRENCY
=
'currency'
;
24
public
const
FIELD_KEY
=
'key'
;
25
public
const
FIELD_CUSTOMER_ID
=
'customerId'
;
26
public
const
FIELD_CUSTOMER_EMAIL
=
'customerEmail'
;
27
public
const
FIELD_CUSTOMER_GROUP
=
'customerGroup'
;
28
public
const
FIELD_ANONYMOUS_ID
=
'anonymousId'
;
29
public
const
FIELD_BUSINESS_UNIT
=
'businessUnit'
;
30
public
const
FIELD_STORE
=
'store'
;
31
public
const
FIELD_LINE_ITEMS
=
'lineItems'
;
32
public
const
FIELD_CUSTOM_LINE_ITEMS
=
'customLineItems'
;
33
public
const
FIELD_TAX_MODE
=
'taxMode'
;
34
public
const
FIELD_EXTERNAL_TAX_RATE_FOR_SHIPPING_METHOD
=
'externalTaxRateForShippingMethod'
;
35
public
const
FIELD_TAX_ROUNDING_MODE
=
'taxRoundingMode'
;
36
public
const
FIELD_TAX_CALCULATION_MODE
=
'taxCalculationMode'
;
37
public
const
FIELD_INVENTORY_MODE
=
'inventoryMode'
;
38
public
const
FIELD_BILLING_ADDRESS
=
'billingAddress'
;
39
public
const
FIELD_SHIPPING_ADDRESS
=
'shippingAddress'
;
40
public
const
FIELD_SHIPPING_METHOD
=
'shippingMethod'
;
41
public
const
FIELD_SHIPPING_RATE_INPUT
=
'shippingRateInput'
;
42
public
const
FIELD_SHIPPING_MODE
=
'shippingMode'
;
43
public
const
FIELD_CUSTOM_SHIPPING
=
'customShipping'
;
44
public
const
FIELD_SHIPPING
=
'shipping'
;
45
public
const
FIELD_ITEM_SHIPPING_ADDRESSES
=
'itemShippingAddresses'
;
46
public
const
FIELD_DISCOUNT_CODES
=
'discountCodes'
;
47
public
const
FIELD_COUNTRY
=
'country'
;
48
public
const
FIELD_LOCALE
=
'locale'
;
49
public
const
FIELD_ORIGIN
=
'origin'
;
50
public
const
FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION
=
'deleteDaysAfterLastModification'
;
51
public
const
FIELD_CUSTOM
=
'custom'
;
52
59
public
function
getCurrency
();
60
67
public
function
getKey
();
68
75
public
function
getCustomerId
();
76
83
public
function
getCustomerEmail
();
84
93
public
function
getCustomerGroup
();
94
101
public
function
getAnonymousId
();
102
109
public
function
getBusinessUnit
();
110
117
public
function
getStore
();
118
125
public
function
getLineItems
();
126
133
public
function
getCustomLineItems
();
134
141
public
function
getTaxMode
();
142
149
public
function
getExternalTaxRateForShippingMethod
();
150
157
public
function
getTaxRoundingMode
();
158
165
public
function
getTaxCalculationMode
();
166
173
public
function
getInventoryMode
();
174
181
public
function
getBillingAddress
();
182
190
public
function
getShippingAddress
();
191
198
public
function
getShippingMethod
();
199
212
public
function
getShippingRateInput
();
213
223
public
function
getShippingMode
();
224
231
public
function
getCustomShipping
();
232
239
public
function
getShipping
();
240
249
public
function
getItemShippingAddresses
();
250
257
public
function
getDiscountCodes
();
258
266
public
function
getCountry
();
267
274
public
function
getLocale
();
275
282
public
function
getOrigin
();
283
292
public
function
getDeleteDaysAfterLastModification
();
293
300
public
function
getCustom
();
301
305
public
function
setCurrency
(?
string
$currency): void;
306
310
public
function
setKey
(?
string
$key): void;
311
315
public
function
setCustomerId
(?
string
$customerId): void;
316
320
public
function
setCustomerEmail
(?
string
$customerEmail): void;
321
325
public
function
setCustomerGroup
(?
CustomerGroupResourceIdentifier
$customerGroup): void;
326
330
public
function
setAnonymousId
(?
string
$anonymousId): void;
331
335
public
function
setBusinessUnit
(?
BusinessUnitResourceIdentifier
$businessUnit): void;
336
340
public
function
setStore
(?
StoreResourceIdentifier
$store): void;
341
345
public
function
setLineItems
(?
LineItemDraftCollection
$lineItems): void;
346
350
public
function
setCustomLineItems
(?
CustomLineItemDraftCollection
$customLineItems): void;
351
355
public
function
setTaxMode
(?
string
$taxMode): void;
356
360
public
function
setExternalTaxRateForShippingMethod
(?
ExternalTaxRateDraft
$externalTaxRateForShippingMethod): void;
361
365
public
function
setTaxRoundingMode
(?
string
$taxRoundingMode): void;
366
370
public
function
setTaxCalculationMode
(?
string
$taxCalculationMode): void;
371
375
public
function
setInventoryMode
(?
string
$inventoryMode): void;
376
380
public
function
setBillingAddress
(?
BaseAddress
$billingAddress): void;
381
385
public
function
setShippingAddress
(?
BaseAddress
$shippingAddress): void;
386
390
public
function
setShippingMethod
(?
ShippingMethodResourceIdentifier
$shippingMethod): void;
391
395
public
function
setShippingRateInput
(?
ShippingRateInputDraft
$shippingRateInput): void;
396
400
public
function
setShippingMode
(?
string
$shippingMode): void;
401
405
public
function
setCustomShipping
(?
CustomShippingDraftCollection
$customShipping): void;
406
410
public
function
setShipping
(?
ShippingDraftCollection
$shipping): void;
411
415
public
function
setItemShippingAddresses
(?
BaseAddressCollection
$itemShippingAddresses): void;
416
420
public
function
setDiscountCodes
(?array $discountCodes): void;
421
425
public
function
setCountry
(?
string
$country): void;
426
430
public
function
setLocale
(?
string
$locale): void;
431
435
public
function
setOrigin
(?
string
$origin): void;
436
440
public
function
setDeleteDaysAfterLastModification
(?
int
$deleteDaysAfterLastModification): void;
441
445
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
446
}
Commercetools\Api\Models\Cart\CustomLineItemDraftCollection
Definition:
CustomLineItemDraftCollection.php:22
Commercetools\Api\Models\Cart\CustomShippingDraftCollection
Definition:
CustomShippingDraftCollection.php:22
Commercetools\Api\Models\Cart\LineItemDraftCollection
Definition:
LineItemDraftCollection.php:22
Commercetools\Api\Models\Cart\ShippingDraftCollection
Definition:
ShippingDraftCollection.php:22
Commercetools\Api\Models\Common\BaseAddressCollection
Definition:
BaseAddressCollection.php:26
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\BusinessUnit\BusinessUnitResourceIdentifier
Definition:
BusinessUnitResourceIdentifier.php:16
Commercetools\Api\Models\Cart\CartDraft
Definition:
CartDraft.php:22
Commercetools\Api\Models\Cart\CartDraft\setDiscountCodes
setDiscountCodes(?array $discountCodes)
Commercetools\Api\Models\Cart\CartDraft\FIELD_LOCALE
const FIELD_LOCALE
Definition:
CartDraft.php:48
Commercetools\Api\Models\Cart\CartDraft\setLineItems
setLineItems(?LineItemDraftCollection $lineItems)
Commercetools\Api\Models\Cart\CartDraft\getDeleteDaysAfterLastModification
getDeleteDaysAfterLastModification()
Commercetools\Api\Models\Cart\CartDraft\setCurrency
setCurrency(?string $currency)
Commercetools\Api\Models\Cart\CartDraft\getCustomLineItems
getCustomLineItems()
Commercetools\Api\Models\Cart\CartDraft\getCustomerId
getCustomerId()
Commercetools\Api\Models\Cart\CartDraft\getShippingMethod
getShippingMethod()
Commercetools\Api\Models\Cart\CartDraft\getDiscountCodes
getDiscountCodes()
Commercetools\Api\Models\Cart\CartDraft\getAnonymousId
getAnonymousId()
Commercetools\Api\Models\Cart\CartDraft\setCountry
setCountry(?string $country)
Commercetools\Api\Models\Cart\CartDraft\getLineItems
getLineItems()
Commercetools\Api\Models\Cart\CartDraft\FIELD_EXTERNAL_TAX_RATE_FOR_SHIPPING_METHOD
const FIELD_EXTERNAL_TAX_RATE_FOR_SHIPPING_METHOD
Definition:
CartDraft.php:34
Commercetools\Api\Models\Cart\CartDraft\setShippingMode
setShippingMode(?string $shippingMode)
Commercetools\Api\Models\Cart\CartDraft\FIELD_ANONYMOUS_ID
const FIELD_ANONYMOUS_ID
Definition:
CartDraft.php:28
Commercetools\Api\Models\Cart\CartDraft\getInventoryMode
getInventoryMode()
Commercetools\Api\Models\Cart\CartDraft\FIELD_SHIPPING_MODE
const FIELD_SHIPPING_MODE
Definition:
CartDraft.php:42
Commercetools\Api\Models\Cart\CartDraft\getLocale
getLocale()
Commercetools\Api\Models\Cart\CartDraft\FIELD_STORE
const FIELD_STORE
Definition:
CartDraft.php:30
Commercetools\Api\Models\Cart\CartDraft\FIELD_LINE_ITEMS
const FIELD_LINE_ITEMS
Definition:
CartDraft.php:31
Commercetools\Api\Models\Cart\CartDraft\getStore
getStore()
Commercetools\Api\Models\Cart\CartDraft\getTaxRoundingMode
getTaxRoundingMode()
Commercetools\Api\Models\Cart\CartDraft\getTaxCalculationMode
getTaxCalculationMode()
Commercetools\Api\Models\Cart\CartDraft\getShippingAddress
getShippingAddress()
Commercetools\Api\Models\Cart\CartDraft\setAnonymousId
setAnonymousId(?string $anonymousId)
Commercetools\Api\Models\Cart\CartDraft\setItemShippingAddresses
setItemShippingAddresses(?BaseAddressCollection $itemShippingAddresses)
Commercetools\Api\Models\Cart\CartDraft\setTaxMode
setTaxMode(?string $taxMode)
Commercetools\Api\Models\Cart\CartDraft\setCustomerGroup
setCustomerGroup(?CustomerGroupResourceIdentifier $customerGroup)
Commercetools\Api\Models\Cart\CartDraft\setLocale
setLocale(?string $locale)
Commercetools\Api\Models\Cart\CartDraft\FIELD_CURRENCY
const FIELD_CURRENCY
Definition:
CartDraft.php:23
Commercetools\Api\Models\Cart\CartDraft\FIELD_ORIGIN
const FIELD_ORIGIN
Definition:
CartDraft.php:49
Commercetools\Api\Models\Cart\CartDraft\FIELD_ITEM_SHIPPING_ADDRESSES
const FIELD_ITEM_SHIPPING_ADDRESSES
Definition:
CartDraft.php:45
Commercetools\Api\Models\Cart\CartDraft\setInventoryMode
setInventoryMode(?string $inventoryMode)
Commercetools\Api\Models\Cart\CartDraft\FIELD_TAX_MODE
const FIELD_TAX_MODE
Definition:
CartDraft.php:33
Commercetools\Api\Models\Cart\CartDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Cart\CartDraft\FIELD_TAX_CALCULATION_MODE
const FIELD_TAX_CALCULATION_MODE
Definition:
CartDraft.php:36
Commercetools\Api\Models\Cart\CartDraft\setShipping
setShipping(?ShippingDraftCollection $shipping)
Commercetools\Api\Models\Cart\CartDraft\FIELD_CUSTOMER_EMAIL
const FIELD_CUSTOMER_EMAIL
Definition:
CartDraft.php:26
Commercetools\Api\Models\Cart\CartDraft\getShipping
getShipping()
Commercetools\Api\Models\Cart\CartDraft\FIELD_CUSTOMER_GROUP
const FIELD_CUSTOMER_GROUP
Definition:
CartDraft.php:27
Commercetools\Api\Models\Cart\CartDraft\FIELD_BILLING_ADDRESS
const FIELD_BILLING_ADDRESS
Definition:
CartDraft.php:38
Commercetools\Api\Models\Cart\CartDraft\setDeleteDaysAfterLastModification
setDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification)
Commercetools\Api\Models\Cart\CartDraft\setShippingRateInput
setShippingRateInput(?ShippingRateInputDraft $shippingRateInput)
Commercetools\Api\Models\Cart\CartDraft\getCustomerEmail
getCustomerEmail()
Commercetools\Api\Models\Cart\CartDraft\setCustomLineItems
setCustomLineItems(?CustomLineItemDraftCollection $customLineItems)
Commercetools\Api\Models\Cart\CartDraft\setOrigin
setOrigin(?string $origin)
Commercetools\Api\Models\Cart\CartDraft\FIELD_SHIPPING_RATE_INPUT
const FIELD_SHIPPING_RATE_INPUT
Definition:
CartDraft.php:41
Commercetools\Api\Models\Cart\CartDraft\getShippingRateInput
getShippingRateInput()
Commercetools\Api\Models\Cart\CartDraft\FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION
const FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION
Definition:
CartDraft.php:50
Commercetools\Api\Models\Cart\CartDraft\getExternalTaxRateForShippingMethod
getExternalTaxRateForShippingMethod()
Commercetools\Api\Models\Cart\CartDraft\FIELD_CUSTOM_SHIPPING
const FIELD_CUSTOM_SHIPPING
Definition:
CartDraft.php:43
Commercetools\Api\Models\Cart\CartDraft\setShippingAddress
setShippingAddress(?BaseAddress $shippingAddress)
Commercetools\Api\Models\Cart\CartDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
CartDraft.php:51
Commercetools\Api\Models\Cart\CartDraft\setTaxRoundingMode
setTaxRoundingMode(?string $taxRoundingMode)
Commercetools\Api\Models\Cart\CartDraft\setStore
setStore(?StoreResourceIdentifier $store)
Commercetools\Api\Models\Cart\CartDraft\getItemShippingAddresses
getItemShippingAddresses()
Commercetools\Api\Models\Cart\CartDraft\getCustom
getCustom()
Commercetools\Api\Models\Cart\CartDraft\getOrigin
getOrigin()
Commercetools\Api\Models\Cart\CartDraft\setBusinessUnit
setBusinessUnit(?BusinessUnitResourceIdentifier $businessUnit)
Commercetools\Api\Models\Cart\CartDraft\setBillingAddress
setBillingAddress(?BaseAddress $billingAddress)
Commercetools\Api\Models\Cart\CartDraft\setExternalTaxRateForShippingMethod
setExternalTaxRateForShippingMethod(?ExternalTaxRateDraft $externalTaxRateForShippingMethod)
Commercetools\Api\Models\Cart\CartDraft\FIELD_CUSTOM_LINE_ITEMS
const FIELD_CUSTOM_LINE_ITEMS
Definition:
CartDraft.php:32
Commercetools\Api\Models\Cart\CartDraft\setCustomerId
setCustomerId(?string $customerId)
Commercetools\Api\Models\Cart\CartDraft\setShippingMethod
setShippingMethod(?ShippingMethodResourceIdentifier $shippingMethod)
Commercetools\Api\Models\Cart\CartDraft\getBusinessUnit
getBusinessUnit()
Commercetools\Api\Models\Cart\CartDraft\FIELD_TAX_ROUNDING_MODE
const FIELD_TAX_ROUNDING_MODE
Definition:
CartDraft.php:35
Commercetools\Api\Models\Cart\CartDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\Cart\CartDraft\getCurrency
getCurrency()
Commercetools\Api\Models\Cart\CartDraft\FIELD_KEY
const FIELD_KEY
Definition:
CartDraft.php:24
Commercetools\Api\Models\Cart\CartDraft\getCustomerGroup
getCustomerGroup()
Commercetools\Api\Models\Cart\CartDraft\getShippingMode
getShippingMode()
Commercetools\Api\Models\Cart\CartDraft\setCustomShipping
setCustomShipping(?CustomShippingDraftCollection $customShipping)
Commercetools\Api\Models\Cart\CartDraft\FIELD_INVENTORY_MODE
const FIELD_INVENTORY_MODE
Definition:
CartDraft.php:37
Commercetools\Api\Models\Cart\CartDraft\FIELD_DISCOUNT_CODES
const FIELD_DISCOUNT_CODES
Definition:
CartDraft.php:46
Commercetools\Api\Models\Cart\CartDraft\FIELD_BUSINESS_UNIT
const FIELD_BUSINESS_UNIT
Definition:
CartDraft.php:29
Commercetools\Api\Models\Cart\CartDraft\getKey
getKey()
Commercetools\Api\Models\Cart\CartDraft\getCustomShipping
getCustomShipping()
Commercetools\Api\Models\Cart\CartDraft\FIELD_SHIPPING_ADDRESS
const FIELD_SHIPPING_ADDRESS
Definition:
CartDraft.php:39
Commercetools\Api\Models\Cart\CartDraft\getTaxMode
getTaxMode()
Commercetools\Api\Models\Cart\CartDraft\setTaxCalculationMode
setTaxCalculationMode(?string $taxCalculationMode)
Commercetools\Api\Models\Cart\CartDraft\FIELD_SHIPPING_METHOD
const FIELD_SHIPPING_METHOD
Definition:
CartDraft.php:40
Commercetools\Api\Models\Cart\CartDraft\getCountry
getCountry()
Commercetools\Api\Models\Cart\CartDraft\FIELD_CUSTOMER_ID
const FIELD_CUSTOMER_ID
Definition:
CartDraft.php:25
Commercetools\Api\Models\Cart\CartDraft\getBillingAddress
getBillingAddress()
Commercetools\Api\Models\Cart\CartDraft\FIELD_COUNTRY
const FIELD_COUNTRY
Definition:
CartDraft.php:47
Commercetools\Api\Models\Cart\CartDraft\FIELD_SHIPPING
const FIELD_SHIPPING
Definition:
CartDraft.php:44
Commercetools\Api\Models\Cart\CartDraft\setCustomerEmail
setCustomerEmail(?string $customerEmail)
Commercetools\Api\Models\Cart\ExternalTaxRateDraft
Definition:
ExternalTaxRateDraft.php:16
Commercetools\Api\Models\Cart\ShippingRateInputDraft
Definition:
ShippingRateInputDraft.php:15
Commercetools\Api\Models\Common\BaseAddress
Definition:
BaseAddress.php:15
Commercetools\Api\Models\CustomerGroup\CustomerGroupResourceIdentifier
Definition:
CustomerGroupResourceIdentifier.php:16
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\Cart
Definition:
Cart.php:9
Generated by
1.9.1