GitHub

DaffCustomerPaymentInMemoryDriver

Service

import { DaffCustomerPaymentInMemoryDriver } from '@daffodil/customer-payment/driver/in-memory'

The customer payment in-memory driver to mock the customer payment backend service.

@Injectable()
class DaffCustomerPaymentInMemoryDriver extends DaffInMemoryDriverBase 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