DaffInvalidCouponCodeError
An error thrown when the specified coupon code cannot be applied to the cart. Either the coupon code does not exist or the required conditions are not met.
import { DaffInvalidCouponCodeError } from '@daffodil/cart/driver'
class DaffInvalidCouponCodeError extends DaffInheritableError implements DaffError {
readonly code: string
coupon: DaffCartCoupon['code']
}
Properties
Name | Type | Description |
---|---|---|
code | string | |
coupon | DaffCartCoupon['code'] |