cecon-interfaces 1.2.6 → 1.2.7

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.06",
3
+ "version": "1.2.07",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,3 +1,4 @@
1
+ import { ECustomerInterval } from '../../customer';
1
2
  import { IInvoice } from '../../invoice';
2
3
  import { SubscriptionBaseEntity } from '../../subscription-base';
3
4
  import { ISubscriptionCustomer } from '../interfaces/i-subscription';
@@ -7,7 +8,9 @@ export declare class SubscriptionCustomerEntity extends SubscriptionBaseEntity i
7
8
  creditLimit: number;
8
9
  currentBalance: number;
9
10
  customerId: string | null;
11
+ customerInterval: ECustomerInterval;
10
12
  openedInvoices: IInvoice[];
13
+ preferedDueDate: number;
11
14
  profile: SubscriptionCustomerProfileEntity;
12
15
  constructor(data?: Partial<SubscriptionCustomerEntity>);
13
16
  }
@@ -16,20 +16,23 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.SubscriptionCustomerEntity = void 0;
19
+ var customer_1 = require("../../customer");
19
20
  var subscription_base_1 = require("../../subscription-base");
20
21
  var subscription_customer_entity_1 = require("./subscription-customer.entity");
21
22
  var SubscriptionCustomerEntity = /** @class */ (function (_super) {
22
23
  __extends(SubscriptionCustomerEntity, _super);
23
- // #endregion Properties (6)
24
+ // #endregion Properties (8)
24
25
  // #region Constructors (1)
25
26
  function SubscriptionCustomerEntity(data) {
26
27
  var _this = _super.call(this, data) || this;
27
- // #region Properties (6)
28
+ // #region Properties (8)
28
29
  _this.amountUsed = 0;
29
30
  _this.creditLimit = 0;
30
31
  _this.currentBalance = 0;
31
32
  _this.customerId = null;
33
+ _this.customerInterval = customer_1.ECustomerInterval.MONTHLY;
32
34
  _this.openedInvoices = [];
35
+ _this.preferedDueDate = 7;
33
36
  _this.profile = new subscription_customer_entity_1.SubscriptionCustomerProfileEntity();
34
37
  if (data) {
35
38
  for (var key in data) {
@@ -1,9 +1,12 @@
1
+ import { ECustomerInterval } from '../../customer';
1
2
  import { IInvoice } from '../../invoice';
2
3
  import { ISubscriptionBase } from '../../subscription-base';
3
4
  import { ISubscriptionCustomerProfile } from './i-subscription-customer';
4
5
  export interface ISubscriptionCustomer extends ISubscriptionBase {
5
6
  profile: ISubscriptionCustomerProfile;
6
7
  creditLimit: number;
8
+ preferedDueDate: number;
9
+ customerInterval: ECustomerInterval;
7
10
  amountUsed: number;
8
11
  currentBalance: number;
9
12
  customerId: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.06",
3
+ "version": "1.2.07",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",