feat: rename voucher to license.

This commit is contained in:
Ahmed Bouhuolia
2020-09-05 22:58:36 +02:00
parent 750377ba86
commit df0cf287ff
24 changed files with 347 additions and 361 deletions

View File

@@ -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,

View File

@@ -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> {

View File

@@ -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,