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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
- cancellationReason: string;
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.cancellationReason = '';
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",