Home > @vsf-enterprise/sapcc > UseCartPromotionsComposable
UseCartPromotionsComposable interface
Composable method for managing cart promotions
Signature:
export interface UseCartPromotionsComposable
Properties
Property | Type | Description |
---|---|---|
addVoucher | (props: AddCartVoucherProps) => Promise<void> | A method for applying a voucher on a cart. |
error | ComputedRef<UseCartPromotionsError> | An indicator of useCartPromotions composable methods errors |
loading | ComputedRef<UseCartPromotionsLoading> | An indicator of useCartPromotions composable methods progress |
removeVoucher | (props: RemoveCartVoucherProps) => Promise<void> | A method for removing a voucher from a cart. |