GitHub

DaffCartStoreCreditDriverInterface

The cart store credit driver is responsible for loading carts.

import { DaffCartStoreCreditDriverInterface } from '@daffodil/cart-store-credit/driver'
interface DaffCartStoreCreditDriverInterface<TCart extends DaffCartWithStoreCredit = DaffCartWithStoreCredit> {
  apply: Observable<TCart>
  remove: Observable<TCart>
}

Properties

Name Type Description
apply Observable<TCart>

Apply store credit to the cart.

remove Observable<TCart>

Remove store credit from the cart.