Files
bigcapital/packages/server/src/interfaces/Payment.ts
2023-02-03 11:57:50 +02:00

20 lines
481 B
TypeScript

export interface IPaymentModel {}
export interface ILicensePaymentModel extends IPaymentModel {
licenseCode: string;
}
export interface IPaymentMethod {
makePayment(paymentModel: IPaymentModel): Promise<boolean>;
}
export interface ILicensePaymentMethod {
makePayment(paymentModel: ILicensePaymentModel): Promise<boolean>;
}
export interface IPaymentContext<PaymentModel> {
paymentMethod: IPaymentMethod;
makePayment(paymentModel: PaymentModel): Promise<boolean>;
}