Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
OrderItemInterface.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Sales\Api\Data;
7 
18 {
22  /*
23  * Item ID.
24  */
25  const ITEM_ID = 'item_id';
26  /*
27  * Order ID.
28  */
29  const ORDER_ID = 'order_id';
30  /*
31  * Parent item ID.
32  */
33  const PARENT_ITEM_ID = 'parent_item_id';
34  /*
35  * Quote item ID.
36  */
37  const QUOTE_ITEM_ID = 'quote_item_id';
38  /*
39  * Store ID.
40  */
41  const STORE_ID = 'store_id';
42  /*
43  * Created-at timestamp.
44  */
45  const CREATED_AT = 'created_at';
46  /*
47  * Updated-at timestamp.
48  */
49  const UPDATED_AT = 'updated_at';
50  /*
51  * Product ID.
52  */
53  const PRODUCT_ID = 'product_id';
54  /*
55  * Product type.
56  */
57  const PRODUCT_TYPE = 'product_type';
58  /*
59  * Weight.
60  */
61  const WEIGHT = 'weight';
62  /*
63  * Is-virtual flag.
64  */
65  const IS_VIRTUAL = 'is_virtual';
66  /*
67  * SKU.
68  */
69  const SKU = 'sku';
70  /*
71  * Name.
72  */
73  const NAME = 'name';
74  /*
75  * Description.
76  */
77  const DESCRIPTION = 'description';
78  /*
79  * Applied rule IDs.
80  */
81  const APPLIED_RULE_IDS = 'applied_rule_ids';
82  /*
83  * Additional data.
84  */
85  const ADDITIONAL_DATA = 'additional_data';
86  /*
87  * Is-quantity-decimal flag.
88  */
89  const IS_QTY_DECIMAL = 'is_qty_decimal';
90  /*
91  * No-discount flag.
92  */
93  const NO_DISCOUNT = 'no_discount';
94  /*
95  * Quantity backordered.
96  */
97  const QTY_BACKORDERED = 'qty_backordered';
98  /*
99  * Quantity canceled.
100  */
101  const QTY_CANCELED = 'qty_canceled';
102  /*
103  * Quantity invoiced.
104  */
105  const QTY_INVOICED = 'qty_invoiced';
106  /*
107  * Quantity ordered.
108  */
109  const QTY_ORDERED = 'qty_ordered';
110  /*
111  * Quantity refunded.
112  */
113  const QTY_REFUNDED = 'qty_refunded';
114  /*
115  * Quantity shipped.
116  */
117  const QTY_SHIPPED = 'qty_shipped';
118  /*
119  * Base cost.
120  */
121  const BASE_COST = 'base_cost';
122  /*
123  * Price.
124  */
125  const PRICE = 'price';
126  /*
127  * Base price.
128  */
129  const BASE_PRICE = 'base_price';
130  /*
131  * Original price.
132  */
133  const ORIGINAL_PRICE = 'original_price';
134  /*
135  * Base original price.
136  */
137  const BASE_ORIGINAL_PRICE = 'base_original_price';
138  /*
139  * Tax percent.
140  */
141  const TAX_PERCENT = 'tax_percent';
142  /*
143  * Tax amount.
144  */
145  const TAX_AMOUNT = 'tax_amount';
146  /*
147  * Base tax amount.
148  */
149  const BASE_TAX_AMOUNT = 'base_tax_amount';
150  /*
151  * Tax invoiced.
152  */
153  const TAX_INVOICED = 'tax_invoiced';
154  /*
155  * Base tax invoiced.
156  */
157  const BASE_TAX_INVOICED = 'base_tax_invoiced';
158  /*
159  * Discount percent.
160  */
161  const DISCOUNT_PERCENT = 'discount_percent';
162  /*
163  * Discount amount.
164  */
165  const DISCOUNT_AMOUNT = 'discount_amount';
166  /*
167  * Base discount amount.
168  */
169  const BASE_DISCOUNT_AMOUNT = 'base_discount_amount';
170  /*
171  * Discount invoiced.
172  */
173  const DISCOUNT_INVOICED = 'discount_invoiced';
174  /*
175  * Base discount invoiced.
176  */
177  const BASE_DISCOUNT_INVOICED = 'base_discount_invoiced';
178  /*
179  * Amount refunded.
180  */
181  const AMOUNT_REFUNDED = 'amount_refunded';
182  /*
183  * Base amount refunded.
184  */
185  const BASE_AMOUNT_REFUNDED = 'base_amount_refunded';
186  /*
187  * Row total.
188  */
189  const ROW_TOTAL = 'row_total';
190  /*
191  * Base row total.
192  */
193  const BASE_ROW_TOTAL = 'base_row_total';
194  /*
195  * Row invoiced.
196  */
197  const ROW_INVOICED = 'row_invoiced';
198  /*
199  * Base row invoiced.
200  */
201  const BASE_ROW_INVOICED = 'base_row_invoiced';
202  /*
203  * Row weight.
204  */
205  const ROW_WEIGHT = 'row_weight';
206  /*
207  * Base tax before discount.
208  */
209  const BASE_TAX_BEFORE_DISCOUNT = 'base_tax_before_discount';
210  /*
211  * Tax before discount.
212  */
213  const TAX_BEFORE_DISCOUNT = 'tax_before_discount';
214  /*
215  * External order item ID.
216  */
217  const EXT_ORDER_ITEM_ID = 'ext_order_item_id';
218  /*
219  * Locked DO invoice.
220  */
221  const LOCKED_DO_INVOICE = 'locked_do_invoice';
222  /*
223  * Locked DO ship.
224  */
225  const LOCKED_DO_SHIP = 'locked_do_ship';
226  /*
227  * Price including tax.
228  */
229  const PRICE_INCL_TAX = 'price_incl_tax';
230  /*
231  * Base price including tax.
232  */
233  const BASE_PRICE_INCL_TAX = 'base_price_incl_tax';
234  /*
235  * Row total including tax.
236  */
237  const ROW_TOTAL_INCL_TAX = 'row_total_incl_tax';
238  /*
239  * Base row total including tax.
240  */
241  const BASE_ROW_TOTAL_INCL_TAX = 'base_row_total_incl_tax';
242  /*
243  * Discount tax compensation amount.
244  */
245  const DISCOUNT_TAX_COMPENSATION_AMOUNT = 'discount_tax_compensation_amount';
246  /*
247  * Base discount tax compensation amount.
248  */
249  const BASE_DISCOUNT_TAX_COMPENSATION_AMOUNT = 'base_discount_tax_compensation_amount';
250  /*
251  * Discount tax compensation invoiced.
252  */
253  const DISCOUNT_TAX_COMPENSATION_INVOICED = 'discount_tax_compensation_invoiced';
254  /*
255  * Base discount tax compensation invoiced.
256  */
257  const BASE_DISCOUNT_TAX_COMPENSATION_INVOICED = 'base_discount_tax_compensation_invoiced';
258  /*
259  * Discount tax compensation refunded.
260  */
261  const DISCOUNT_TAX_COMPENSATION_REFUNDED = 'discount_tax_compensation_refunded';
262  /*
263  * Base discount tax compensation refunded.
264  */
265  const BASE_DISCOUNT_TAX_COMPENSATION_REFUNDED = 'base_discount_tax_compensation_refunded';
266  /*
267  * Tax canceled flag
268  */
269  const TAX_CANCELED = 'tax_canceled';
270  /*
271  * Discount-tax-compensation-canceled flag.
272  */
273  const DISCOUNT_TAX_COMPENSATION_CANCELED = 'discount_tax_compensation_canceled';
274  /*
275  * Tax refunded.
276  */
277  const TAX_REFUNDED = 'tax_refunded';
278  /*
279  * Base tax refunded.
280  */
281  const BASE_TAX_REFUNDED = 'base_tax_refunded';
282  /*
283  * Discount refunded.
284  */
285  const DISCOUNT_REFUNDED = 'discount_refunded';
286  /*
287  * Base discount refunded.
288  */
289  const BASE_DISCOUNT_REFUNDED = 'base_discount_refunded';
290  /*
291  * GW ID.
292  */
293  const GW_ID = 'gw_id';
294  /*
295  * GW base price.
296  */
297  const GW_BASE_PRICE = 'gw_base_price';
298  /*
299  * GW price.
300  */
301  const GW_PRICE = 'gw_price';
302  /*
303  * GW base tax amount.
304  */
305  const GW_BASE_TAX_AMOUNT = 'gw_base_tax_amount';
306  /*
307  * GW tax amount.
308  */
309  const GW_TAX_AMOUNT = 'gw_tax_amount';
310  /*
311  * GW base price invoiced.
312  */
313  const GW_BASE_PRICE_INVOICED = 'gw_base_price_invoiced';
314  /*
315  * GW price invoiced.
316  */
317  const GW_PRICE_INVOICED = 'gw_price_invoiced';
318  /*
319  * GW base tax amount invoiced.
320  */
321  const GW_BASE_TAX_AMOUNT_INVOICED = 'gw_base_tax_amount_invoiced';
322  /*
323  * GW tax amount invoiced.
324  */
325  const GW_TAX_AMOUNT_INVOICED = 'gw_tax_amount_invoiced';
326  /*
327  * GW base price refunded.
328  */
329  const GW_BASE_PRICE_REFUNDED = 'gw_base_price_refunded';
330  /*
331  * GW price refunded.
332  */
333  const GW_PRICE_REFUNDED = 'gw_price_refunded';
334  /*
335  * GW base tax amount refunded.
336  */
337  const GW_BASE_TAX_AMOUNT_REFUNDED = 'gw_base_tax_amount_refunded';
338  /*
339  * GW tax amount refunded.
340  */
341  const GW_TAX_AMOUNT_REFUNDED = 'gw_tax_amount_refunded';
342  /*
343  * Free shipping.
344  */
345  const FREE_SHIPPING = 'free_shipping';
346  /*
347  * Quantity returned.
348  */
349  const QTY_RETURNED = 'qty_returned';
350  /*
351  * Event ID.
352  */
353  const EVENT_ID = 'event_id';
354  /*
355  * Base WEEE tax applied amount.
356  */
357  const BASE_WEEE_TAX_APPLIED_AMOUNT = 'base_weee_tax_applied_amount';
358  /*
359  * Base WEEE tax applied row amount.
360  */
361  const BASE_WEEE_TAX_APPLIED_ROW_AMNT = 'base_weee_tax_applied_row_amnt';
362  /*
363  * WEEE tax applied amount.
364  */
365  const WEEE_TAX_APPLIED_AMOUNT = 'weee_tax_applied_amount';
366  /*
367  * WEEE tax applied row amount.
368  */
369  const WEEE_TAX_APPLIED_ROW_AMOUNT = 'weee_tax_applied_row_amount';
370  /*
371  * WEEE tax applied.
372  */
373  const WEEE_TAX_APPLIED = 'weee_tax_applied';
374  /*
375  * WEEE tax disposition.
376  */
377  const WEEE_TAX_DISPOSITION = 'weee_tax_disposition';
378  /*
379  * WEEE tax row disposition.
380  */
381  const WEEE_TAX_ROW_DISPOSITION = 'weee_tax_row_disposition';
382  /*
383  * Base WEEE tax disposition.
384  */
385  const BASE_WEEE_TAX_DISPOSITION = 'base_weee_tax_disposition';
386  /*
387  * Base WEEE tax row disposition.
388  */
389  const BASE_WEEE_TAX_ROW_DISPOSITION = 'base_weee_tax_row_disposition';
390 
394  const PARENT_ITEM = 'parent_item';
395 
399  const KEY_PRODUCT_OPTION = 'product_option';
400 
406  public function getAdditionalData();
407 
413  public function getAmountRefunded();
414 
420  public function getAppliedRuleIds();
421 
427  public function getBaseAmountRefunded();
428 
434  public function getBaseCost();
435 
441  public function getBaseDiscountAmount();
442 
448  public function getBaseDiscountInvoiced();
449 
455  public function getBaseDiscountRefunded();
456 
462  public function getBaseDiscountTaxCompensationAmount();
463 
469  public function getBaseDiscountTaxCompensationInvoiced();
470 
476  public function getBaseDiscountTaxCompensationRefunded();
477 
483  public function getBaseOriginalPrice();
484 
490  public function getBasePrice();
491 
497  public function getBasePriceInclTax();
498 
504  public function getBaseRowInvoiced();
505 
511  public function getBaseRowTotal();
512 
518  public function getBaseRowTotalInclTax();
519 
525  public function getBaseTaxAmount();
526 
532  public function getBaseTaxBeforeDiscount();
533 
539  public function getBaseTaxInvoiced();
540 
546  public function getBaseTaxRefunded();
547 
553  public function getBaseWeeeTaxAppliedAmount();
554 
560  public function getBaseWeeeTaxAppliedRowAmnt();
561 
567  public function getBaseWeeeTaxDisposition();
568 
574  public function getBaseWeeeTaxRowDisposition();
575 
581  public function getCreatedAt();
582 
589  public function setCreatedAt($createdAt);
590 
596  public function getDescription();
597 
603  public function getDiscountAmount();
604 
610  public function getDiscountInvoiced();
611 
617  public function getDiscountPercent();
618 
624  public function getDiscountRefunded();
625 
631  public function getEventId();
632 
638  public function getExtOrderItemId();
639 
645  public function getFreeShipping();
646 
652  public function getGwBasePrice();
653 
659  public function getGwBasePriceInvoiced();
660 
666  public function getGwBasePriceRefunded();
667 
673  public function getGwBaseTaxAmount();
674 
680  public function getGwBaseTaxAmountInvoiced();
681 
687  public function getGwBaseTaxAmountRefunded();
688 
694  public function getGwId();
695 
701  public function getGwPrice();
702 
708  public function getGwPriceInvoiced();
709 
715  public function getGwPriceRefunded();
716 
722  public function getGwTaxAmount();
723 
729  public function getGwTaxAmountInvoiced();
730 
736  public function getGwTaxAmountRefunded();
737 
743  public function getDiscountTaxCompensationAmount();
744 
750  public function getDiscountTaxCompensationCanceled();
751 
757  public function getDiscountTaxCompensationInvoiced();
758 
764  public function getDiscountTaxCompensationRefunded();
765 
771  public function getIsQtyDecimal();
772 
778  public function getIsVirtual();
779 
785  public function getItemId();
786 
792  public function getLockedDoInvoice();
793 
799  public function getLockedDoShip();
800 
806  public function getName();
807 
813  public function getNoDiscount();
814 
820  public function getOrderId();
821 
827  public function getOriginalPrice();
828 
834  public function getParentItemId();
835 
841  public function getPrice();
842 
848  public function getPriceInclTax();
849 
855  public function getProductId();
856 
862  public function getProductType();
863 
869  public function getQtyBackordered();
870 
876  public function getQtyCanceled();
877 
883  public function getQtyInvoiced();
884 
890  public function getQtyOrdered();
891 
897  public function getQtyRefunded();
898 
904  public function getQtyReturned();
905 
911  public function getQtyShipped();
912 
918  public function getQuoteItemId();
919 
925  public function getRowInvoiced();
926 
932  public function getRowTotal();
933 
939  public function getRowTotalInclTax();
940 
946  public function getRowWeight();
947 
953  public function getSku();
954 
960  public function getStoreId();
961 
967  public function getTaxAmount();
968 
974  public function getTaxBeforeDiscount();
975 
981  public function getTaxCanceled();
982 
988  public function getTaxInvoiced();
989 
995  public function getTaxPercent();
996 
1002  public function getTaxRefunded();
1003 
1009  public function getUpdatedAt();
1010 
1016  public function getWeeeTaxApplied();
1017 
1023  public function getWeeeTaxAppliedAmount();
1024 
1030  public function getWeeeTaxAppliedRowAmount();
1031 
1037  public function getWeeeTaxDisposition();
1038 
1044  public function getWeeeTaxRowDisposition();
1045 
1051  public function getWeight();
1052 
1058  public function getParentItem();
1059 
1066  public function setParentItem($parentItem);
1067 
1074  public function setUpdatedAt($timestamp);
1075 
1082  public function setItemId($id);
1083 
1090  public function setOrderId($id);
1091 
1098  public function setParentItemId($id);
1099 
1106  public function setQuoteItemId($id);
1107 
1114  public function setStoreId($id);
1115 
1122  public function setProductId($id);
1123 
1130  public function setProductType($productType);
1131 
1138  public function setWeight($weight);
1139 
1146  public function setIsVirtual($isVirtual);
1147 
1154  public function setSku($sku);
1155 
1162  public function setName($name);
1163 
1170  public function setDescription($description);
1171 
1178  public function setAppliedRuleIds($appliedRuleIds);
1179 
1186  public function setAdditionalData($additionalData);
1187 
1194  public function setIsQtyDecimal($isQtyDecimal);
1195 
1202  public function setNoDiscount($noDiscount);
1203 
1210  public function setQtyBackordered($qtyBackordered);
1211 
1218  public function setQtyCanceled($qtyCanceled);
1219 
1226  public function setQtyInvoiced($qtyInvoiced);
1227 
1234  public function setQtyOrdered($qtyOrdered);
1235 
1242  public function setQtyRefunded($qtyRefunded);
1243 
1250  public function setQtyShipped($qtyShipped);
1251 
1258  public function setBaseCost($baseCost);
1259 
1266  public function setPrice($price);
1267 
1274  public function setBasePrice($price);
1275 
1282  public function setOriginalPrice($price);
1283 
1290  public function setBaseOriginalPrice($price);
1291 
1298  public function setTaxPercent($taxPercent);
1299 
1306  public function setTaxAmount($amount);
1307 
1314  public function setBaseTaxAmount($amount);
1315 
1322  public function setTaxInvoiced($taxInvoiced);
1323 
1330  public function setBaseTaxInvoiced($baseTaxInvoiced);
1331 
1338  public function setDiscountPercent($discountPercent);
1339 
1346  public function setDiscountAmount($amount);
1347 
1354  public function setBaseDiscountAmount($amount);
1355 
1362  public function setDiscountInvoiced($discountInvoiced);
1363 
1370  public function setBaseDiscountInvoiced($baseDiscountInvoiced);
1371 
1378  public function setAmountRefunded($amountRefunded);
1379 
1386  public function setBaseAmountRefunded($baseAmountRefunded);
1387 
1394  public function setRowTotal($amount);
1395 
1402  public function setBaseRowTotal($amount);
1403 
1410  public function setRowInvoiced($rowInvoiced);
1411 
1418  public function setBaseRowInvoiced($baseRowInvoiced);
1419 
1426  public function setRowWeight($rowWeight);
1427 
1434  public function setBaseTaxBeforeDiscount($baseTaxBeforeDiscount);
1435 
1442  public function setTaxBeforeDiscount($taxBeforeDiscount);
1443 
1450  public function setExtOrderItemId($id);
1451 
1458  public function setLockedDoInvoice($flag);
1459 
1466  public function setLockedDoShip($flag);
1467 
1474  public function setPriceInclTax($amount);
1475 
1482  public function setBasePriceInclTax($amount);
1483 
1490  public function setRowTotalInclTax($amount);
1491 
1498  public function setBaseRowTotalInclTax($amount);
1499 
1506  public function setDiscountTaxCompensationAmount($amount);
1507 
1515 
1522  public function setDiscountTaxCompensationInvoiced($discountTaxCompensationInvoiced);
1523 
1530  public function setBaseDiscountTaxCompensationInvoiced($baseDiscountTaxCompensationInvoiced);
1531 
1538  public function setDiscountTaxCompensationRefunded($discountTaxCompensationRefunded);
1539 
1546  public function setBaseDiscountTaxCompensationRefunded($baseDiscountTaxCompensationRefunded);
1547 
1554  public function setTaxCanceled($taxCanceled);
1555 
1562  public function setDiscountTaxCompensationCanceled($discountTaxCompensationCanceled);
1563 
1570  public function setTaxRefunded($taxRefunded);
1571 
1578  public function setBaseTaxRefunded($baseTaxRefunded);
1579 
1586  public function setDiscountRefunded($discountRefunded);
1587 
1594  public function setBaseDiscountRefunded($baseDiscountRefunded);
1595 
1602  public function setGwId($id);
1603 
1610  public function setGwBasePrice($price);
1611 
1618  public function setGwPrice($price);
1619 
1626  public function setGwBaseTaxAmount($amount);
1627 
1634  public function setGwTaxAmount($amount);
1635 
1642  public function setGwBasePriceInvoiced($gwBasePriceInvoiced);
1643 
1650  public function setGwPriceInvoiced($gwPriceInvoiced);
1651 
1658  public function setGwBaseTaxAmountInvoiced($gwBaseTaxAmountInvoiced);
1659 
1666  public function setGwTaxAmountInvoiced($gwTaxAmountInvoiced);
1667 
1674  public function setGwBasePriceRefunded($gwBasePriceRefunded);
1675 
1682  public function setGwPriceRefunded($gwPriceRefunded);
1683 
1690  public function setGwBaseTaxAmountRefunded($gwBaseTaxAmountRefunded);
1691 
1698  public function setGwTaxAmountRefunded($gwTaxAmountRefunded);
1699 
1706  public function setFreeShipping($freeShipping);
1707 
1714  public function setQtyReturned($qtyReturned);
1715 
1722  public function setEventId($id);
1723 
1730  public function setBaseWeeeTaxAppliedAmount($amount);
1731 
1738  public function setBaseWeeeTaxAppliedRowAmnt($amnt);
1739 
1746  public function setWeeeTaxAppliedAmount($amount);
1747 
1754  public function setWeeeTaxAppliedRowAmount($amount);
1755 
1762  public function setWeeeTaxApplied($weeeTaxApplied);
1763 
1770  public function setWeeeTaxDisposition($weeeTaxDisposition);
1771 
1778  public function setWeeeTaxRowDisposition($weeeTaxRowDisposition);
1779 
1786  public function setBaseWeeeTaxDisposition($baseWeeeTaxDisposition);
1787 
1794  public function setBaseWeeeTaxRowDisposition($baseWeeeTaxRowDisposition);
1795 
1801  public function getProductOption();
1802 
1809  public function setProductOption(\Magento\Catalog\Api\Data\ProductOptionInterface $productOption);
1810 
1816  public function getExtensionAttributes();
1817 
1824  public function setExtensionAttributes(\Magento\Sales\Api\Data\OrderItemExtensionInterface $extensionAttributes);
1825 }
setWeeeTaxRowDisposition($weeeTaxRowDisposition)
setGwBasePriceRefunded($gwBasePriceRefunded)
setGwTaxAmountRefunded($gwTaxAmountRefunded)
setBaseDiscountTaxCompensationRefunded($baseDiscountTaxCompensationRefunded)
$id
Definition: fieldset.phtml:14
setBaseDiscountInvoiced($baseDiscountInvoiced)
$price
setBaseWeeeTaxDisposition($baseWeeeTaxDisposition)
setExtensionAttributes(\Magento\Sales\Api\Data\OrderItemExtensionInterface $extensionAttributes)
$amount
Definition: order.php:14
setBaseDiscountTaxCompensationInvoiced($baseDiscountTaxCompensationInvoiced)
setDiscountTaxCompensationCanceled($discountTaxCompensationCanceled)
setWeeeTaxDisposition($weeeTaxDisposition)
setBaseTaxBeforeDiscount($baseTaxBeforeDiscount)
setGwBaseTaxAmountInvoiced($gwBaseTaxAmountInvoiced)
setDiscountTaxCompensationInvoiced($discountTaxCompensationInvoiced)
setBaseDiscountRefunded($baseDiscountRefunded)
$extensionAttributes
Definition: payment.php:22
setGwTaxAmountInvoiced($gwTaxAmountInvoiced)
setBaseAmountRefunded($baseAmountRefunded)
setProductOption(\Magento\Catalog\Api\Data\ProductOptionInterface $productOption)
setGwBasePriceInvoiced($gwBasePriceInvoiced)
setGwBaseTaxAmountRefunded($gwBaseTaxAmountRefunded)
setBaseWeeeTaxRowDisposition($baseWeeeTaxRowDisposition)
setDiscountTaxCompensationRefunded($discountTaxCompensationRefunded)
if(!isset($_GET['name'])) $name
Definition: log.php:14