Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
InvoiceItemInterface.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Sales\Api\Data;
7 
9 
18 {
22  /*
23  * Entity ID.
24  */
25  const ENTITY_ID = 'entity_id';
26  /*
27  * Parent ID.
28  */
29  const PARENT_ID = 'parent_id';
30  /*
31  * Base price.
32  */
33  const BASE_PRICE = 'base_price';
34  /*
35  * Tax amount.
36  */
37  const TAX_AMOUNT = 'tax_amount';
38  /*
39  * Base row total.
40  */
41  const BASE_ROW_TOTAL = 'base_row_total';
42  /*
43  * Discount amount.
44  */
45  const DISCOUNT_AMOUNT = 'discount_amount';
46  /*
47  * Row total.
48  */
49  const ROW_TOTAL = 'row_total';
50  /*
51  * Base discount amount.
52  */
53  const BASE_DISCOUNT_AMOUNT = 'base_discount_amount';
54  /*
55  * Price including tax.
56  */
57  const PRICE_INCL_TAX = 'price_incl_tax';
58  /*
59  * Base tax amount.
60  */
61  const BASE_TAX_AMOUNT = 'base_tax_amount';
62  /*
63  * Base price including tax.
64  */
65  const BASE_PRICE_INCL_TAX = 'base_price_incl_tax';
66  /*
67  * Quantity.
68  */
69  const QTY = 'qty';
70  /*
71  * Base cost.
72  */
73  const BASE_COST = 'base_cost';
74  /*
75  * Price.
76  */
77  const PRICE = 'price';
78  /*
79  * Base row total including tax.
80  */
81  const BASE_ROW_TOTAL_INCL_TAX = 'base_row_total_incl_tax';
82  /*
83  * Row total including tax.
84  */
85  const ROW_TOTAL_INCL_TAX = 'row_total_incl_tax';
86  /*
87  * Product ID.
88  */
89  const PRODUCT_ID = 'product_id';
90  /*
91  * Order item ID.
92  */
93  const ORDER_ITEM_ID = 'order_item_id';
94  /*
95  * Additional data.
96  */
97  const ADDITIONAL_DATA = 'additional_data';
98  /*
99  * Description.
100  */
101  const DESCRIPTION = 'description';
102  /*
103  * SKU.
104  */
105  const SKU = 'sku';
106  /*
107  * Name.
108  */
109  const NAME = 'name';
110  /*
111  * Discount tax compensation amount.
112  */
113  const DISCOUNT_TAX_COMPENSATION_AMOUNT = 'discount_tax_compensation_amount';
114  /*
115  * Base discount tax compensation amount.
116  */
117  const BASE_DISCOUNT_TAX_COMPENSATION_AMOUNT = 'base_discount_tax_compensation_amount';
118 
122  const INVOICE = 'invoice';
123 
129  public function getAdditionalData();
130 
136  public function getBaseCost();
137 
143  public function getBaseDiscountAmount();
144 
150  public function getBaseDiscountTaxCompensationAmount();
151 
157  public function getBasePrice();
158 
164  public function getBasePriceInclTax();
165 
171  public function getBaseRowTotal();
172 
178  public function getBaseRowTotalInclTax();
179 
185  public function getBaseTaxAmount();
186 
192  public function getDescription();
193 
199  public function getDiscountAmount();
200 
206  public function getEntityId();
207 
214  public function setEntityId($entityId);
215 
221  public function getDiscountTaxCompensationAmount();
222 
228  public function getName();
229 
235  public function getParentId();
236 
242  public function getPrice();
243 
249  public function getPriceInclTax();
250 
256  public function getProductId();
257 
263  public function getRowTotal();
264 
270  public function getRowTotalInclTax();
271 
277  public function getSku();
278 
284  public function getTaxAmount();
285 
292  public function setParentId($id);
293 
300  public function setBasePrice($price);
301 
308  public function setTaxAmount($amount);
309 
316  public function setBaseRowTotal($amount);
317 
324  public function setDiscountAmount($amount);
325 
332  public function setRowTotal($amount);
333 
340  public function setBaseDiscountAmount($amount);
341 
348  public function setPriceInclTax($amount);
349 
356  public function setBaseTaxAmount($amount);
357 
364  public function setBasePriceInclTax($amount);
365 
372  public function setBaseCost($baseCost);
373 
380  public function setPrice($price);
381 
388  public function setBaseRowTotalInclTax($amount);
389 
396  public function setRowTotalInclTax($amount);
397 
404  public function setProductId($id);
405 
412  public function setAdditionalData($additionalData);
413 
420  public function setDescription($description);
421 
428  public function setSku($sku);
429 
436  public function setName($name);
437 
444  public function setDiscountTaxCompensationAmount($amount);
445 
453 
459  public function getExtensionAttributes();
460 
467  public function setExtensionAttributes(\Magento\Sales\Api\Data\InvoiceItemExtensionInterface $extensionAttributes);
468 }
$id
Definition: fieldset.phtml:14
$price
$amount
Definition: order.php:14
setExtensionAttributes(\Magento\Sales\Api\Data\InvoiceItemExtensionInterface $extensionAttributes)
$extensionAttributes
Definition: payment.php:22
if(!isset($_GET['name'])) $name
Definition: log.php:14