Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Static Public Member Functions | |
static | getStatusName ($statusId) |
static | getStatuses () |
Data Fields | |
const | STATUS_PENDING = 1 |
const | STATUS_SHIPPED = 2 |
const | STATUS_INVOICED = 9 |
const | STATUS_BACKORDERED = 3 |
const | STATUS_CANCELED = 5 |
const | STATUS_PARTIAL = 6 |
const | STATUS_MIXED = 7 |
const | STATUS_REFUNDED = 8 |
const | STATUS_RETURNED = 4 |
![]() | |
const | CUSTOM_ATTRIBUTES = 'custom_attributes' |
![]() | |
const | EXTENSION_ATTRIBUTES_KEY = 'extension_attributes' |
![]() | |
const | ITEM_ID = 'item_id' |
const | ORDER_ID = 'order_id' |
const | PARENT_ITEM_ID = 'parent_item_id' |
const | QUOTE_ITEM_ID = 'quote_item_id' |
const | STORE_ID = 'store_id' |
const | CREATED_AT = 'created_at' |
const | UPDATED_AT = 'updated_at' |
const | PRODUCT_ID = 'product_id' |
const | PRODUCT_TYPE = 'product_type' |
const | WEIGHT = 'weight' |
const | IS_VIRTUAL = 'is_virtual' |
const | SKU = 'sku' |
const | NAME = 'name' |
const | DESCRIPTION = 'description' |
const | APPLIED_RULE_IDS = 'applied_rule_ids' |
const | ADDITIONAL_DATA = 'additional_data' |
const | IS_QTY_DECIMAL = 'is_qty_decimal' |
const | NO_DISCOUNT = 'no_discount' |
const | QTY_BACKORDERED = 'qty_backordered' |
const | QTY_CANCELED = 'qty_canceled' |
const | QTY_INVOICED = 'qty_invoiced' |
const | QTY_ORDERED = 'qty_ordered' |
const | QTY_REFUNDED = 'qty_refunded' |
const | QTY_SHIPPED = 'qty_shipped' |
const | BASE_COST = 'base_cost' |
const | PRICE = 'price' |
const | BASE_PRICE = 'base_price' |
const | ORIGINAL_PRICE = 'original_price' |
const | BASE_ORIGINAL_PRICE = 'base_original_price' |
const | TAX_PERCENT = 'tax_percent' |
const | TAX_AMOUNT = 'tax_amount' |
const | BASE_TAX_AMOUNT = 'base_tax_amount' |
const | TAX_INVOICED = 'tax_invoiced' |
const | BASE_TAX_INVOICED = 'base_tax_invoiced' |
const | DISCOUNT_PERCENT = 'discount_percent' |
const | DISCOUNT_AMOUNT = 'discount_amount' |
const | BASE_DISCOUNT_AMOUNT = 'base_discount_amount' |
const | DISCOUNT_INVOICED = 'discount_invoiced' |
const | BASE_DISCOUNT_INVOICED = 'base_discount_invoiced' |
const | AMOUNT_REFUNDED = 'amount_refunded' |
const | BASE_AMOUNT_REFUNDED = 'base_amount_refunded' |
const | ROW_TOTAL = 'row_total' |
const | BASE_ROW_TOTAL = 'base_row_total' |
const | ROW_INVOICED = 'row_invoiced' |
const | BASE_ROW_INVOICED = 'base_row_invoiced' |
const | ROW_WEIGHT = 'row_weight' |
const | BASE_TAX_BEFORE_DISCOUNT = 'base_tax_before_discount' |
const | TAX_BEFORE_DISCOUNT = 'tax_before_discount' |
const | EXT_ORDER_ITEM_ID = 'ext_order_item_id' |
const | LOCKED_DO_INVOICE = 'locked_do_invoice' |
const | LOCKED_DO_SHIP = 'locked_do_ship' |
const | PRICE_INCL_TAX = 'price_incl_tax' |
const | BASE_PRICE_INCL_TAX = 'base_price_incl_tax' |
const | ROW_TOTAL_INCL_TAX = 'row_total_incl_tax' |
const | BASE_ROW_TOTAL_INCL_TAX = 'base_row_total_incl_tax' |
const | DISCOUNT_TAX_COMPENSATION_AMOUNT = 'discount_tax_compensation_amount' |
const | BASE_DISCOUNT_TAX_COMPENSATION_AMOUNT = 'base_discount_tax_compensation_amount' |
const | DISCOUNT_TAX_COMPENSATION_INVOICED = 'discount_tax_compensation_invoiced' |
const | BASE_DISCOUNT_TAX_COMPENSATION_INVOICED = 'base_discount_tax_compensation_invoiced' |
const | DISCOUNT_TAX_COMPENSATION_REFUNDED = 'discount_tax_compensation_refunded' |
const | BASE_DISCOUNT_TAX_COMPENSATION_REFUNDED = 'base_discount_tax_compensation_refunded' |
const | TAX_CANCELED = 'tax_canceled' |
const | DISCOUNT_TAX_COMPENSATION_CANCELED = 'discount_tax_compensation_canceled' |
const | TAX_REFUNDED = 'tax_refunded' |
const | BASE_TAX_REFUNDED = 'base_tax_refunded' |
const | DISCOUNT_REFUNDED = 'discount_refunded' |
const | BASE_DISCOUNT_REFUNDED = 'base_discount_refunded' |
const | GW_ID = 'gw_id' |
const | GW_BASE_PRICE = 'gw_base_price' |
const | GW_PRICE = 'gw_price' |
const | GW_BASE_TAX_AMOUNT = 'gw_base_tax_amount' |
const | GW_TAX_AMOUNT = 'gw_tax_amount' |
const | GW_BASE_PRICE_INVOICED = 'gw_base_price_invoiced' |
const | GW_PRICE_INVOICED = 'gw_price_invoiced' |
const | GW_BASE_TAX_AMOUNT_INVOICED = 'gw_base_tax_amount_invoiced' |
const | GW_TAX_AMOUNT_INVOICED = 'gw_tax_amount_invoiced' |
const | GW_BASE_PRICE_REFUNDED = 'gw_base_price_refunded' |
const | GW_PRICE_REFUNDED = 'gw_price_refunded' |
const | GW_BASE_TAX_AMOUNT_REFUNDED = 'gw_base_tax_amount_refunded' |
const | GW_TAX_AMOUNT_REFUNDED = 'gw_tax_amount_refunded' |
const | FREE_SHIPPING = 'free_shipping' |
const | QTY_RETURNED = 'qty_returned' |
const | EVENT_ID = 'event_id' |
const | BASE_WEEE_TAX_APPLIED_AMOUNT = 'base_weee_tax_applied_amount' |
const | BASE_WEEE_TAX_APPLIED_ROW_AMNT = 'base_weee_tax_applied_row_amnt' |
const | WEEE_TAX_APPLIED_AMOUNT = 'weee_tax_applied_amount' |
const | WEEE_TAX_APPLIED_ROW_AMOUNT = 'weee_tax_applied_row_amount' |
const | WEEE_TAX_APPLIED = 'weee_tax_applied' |
const | WEEE_TAX_DISPOSITION = 'weee_tax_disposition' |
const | WEEE_TAX_ROW_DISPOSITION = 'weee_tax_row_disposition' |
const | BASE_WEEE_TAX_DISPOSITION = 'base_weee_tax_disposition' |
const | BASE_WEEE_TAX_ROW_DISPOSITION = 'base_weee_tax_row_disposition' |
const | PARENT_ITEM = 'parent_item' |
const | KEY_PRODUCT_OPTION = 'product_option' |
Protected Member Functions | |
_construct () | |
_getQtyChildrenBackordered () | |
![]() | |
filterCustomAttributes ($data) | |
initializeCustomAttributes () | |
convertCustomAttributeValues (array &$customAttributes) | |
getCustomAttributesCodes () | |
_setExtensionAttributes (\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes) | |
_getExtensionAttributes () | |
![]() | |
_construct () | |
_init ($resourceModel) | |
_setResourceModel ($resourceName, $collectionName=null) | |
_getResource () | |
_getEventData () | |
_beforeLoad ($modelId, $field=null) | |
_afterLoad () | |
_hasModelChanged () | |
_getValidatorBeforeSave () | |
_createValidatorBeforeSave () | |
_getValidationRulesBeforeSave () | |
_clearReferences () | |
_clearData () | |
![]() | |
_getData ($key) | |
_underscore ($name) | |
Protected Attributes | |
$_eventPrefix = 'sales_order_item' | |
$_eventObject = 'item' | |
$_order = null | |
$_children = [] | |
$_orderFactory | |
$productRepository | |
$_storeManager | |
![]() | |
$extensionAttributesFactory | |
$extensionAttributes | |
$customAttributeFactory | |
$customAttributesCodes = null | |
$customAttributesChanged = false | |
![]() | |
$_eventPrefix = 'core_abstract' | |
$_eventObject = 'object' | |
$_idFieldName = 'id' | |
$_hasDataChanges = false | |
$_origData | |
$_isDeleted = false | |
$_resource | |
$_resourceCollection | |
$_resourceName | |
$_collectionName | |
$_cacheTag = false | |
$_dataSaveAllowed = true | |
$_isObjectNew = null | |
$_validatorBeforeSave = null | |
$_eventManager | |
$_cacheManager | |
$_registry | |
$_logger | |
$_appState | |
$_actionValidator | |
$storedData = [] | |
![]() | |
$_data = [] | |
Static Protected Attributes | |
static | $_statuses = null |
![]() | |
static | $_underscoreCache = [] |
@api @method int getGiftMessageId() @method \Magento\Sales\Model\Order\Item setGiftMessageId(int $value) @method int getGiftMessageAvailable() @method \Magento\Sales\Model\Order\Item setGiftMessageAvailable(int $value) @SuppressWarnings(PHPMD.ExcessivePublicCount) @SuppressWarnings(PHPMD.ExcessiveClassComplexity) @SuppressWarnings(PHPMD.CouplingBetweenObjects)
__construct | ( | \Magento\Framework\Model\Context | $context, |
\Magento\Framework\Registry | $registry, | ||
\Magento\Framework\Api\ExtensionAttributesFactory | $extensionFactory, | ||
AttributeValueFactory | $customAttributeFactory, | ||
\Magento\Sales\Model\OrderFactory | $orderFactory, | ||
\Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
\Magento\Catalog\Api\ProductRepositoryInterface | $productRepository, | ||
\Magento\Framework\Model\ResourceModel\AbstractResource | $resource = null , |
||
\Magento\Framework\Data\Collection\AbstractDb | $resourceCollection = null , |
||
array | $data = [] , |
||
\Magento\Framework\Serialize\Serializer\Json | $serializer = null |
||
) |
Initialize dependencies.
\Magento\Framework\Model\Context | $context | |
\Magento\Framework\Registry | $registry | |
\Magento\Framework\Api\ExtensionAttributesFactory | $extensionFactory | |
AttributeValueFactory | $customAttributeFactory | |
\Magento\Sales\Model\OrderFactory | $orderFactory | |
\Magento\Store\Model\StoreManagerInterface | $storeManager | |
\Magento\Catalog\Api\ProductRepositoryInterface | $productRepository | |
\Magento\Framework\Model\ResourceModel\AbstractResource | $resource | |
\Magento\Framework\Data\Collection\AbstractDb | $resourceCollection | |
array | $data | |
\Magento\Framework\Serialize\Serializer\Json | null | $serializer | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 119 of file Item.php.
|
protected |
addChildItem | ( | $item | ) |
cancel | ( | ) |
Cancel order item
Definition at line 405 of file Item.php.
getAdditionalData | ( | ) |
Return additional_data
Implements OrderItemInterface.
Definition at line 710 of file Item.php.
getAmountRefunded | ( | ) |
Return amount_refunded
Implements OrderItemInterface.
Definition at line 720 of file Item.php.
getAppliedRuleIds | ( | ) |
Return applied_rule_ids
Implements OrderItemInterface.
Definition at line 730 of file Item.php.
getBaseAmountRefunded | ( | ) |
Return base_amount_refunded
Implements OrderItemInterface.
Definition at line 740 of file Item.php.
getBaseCost | ( | ) |
Return base_cost
Implements OrderItemInterface.
Definition at line 750 of file Item.php.
getBaseDiscountAmount | ( | ) |
Return base_discount_amount
Implements OrderItemInterface.
Definition at line 760 of file Item.php.
getBaseDiscountInvoiced | ( | ) |
Return base_discount_invoiced
Implements OrderItemInterface.
Definition at line 770 of file Item.php.
getBaseDiscountRefunded | ( | ) |
Return base_discount_refunded
Implements OrderItemInterface.
Definition at line 780 of file Item.php.
getBaseDiscountTaxCompensationAmount | ( | ) |
Return base_discount_tax_compensation_amount
Implements OrderItemInterface.
Definition at line 790 of file Item.php.
getBaseDiscountTaxCompensationInvoiced | ( | ) |
Return base_discount_tax_compensation_invoiced
Implements OrderItemInterface.
Definition at line 800 of file Item.php.
getBaseDiscountTaxCompensationRefunded | ( | ) |
Return base_discount_tax_compensation_refunded
Implements OrderItemInterface.
Definition at line 810 of file Item.php.
getBaseOriginalPrice | ( | ) |
Return base_original_price
Implements OrderItemInterface.
Definition at line 820 of file Item.php.
getBasePrice | ( | ) |
Return base_price
Implements OrderItemInterface.
Definition at line 830 of file Item.php.
getBasePriceInclTax | ( | ) |
Return base_price_incl_tax
Implements OrderItemInterface.
Definition at line 840 of file Item.php.
getBaseRowInvoiced | ( | ) |
Return base_row_invoiced
Implements OrderItemInterface.
Definition at line 850 of file Item.php.
getBaseRowTotal | ( | ) |
Return base_row_total
Implements OrderItemInterface.
Definition at line 860 of file Item.php.
getBaseRowTotalInclTax | ( | ) |
Return base_row_total_incl_tax
Implements OrderItemInterface.
Definition at line 870 of file Item.php.
getBaseTaxAmount | ( | ) |
Return base_tax_amount
Implements OrderItemInterface.
Definition at line 880 of file Item.php.
getBaseTaxBeforeDiscount | ( | ) |
Return base_tax_before_discount
Implements OrderItemInterface.
Definition at line 890 of file Item.php.
getBaseTaxInvoiced | ( | ) |
Return base_tax_invoiced
Implements OrderItemInterface.
Definition at line 900 of file Item.php.
getBaseTaxRefunded | ( | ) |
Return base_tax_refunded
Implements OrderItemInterface.
Definition at line 910 of file Item.php.
getBaseWeeeTaxAppliedAmount | ( | ) |
Return base_weee_tax_applied_amount
Implements OrderItemInterface.
Definition at line 920 of file Item.php.
getBaseWeeeTaxAppliedRowAmnt | ( | ) |
Return base_weee_tax_applied_row_amnt
Implements OrderItemInterface.
Definition at line 930 of file Item.php.
getBaseWeeeTaxDisposition | ( | ) |
Return base_weee_tax_disposition
Implements OrderItemInterface.
Definition at line 940 of file Item.php.
getBaseWeeeTaxRowDisposition | ( | ) |
Return base_weee_tax_row_disposition
Implements OrderItemInterface.
Definition at line 950 of file Item.php.
getBuyRequest | ( | ) |
Return formatted buy request.
This object is holding request received from product view page with keys and options for configured product.
Definition at line 660 of file Item.php.
getChildrenItems | ( | ) |
getCreatedAt | ( | ) |
Return created_at
Implements OrderItemInterface.
Definition at line 960 of file Item.php.
getDescription | ( | ) |
Return description
Implements OrderItemInterface.
Definition at line 978 of file Item.php.
getDiscountAmount | ( | ) |
Return discount_amount
Implements OrderItemInterface.
Definition at line 988 of file Item.php.
getDiscountInvoiced | ( | ) |
Return discount_invoiced
Implements OrderItemInterface.
Definition at line 998 of file Item.php.
getDiscountPercent | ( | ) |
Return discount_percent
Implements OrderItemInterface.
Definition at line 1008 of file Item.php.
getDiscountRefunded | ( | ) |
Return discount_refunded
Implements OrderItemInterface.
Definition at line 1018 of file Item.php.
getDiscountTaxCompensationAmount | ( | ) |
Return discount_tax_compensation_amount
Implements OrderItemInterface.
Definition at line 1188 of file Item.php.
getDiscountTaxCompensationCanceled | ( | ) |
Return discount_tax_compensation_canceled
Implements OrderItemInterface.
Definition at line 1198 of file Item.php.
getDiscountTaxCompensationInvoiced | ( | ) |
Return discount_tax_compensation_invoiced
Implements OrderItemInterface.
Definition at line 1208 of file Item.php.
getDiscountTaxCompensationRefunded | ( | ) |
Return discount_tax_compensation_refunded
Implements OrderItemInterface.
Definition at line 1218 of file Item.php.
getEventId | ( | ) |
Return event_id
Implements OrderItemInterface.
Definition at line 1028 of file Item.php.
getExtensionAttributes | ( | ) |
Retrieve existing extension attributes object or create a new one.
Implements OrderItemInterface.
Definition at line 2378 of file Item.php.
getExtOrderItemId | ( | ) |
Return ext_order_item_id
Implements OrderItemInterface.
Definition at line 1038 of file Item.php.
getForceApplyDiscountToParentItem | ( | ) |
getFreeShipping | ( | ) |
Return free_shipping
Implements OrderItemInterface.
Definition at line 1048 of file Item.php.
getGwBasePrice | ( | ) |
Return gw_base_price
Implements OrderItemInterface.
Definition at line 1058 of file Item.php.
getGwBasePriceInvoiced | ( | ) |
Return gw_base_price_invoiced
Implements OrderItemInterface.
Definition at line 1068 of file Item.php.
getGwBasePriceRefunded | ( | ) |
Return gw_base_price_refunded
Implements OrderItemInterface.
Definition at line 1078 of file Item.php.
getGwBaseTaxAmount | ( | ) |
Return gw_base_tax_amount
Implements OrderItemInterface.
Definition at line 1088 of file Item.php.
getGwBaseTaxAmountInvoiced | ( | ) |
Return gw_base_tax_amount_invoiced
Implements OrderItemInterface.
Definition at line 1098 of file Item.php.
getGwBaseTaxAmountRefunded | ( | ) |
Return gw_base_tax_amount_refunded
Implements OrderItemInterface.
Definition at line 1108 of file Item.php.
getGwId | ( | ) |
Return gw_id
Implements OrderItemInterface.
Definition at line 1118 of file Item.php.
getGwPrice | ( | ) |
Return gw_price
Implements OrderItemInterface.
Definition at line 1128 of file Item.php.
getGwPriceInvoiced | ( | ) |
Return gw_price_invoiced
Implements OrderItemInterface.
Definition at line 1138 of file Item.php.
getGwPriceRefunded | ( | ) |
Return gw_price_refunded
Implements OrderItemInterface.
Definition at line 1148 of file Item.php.
getGwTaxAmount | ( | ) |
Return gw_tax_amount
Implements OrderItemInterface.
Definition at line 1158 of file Item.php.
getGwTaxAmountInvoiced | ( | ) |
Return gw_tax_amount_invoiced
Implements OrderItemInterface.
Definition at line 1168 of file Item.php.
getGwTaxAmountRefunded | ( | ) |
Return gw_tax_amount_refunded
Implements OrderItemInterface.
Definition at line 1178 of file Item.php.
getIsQtyDecimal | ( | ) |
Return is_qty_decimal
Implements OrderItemInterface.
Definition at line 1228 of file Item.php.
getIsVirtual | ( | ) |
Return is_virtual
Implements OrderItemInterface.
Definition at line 1238 of file Item.php.
getItemId | ( | ) |
Return item_id
Implements OrderItemInterface.
Definition at line 1248 of file Item.php.
getLockedDoInvoice | ( | ) |
Return locked_do_invoice
Implements OrderItemInterface.
Definition at line 1258 of file Item.php.
getLockedDoShip | ( | ) |
Return locked_do_ship
Implements OrderItemInterface.
Definition at line 1268 of file Item.php.
getName | ( | ) |
Return name
Implements OrderItemInterface.
Definition at line 1278 of file Item.php.
getNoDiscount | ( | ) |
Return no_discount
Implements OrderItemInterface.
Definition at line 1288 of file Item.php.
getOrder | ( | ) |
Retrieve order model object
Definition at line 297 of file Item.php.
getOrderId | ( | ) |
Return order_id
Implements OrderItemInterface.
Definition at line 1298 of file Item.php.
getOriginalPrice | ( | ) |
Redeclare getter for back compatibility
Implements OrderItemInterface.
Definition at line 449 of file Item.php.
getParentItem | ( | ) |
Get parent item
Implements OrderItemInterface.
Definition at line 179 of file Item.php.
getParentItemId | ( | ) |
Return parent_item_id
Implements OrderItemInterface.
Definition at line 1308 of file Item.php.
getPrice | ( | ) |
Return price
Implements OrderItemInterface.
Definition at line 1318 of file Item.php.
getPriceInclTax | ( | ) |
Return price_incl_tax
Implements OrderItemInterface.
Definition at line 1328 of file Item.php.
getProduct | ( | ) |
Retrieve product
Definition at line 676 of file Item.php.
getProductId | ( | ) |
Return product_id
Implements OrderItemInterface.
Definition at line 1338 of file Item.php.
getProductOption | ( | ) |
Returns product option
Implements OrderItemInterface.
Definition at line 2360 of file Item.php.
getProductOptionByCode | ( | $code = null | ) |
getProductOptions | ( | ) |
getProductType | ( | ) |
Return product_type
Implements OrderItemInterface.
Definition at line 1348 of file Item.php.
getQtyBackordered | ( | ) |
Return qty_backordered
Implements OrderItemInterface.
Definition at line 1358 of file Item.php.
getQtyCanceled | ( | ) |
Return qty_canceled
Implements OrderItemInterface.
Definition at line 1368 of file Item.php.
getQtyInvoiced | ( | ) |
Return qty_invoiced
Implements OrderItemInterface.
Definition at line 1378 of file Item.php.
getQtyOrdered | ( | ) |
Return qty_ordered
Implements OrderItemInterface.
Definition at line 1388 of file Item.php.
getQtyRefunded | ( | ) |
Return qty_refunded
Implements OrderItemInterface.
Definition at line 1398 of file Item.php.
getQtyReturned | ( | ) |
Return qty_returned
Implements OrderItemInterface.
Definition at line 1408 of file Item.php.
getQtyShipped | ( | ) |
Return qty_shipped
Implements OrderItemInterface.
Definition at line 1418 of file Item.php.
getQtyToCancel | ( | ) |
getQtyToInvoice | ( | ) |
getQtyToRefund | ( | ) |
getQtyToShip | ( | ) |
getQuoteItemId | ( | ) |
Return quote_item_id
Implements OrderItemInterface.
Definition at line 1428 of file Item.php.
getRealProductType | ( | ) |
Return real product type of item or NULL if item is not composite
Definition at line 509 of file Item.php.
getRowInvoiced | ( | ) |
Return row_invoiced
Implements OrderItemInterface.
Definition at line 1438 of file Item.php.
getRowTotal | ( | ) |
Return row_total
Implements OrderItemInterface.
Definition at line 1448 of file Item.php.
getRowTotalInclTax | ( | ) |
Return row_total_incl_tax
Implements OrderItemInterface.
Definition at line 1458 of file Item.php.
getRowWeight | ( | ) |
Return row_weight
Implements OrderItemInterface.
Definition at line 1468 of file Item.php.
getSimpleQtyToShip | ( | ) |
Retrieve item qty available for ship
Definition at line 233 of file Item.php.
getSku | ( | ) |
Return sku
Implements OrderItemInterface.
Definition at line 1478 of file Item.php.
|
static |
getStatusId | ( | ) |
Retrieve item status identifier
Definition at line 314 of file Item.php.
|
static |
getStore | ( | ) |
getStoreId | ( | ) |
Return store_id
Implements OrderItemInterface.
Definition at line 1488 of file Item.php.
getTaxAmount | ( | ) |
Return tax_amount
Implements OrderItemInterface.
Definition at line 1498 of file Item.php.
getTaxBeforeDiscount | ( | ) |
Return tax_before_discount
Implements OrderItemInterface.
Definition at line 1508 of file Item.php.
getTaxCanceled | ( | ) |
Return tax_canceled
Implements OrderItemInterface.
Definition at line 1518 of file Item.php.
getTaxInvoiced | ( | ) |
Return tax_invoiced
Implements OrderItemInterface.
Definition at line 1528 of file Item.php.
getTaxPercent | ( | ) |
Return tax_percent
Implements OrderItemInterface.
Definition at line 1538 of file Item.php.
getTaxRefunded | ( | ) |
Return tax_refunded
Implements OrderItemInterface.
Definition at line 1548 of file Item.php.
getUpdatedAt | ( | ) |
Return updated_at
Implements OrderItemInterface.
Definition at line 1558 of file Item.php.
getWeeeTaxApplied | ( | ) |
Return weee_tax_applied
Implements OrderItemInterface.
Definition at line 1568 of file Item.php.
getWeeeTaxAppliedAmount | ( | ) |
Return weee_tax_applied_amount
Implements OrderItemInterface.
Definition at line 1578 of file Item.php.
getWeeeTaxAppliedRowAmount | ( | ) |
Return weee_tax_applied_row_amount
Implements OrderItemInterface.
Definition at line 1588 of file Item.php.
getWeeeTaxDisposition | ( | ) |
Return weee_tax_disposition
Implements OrderItemInterface.
Definition at line 1598 of file Item.php.
getWeeeTaxRowDisposition | ( | ) |
Return weee_tax_row_disposition
Implements OrderItemInterface.
Definition at line 1608 of file Item.php.
getWeight | ( | ) |
Return weight
Implements OrderItemInterface.
Definition at line 1618 of file Item.php.
isChildrenCalculated | ( | ) |
isDummy | ( | $shipment = false | ) |
This is Dummy item or not.
If $shipment is true then we checking this for shipping situation if not, we checking this for calculation.
bool | $shipment |
Definition at line 615 of file Item.php.
isProcessingAvailable | ( | ) |
isShipSeparately | ( | ) |
setAdditionalData | ( | $additionalData | ) |
Sets the additional data for the order item.
string | $additionalData |
Implements OrderItemInterface.
Definition at line 1738 of file Item.php.
setAmountRefunded | ( | $amountRefunded | ) |
Sets the amount refunded for the order item.
float | $amountRefunded |
Implements OrderItemInterface.
Definition at line 1930 of file Item.php.
setAppliedRuleIds | ( | $appliedRuleIds | ) |
Sets the applied rule IDs for the order item.
string | $appliedRuleIds |
Implements OrderItemInterface.
Definition at line 1730 of file Item.php.
setBaseAmountRefunded | ( | $baseAmountRefunded | ) |
Sets the base amount refunded for the order item.
float | $baseAmountRefunded |
Implements OrderItemInterface.
Definition at line 1938 of file Item.php.
setBaseCost | ( | $baseCost | ) |
Sets the base cost for the order item.
float | $baseCost |
Implements OrderItemInterface.
Definition at line 1810 of file Item.php.
setBaseDiscountAmount | ( | $amount | ) |
Sets the base discount amount for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 1906 of file Item.php.
setBaseDiscountInvoiced | ( | $baseDiscountInvoiced | ) |
Sets the base discount invoiced for the order item.
float | $baseDiscountInvoiced |
Implements OrderItemInterface.
Definition at line 1922 of file Item.php.
setBaseDiscountRefunded | ( | $baseDiscountRefunded | ) |
Sets the base discount refunded for the order item.
float | $baseDiscountRefunded |
Implements OrderItemInterface.
Definition at line 2152 of file Item.php.
setBaseDiscountTaxCompensationAmount | ( | $amount | ) |
Sets the base discount tax compensation amount for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 2066 of file Item.php.
setBaseDiscountTaxCompensationInvoiced | ( | $baseDiscountTaxCompensationInvoiced | ) |
Sets the base discount tax compensation invoiced for the order item.
float | $baseDiscountTaxCompensationInvoiced |
Implements OrderItemInterface.
Definition at line 2082 of file Item.php.
setBaseDiscountTaxCompensationRefunded | ( | $baseDiscountTaxCompensationRefunded | ) |
Sets the base discount tax compensation refunded for the order item.
float | $baseDiscountTaxCompensationRefunded |
Implements OrderItemInterface.
Definition at line 2101 of file Item.php.
setBaseOriginalPrice | ( | $price | ) |
Sets the base original price for the order item.
float | $price |
Implements OrderItemInterface.
Definition at line 1842 of file Item.php.
setBasePrice | ( | $price | ) |
Sets the base price for the order item.
float | $price |
Implements OrderItemInterface.
Definition at line 1826 of file Item.php.
setBasePriceInclTax | ( | $amount | ) |
Sets the base price including tax for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 2034 of file Item.php.
setBaseRowInvoiced | ( | $baseRowInvoiced | ) |
Sets the base row invoiced for the order item.
float | $baseRowInvoiced |
Implements OrderItemInterface.
Definition at line 1970 of file Item.php.
setBaseRowTotal | ( | $amount | ) |
Sets the base row total for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 1954 of file Item.php.
setBaseRowTotalInclTax | ( | $amount | ) |
Sets the base row total including tax for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 2050 of file Item.php.
setBaseTaxAmount | ( | $amount | ) |
Sets the base tax amount for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 1866 of file Item.php.
setBaseTaxBeforeDiscount | ( | $baseTaxBeforeDiscount | ) |
Sets the base tax before discount for the order item.
float | $baseTaxBeforeDiscount |
Implements OrderItemInterface.
Definition at line 1986 of file Item.php.
setBaseTaxInvoiced | ( | $baseTaxInvoiced | ) |
Sets the base tax invoiced for the order item.
float | $baseTaxInvoiced |
Implements OrderItemInterface.
Definition at line 1882 of file Item.php.
setBaseTaxRefunded | ( | $baseTaxRefunded | ) |
Sets the base tax refunded for the order item.
float | $baseTaxRefunded |
Implements OrderItemInterface.
Definition at line 2136 of file Item.php.
setBaseWeeeTaxAppliedAmount | ( | $amount | ) |
Sets the base WEEE tax applied amount for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 2288 of file Item.php.
setBaseWeeeTaxAppliedRowAmnt | ( | $amnt | ) |
Sets the base WEEE tax applied row amount for the order item.
float | $amnt |
Implements OrderItemInterface.
Definition at line 2296 of file Item.php.
setBaseWeeeTaxDisposition | ( | $baseWeeeTaxDisposition | ) |
Sets the base WEEE tax disposition for the order item.
float | $baseWeeeTaxDisposition |
Implements OrderItemInterface.
Definition at line 2344 of file Item.php.
setBaseWeeeTaxRowDisposition | ( | $baseWeeeTaxRowDisposition | ) |
Sets the base WEEE tax row disposition for the order item.
float | $baseWeeeTaxRowDisposition |
Implements OrderItemInterface.
Definition at line 2352 of file Item.php.
setCreatedAt | ( | $createdAt | ) |
Sets the created-at timestamp for the order item.
string | $createdAt | timestamp |
Implements OrderItemInterface.
Definition at line 968 of file Item.php.
setDescription | ( | $description | ) |
Sets the description for the order item.
string | $description |
Implements OrderItemInterface.
Definition at line 1722 of file Item.php.
setDiscountAmount | ( | $amount | ) |
Sets the discount amount for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 1898 of file Item.php.
setDiscountInvoiced | ( | $discountInvoiced | ) |
Sets the discount invoiced for the order item.
float | $discountInvoiced |
Implements OrderItemInterface.
Definition at line 1914 of file Item.php.
setDiscountPercent | ( | $discountPercent | ) |
Sets the discount percent for the order item.
float | $discountPercent |
Implements OrderItemInterface.
Definition at line 1890 of file Item.php.
setDiscountRefunded | ( | $discountRefunded | ) |
Sets the discount refunded for the order item.
float | $discountRefunded |
Implements OrderItemInterface.
Definition at line 2144 of file Item.php.
setDiscountTaxCompensationAmount | ( | $amount | ) |
Sets the discount tax compensation amount for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 2058 of file Item.php.
setDiscountTaxCompensationCanceled | ( | $discountTaxCompensationCanceled | ) |
Sets the discount tax compensation canceled for the order item.
float | $discountTaxCompensationCanceled |
Implements OrderItemInterface.
Definition at line 2120 of file Item.php.
setDiscountTaxCompensationInvoiced | ( | $discountTaxCompensationInvoiced | ) |
Sets the discount tax compensation invoiced for the order item.
float | $discountTaxCompensationInvoiced |
Implements OrderItemInterface.
Definition at line 2074 of file Item.php.
setDiscountTaxCompensationRefunded | ( | $discountTaxCompensationRefunded | ) |
Sets the discount tax compensation refunded for the order item.
float | $discountTaxCompensationRefunded |
Implements OrderItemInterface.
Definition at line 2093 of file Item.php.
setEventId | ( | $id | ) |
Sets the event ID for the order item.
int | $id |
Implements OrderItemInterface.
Definition at line 2280 of file Item.php.
setExtensionAttributes | ( | \Magento\Sales\Api\Data\OrderItemExtensionInterface | $extensionAttributes | ) |
\Magento\Sales\Api\Data\OrderItemExtensionInterface | $extensionAttributes |
Definition at line 2389 of file Item.php.
setExtOrderItemId | ( | $id | ) |
Sets the external order item ID for the order item.
string | $id |
Implements OrderItemInterface.
Definition at line 2002 of file Item.php.
setFreeShipping | ( | $freeShipping | ) |
Sets the free-shipping flag value for the order item.
int | $freeShipping |
Implements OrderItemInterface.
Definition at line 2264 of file Item.php.
setGwBasePrice | ( | $price | ) |
Sets the GW base price for the order item.
float | $price |
Implements OrderItemInterface.
Definition at line 2168 of file Item.php.
setGwBasePriceInvoiced | ( | $gwBasePriceInvoiced | ) |
Sets the GW base price invoiced for the order item.
float | $gwBasePriceInvoiced |
Implements OrderItemInterface.
Definition at line 2200 of file Item.php.
setGwBasePriceRefunded | ( | $gwBasePriceRefunded | ) |
Sets the GW base price refunded for the order item.
float | $gwBasePriceRefunded |
Implements OrderItemInterface.
Definition at line 2232 of file Item.php.
setGwBaseTaxAmount | ( | $amount | ) |
Sets the GW base tax amount for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 2184 of file Item.php.
setGwBaseTaxAmountInvoiced | ( | $gwBaseTaxAmountInvoiced | ) |
Sets the GW base tax amount invoiced for the order item.
float | $gwBaseTaxAmountInvoiced |
Implements OrderItemInterface.
Definition at line 2216 of file Item.php.
setGwBaseTaxAmountRefunded | ( | $gwBaseTaxAmountRefunded | ) |
Sets the GW base tax amount refunded for the order item.
float | $gwBaseTaxAmountRefunded |
Implements OrderItemInterface.
Definition at line 2248 of file Item.php.
setGwId | ( | $id | ) |
Sets the GW ID for the order item.
int | $id |
Implements OrderItemInterface.
Definition at line 2160 of file Item.php.
setGwPrice | ( | $price | ) |
Sets the GW price for the order item.
float | $price |
Implements OrderItemInterface.
Definition at line 2176 of file Item.php.
setGwPriceInvoiced | ( | $gwPriceInvoiced | ) |
Sets the GW price invoiced for the order item.
float | $gwPriceInvoiced |
Implements OrderItemInterface.
Definition at line 2208 of file Item.php.
setGwPriceRefunded | ( | $gwPriceRefunded | ) |
Sets the GW price refunded for the order item.
float | $gwPriceRefunded |
Implements OrderItemInterface.
Definition at line 2240 of file Item.php.
setGwTaxAmount | ( | $amount | ) |
Sets the GW tax amount for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 2192 of file Item.php.
setGwTaxAmountInvoiced | ( | $gwTaxAmountInvoiced | ) |
Sets the GW tax amount invoiced for the order item.
float | $gwTaxAmountInvoiced |
Implements OrderItemInterface.
Definition at line 2224 of file Item.php.
setGwTaxAmountRefunded | ( | $gwTaxAmountRefunded | ) |
Sets the GW tax amount refunded for the order item.
float | $gwTaxAmountRefunded |
Implements OrderItemInterface.
Definition at line 2256 of file Item.php.
setIsQtyDecimal | ( | $isQtyDecimal | ) |
Sets the is-quantity-decimal flag value for the order item.
int | $isQtyDecimal |
Implements OrderItemInterface.
Definition at line 1746 of file Item.php.
setIsVirtual | ( | $isVirtual | ) |
Sets the is-virtual flag value for the order item.
int | $isVirtual |
Implements OrderItemInterface.
Definition at line 1698 of file Item.php.
setItemId | ( | $id | ) |
Sets the item ID for the order item.
int | $id |
Implements OrderItemInterface.
Definition at line 1634 of file Item.php.
setLockedDoInvoice | ( | $flag | ) |
Sets the locked DO invoice flag value for the order item.
int | $flag |
Implements OrderItemInterface.
Definition at line 2010 of file Item.php.
setLockedDoShip | ( | $flag | ) |
Sets the locked DO ship flag value for the order item.
int | $flag |
Implements OrderItemInterface.
Definition at line 2018 of file Item.php.
setName | ( | $name | ) |
Sets the name for the order item.
string | $name |
Implements OrderItemInterface.
Definition at line 1714 of file Item.php.
setNoDiscount | ( | $noDiscount | ) |
Sets the no discount flag value for the order item.
int | $noDiscount |
Implements OrderItemInterface.
Definition at line 1754 of file Item.php.
setOrder | ( | \Magento\Sales\Model\Order | $order | ) |
setOrderId | ( | $id | ) |
Sets the order ID for the order item.
int | $id |
Implements OrderItemInterface.
Definition at line 1642 of file Item.php.
setOriginalPrice | ( | $price | ) |
Sets the original price for the order item.
float | $price |
Implements OrderItemInterface.
Definition at line 1834 of file Item.php.
setParentItem | ( | $item | ) |
Set parent item
Item | $item |
Implements OrderItemInterface.
Definition at line 164 of file Item.php.
setParentItemId | ( | $id | ) |
Sets the parent item ID for the order item.
int | $id |
Implements OrderItemInterface.
Definition at line 1650 of file Item.php.
setPrice | ( | $price | ) |
Sets the price for the order item.
float | $price |
Implements OrderItemInterface.
Definition at line 1818 of file Item.php.
setPriceInclTax | ( | $amount | ) |
Sets the price including tax for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 2026 of file Item.php.
setProductId | ( | $id | ) |
Sets the product ID for the order item.
int | $id |
Implements OrderItemInterface.
Definition at line 1674 of file Item.php.
setProductOption | ( | \Magento\Catalog\Api\Data\ProductOptionInterface | $productOption | ) |
Definition at line 2368 of file Item.php.
setProductOptions | ( | array | $options = null | ) |
Set product options
array | $options |
Definition at line 464 of file Item.php.
setProductType | ( | $productType | ) |
Sets the product type for the order item.
string | $productType |
Implements OrderItemInterface.
Definition at line 1682 of file Item.php.
setQtyBackordered | ( | $qtyBackordered | ) |
Sets the quantity backordered for the order item.
float | $qtyBackordered |
Implements OrderItemInterface.
Definition at line 1762 of file Item.php.
setQtyCanceled | ( | $qtyCanceled | ) |
Sets the quantity canceled for the order item.
float | $qtyCanceled |
Implements OrderItemInterface.
Definition at line 1770 of file Item.php.
setQtyInvoiced | ( | $qtyInvoiced | ) |
Sets the quantity invoiced for the order item.
float | $qtyInvoiced |
Implements OrderItemInterface.
Definition at line 1778 of file Item.php.
setQtyOrdered | ( | $qtyOrdered | ) |
Sets the quantity ordered for the order item.
float | $qtyOrdered |
Implements OrderItemInterface.
Definition at line 1786 of file Item.php.
setQtyRefunded | ( | $qtyRefunded | ) |
Sets the quantity refunded for the order item.
float | $qtyRefunded |
Implements OrderItemInterface.
Definition at line 1794 of file Item.php.
setQtyReturned | ( | $qtyReturned | ) |
Sets the quantity returned for the order item.
float | $qtyReturned |
Implements OrderItemInterface.
Definition at line 2272 of file Item.php.
setQtyShipped | ( | $qtyShipped | ) |
Sets the quantity shipped for the order item.
float | $qtyShipped |
Implements OrderItemInterface.
Definition at line 1802 of file Item.php.
setQuoteItemId | ( | $id | ) |
Sets the quote item ID for the order item.
int | $id |
Implements OrderItemInterface.
Definition at line 1658 of file Item.php.
setRowInvoiced | ( | $rowInvoiced | ) |
Sets the row invoiced for the order item.
float | $rowInvoiced |
Implements OrderItemInterface.
Definition at line 1962 of file Item.php.
setRowTotal | ( | $amount | ) |
Sets the row total for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 1946 of file Item.php.
setRowTotalInclTax | ( | $amount | ) |
Sets the row total including tax for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 2042 of file Item.php.
setRowWeight | ( | $rowWeight | ) |
Sets the row weight for the order item.
float | $rowWeight |
Implements OrderItemInterface.
Definition at line 1978 of file Item.php.
setSku | ( | $sku | ) |
Sets the SKU for the order item.
string | $sku |
Implements OrderItemInterface.
Definition at line 1706 of file Item.php.
setStoreId | ( | $id | ) |
Sets the store ID for the order item.
int | $id |
Implements OrderItemInterface.
Definition at line 1666 of file Item.php.
setTaxAmount | ( | $amount | ) |
Sets the tax amount for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 1858 of file Item.php.
setTaxBeforeDiscount | ( | $taxBeforeDiscount | ) |
Sets the tax before discount for the order item.
float | $taxBeforeDiscount |
Implements OrderItemInterface.
Definition at line 1994 of file Item.php.
setTaxCanceled | ( | $taxCanceled | ) |
Sets the tax canceled for the order item.
float | $taxCanceled |
Implements OrderItemInterface.
Definition at line 2112 of file Item.php.
setTaxInvoiced | ( | $taxInvoiced | ) |
Sets the tax invoiced for the order item.
float | $taxInvoiced |
Implements OrderItemInterface.
Definition at line 1874 of file Item.php.
setTaxPercent | ( | $taxPercent | ) |
Sets the tax percent for the order item.
float | $taxPercent |
Implements OrderItemInterface.
Definition at line 1850 of file Item.php.
setTaxRefunded | ( | $taxRefunded | ) |
Sets the tax refunded for the order item.
float | $taxRefunded |
Implements OrderItemInterface.
Definition at line 2128 of file Item.php.
setUpdatedAt | ( | $timestamp | ) |
Sets the updated-at timestamp for the order item.
string | $timestamp |
Implements OrderItemInterface.
Definition at line 1626 of file Item.php.
setWeeeTaxApplied | ( | $weeeTaxApplied | ) |
Sets the WEEE tax applied for the order item.
string | $weeeTaxApplied |
Implements OrderItemInterface.
Definition at line 2320 of file Item.php.
setWeeeTaxAppliedAmount | ( | $amount | ) |
Sets the WEEE tax applied amount for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 2304 of file Item.php.
setWeeeTaxAppliedRowAmount | ( | $amount | ) |
Sets the WEEE tax applied row amount for the order item.
float | $amount |
Implements OrderItemInterface.
Definition at line 2312 of file Item.php.
setWeeeTaxDisposition | ( | $weeeTaxDisposition | ) |
Sets the WEEE tax disposition for the order item.
float | $weeeTaxDisposition |
Implements OrderItemInterface.
Definition at line 2328 of file Item.php.
setWeeeTaxRowDisposition | ( | $weeeTaxRowDisposition | ) |
Sets the WEEE tax row disposition for the order item.
float | $weeeTaxRowDisposition |
Implements OrderItemInterface.
Definition at line 2336 of file Item.php.
setWeight | ( | $weight | ) |
Sets the weight for the order item.
float | $weight |
Implements OrderItemInterface.
Definition at line 1690 of file Item.php.