mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
add server to monorepo.
This commit is contained in:
20
packages/server/src/interfaces/Payment.ts
Normal file
20
packages/server/src/interfaces/Payment.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
|
||||
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>;
|
||||
}
|
||||
Reference in New Issue
Block a user