mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
feat: Payment system with voucher cards.
feat: Design with inversion dependency injection architecture. feat: Prettier http middleware. feat: Re-write items categories with preferred accounts.
This commit is contained in:
20
server/src/interfaces/Payment.ts
Normal file
20
server/src/interfaces/Payment.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
|
||||
export interface IPaymentModel {}
|
||||
|
||||
export interface IVoucherPaymentModel extends IPaymentModel {
|
||||
voucherCode: string;
|
||||
}
|
||||
|
||||
export interface IPaymentMethod {
|
||||
makePayment(paymentModel: IPaymentModel): Promise<boolean>;
|
||||
}
|
||||
|
||||
export interface IVoucherPaymentMethod {
|
||||
makePayment(paymentModel: IVoucherPaymentModel): Promise<boolean>;
|
||||
}
|
||||
|
||||
export interface IPaymentContext<PaymentModel> {
|
||||
paymentMethod: IPaymentMethod;
|
||||
makePayment(paymentModel: PaymentModel): Promise<boolean>;
|
||||
}
|
||||
Reference in New Issue
Block a user