commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Cart.php
1 <?php
2 
3 declare(strict_types=1);
10 
25 use DateTimeImmutable;
26 
27 interface Cart extends BaseResource
28 {
29  public const FIELD_KEY = 'key';
30  public const FIELD_CUSTOMER_ID = 'customerId';
31  public const FIELD_CUSTOMER_EMAIL = 'customerEmail';
32  public const FIELD_CUSTOMER_GROUP = 'customerGroup';
33  public const FIELD_ANONYMOUS_ID = 'anonymousId';
34  public const FIELD_BUSINESS_UNIT = 'businessUnit';
35  public const FIELD_STORE = 'store';
36  public const FIELD_LINE_ITEMS = 'lineItems';
37  public const FIELD_CUSTOM_LINE_ITEMS = 'customLineItems';
38  public const FIELD_TOTAL_LINE_ITEM_QUANTITY = 'totalLineItemQuantity';
39  public const FIELD_TOTAL_PRICE = 'totalPrice';
40  public const FIELD_TAXED_PRICE = 'taxedPrice';
41  public const FIELD_TAXED_SHIPPING_PRICE = 'taxedShippingPrice';
42  public const FIELD_DISCOUNT_ON_TOTAL_PRICE = 'discountOnTotalPrice';
43  public const FIELD_TAX_MODE = 'taxMode';
44  public const FIELD_TAX_ROUNDING_MODE = 'taxRoundingMode';
45  public const FIELD_TAX_CALCULATION_MODE = 'taxCalculationMode';
46  public const FIELD_INVENTORY_MODE = 'inventoryMode';
47  public const FIELD_CART_STATE = 'cartState';
48  public const FIELD_BILLING_ADDRESS = 'billingAddress';
49  public const FIELD_SHIPPING_ADDRESS = 'shippingAddress';
50  public const FIELD_SHIPPING_MODE = 'shippingMode';
51  public const FIELD_SHIPPING_KEY = 'shippingKey';
52  public const FIELD_SHIPPING_INFO = 'shippingInfo';
53  public const FIELD_SHIPPING_RATE_INPUT = 'shippingRateInput';
54  public const FIELD_SHIPPING_CUSTOM_FIELDS = 'shippingCustomFields';
55  public const FIELD_SHIPPING = 'shipping';
56  public const FIELD_ITEM_SHIPPING_ADDRESSES = 'itemShippingAddresses';
57  public const FIELD_DISCOUNT_CODES = 'discountCodes';
58  public const FIELD_DIRECT_DISCOUNTS = 'directDiscounts';
59  public const FIELD_REFUSED_GIFTS = 'refusedGifts';
60  public const FIELD_PAYMENT_INFO = 'paymentInfo';
61  public const FIELD_COUNTRY = 'country';
62  public const FIELD_LOCALE = 'locale';
63  public const FIELD_ORIGIN = 'origin';
64  public const FIELD_CUSTOM = 'custom';
65  public const FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION = 'deleteDaysAfterLastModification';
66  public const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy';
67  public const FIELD_CREATED_BY = 'createdBy';
68 
75  public function getId();
76 
83  public function getVersion();
84 
91  public function getKey();
92 
99  public function getCustomerId();
100 
107  public function getCustomerEmail();
108 
115  public function getCustomerGroup();
116 
123  public function getAnonymousId();
124 
131  public function getBusinessUnit();
132 
139  public function getStore();
140 
147  public function getLineItems();
148 
155  public function getCustomLineItems();
156 
163  public function getTotalLineItemQuantity();
164 
173  public function getTotalPrice();
174 
185  public function getTaxedPrice();
186 
193  public function getTaxedShippingPrice();
194 
201  public function getDiscountOnTotalPrice();
202 
209  public function getTaxMode();
210 
217  public function getTaxRoundingMode();
218 
225  public function getTaxCalculationMode();
226 
233  public function getInventoryMode();
234 
241  public function getCartState();
242 
249  public function getBillingAddress();
250 
257  public function getShippingAddress();
258 
265  public function getShippingMode();
266 
273  public function getShippingKey();
274 
281  public function getShippingInfo();
282 
295  public function getShippingRateInput();
296 
303  public function getShippingCustomFields();
304 
311  public function getShipping();
312 
320  public function getItemShippingAddresses();
321 
328  public function getDiscountCodes();
329 
336  public function getDirectDiscounts();
337 
344  public function getRefusedGifts();
345 
352  public function getPaymentInfo();
353 
360  public function getCountry();
361 
368  public function getLocale();
369 
376  public function getOrigin();
377 
384  public function getCustom();
385 
393 
400  public function getCreatedAt();
401 
408  public function getLastModifiedAt();
409 
416  public function getLastModifiedBy();
417 
424  public function getCreatedBy();
425 
429  public function setId(?string $id): void;
430 
434  public function setVersion(?int $version): void;
435 
439  public function setKey(?string $key): void;
440 
444  public function setCustomerId(?string $customerId): void;
445 
449  public function setCustomerEmail(?string $customerEmail): void;
450 
454  public function setCustomerGroup(?CustomerGroupReference $customerGroup): void;
455 
459  public function setAnonymousId(?string $anonymousId): void;
460 
464  public function setBusinessUnit(?BusinessUnitKeyReference $businessUnit): void;
465 
469  public function setStore(?StoreKeyReference $store): void;
470 
474  public function setLineItems(?LineItemCollection $lineItems): void;
475 
479  public function setCustomLineItems(?CustomLineItemCollection $customLineItems): void;
480 
484  public function setTotalLineItemQuantity(?int $totalLineItemQuantity): void;
485 
489  public function setTotalPrice(?CentPrecisionMoney $totalPrice): void;
490 
494  public function setTaxedPrice(?TaxedPrice $taxedPrice): void;
495 
499  public function setTaxedShippingPrice(?TaxedPrice $taxedShippingPrice): void;
500 
504  public function setDiscountOnTotalPrice(?DiscountOnTotalPrice $discountOnTotalPrice): void;
505 
509  public function setTaxMode(?string $taxMode): void;
510 
514  public function setTaxRoundingMode(?string $taxRoundingMode): void;
515 
519  public function setTaxCalculationMode(?string $taxCalculationMode): void;
520 
524  public function setInventoryMode(?string $inventoryMode): void;
525 
529  public function setCartState(?string $cartState): void;
530 
534  public function setBillingAddress(?Address $billingAddress): void;
535 
539  public function setShippingAddress(?Address $shippingAddress): void;
540 
544  public function setShippingMode(?string $shippingMode): void;
545 
549  public function setShippingKey(?string $shippingKey): void;
550 
554  public function setShippingInfo(?ShippingInfo $shippingInfo): void;
555 
559  public function setShippingRateInput(?ShippingRateInput $shippingRateInput): void;
560 
564  public function setShippingCustomFields(?CustomFields $shippingCustomFields): void;
565 
569  public function setShipping(?ShippingCollection $shipping): void;
570 
574  public function setItemShippingAddresses(?AddressCollection $itemShippingAddresses): void;
575 
579  public function setDiscountCodes(?DiscountCodeInfoCollection $discountCodes): void;
580 
584  public function setDirectDiscounts(?DirectDiscountCollection $directDiscounts): void;
585 
589  public function setRefusedGifts(?CartDiscountReferenceCollection $refusedGifts): void;
590 
594  public function setPaymentInfo(?PaymentInfo $paymentInfo): void;
595 
599  public function setCountry(?string $country): void;
600 
604  public function setLocale(?string $locale): void;
605 
609  public function setOrigin(?string $origin): void;
610 
614  public function setCustom(?CustomFields $custom): void;
615 
619  public function setDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification): void;
620 
624  public function setCreatedAt(?DateTimeImmutable $createdAt): void;
625 
629  public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
630 
634  public function setLastModifiedBy(?LastModifiedBy $lastModifiedBy): void;
635 
639  public function setCreatedBy(?CreatedBy $createdBy): void;
640 }
setTaxRoundingMode(?string $taxRoundingMode)
setPaymentInfo(?PaymentInfo $paymentInfo)
setShippingCustomFields(?CustomFields $shippingCustomFields)
setShippingRateInput(?ShippingRateInput $shippingRateInput)
setCustomLineItems(?CustomLineItemCollection $customLineItems)
setDiscountCodes(?DiscountCodeInfoCollection $discountCodes)
setLineItems(?LineItemCollection $lineItems)
setCreatedBy(?CreatedBy $createdBy)
setAnonymousId(?string $anonymousId)
setShippingAddress(?Address $shippingAddress)
setDiscountOnTotalPrice(?DiscountOnTotalPrice $discountOnTotalPrice)
setCreatedAt(?DateTimeImmutable $createdAt)
setStore(?StoreKeyReference $store)
setTotalLineItemQuantity(?int $totalLineItemQuantity)
setDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification)
setCustomerGroup(?CustomerGroupReference $customerGroup)
setTaxedPrice(?TaxedPrice $taxedPrice)
setShippingKey(?string $shippingKey)
setCustom(?CustomFields $custom)
setBusinessUnit(?BusinessUnitKeyReference $businessUnit)
setBillingAddress(?Address $billingAddress)
setTaxedShippingPrice(?TaxedPrice $taxedShippingPrice)
setCustomerId(?string $customerId)
setCustomerEmail(?string $customerEmail)
setRefusedGifts(?CartDiscountReferenceCollection $refusedGifts)
setDirectDiscounts(?DirectDiscountCollection $directDiscounts)
setTotalPrice(?CentPrecisionMoney $totalPrice)
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setInventoryMode(?string $inventoryMode)
setShippingMode(?string $shippingMode)
setShipping(?ShippingCollection $shipping)
setCartState(?string $cartState)
setTaxCalculationMode(?string $taxCalculationMode)
setItemShippingAddresses(?AddressCollection $itemShippingAddresses)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setShippingInfo(?ShippingInfo $shippingInfo)
const FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION
Definition: Cart.php:65