Log in
Model

ShippingInformation

Magento\Checkout\Model\ShippingInformation

What it does

This class is a data transfer object (DTO) that holds shipping information during checkout, including shipping and billing addresses, shipping method and carrier codes.

Developers use it when implementing or customizing the checkout process, particularly when working with the shipping information management API to save or retrieve shipping details for a quote.

Public Methods

  • getShippingAddress()
  • setShippingAddress()
  • getBillingAddress()
  • setBillingAddress()
  • getShippingMethodCode()
  • setShippingMethodCode()
  • getShippingCarrierCode()
  • setShippingCarrierCode()
  • getExtensionAttributes()
  • setExtensionAttributes()