GitHub

DaffInvalidCouponCodeError

Error

import { DaffInvalidCouponCodeError } from '@daffodil/cart/driver'

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.

class DaffInvalidCouponCodeError extends DaffInheritableError implements DaffError {
  readonly code: string = DaffCartDriverErrorCodes.INVALID_COUPON_CODE
  coupon: string
  __proto__: Error
  recoverable: boolean = false
  name: string
  message: string
  stack: string
}