cecon-interfaces 1.2.1 → 1.2.4

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) {
@@ -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;
@@ -42,9 +42,9 @@ 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
- this.subtotal = 0;
47
+ this.subTotal = 0;
48
48
  this.totalAmount = 0;
49
49
  this.totalFee = 0;
50
50
  this.totalOverPaid = 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
  }
@@ -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.01",
3
+ "version": "1.2.04",
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.04",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",