Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
QuoteDetails.php
Go to the documentation of this file.
1 <?php
7 
10 
15 {
19  const KEY_BILLING_ADDRESS = 'billing_address';
20  const KEY_SHIPPING_ADDRESS = 'shipping_address';
21  const KEY_CUSTOMER_TAX_CLASS_KEY = 'customer_tax_class_key';
22  const KEY_ITEMS = 'items';
23  const KEY_CUSTOMER_TAX_CLASS_ID = 'customer_tax_class_id';
24  const KEY_CUSTOMER_ID = 'customer_id';
30  public function getBillingAddress()
31  {
32  return $this->getData(self::KEY_BILLING_ADDRESS);
33  }
34 
38  public function getShippingAddress()
39  {
40  return $this->getData(self::KEY_SHIPPING_ADDRESS);
41  }
42 
46  public function getCustomerTaxClassKey()
47  {
48  return $this->getData(self::KEY_CUSTOMER_TAX_CLASS_KEY);
49  }
50 
54  public function getCustomerId()
55  {
56  return $this->getData(self::KEY_CUSTOMER_ID);
57  }
58 
62  public function getItems()
63  {
64  return $this->getData(self::KEY_ITEMS);
65  }
66 
70  public function getCustomerTaxClassId()
71  {
72  return $this->getData(self::KEY_CUSTOMER_TAX_CLASS_ID);
73  }
74 
81  public function setBillingAddress(\Magento\Customer\Api\Data\AddressInterface $billingAddress = null)
82  {
83  return $this->setData(self::KEY_BILLING_ADDRESS, $billingAddress);
84  }
85 
92  public function setShippingAddress(\Magento\Customer\Api\Data\AddressInterface $shippingAddress = null)
93  {
94  return $this->setData(self::KEY_SHIPPING_ADDRESS, $shippingAddress);
95  }
96 
103  public function setCustomerTaxClassKey(\Magento\Tax\Api\Data\TaxClassKeyInterface $customerTaxClassKey = null)
104  {
105  return $this->setData(self::KEY_CUSTOMER_TAX_CLASS_KEY, $customerTaxClassKey);
106  }
107 
114  public function setCustomerId($customerId)
115  {
116  return $this->setData(self::KEY_CUSTOMER_ID, $customerId);
117  }
118 
125  public function setItems(array $items = null)
126  {
127  return $this->setData(self::KEY_ITEMS, $items);
128  }
129 
136  public function setCustomerTaxClassId($customerTaxClassId)
137  {
138  return $this->setData(self::KEY_CUSTOMER_TAX_CLASS_ID, $customerTaxClassId);
139  }
140 
146  public function getExtensionAttributes()
147  {
148  return $this->_getExtensionAttributes();
149  }
150 
157  public function setExtensionAttributes(\Magento\Tax\Api\Data\QuoteDetailsExtensionInterface $extensionAttributes)
158  {
159  return $this->_setExtensionAttributes($extensionAttributes);
160  }
161 }
setExtensionAttributes(\Magento\Tax\Api\Data\QuoteDetailsExtensionInterface $extensionAttributes)
setShippingAddress(\Magento\Customer\Api\Data\AddressInterface $shippingAddress=null)
$billingAddress
Definition: order.php:25
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
$shippingAddress
Definition: order.php:40
setCustomerTaxClassKey(\Magento\Tax\Api\Data\TaxClassKeyInterface $customerTaxClassKey=null)
setBillingAddress(\Magento\Customer\Api\Data\AddressInterface $billingAddress=null)
$items