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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.16",
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,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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.16",
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",