cecon-interfaces 1.1.15 → 1.1.17
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/feature/entities/feature.entity.mjs +4 -3
- package/dist/esm2022/feature/interfaces/i-feature.mjs +1 -1
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +5 -2
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/feature/entities/feature.entity.d.ts +1 -0
- package/dist/feature/entities/feature.entity.js +3 -2
- package/dist/feature/interfaces/i-feature.d.ts +1 -0
- package/dist/fesm2022/cecon-interfaces.mjs +7 -3
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/subscription/entities/subscription.entity.d.ts +5 -1
- package/dist/subscription/entities/subscription.entity.js +4 -1
- package/dist/subscription/interfaces/i-subscription.d.ts +5 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
@@ -1,21 +1,25 @@
|
|
1
1
|
import { FeatureEntity } from '../../feature';
|
2
2
|
import { CustomVariableEntity, IntervalTypeEnum } from '../../general';
|
3
|
+
import { InvoiceEntity } from '../../invoice';
|
3
4
|
import { SubscriptionStatusEnum } from '../enums';
|
4
5
|
import { ISubscription } from '../interfaces/i-subscription';
|
5
6
|
import { SubscriptionCompanyEntity } from './subscription-company.entity';
|
6
7
|
import { SubscriptionItemEntity } from './subscription-item.entity';
|
7
8
|
import { SubscriptionLogEntity } from './subscription-log.entity';
|
8
9
|
export declare class SubscriptionEntity implements ISubscription {
|
9
|
-
|
10
|
+
amount: number;
|
10
11
|
appId: string;
|
12
|
+
cancellationReason: string;
|
11
13
|
company: SubscriptionCompanyEntity;
|
12
14
|
createdAt: Date;
|
13
15
|
customVariables: CustomVariableEntity[];
|
16
|
+
cycledAt: Date;
|
14
17
|
expiresAt: Date;
|
15
18
|
features: FeatureEntity[];
|
16
19
|
id: string;
|
17
20
|
interval: number;
|
18
21
|
intervalType: IntervalTypeEnum;
|
22
|
+
invoices: InvoiceEntity[];
|
19
23
|
items: SubscriptionItemEntity[];
|
20
24
|
logs: SubscriptionLogEntity[];
|
21
25
|
notes: string;
|
@@ -9,16 +9,19 @@ var SubscriptionEntity = /** @class */ (function () {
|
|
9
9
|
// #region Constructors (1)
|
10
10
|
function SubscriptionEntity(data) {
|
11
11
|
// #region Properties (25)
|
12
|
-
this.
|
12
|
+
this.amount = 0;
|
13
13
|
this.appId = '';
|
14
|
+
this.cancellationReason = '';
|
14
15
|
this.company = new subscription_company_entity_1.SubscriptionCompanyEntity();
|
15
16
|
this.createdAt = new Date();
|
16
17
|
this.customVariables = [];
|
18
|
+
this.cycledAt = new Date();
|
17
19
|
this.expiresAt = new Date();
|
18
20
|
this.features = [];
|
19
21
|
this.id = '';
|
20
22
|
this.interval = 0;
|
21
23
|
this.intervalType = general_1.IntervalTypeEnum.MONTHS;
|
24
|
+
this.invoices = [];
|
22
25
|
this.items = [];
|
23
26
|
this.logs = [];
|
24
27
|
this.notes = '';
|
@@ -1,25 +1,29 @@
|
|
1
1
|
import { IFeature } from '../../feature';
|
2
2
|
import { ICustomVariable, IntervalTypeEnum } from '../../general';
|
3
|
+
import { IInvoice } from '../../invoice';
|
3
4
|
import { SubscriptionStatusEnum } from '../enums';
|
4
5
|
import { ISubscriptionCompany } from './i-subscription-company';
|
5
6
|
import { ISubscriptionItem } from './i-subscription-item';
|
6
7
|
import { ISubscriptionLog } from './i-subscription-log';
|
7
8
|
export interface ISubscription {
|
9
|
+
amount: number;
|
10
|
+
appId: string;
|
8
11
|
cancellationReason: string;
|
9
12
|
company: ISubscriptionCompany;
|
10
13
|
createdAt: Date;
|
11
14
|
customVariables: ICustomVariable[];
|
15
|
+
cycledAt: Date;
|
12
16
|
expiresAt: Date;
|
13
17
|
features: IFeature[];
|
14
18
|
id: string;
|
15
19
|
interval: number;
|
16
20
|
intervalType: IntervalTypeEnum;
|
21
|
+
invoices: IInvoice[];
|
17
22
|
items: ISubscriptionItem[];
|
18
23
|
logs: ISubscriptionLog[];
|
19
24
|
notes: string;
|
20
25
|
partnerId: string | null;
|
21
26
|
planId: string;
|
22
|
-
appId: string;
|
23
27
|
planName: string;
|
24
28
|
renewPaymentDate: Date;
|
25
29
|
renovatedAt: Date;
|