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
}
anyLists the customer's payments.
anyGet the specified payment.
| Parameter | paymentId: string |
|---|---|
| Description |
anyUpdate the passed payment.
| Parameter | payment: Partial |
|---|---|
| Description |
anyAdds the passed payment.
| Parameter | payment: TRequest |
|---|---|
| Description |
anyDeletes the specified payment.
| Parameter | paymentId: string |
|---|---|
| Description |