Model
ApplyCouponToCart
Magento\QuoteGraphQl\Model\Resolver\ApplyCouponToCart
What it does
This GraphQL resolver handles the applyCouponToCart mutation, allowing customers to apply discount coupon codes to their shopping carts.
Developers would use this when building or customizing the GraphQL checkout flow to enable coupon functionality.
It validates that no coupon is already applied before setting a new one and returns the updated cart.
Public Methods
- resolve()