import { DaffCartStoreCreditDriverInterface } from '@daffodil/cart-store-credit/driver'
The cart store credit driver is responsible for loading carts.
interface DaffCartStoreCreditDriverInterface<TCart extends DaffCartWithStoreCredit = DaffCartWithStoreCredit> {
apply(cartId: string): Observable<TCart>
remove(cartId: string): Observable<TCart>
}
Observable<TCart>
Apply store credit to the cart.
Parameter | cartId: string |
---|---|
Description |
Observable<TCart>
Remove store credit from the cart.
Parameter | cartId: string |
---|---|
Description |