cecon-interfaces 1.2.3 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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) {
@@ -44,7 +44,7 @@ export declare class InvoiceEntity implements IInvoice {
44
44
  returnUrl: string;
45
45
  status: EInvoiceStatus;
46
46
  subscriptionId: string;
47
- subtotal: number;
47
+ subTotal: number;
48
48
  totalAmount: number;
49
49
  totalFee: number;
50
50
  totalOverPaid: number;
@@ -44,7 +44,7 @@ var InvoiceEntity = /** @class */ (function () {
44
44
  this.returnUrl = '';
45
45
  this.status = enums_1.EInvoiceStatus.DRAFT;
46
46
  this.subscriptionId = '';
47
- this.subtotal = 0;
47
+ this.subTotal = 0;
48
48
  this.totalAmount = 0;
49
49
  this.totalFee = 0;
50
50
  this.totalOverPaid = 0;
@@ -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
  }
@@ -43,7 +43,7 @@ export interface IInvoice {
43
43
  returnUrl: string;
44
44
  status: EInvoiceStatus;
45
45
  subscriptionId: string;
46
- subtotal: number;
46
+ subTotal: number;
47
47
  totalAmount: number;
48
48
  totalFee: number;
49
49
  totalOverPaid: number;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.03",
3
+ "version": "1.2.05",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.03",
3
+ "version": "1.2.05",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",