Log in
Model

AssignBillingAddressToCart

Magento\QuoteGraphQl\Model\Cart\AssignBillingAddressToCart

What it does

This class assigns a billing address to a shopping cart in Magento 2's GraphQL API.

Developers use it when processing GraphQL mutations that set or update billing addresses on quotes, with the option to mark the billing address as the same as the shipping address.

It acts as a wrapper around the core billing address management service, converting standard exceptions into GraphQL-specific exceptions.

Public Methods

  • execute()