cecon-interfaces 1.2.21 → 1.2.22

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.2.20",
3
+ "version": "1.2.22",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -6,13 +6,14 @@ export declare class PlanEntity implements IPlan {
6
6
  createdAt: Date;
7
7
  features: PlanFeatureEntity[];
8
8
  id: string;
9
- tags: string[];
10
- index: number;
11
9
  identifier: EPlanIdentifier;
10
+ index: number;
12
11
  interval: number;
13
12
  intervalType: EIntervalType;
14
13
  name: string;
15
14
  price: number;
15
+ tags: string[];
16
+ trialDays: number;
16
17
  updatedAt: Date;
17
18
  constructor(data?: Partial<PlanEntity>);
18
19
  }
@@ -4,20 +4,21 @@ exports.PlanEntity = void 0;
4
4
  var enums_1 = require("../../general/enums");
5
5
  var plans_identifier_enum_1 = require("../enums/plans-identifier.enum");
6
6
  var PlanEntity = /** @class */ (function () {
7
- // #endregion Properties (9)
7
+ // #endregion Properties (12)
8
8
  // #region Constructors (1)
9
9
  function PlanEntity(data) {
10
- // #region Properties (9)
10
+ // #region Properties (12)
11
11
  this.createdAt = new Date();
12
12
  this.features = [];
13
13
  this.id = '';
14
- this.tags = [];
15
- this.index = 0;
16
14
  this.identifier = plans_identifier_enum_1.EPlanIdentifier.NATIGO;
15
+ this.index = 0;
17
16
  this.interval = 12;
18
17
  this.intervalType = enums_1.EIntervalType.MONTHS;
19
18
  this.name = '';
20
19
  this.price = 0;
20
+ this.tags = [];
21
+ this.trialDays = 0;
21
22
  this.updatedAt = new Date();
22
23
  if (data) {
23
24
  for (var key in data) {
@@ -11,6 +11,7 @@ export interface IPlan {
11
11
  intervalType: EIntervalType;
12
12
  tags: string[];
13
13
  name: string;
14
+ trialDays: number;
14
15
  price: number;
15
16
  updatedAt: Date;
16
17
  }
@@ -4,10 +4,10 @@ exports.SubscriptionBaseEntity = void 0;
4
4
  var general_1 = require("../../general");
5
5
  var enums_1 = require("../enums");
6
6
  var SubscriptionBaseEntity = /** @class */ (function () {
7
- // #endregion Properties (25)
7
+ // #endregion Properties (23)
8
8
  // #region Constructors (1)
9
9
  function SubscriptionBaseEntity(data) {
10
- // #region Properties (25)
10
+ // #region Properties (23)
11
11
  this.amount = 0;
12
12
  this.cancellationReason = '';
13
13
  this.createdAt = new Date();
@@ -5,8 +5,6 @@ import { SubscriptionCompanyProfileEntity } from './subscription-company.entity'
5
5
  export declare class SubscriptionCompanyEntity extends SubscriptionBaseEntity implements ISubscriptionCompany {
6
6
  appId: string;
7
7
  appName: string;
8
- companyId: string;
9
- containerId: string;
10
8
  features: FeatureEntity[];
11
9
  partnerId: string | null;
12
10
  planId: string;
@@ -27,8 +27,6 @@ var SubscriptionCompanyEntity = /** @class */ (function (_super) {
27
27
  // #region Properties (9)
28
28
  _this.appId = '';
29
29
  _this.appName = '';
30
- _this.companyId = '';
31
- _this.containerId = '';
32
30
  _this.features = [];
33
31
  _this.partnerId = '';
34
32
  _this.planId = '';
@@ -21,11 +21,11 @@ var subscription_base_1 = require("../../subscription-base");
21
21
  var subscription_customer_entity_1 = require("./subscription-customer.entity");
22
22
  var SubscriptionCustomerEntity = /** @class */ (function (_super) {
23
23
  __extends(SubscriptionCustomerEntity, _super);
24
- // #endregion Properties (8)
24
+ // #endregion Properties (9)
25
25
  // #region Constructors (1)
26
26
  function SubscriptionCustomerEntity(data) {
27
27
  var _this = _super.call(this, data) || this;
28
- // #region Properties (8)
28
+ // #region Properties (9)
29
29
  _this.amountUsed = 0;
30
30
  _this.creditLimit = 0;
31
31
  _this.currentBalance = 0;
@@ -3,12 +3,12 @@ import { IInvoice } from '../../invoice';
3
3
  import { ISubscriptionBase } from '../../subscription-base';
4
4
  import { ISubscriptionCustomerProfile } from './i-subscription-customer';
5
5
  export interface ISubscriptionCustomer extends ISubscriptionBase {
6
- profile: ISubscriptionCustomerProfile;
7
- creditLimit: number;
8
- preferedDueDate: number;
9
- customerInterval: ECustomerInterval;
10
6
  amountUsed: number;
7
+ creditLimit: number;
11
8
  currentBalance: number;
12
9
  customerId: string | null;
10
+ customerInterval: ECustomerInterval;
13
11
  openedInvoices: IInvoice[];
12
+ preferedDueDate: number;
13
+ profile: ISubscriptionCustomerProfile;
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.21",
3
+ "version": "1.2.22",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",