GitHub

DaffCartStoreCreditTestingDriver

Service

import { DaffCartStoreCreditTestingDriver } from '@daffodil/cart-store-credit/driver/testing'

A basic cart driver that creates mock cart results of different kinds. For testing purposes.

@Injectable()
class DaffCartStoreCreditTestingDriver implements DaffCartStoreCreditDriverInterface {
  apply(): any
  remove(): any
}

() Methods

apply
any

Apply store credit to the cart.

remove
any

Remove store credit from the cart.