GitHub

DaffTestingCartCouponService

Service

import { DaffTestingCartCouponService } from '@daffodil/cart/driver/testing'

@Injectable()
class DaffTestingCartCouponService implements DaffCartCouponServiceInterface {
  list(cartId: string): any
  apply(
    cartId: string
    coupon: DaffCartCoupon
  ): any
  remove(
    cartId: string
    coupon: DaffCartCoupon
  ): any
  removeAll(cartId: string): any
}

() Methods

list
any

List coupon codes applied to a cart.

Parameters
ParametercartId: string
Description
apply
any

Apply a coupon to the cart and return a partial of the cart.

Parameters
ParametercartId: string
Description
Parametercoupon: DaffCartCoupon
Description
remove
any

Remove a coupon from the cart and return a partial of the cart.

Parameters
ParametercartId: string
Description
Parametercoupon: DaffCartCoupon
Description
removeAll
any

Remove all coupons from the cart and return a partial of the cart.

Parameters
ParametercartId: string
Description