mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 04:10:32 +00:00
20 lines
481 B
TypeScript
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>;
|
|
} |