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
}
anyList coupon codes applied to a cart.
| Parameter | cartId: string |
|---|---|
| Description |
anyApply a coupon to the cart and return a partial of the cart.
| Parameter | cartId: string |
|---|---|
| Description |
| Parameter | coupon: DaffCartCoupon |
|---|---|
| Description |
anyRemove a coupon from the cart and return a partial of the cart.
| Parameter | cartId: string |
|---|---|
| Description |
| Parameter | coupon: DaffCartCoupon |
|---|---|
| Description |
anyRemove all coupons from the cart and return a partial of the cart.
| Parameter | cartId: string |
|---|---|
| Description |