GitHub

DaffCustomerPaymentDriverInterface

Type

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

The customer payment driver is responsible for loading customers.

interface DaffCustomerPaymentDriverInterface<TPayment extends DaffCustomerPayment = DaffCustomerPayment, TRequest extends DaffCustomerPaymentRequest = DaffCustomerPaymentRequest> {
  list(): any
  get(paymentId: string): any
  update(payment: Partial<TPayment> & DaffIdentifiable): any
  add(payment: TRequest): 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 & DaffIdentifiable
Description
add
any

Adds the passed payment.

Parameters
Parameterpayment: TRequest
Description
delete
any

Deletes the specified payment.

Parameters
ParameterpaymentId: string
Description