cecon-interfaces 1.2.4 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,12 @@
1
1
  import { IInvoiceItem } from '../interfaces';
2
2
  export declare class InvoiceItemEntity implements IInvoiceItem {
3
+ createdAt: Date;
3
4
  description: string;
4
5
  isRefunded: boolean;
5
6
  quantity: number;
6
- unitPrice: number;
7
+ reference: string | null;
7
8
  totalPrice: number;
9
+ unitPrice: number;
10
+ updatedAt: Date;
8
11
  constructor(data?: Partial<InvoiceItemEntity>);
9
12
  }
@@ -2,15 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvoiceItemEntity = void 0;
4
4
  var InvoiceItemEntity = /** @class */ (function () {
5
- // #endregion Properties (4)
5
+ // #endregion Properties (8)
6
6
  // #region Constructors (1)
7
7
  function InvoiceItemEntity(data) {
8
- // #region Properties (4)
8
+ // #region Properties (8)
9
+ this.createdAt = new Date();
9
10
  this.description = '';
10
11
  this.isRefunded = false;
11
12
  this.quantity = 1;
12
- this.unitPrice = 0;
13
+ this.reference = '';
13
14
  this.totalPrice = 0;
15
+ this.unitPrice = 0;
16
+ this.updatedAt = new Date();
14
17
  if (data) {
15
18
  for (var key in data) {
16
19
  if (data.hasOwnProperty(key) && key in this) {
@@ -4,4 +4,7 @@ export interface IInvoiceItem {
4
4
  isRefunded: boolean;
5
5
  unitPrice: number;
6
6
  totalPrice: number;
7
+ reference: string | null;
8
+ createdAt: Date;
9
+ updatedAt: Date;
7
10
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.04",
3
+ "version": "1.2.06",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -6,6 +6,7 @@ export declare class SubscriptionCustomerEntity extends SubscriptionBaseEntity i
6
6
  amountUsed: number;
7
7
  creditLimit: number;
8
8
  currentBalance: number;
9
+ customerId: string | null;
9
10
  openedInvoices: IInvoice[];
10
11
  profile: SubscriptionCustomerProfileEntity;
11
12
  constructor(data?: Partial<SubscriptionCustomerEntity>);
@@ -20,14 +20,15 @@ var subscription_base_1 = require("../../subscription-base");
20
20
  var subscription_customer_entity_1 = require("./subscription-customer.entity");
21
21
  var SubscriptionCustomerEntity = /** @class */ (function (_super) {
22
22
  __extends(SubscriptionCustomerEntity, _super);
23
- // #endregion Properties (4)
23
+ // #endregion Properties (6)
24
24
  // #region Constructors (1)
25
25
  function SubscriptionCustomerEntity(data) {
26
26
  var _this = _super.call(this, data) || this;
27
- // #region Properties (4)
27
+ // #region Properties (6)
28
28
  _this.amountUsed = 0;
29
29
  _this.creditLimit = 0;
30
30
  _this.currentBalance = 0;
31
+ _this.customerId = null;
31
32
  _this.openedInvoices = [];
32
33
  _this.profile = new subscription_customer_entity_1.SubscriptionCustomerProfileEntity();
33
34
  if (data) {
@@ -6,5 +6,6 @@ export interface ISubscriptionCustomer extends ISubscriptionBase {
6
6
  creditLimit: number;
7
7
  amountUsed: number;
8
8
  currentBalance: number;
9
+ customerId: string | null;
9
10
  openedInvoices: IInvoice[];
10
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.04",
3
+ "version": "1.2.06",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",