Log in
Interface

BuyRequestDataProviderInterface

Magento\Quote\Model\Cart\BuyRequest\BuyRequestDataProviderInterface

What it does

This interface defines a contract for providers that extract and format product-specific buy request data from cart items.

Developers implement this interface when creating custom product types that need to transform GraphQL or API cart item data into the format required by Magento's addProduct() method.

Different product types (simple, configurable, bundle) have their own implementations to handle their specific option structures.

Public Methods

  • execute()