mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat: rename voucher to license.
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
|
||||
|
||||
export interface IVoucher {
|
||||
export interface ILicense {
|
||||
id?: number,
|
||||
voucherCode: string,
|
||||
voucherPeriod: number,
|
||||
licenseCode: string,
|
||||
licensePeriod: number,
|
||||
sent: boolean,
|
||||
disabled: boolean,
|
||||
used: boolean,
|
||||
};
|
||||
|
||||
export interface IVouchersFilter {
|
||||
export interface ILicensesFilter {
|
||||
active: boolean,
|
||||
disabld: boolean,
|
||||
used: boolean,
|
||||
@@ -2,16 +2,16 @@
|
||||
|
||||
export interface IPaymentModel {}
|
||||
|
||||
export interface IVoucherPaymentModel extends IPaymentModel {
|
||||
voucherCode: string;
|
||||
export interface ILicensePaymentModel extends IPaymentModel {
|
||||
licenseCode: string;
|
||||
}
|
||||
|
||||
export interface IPaymentMethod {
|
||||
makePayment(paymentModel: IPaymentModel): Promise<boolean>;
|
||||
}
|
||||
|
||||
export interface IVoucherPaymentMethod {
|
||||
makePayment(paymentModel: IVoucherPaymentModel): Promise<boolean>;
|
||||
export interface ILicensePaymentMethod {
|
||||
makePayment(paymentModel: ILicensePaymentModel): Promise<boolean>;
|
||||
}
|
||||
|
||||
export interface IPaymentContext<PaymentModel> {
|
||||
|
||||
@@ -7,13 +7,13 @@ import {
|
||||
import { IInventoryCostMethod } from './InventoryCostMethod';
|
||||
import { IItemEntry } from './ItemEntry';
|
||||
import { IItem } from './Item';
|
||||
import { IVoucher, IVouchersFilter } from './Voucher';
|
||||
import { ILicense, ILicensesFilter } from './License';
|
||||
import { IItemCategory, IItemCategoryOTD } from './ItemCategory';
|
||||
import {
|
||||
IPaymentModel,
|
||||
IVoucherPaymentModel,
|
||||
ILicensePaymentModel,
|
||||
IPaymentMethod,
|
||||
IVoucherPaymentMethod,
|
||||
ILicensePaymentMethod,
|
||||
IPaymentContext,
|
||||
} from './Payment';
|
||||
import {
|
||||
@@ -57,16 +57,16 @@ export {
|
||||
IInventoryCostMethod,
|
||||
IItemEntry,
|
||||
IItem,
|
||||
IVoucher,
|
||||
IVouchersFilter,
|
||||
ILicense,
|
||||
ILicensesFilter,
|
||||
IItemCategory,
|
||||
IItemCategoryOTD,
|
||||
|
||||
IPaymentModel,
|
||||
IPaymentMethod,
|
||||
IPaymentContext,
|
||||
IVoucherPaymentModel,
|
||||
IVoucherPaymentMethod,
|
||||
ILicensePaymentModel,
|
||||
ILicensePaymentMethod,
|
||||
|
||||
ISaleInvoice,
|
||||
ISaleInvoiceOTD,
|
||||
|
||||
Reference in New Issue
Block a user