Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
@SuppressWarnings(PHPMD.ExcessivePublicCount) @codeCoverageIgnore
Definition at line 17 of file Totals.php.
getBaseCurrencyCode | ( | ) |
Get base currency code
Implements TotalsInterface.
Definition at line 465 of file Totals.php.
getBaseDiscountAmount | ( | ) |
Get discount amount in base currency
Implements TotalsInterface.
Definition at line 129 of file Totals.php.
getBaseGrandTotal | ( | ) |
Get grand total in base currency
Implements TotalsInterface.
Definition at line 45 of file Totals.php.
getBaseShippingAmount | ( | ) |
Get shipping amount in base currency
Implements TotalsInterface.
Definition at line 213 of file Totals.php.
getBaseShippingDiscountAmount | ( | ) |
Get shipping discount amount in base currency
Implements TotalsInterface.
Definition at line 255 of file Totals.php.
getBaseShippingInclTax | ( | ) |
Get shipping including tax in base currency
Implements TotalsInterface.
Definition at line 444 of file Totals.php.
getBaseShippingTaxAmount | ( | ) |
Get shipping tax amount in base currency
Implements TotalsInterface.
Definition at line 360 of file Totals.php.
getBaseSubtotal | ( | ) |
Get subtotal in base currency
Implements TotalsInterface.
Definition at line 87 of file Totals.php.
getBaseSubtotalInclTax | ( | ) |
Get subtotal including tax in base currency
Implements TotalsInterface.
Definition at line 402 of file Totals.php.
getBaseSubtotalWithDiscount | ( | ) |
Get subtotal in base currency with applied discount
Implements TotalsInterface.
Definition at line 171 of file Totals.php.
getBaseTaxAmount | ( | ) |
Get tax amount in base currency
Implements TotalsInterface.
Definition at line 297 of file Totals.php.
getCouponCode | ( | ) |
{Get applied coupon code
Implements TotalsInterface.
Definition at line 505 of file Totals.php.
getDiscountAmount | ( | ) |
Get discount amount in quote currency
Implements TotalsInterface.
Definition at line 108 of file Totals.php.
getExtensionAttributes | ( | ) |
{Retrieve existing extension attributes object or create a new one.
Implements TotalsInterface.
Definition at line 581 of file Totals.php.
getGrandTotal | ( | ) |
Get grand total in quote currency
Implements TotalsInterface.
Definition at line 24 of file Totals.php.
getItems | ( | ) |
Get totals by items
Implements TotalsInterface.
Definition at line 544 of file Totals.php.
getItemsQty | ( | ) |
Get items qty
Implements TotalsInterface.
Definition at line 523 of file Totals.php.
getQuoteCurrencyCode | ( | ) |
Get quote currency code
Implements TotalsInterface.
Definition at line 486 of file Totals.php.
getShippingAmount | ( | ) |
Get shipping amount in quote currency
Implements TotalsInterface.
Definition at line 192 of file Totals.php.
getShippingDiscountAmount | ( | ) |
Get shipping discount amount in quote currency
Implements TotalsInterface.
Definition at line 234 of file Totals.php.
getShippingInclTax | ( | ) |
Get shipping including tax in quote currency
Implements TotalsInterface.
Definition at line 423 of file Totals.php.
getShippingTaxAmount | ( | ) |
Get shipping tax amount in quote currency
Implements TotalsInterface.
Definition at line 339 of file Totals.php.
getSubtotal | ( | ) |
Get subtotal in quote currency
Implements TotalsInterface.
Definition at line 66 of file Totals.php.
getSubtotalInclTax | ( | ) |
Get subtotal including tax in quote currency
Implements TotalsInterface.
Definition at line 381 of file Totals.php.
getSubtotalWithDiscount | ( | ) |
Get subtotal in quote currency with applied discount
Implements TotalsInterface.
Definition at line 150 of file Totals.php.
getTaxAmount | ( | ) |
Get tax amount in quote currency
Implements TotalsInterface.
Definition at line 276 of file Totals.php.
getTotalSegments | ( | ) |
{Get dynamically calculated totals
Implements TotalsInterface.
Definition at line 563 of file Totals.php.
getWeeeTaxAppliedAmount | ( | ) |
Returns the total weee tax applied amount in quote currency.
Implements TotalsInterface.
Definition at line 318 of file Totals.php.
setBaseCurrencyCode | ( | $baseCurrencyCode | ) |
Set base currency code
string | $baseCurrencyCode |
Implements TotalsInterface.
Definition at line 476 of file Totals.php.
setBaseDiscountAmount | ( | $baseDiscountAmount | ) |
Set discount amount in base currency
float | $baseDiscountAmount |
Implements TotalsInterface.
Definition at line 140 of file Totals.php.
setBaseGrandTotal | ( | $baseGrandTotal | ) |
Set grand total in base currency
float | $baseGrandTotal |
Implements TotalsInterface.
Definition at line 56 of file Totals.php.
setBaseShippingAmount | ( | $baseShippingAmount | ) |
Set shipping amount in base currency
float | $baseShippingAmount |
Implements TotalsInterface.
Definition at line 224 of file Totals.php.
setBaseShippingDiscountAmount | ( | $baseShippingDiscountAmount | ) |
Set shipping discount amount in base currency
float | $baseShippingDiscountAmount |
Implements TotalsInterface.
Definition at line 266 of file Totals.php.
setBaseShippingInclTax | ( | $baseShippingInclTax | ) |
Set shipping including tax in base currency
float | $baseShippingInclTax |
Implements TotalsInterface.
Definition at line 455 of file Totals.php.
setBaseShippingTaxAmount | ( | $baseShippingTaxAmount | ) |
Set shipping tax amount in base currency
float | $baseShippingTaxAmount |
Implements TotalsInterface.
Definition at line 371 of file Totals.php.
setBaseSubtotal | ( | $baseSubtotal | ) |
Set subtotal in base currency
float | $baseSubtotal |
Implements TotalsInterface.
Definition at line 98 of file Totals.php.
setBaseSubtotalInclTax | ( | $baseSubtotalInclTax | ) |
Set subtotal including tax in base currency
float | $baseSubtotalInclTax |
Implements TotalsInterface.
Definition at line 413 of file Totals.php.
setBaseSubtotalWithDiscount | ( | $baseSubtotalWithDiscount | ) |
Set subtotal in base currency with applied discount
float | $baseSubtotalWithDiscount |
Implements TotalsInterface.
Definition at line 182 of file Totals.php.
setBaseTaxAmount | ( | $baseTaxAmount | ) |
Set tax amount in base currency
float | $baseTaxAmount |
Implements TotalsInterface.
Definition at line 308 of file Totals.php.
setCouponCode | ( | $couponCode | ) |
{Set applied coupon code
string | $couponCode |
Implements TotalsInterface.
Definition at line 513 of file Totals.php.
setDiscountAmount | ( | $discountAmount | ) |
Set discount amount in quote currency
float | $discountAmount |
Implements TotalsInterface.
Definition at line 119 of file Totals.php.
setExtensionAttributes | ( | \Magento\Quote\Api\Data\TotalsExtensionInterface | $extensionAttributes | ) |
{}
\Magento\Quote\Api\Data\TotalsExtensionInterface | $extensionAttributes |
Definition at line 592 of file Totals.php.
setGrandTotal | ( | $grandTotal | ) |
Set grand total in quote currency
float | $grandTotal |
Implements TotalsInterface.
Definition at line 35 of file Totals.php.
setItems | ( | array | $items = null | ) |
Get totals by items
Implements TotalsInterface.
Definition at line 555 of file Totals.php.
setItemsQty | ( | $itemsQty = null | ) |
Set items qty
int | $itemsQty |
Implements TotalsInterface.
Definition at line 534 of file Totals.php.
setQuoteCurrencyCode | ( | $quoteCurrencyCode | ) |
Get quote currency code
string | $quoteCurrencyCode |
Implements TotalsInterface.
Definition at line 497 of file Totals.php.
setShippingAmount | ( | $shippingAmount | ) |
Set shipping amount in quote currency
float | $shippingAmount |
Implements TotalsInterface.
Definition at line 203 of file Totals.php.
setShippingDiscountAmount | ( | $shippingDiscountAmount | ) |
Set shipping discount amount in quote currency
float | $shippingDiscountAmount |
Implements TotalsInterface.
Definition at line 245 of file Totals.php.
setShippingInclTax | ( | $shippingInclTax | ) |
Set shipping including tax in quote currency
float | $shippingInclTax |
Implements TotalsInterface.
Definition at line 434 of file Totals.php.
setShippingTaxAmount | ( | $shippingTaxAmount | ) |
Set shipping tax amount in quote currency
float | $shippingTaxAmount |
Implements TotalsInterface.
Definition at line 350 of file Totals.php.
setSubtotal | ( | $subtotal | ) |
Set subtotal in quote currency
float | $subtotal |
Implements TotalsInterface.
Definition at line 77 of file Totals.php.
setSubtotalInclTax | ( | $subtotalInclTax | ) |
Set subtotal including tax in quote currency
float | $subtotalInclTax |
Implements TotalsInterface.
Definition at line 392 of file Totals.php.
setSubtotalWithDiscount | ( | $subtotalWithDiscount | ) |
Set subtotal in quote currency with applied discount
float | $subtotalWithDiscount |
Implements TotalsInterface.
Definition at line 161 of file Totals.php.
setTaxAmount | ( | $taxAmount | ) |
Set tax amount in quote currency
float | $taxAmount |
Implements TotalsInterface.
Definition at line 287 of file Totals.php.
setTotalSegments | ( | $totals = [] | ) |
{Set dynamically calculated totals
Implements TotalsInterface.
Definition at line 571 of file Totals.php.
setWeeeTaxAppliedAmount | ( | $weeeTaxAppliedAmount | ) |
Sets the total weee tax applied amount in quote currency.
float | $weeeTaxAppliedAmount |
Implements TotalsInterface.
Definition at line 329 of file Totals.php.