Model
ShippingTotal
Magento\Sales\Model\Order\ShippingTotal
What it does
This class represents a data model for order shipping totals in Magento 2, providing getters and setters for all shipping-related amounts including base currency values, tax amounts, discounts, invoiced amounts, refunds, and canceled amounts.
Developers use this class when working with order totals via the API or when they need to access or modify shipping cost information throughout the order lifecycle (invoicing, refunding, canceling).
Public Methods
- getBaseShippingAmount()
- getBaseShippingCanceled()
- getBaseShippingDiscountAmount()
- getBaseShippingDiscountTaxCompensationAmnt()
- getBaseShippingInclTax()
- getBaseShippingInvoiced()
- getBaseShippingRefunded()
- getBaseShippingTaxAmount()
- getBaseShippingTaxRefunded()
- getShippingAmount()
- getShippingCanceled()
- getShippingDiscountAmount()
- getShippingDiscountTaxCompensationAmount()
- getShippingInclTax()
- getShippingInvoiced()
- getShippingRefunded()
- getShippingTaxAmount()
- getShippingTaxRefunded()
- setBaseShippingAmount()
- setBaseShippingCanceled()
- setBaseShippingDiscountAmount()
- setBaseShippingDiscountTaxCompensationAmnt()
- setBaseShippingInclTax()
- setBaseShippingInvoiced()
- setBaseShippingRefunded()
- setBaseShippingTaxAmount()
- setBaseShippingTaxRefunded()
- setShippingAmount()
- setShippingCanceled()
- setShippingDiscountAmount()
- setShippingDiscountTaxCompensationAmount()
- setShippingInclTax()
- setShippingInvoiced()
- setShippingRefunded()
- setShippingTaxAmount()
- setShippingTaxRefunded()
- getExtensionAttributes()
- setExtensionAttributes()