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
}
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 |