Log in
Model

SetBillingAddressOnCart

Magento\QuoteGraphQl\Model\Cart\SetBillingAddressOnCart

What it does

This class handles setting the billing address on a shopping cart in Magento 2's GraphQL API.

Developers use this when implementing GraphQL mutations for checkout, allowing customers to set billing addresses from existing customer addresses, new address input, or by copying the shipping address.

It validates permissions, address data, and ensures compatibility with the cart's shipping configuration before assigning the billing address.

Public Methods

  • execute()