GitHub

DaffCustomerPaymentTestingDriver

Service

import { DaffCustomerPaymentTestingDriver } from '@daffodil/customer-payment/driver/testing'

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

@Injectable()
class DaffCustomerPaymentTestingDriver implements DaffCustomerPaymentDriverInterface {
  list(): any
  get(paymentId: string): any
  update(payment: Partial<DaffCustomerPayment<unknown>> & DaffIdentifiable): any
  add(payment: DaffPaymentRequest<unknown>): any
  delete(paymentId: string): any
}

() Methods

list
any

Lists the customer's payments.

get
any

Get the specified payment.

Parameters
ParameterpaymentId: string
Description
update
any

Update the passed payment.

Parameters
Parameterpayment: Partial<DaffCustomerPayment> & DaffIdentifiable
Description
add
any

Adds the passed payment.

Parameters
Parameterpayment: DaffPaymentRequest
Description
delete
any

Deletes the specified payment.

Parameters
ParameterpaymentId: string
Description