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