cecon-interfaces 1.1.16 → 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 +4 -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 +6 -3
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/subscription/entities/subscription.entity.d.ts +4 -1
- package/dist/subscription/entities/subscription.entity.js +3 -1
- package/dist/subscription/interfaces/i-subscription.d.ts +5 -2
- package/package.json +1 -1
package/dist/package.json
CHANGED
@@ -1,22 +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
|
-
cancellationReason: string;
|
10
10
|
amount: number;
|
11
11
|
appId: string;
|
12
|
+
cancellationReason: string;
|
12
13
|
company: SubscriptionCompanyEntity;
|
13
14
|
createdAt: Date;
|
14
15
|
customVariables: CustomVariableEntity[];
|
16
|
+
cycledAt: Date;
|
15
17
|
expiresAt: Date;
|
16
18
|
features: FeatureEntity[];
|
17
19
|
id: string;
|
18
20
|
interval: number;
|
19
21
|
intervalType: IntervalTypeEnum;
|
22
|
+
invoices: InvoiceEntity[];
|
20
23
|
items: SubscriptionItemEntity[];
|
21
24
|
logs: SubscriptionLogEntity[];
|
22
25
|
notes: string;
|
@@ -9,17 +9,19 @@ var SubscriptionEntity = /** @class */ (function () {
|
|
9
9
|
// #region Constructors (1)
|
10
10
|
function SubscriptionEntity(data) {
|
11
11
|
// #region Properties (25)
|
12
|
-
this.cancellationReason = '';
|
13
12
|
this.amount = 0;
|
14
13
|
this.appId = '';
|
14
|
+
this.cancellationReason = '';
|
15
15
|
this.company = new subscription_company_entity_1.SubscriptionCompanyEntity();
|
16
16
|
this.createdAt = new Date();
|
17
17
|
this.customVariables = [];
|
18
|
+
this.cycledAt = new Date();
|
18
19
|
this.expiresAt = new Date();
|
19
20
|
this.features = [];
|
20
21
|
this.id = '';
|
21
22
|
this.interval = 0;
|
22
23
|
this.intervalType = general_1.IntervalTypeEnum.MONTHS;
|
24
|
+
this.invoices = [];
|
23
25
|
this.items = [];
|
24
26
|
this.logs = [];
|
25
27
|
this.notes = '';
|
@@ -1,26 +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
|
-
amount: number;
|
17
20
|
intervalType: IntervalTypeEnum;
|
21
|
+
invoices: IInvoice[];
|
18
22
|
items: ISubscriptionItem[];
|
19
23
|
logs: ISubscriptionLog[];
|
20
24
|
notes: string;
|
21
25
|
partnerId: string | null;
|
22
26
|
planId: string;
|
23
|
-
appId: string;
|
24
27
|
planName: string;
|
25
28
|
renewPaymentDate: Date;
|
26
29
|
renovatedAt: Date;
|