DiscountActions
●cart · /react·type
Discount-code mutation methods added to when
CartCapabilities.multipleDiscountCodes is true. Apply or remove a
discount code by its string value.
Properties
PROPTYPEDESCRIPTION
applyDiscountCode
unknown
removeDiscountCode
unknown
Example
const actions = useCartActions<{ multipleDiscountCodes: true } & CartCapabilities>();
await actions.applyDiscountCode('SAVE10');Related
CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions
ClientAuthBridge
Minimal React hook contract that exposes buyer identity to without coupling the cart to a specific auth library. Implement this interface in the host app and pa
GiftCardActions
Giftcard mutation methods added to when CartCapabilities.giftCards is true. Apply or remove a gift card by its redemption code or serverissued id.