commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
MyCartDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
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 
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 }
setInventoryMode(?string $inventoryMode)
setShippingAddress(?BaseAddress $shippingAddress)
setDiscountCodes(?array $discountCodes)
setLineItems(?MyLineItemDraftCollection $lineItems)
setCustomerEmail(?string $customerEmail)
setDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification)
setCustom(?CustomFieldsDraft $custom)
setStore(?StoreResourceIdentifier $store)
setBillingAddress(?BaseAddress $billingAddress)
setShippingMode(?string $shippingMode)
setShippingMethod(?ShippingMethodResourceIdentifier $shippingMethod)
setBusinessUnit(?BusinessUnitResourceIdentifier $businessUnit)
setItemShippingAddresses(?BaseAddressCollection $itemShippingAddresses)