cecon-interfaces 1.1.97 → 1.2.3

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.
@@ -4,5 +4,6 @@ export declare class InvoiceItemEntity implements IInvoiceItem {
4
4
  isRefunded: boolean;
5
5
  quantity: number;
6
6
  unitPrice: number;
7
+ totalPrice: number;
7
8
  constructor(data?: Partial<InvoiceItemEntity>);
8
9
  }
@@ -10,6 +10,7 @@ var InvoiceItemEntity = /** @class */ (function () {
10
10
  this.isRefunded = false;
11
11
  this.quantity = 1;
12
12
  this.unitPrice = 0;
13
+ this.totalPrice = 0;
13
14
  if (data) {
14
15
  for (var key in data) {
15
16
  if (data.hasOwnProperty(key) && key in this) {
@@ -42,7 +42,7 @@ var InvoiceEntity = /** @class */ (function () {
42
42
  this.pix = null;
43
43
  this.returnExpiredUrl = '';
44
44
  this.returnUrl = '';
45
- this.status = enums_1.EInvoiceStatus.PENDING;
45
+ this.status = enums_1.EInvoiceStatus.DRAFT;
46
46
  this.subscriptionId = '';
47
47
  this.subtotal = 0;
48
48
  this.totalAmount = 0;
@@ -3,4 +3,5 @@ export interface IInvoiceItem {
3
3
  quantity: number;
4
4
  isRefunded: boolean;
5
5
  unitPrice: number;
6
+ totalPrice: number;
6
7
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.97",
3
+ "version": "1.2.03",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,10 +1,13 @@
1
+ import { EDocType } from '../../general';
1
2
  import { ISubscriptionCustomerProfile } from '../interfaces/i-subscription-customer';
2
3
  export declare class SubscriptionCustomerProfileEntity implements ISubscriptionCustomerProfile {
3
4
  doc: string | null;
4
- docType: string | null;
5
+ docType: EDocType;
6
+ email: string | null;
5
7
  id: string | null;
6
8
  imageUrl: string | null;
7
9
  name: string | null;
10
+ phoneNumber: string | null;
8
11
  uid: string | null;
9
12
  constructor(data?: Partial<SubscriptionCustomerProfileEntity>);
10
13
  }
@@ -1,16 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SubscriptionCustomerProfileEntity = void 0;
4
+ var general_1 = require("../../general");
4
5
  var SubscriptionCustomerProfileEntity = /** @class */ (function () {
5
- // #endregion Properties (6)
6
+ // #endregion Properties (8)
6
7
  // #region Constructors (1)
7
8
  function SubscriptionCustomerProfileEntity(data) {
8
- // #region Properties (6)
9
+ // #region Properties (8)
9
10
  this.doc = '';
10
- this.docType = '';
11
+ this.docType = general_1.EDocType.CNPJ;
12
+ this.email = '';
11
13
  this.id = '';
12
14
  this.imageUrl = '';
13
15
  this.name = '';
16
+ this.phoneNumber = '';
14
17
  this.uid = '';
15
18
  if (data) {
16
19
  for (var key in data) {
@@ -1,8 +1,11 @@
1
+ import { EDocType } from '../../general';
1
2
  export interface ISubscriptionCustomerProfile {
2
3
  doc: string | null;
3
- docType: string | null;
4
+ docType: EDocType;
4
5
  id: string | null;
5
6
  imageUrl: string | null;
6
7
  name: string | null;
8
+ email: string | null;
9
+ phoneNumber: string | null;
7
10
  uid: string | null;
8
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.97",
3
+ "version": "1.2.03",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",