GitHub

DaffTestingCartPaymentService

Service

import { DaffTestingCartPaymentService } from '@daffodil/cart/driver/testing'

@Injectable()
class DaffTestingCartPaymentService implements DaffCartPaymentServiceInterface {
  get(cartId: string): any
  update(
    cartId: string
    payment: Partial<DaffCartPaymentMethod>
  ): any
  updateWithBilling(
    cartId: string
    payment: Partial<DaffCartPaymentMethod>
    address: Partial<DaffCartAddress>
  ): any
  remove(cartId: string): any
}

() Methods

get
any

Get the currently applied payment method of a cart.

Parameters
ParametercartId: string
Description
update
any

Update the payment method applied to a cart.

If a billing address is provided, the driver will update that simultaneously.

Parameters
ParametercartId: string
Description
Parameterpayment: Partial<DaffCartPaymentMethod>
Description
updateWithBilling
any
Parameters
ParametercartId: string
Description
Parameterpayment: Partial<DaffCartPaymentMethod>
Description
Parameteraddress: Partial<DaffCartAddress>
Description
remove
any

Remove the payment method applied to a cart.

Parameters
ParametercartId: string
Description