Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Fields | |
const | KEY_ITEM_ID = 'item_id' |
const | KEY_PRICE = 'price' |
const | KEY_BASE_PRICE = 'base_price' |
const | KEY_QTY = 'qty' |
const | KEY_ROW_TOTAL = 'row_total' |
const | KEY_BASE_ROW_TOTAL = 'base_row_total' |
const | KEY_ROW_TOTAL_WITH_DISCOUNT = 'row_total_with_discount' |
const | KEY_DISCOUNT_AMOUNT = 'discount_amount' |
const | KEY_BASE_DISCOUNT_AMOUNT = 'base_discount_amount' |
const | KEY_DISCOUNT_PERCENT = 'discount_percent' |
const | KEY_TAX_AMOUNT = 'tax_amount' |
const | KEY_BASE_TAX_AMOUNT = 'base_tax_amount' |
const | KEY_TAX_PERCENT = 'tax_percent' |
const | KEY_PRICE_INCL_TAX = 'price_incl_tax' |
const | KEY_BASE_PRICE_INCL_TAX = 'base_price_incl_tax' |
const | KEY_ROW_TOTAL_INCL_TAX = 'row_total_incl_tax' |
const | KEY_BASE_ROW_TOTAL_INCL_TAX = 'base_row_total_incl_tax' |
const | KEY_OPTIONS = 'options' |
const | KEY_WEEE_TAX_APPLIED_AMOUNT = 'weee_tax_applied_amount' |
const | KEY_WEEE_TAX_APPLIED = 'weee_tax_applied' |
const | KEY_NAME = 'name' |
![]() | |
const | EXTENSION_ATTRIBUTES_KEY = 'extension_attributes' |
Interface TotalsItemInterface @api
Definition at line 13 of file TotalsItemInterface.php.
getBaseDiscountAmount | ( | ) |
Returns the discount amount in base currency.
Implemented in Item.
getBasePrice | ( | ) |
Returns the item price in base currency.
Implemented in Item.
getBasePriceInclTax | ( | ) |
Returns the price including tax in base currency.
Implemented in Item.
getBaseRowTotal | ( | ) |
Returns the row total in base currency.
Implemented in Item.
getBaseRowTotalInclTax | ( | ) |
Returns the row total including tax in base currency.
Implemented in Item.
getBaseTaxAmount | ( | ) |
getDiscountAmount | ( | ) |
Returns the discount amount in quote currency.
Implemented in Item.
getDiscountPercent | ( | ) |
Returns the discount percent.
Implemented in Item.
getExtensionAttributes | ( | ) |
Retrieve existing extension attributes object or create a new one.
Implemented in Item.
getItemId | ( | ) |
getName | ( | ) |
getOptions | ( | ) |
getPrice | ( | ) |
Returns the item price in quote currency.
Implemented in Item.
getPriceInclTax | ( | ) |
Returns the price including tax in quote currency.
Implemented in Item.
getQty | ( | ) |
getRowTotal | ( | ) |
Returns the row total in quote currency.
Implemented in Item.
getRowTotalInclTax | ( | ) |
Returns the row total including tax in quote currency.
Implemented in Item.
getRowTotalWithDiscount | ( | ) |
Returns the row total with discount in quote currency.
Implemented in Item.
getTaxAmount | ( | ) |
getTaxPercent | ( | ) |
getWeeeTaxApplied | ( | ) |
Returns the item weee tax applied in quote currency.
Implemented in Item.
getWeeeTaxAppliedAmount | ( | ) |
Returns the item weee tax applied amount in quote currency.
Implemented in Item.
setBaseDiscountAmount | ( | $baseDiscountAmount | ) |
Sets the discount amount in base currency.
float | $baseDiscountAmount |
Implemented in Item.
setBasePrice | ( | $basePrice | ) |
setBasePriceInclTax | ( | $basePriceInclTax | ) |
Sets the price including tax in base currency.
float | $basePriceInclTax |
Implemented in Item.
setBaseRowTotal | ( | $baseRowTotal | ) |
Sets the row total in base currency.
float | $baseRowTotal |
Implemented in Item.
setBaseRowTotalInclTax | ( | $baseRowTotalInclTax | ) |
Sets the row total including tax in base currency.
float | $baseRowTotalInclTax |
Implemented in Item.
setBaseTaxAmount | ( | $baseTaxAmount | ) |
Sets the tax amount in base currency.
float | $baseTaxAmount |
Implemented in Item.
setDiscountAmount | ( | $discountAmount | ) |
Sets the discount amount in quote currency.
float | $discountAmount |
Implemented in Item.
setDiscountPercent | ( | $discountPercent | ) |
setExtensionAttributes | ( | \Magento\Quote\Api\Data\TotalsItemExtensionInterface | $extensionAttributes | ) |
Set an extension attributes object.
\Magento\Quote\Api\Data\TotalsItemExtensionInterface | $extensionAttributes |
setItemId | ( | $id | ) |
setName | ( | $name | ) |
setOptions | ( | $options | ) |
setPrice | ( | $price | ) |
setPriceInclTax | ( | $priceInclTax | ) |
Sets the price including tax in quote currency.
float | $priceInclTax |
Implemented in Item.
setQty | ( | $qty | ) |
setRowTotal | ( | $rowTotal | ) |
setRowTotalInclTax | ( | $rowTotalInclTax | ) |
Sets the row total including tax in quote currency.
float | $rowTotalInclTax |
Implemented in Item.
setRowTotalWithDiscount | ( | $rowTotalWithDiscount | ) |
Sets the row total with discount in quote currency.
float | $rowTotalWithDiscount |
Implemented in Item.
setTaxAmount | ( | $taxAmount | ) |
setTaxPercent | ( | $taxPercent | ) |
setWeeeTaxApplied | ( | $weeeTaxApplied | ) |
Sets the item weee tax applied in quote currency.
string | $weeeTaxApplied |
Implemented in Item.
setWeeeTaxAppliedAmount | ( | $weeeTaxAppliedAmount | ) |
Sets the item weee tax applied amount in quote currency.
float | $weeeTaxAppliedAmount |
Implemented in Item.
const KEY_BASE_DISCOUNT_AMOUNT = 'base_discount_amount' |
Base discount amount.
Definition at line 62 of file TotalsItemInterface.php.
const KEY_BASE_PRICE = 'base_price' |
Base price.
Definition at line 32 of file TotalsItemInterface.php.
const KEY_BASE_PRICE_INCL_TAX = 'base_price_incl_tax' |
Base price including tax.
Definition at line 92 of file TotalsItemInterface.php.
const KEY_BASE_ROW_TOTAL = 'base_row_total' |
Base row total.
Definition at line 47 of file TotalsItemInterface.php.
const KEY_BASE_ROW_TOTAL_INCL_TAX = 'base_row_total_incl_tax' |
Base row total including tax.
Definition at line 102 of file TotalsItemInterface.php.
const KEY_BASE_TAX_AMOUNT = 'base_tax_amount' |
Base tax amount.
Definition at line 77 of file TotalsItemInterface.php.
const KEY_DISCOUNT_AMOUNT = 'discount_amount' |
Discount amount.
Definition at line 57 of file TotalsItemInterface.php.
const KEY_DISCOUNT_PERCENT = 'discount_percent' |
Discount percent.
Definition at line 67 of file TotalsItemInterface.php.
const KEY_ITEM_ID = 'item_id' |
#+ Constants defined for keys of array, makes typos less likelyItem id.
Definition at line 22 of file TotalsItemInterface.php.
const KEY_NAME = 'name' |
Item name.
Definition at line 122 of file TotalsItemInterface.php.
const KEY_OPTIONS = 'options' |
Item options data.
Definition at line 107 of file TotalsItemInterface.php.
const KEY_PRICE = 'price' |
Price.
Definition at line 27 of file TotalsItemInterface.php.
const KEY_PRICE_INCL_TAX = 'price_incl_tax' |
Price including tax.
Definition at line 87 of file TotalsItemInterface.php.
const KEY_QTY = 'qty' |
Quantity.
Definition at line 37 of file TotalsItemInterface.php.
const KEY_ROW_TOTAL = 'row_total' |
Row total.
Definition at line 42 of file TotalsItemInterface.php.
const KEY_ROW_TOTAL_INCL_TAX = 'row_total_incl_tax' |
Row total including tax.
Definition at line 97 of file TotalsItemInterface.php.
const KEY_ROW_TOTAL_WITH_DISCOUNT = 'row_total_with_discount' |
Row total with discount.
Definition at line 52 of file TotalsItemInterface.php.
const KEY_TAX_AMOUNT = 'tax_amount' |
Tax amount.
Definition at line 72 of file TotalsItemInterface.php.
const KEY_TAX_PERCENT = 'tax_percent' |
Tax percent.
Definition at line 82 of file TotalsItemInterface.php.
const KEY_WEEE_TAX_APPLIED = 'weee_tax_applied' |
Definition at line 117 of file TotalsItemInterface.php.
const KEY_WEEE_TAX_APPLIED_AMOUNT = 'weee_tax_applied_amount' |
Definition at line 112 of file TotalsItemInterface.php.