import { DaffInMemoryCartCouponService } from '@daffodil/cart/driver/in-memory'
@Injectable()
class DaffInMemoryCartCouponService extends DaffInMemoryDriverBase 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 |
ObservableDaffCart>> Apply a coupon to the cart and return a partial of the cart.
| Parameter | cartId: string |
|---|---|
| Description |
| Parameter | coupon: DaffCartCoupon |
|---|---|
| Description |
ObservableDaffCart>> Remove a coupon from the cart and return a partial of the cart.
| Parameter | cartId: string |
|---|---|
| Description |
| Parameter | coupon: DaffCartCoupon |
|---|---|
| Description |
ObservableDaffCart>> Remove all coupons from the cart and return a partial of the cart.
| Parameter | cartId: string |
|---|---|
| Description |