commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CartDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
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 
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 
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 }
setDiscountCodes(?array $discountCodes)
setLineItems(?LineItemDraftCollection $lineItems)
setShippingMode(?string $shippingMode)
setAnonymousId(?string $anonymousId)
setItemShippingAddresses(?BaseAddressCollection $itemShippingAddresses)
setCustomerGroup(?CustomerGroupResourceIdentifier $customerGroup)
setInventoryMode(?string $inventoryMode)
setCustom(?CustomFieldsDraft $custom)
setShipping(?ShippingDraftCollection $shipping)
setDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification)
setShippingRateInput(?ShippingRateInputDraft $shippingRateInput)
setCustomLineItems(?CustomLineItemDraftCollection $customLineItems)
setShippingAddress(?BaseAddress $shippingAddress)
setTaxRoundingMode(?string $taxRoundingMode)
setStore(?StoreResourceIdentifier $store)
setBusinessUnit(?BusinessUnitResourceIdentifier $businessUnit)
setBillingAddress(?BaseAddress $billingAddress)
setExternalTaxRateForShippingMethod(?ExternalTaxRateDraft $externalTaxRateForShippingMethod)
setShippingMethod(?ShippingMethodResourceIdentifier $shippingMethod)
setCustomShipping(?CustomShippingDraftCollection $customShipping)
setTaxCalculationMode(?string $taxCalculationMode)
setCustomerEmail(?string $customerEmail)