Log in
Model

QuoteDetails

Magento\Tax\Model\Sales\Quote\QuoteDetails

What it does

This class serves as a data transfer object (DTO) that holds all quote-related information needed for tax calculations in Magento 2.

Developers use it to pass customer details, billing/shipping addresses, and quote items to the tax calculation service when determining taxes during checkout or quote management.

It acts as a standardized container for tax calculation inputs.

Public Methods

  • getBillingAddress()
  • getShippingAddress()
  • getCustomerTaxClassKey()
  • getCustomerId()
  • getItems()
  • getCustomerTaxClassId()
  • setBillingAddress()
  • setShippingAddress()
  • setCustomerTaxClassKey()
  • setCustomerId()
  • setItems()
  • setCustomerTaxClassId()
  • getExtensionAttributes()
  • setExtensionAttributes()