import { DaffTestingCartCouponService } from '@daffodil/cart/driver/testing'
@Injectable()
class DaffTestingCartCouponService implements DaffCartCouponServiceInterface {
list(cartId: string): Observable<DaffCartCoupon[]>
apply(
cartId: string
coupon: DaffCartCoupon
): Observable<Partial<DaffCart>>
remove(
cartId: string
coupon: DaffCartCoupon
): Observable<Partial<DaffCart>>
removeAll(cartId: string): Observable<Partial<DaffCart>>
}
Observable<DaffCartCoupon[]>
List coupon codes applied to a cart.
Parameter | cartId: string |
---|---|
Description |
Observable<Partial<DaffCart>>
Apply a coupon to the cart and return a partial of the cart.
Parameter | cartId: string |
---|---|
Description |
Parameter | coupon: DaffCartCoupon |
---|---|
Description |
Observable<Partial<DaffCart>>
Remove a coupon from the cart and return a partial of the cart.
Parameter | cartId: string |
---|---|
Description |
Parameter | coupon: DaffCartCoupon |
---|---|
Description |
Observable<Partial<DaffCart>>
Remove all coupons from the cart and return a partial of the cart.
Parameter | cartId: string |
---|---|
Description |