cecon-interfaces 1.2.1 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.2.01",
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,7 +1,8 @@
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;
5
6
  email: string | null;
6
7
  id: string | null;
7
8
  imageUrl: string | null;
@@ -1,13 +1,14 @@
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
6
  // #endregion Properties (8)
6
7
  // #region Constructors (1)
7
8
  function SubscriptionCustomerProfileEntity(data) {
8
9
  // #region Properties (8)
9
10
  this.doc = '';
10
- this.docType = '';
11
+ this.docType = general_1.EDocType.CNPJ;
11
12
  this.email = '';
12
13
  this.id = '';
13
14
  this.imageUrl = '';
@@ -1,6 +1,7 @@
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.01",
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",