Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CartInterface.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Quote\Api\Data;
7 
14 {
18  const KEY_ID = 'id';
19 
20  const KEY_ENTITY_ID = 'entity_id';
21 
22  const KEY_CREATED_AT = 'created_at';
23 
24  const KEY_UPDATED_AT = 'updated_at';
25 
26  const KEY_CONVERTED_AT = 'converted_at';
27 
28  const KEY_IS_ACTIVE = 'is_active';
29 
30  const KEY_IS_VIRTUAL = 'is_virtual';
31 
32  const KEY_ITEMS = 'items';
33 
34  const KEY_ITEMS_COUNT = 'items_count';
35 
36  const KEY_ITEMS_QTY = 'items_qty';
37 
38  const KEY_CUSTOMER = 'customer';
39 
40  const KEY_CHECKOUT_METHOD = 'checkout_method';
41 
42  const KEY_SHIPPING_ADDRESS = 'shipping_address';
43 
44  const KEY_BILLING_ADDRESS = 'billing_address';
45 
46  const KEY_RESERVED_ORDER_ID = 'reserved_order_id';
47 
48  const KEY_ORIG_ORDER_ID = 'orig_order_id';
49 
50  const KEY_CURRENCY = 'currency';
51 
52  const KEY_CUSTOMER_IS_GUEST = 'customer_is_guest';
53 
54  const KEY_CUSTOMER_NOTE = 'customer_note';
55 
56  const KEY_CUSTOMER_NOTE_NOTIFY = 'customer_note_notify';
57 
58  const KEY_CUSTOMER_TAX_CLASS_ID = 'customer_tax_class_id';
59 
60  const KEY_STORE_ID = 'store_id';
61 
69  public function getId();
70 
77  public function setId($id);
78 
84  public function getCreatedAt();
85 
92  public function setCreatedAt($createdAt);
93 
99  public function getUpdatedAt();
100 
107  public function setUpdatedAt($updatedAt);
108 
114  public function getConvertedAt();
115 
122  public function setConvertedAt($convertedAt);
123 
129  public function getIsActive();
130 
137  public function setIsActive($isActive);
138 
146  public function getIsVirtual();
147 
153  public function getItems();
154 
161  public function setItems(array $items = null);
162 
168  public function getItemsCount();
169 
176  public function setItemsCount($itemsCount);
177 
183  public function getItemsQty();
184 
191  public function setItemsQty($itemQty);
192 
198  public function getCustomer();
199 
206  public function setCustomer(\Magento\Customer\Api\Data\CustomerInterface $customer = null);
207 
213  public function getBillingAddress();
214 
222 
228  public function getReservedOrderId();
229 
236  public function setReservedOrderId($reservedOrderId);
237 
243  public function getOrigOrderId();
244 
251  public function setOrigOrderId($origOrderId);
252 
258  public function getCurrency();
259 
266  public function setCurrency(\Magento\Quote\Api\Data\CurrencyInterface $currency = null);
267 
273  public function getCustomerIsGuest();
274 
281  public function setCustomerIsGuest($customerIsGuest);
282 
288  public function getCustomerNote();
289 
296  public function setCustomerNote($customerNote);
297 
303  public function getCustomerNoteNotify();
304 
311  public function setCustomerNoteNotify($customerNoteNotify);
312 
318  public function getCustomerTaxClassId();
319 
326  public function setCustomerTaxClassId($customerTaxClassId);
327 
333  public function getStoreId();
334 
341  public function setStoreId($storeId);
342 
348  public function getExtensionAttributes();
349 
356  public function setExtensionAttributes(\Magento\Quote\Api\Data\CartExtensionInterface $extensionAttributes);
357 }
setCurrency(\Magento\Quote\Api\Data\CurrencyInterface $currency=null)
$billingAddress
Definition: order.php:25
$customer
Definition: customers.php:11
$id
Definition: fieldset.phtml:14
setCustomerTaxClassId($customerTaxClassId)
setCustomer(\Magento\Customer\Api\Data\CustomerInterface $customer=null)
$extensionAttributes
Definition: payment.php:22
setBillingAddress(\Magento\Quote\Api\Data\AddressInterface $billingAddress=null)
setCustomerNoteNotify($customerNoteNotify)
$items
setExtensionAttributes(\Magento\Quote\Api\Data\CartExtensionInterface $extensionAttributes)