cecon-interfaces 1.0.85 → 1.0.89

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/dist/esm2022/general/entities/custom-variable.entity.mjs +17 -0
  2. package/dist/esm2022/general/entities/index.mjs +2 -1
  3. package/dist/esm2022/general/interfaces/i-custom-variable.mjs +3 -0
  4. package/dist/esm2022/general/interfaces/index.mjs +1 -1
  5. package/dist/esm2022/invoice/entities/invoice-item.entity.mjs +3 -3
  6. package/dist/esm2022/invoice/entities/invoice.entity.mjs +12 -7
  7. package/dist/esm2022/invoice/interfaces/i-invoice-item.mjs +1 -1
  8. package/dist/esm2022/invoice/interfaces/i-invoice.mjs +1 -1
  9. package/dist/esm2022/iugu/entities/index.mjs +2 -1
  10. package/dist/esm2022/iugu/entities/invoice.entity.mjs +129 -0
  11. package/dist/esm2022/iugu/interfaces/i-invoice.mjs +2 -0
  12. package/dist/esm2022/iugu/interfaces/index.mjs +1 -1
  13. package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
  14. package/dist/esm2022/subscription/entities/index.mjs +3 -2
  15. package/dist/esm2022/subscription/entities/subscription-item.entity.mjs +20 -0
  16. package/dist/esm2022/subscription/entities/subscription.entity.mjs +6 -3
  17. package/dist/esm2022/subscription/interfaces/i-subscription-item.mjs +2 -0
  18. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
  19. package/dist/esm2022/subscription/interfaces/index.mjs +1 -1
  20. package/dist/fesm2022/cecon-interfaces.mjs +185 -11
  21. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  22. package/dist/general/entities/custom-variable.entity.d.ts +5 -0
  23. package/dist/general/entities/custom-variable.entity.js +21 -0
  24. package/dist/general/entities/index.d.ts +1 -0
  25. package/dist/general/entities/index.js +3 -1
  26. package/dist/general/interfaces/i-custom-variable.d.ts +4 -0
  27. package/dist/general/interfaces/i-custom-variable.js +3 -0
  28. package/dist/general/interfaces/index.d.ts +1 -0
  29. package/dist/invoice/entities/invoice-item.entity.d.ts +2 -2
  30. package/dist/invoice/entities/invoice-item.entity.js +2 -2
  31. package/dist/invoice/entities/invoice.entity.d.ts +8 -3
  32. package/dist/invoice/entities/invoice.entity.js +11 -6
  33. package/dist/invoice/interfaces/i-invoice-item.d.ts +2 -2
  34. package/dist/invoice/interfaces/i-invoice.d.ts +11 -6
  35. package/dist/iugu/entities/index.d.ts +1 -0
  36. package/dist/iugu/entities/index.js +3 -1
  37. package/dist/iugu/entities/invoice.entity.d.ts +118 -0
  38. package/dist/iugu/entities/invoice.entity.js +82 -0
  39. package/dist/iugu/interfaces/i-invoice.d.ts +116 -0
  40. package/dist/iugu/interfaces/i-invoice.js +2 -0
  41. package/dist/iugu/interfaces/index.d.ts +1 -0
  42. package/dist/package.json +1 -1
  43. package/dist/plan/interfaces/i-plan.d.ts +5 -5
  44. package/dist/subscription/entities/index.d.ts +2 -1
  45. package/dist/subscription/entities/index.js +4 -2
  46. package/dist/subscription/entities/subscription-item.entity.d.ts +9 -0
  47. package/dist/subscription/entities/subscription-item.entity.js +24 -0
  48. package/dist/subscription/entities/subscription.entity.d.ts +5 -1
  49. package/dist/subscription/entities/subscription.entity.js +5 -2
  50. package/dist/subscription/interfaces/i-subscription-item.d.ts +7 -0
  51. package/dist/subscription/interfaces/i-subscription-item.js +2 -0
  52. package/dist/subscription/interfaces/i-subscription.d.ts +5 -1
  53. package/dist/subscription/interfaces/index.d.ts +2 -1
  54. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ export declare class CustomVariableEntity {
2
+ name: string;
3
+ value: string;
4
+ constructor(data?: Partial<CustomVariableEntity>);
5
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CustomVariableEntity = void 0;
4
+ var CustomVariableEntity = /** @class */ (function () {
5
+ // #endregion Properties (2)
6
+ // #region Constructors (1)
7
+ function CustomVariableEntity(data) {
8
+ // #region Properties (2)
9
+ this.name = "";
10
+ this.value = "";
11
+ if (data) {
12
+ for (var key in data) {
13
+ if (data.hasOwnProperty(key) && key in this) {
14
+ this[key] = data[key];
15
+ }
16
+ }
17
+ }
18
+ }
19
+ return CustomVariableEntity;
20
+ }());
21
+ exports.CustomVariableEntity = CustomVariableEntity;
@@ -2,6 +2,7 @@ export { AddressEntity } from './address.entity';
2
2
  export { BaseEntity } from './base.entity';
3
3
  export { CarouselImageEntity } from './carousel-image.entity';
4
4
  export { CoordsEntity } from './coords.entity';
5
+ export { CustomVariableEntity } from './custom-variable.entity';
5
6
  export { DeliveryAreaEntity } from './delivery-area.entity';
6
7
  export { DeliveryAreaFixedEntity } from './dellivery-area-fixed.entity';
7
8
  export { MessagerChannelEntity } from './messager-channel.entity';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RatingEntity = exports.PaymentTokenEntity = exports.PaymentTokenDataEntity = exports.PaymentProviderEntity = exports.PaymentProviderAgentEntity = exports.PaymentMethodEntity = exports.OriginEntity = exports.MobyoApiConfigEntity = exports.MessagerChannelEntity = exports.DeliveryAreaFixedEntity = exports.DeliveryAreaEntity = exports.CoordsEntity = exports.CarouselImageEntity = exports.BaseEntity = exports.AddressEntity = void 0;
3
+ exports.RatingEntity = exports.PaymentTokenEntity = exports.PaymentTokenDataEntity = exports.PaymentProviderEntity = exports.PaymentProviderAgentEntity = exports.PaymentMethodEntity = exports.OriginEntity = exports.MobyoApiConfigEntity = exports.MessagerChannelEntity = exports.DeliveryAreaFixedEntity = exports.DeliveryAreaEntity = exports.CustomVariableEntity = exports.CoordsEntity = exports.CarouselImageEntity = exports.BaseEntity = exports.AddressEntity = void 0;
4
4
  var address_entity_1 = require("./address.entity");
5
5
  Object.defineProperty(exports, "AddressEntity", { enumerable: true, get: function () { return address_entity_1.AddressEntity; } });
6
6
  var base_entity_1 = require("./base.entity");
@@ -9,6 +9,8 @@ var carousel_image_entity_1 = require("./carousel-image.entity");
9
9
  Object.defineProperty(exports, "CarouselImageEntity", { enumerable: true, get: function () { return carousel_image_entity_1.CarouselImageEntity; } });
10
10
  var coords_entity_1 = require("./coords.entity");
11
11
  Object.defineProperty(exports, "CoordsEntity", { enumerable: true, get: function () { return coords_entity_1.CoordsEntity; } });
12
+ var custom_variable_entity_1 = require("./custom-variable.entity");
13
+ Object.defineProperty(exports, "CustomVariableEntity", { enumerable: true, get: function () { return custom_variable_entity_1.CustomVariableEntity; } });
12
14
  var delivery_area_entity_1 = require("./delivery-area.entity");
13
15
  Object.defineProperty(exports, "DeliveryAreaEntity", { enumerable: true, get: function () { return delivery_area_entity_1.DeliveryAreaEntity; } });
14
16
  var dellivery_area_fixed_entity_1 = require("./dellivery-area-fixed.entity");
@@ -0,0 +1,4 @@
1
+ export interface ICustomVariable {
2
+ name: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // src/models/base.entity.ts
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,6 +2,7 @@ export { IAddress } from './i-address';
2
2
  export { IBase } from './i-base';
3
3
  export { ICarouselImage } from './i-carousel-image';
4
4
  export { ICoords } from './i-coords';
5
+ export { ICustomVariable } from './i-custom-variable';
5
6
  export { IDeliveryArea } from './i-delivery-area';
6
7
  export { IDeliveryAreaFixed } from './i-delivery-area-fixed';
7
8
  export { IMessagerChannel } from './i-messager-channel';
@@ -1,11 +1,11 @@
1
1
  import { IInvoiceItem } from '../interfaces';
2
2
  export declare class InvoiceItemEntity implements IInvoiceItem {
3
+ addition: number;
3
4
  description: string;
4
- discounts: number;
5
+ discount: number;
5
6
  id: string;
6
7
  quantity: number;
7
8
  sku: string;
8
- taxes: number;
9
9
  totalPrice: number;
10
10
  unitPrice: number;
11
11
  constructor(data?: Partial<InvoiceItemEntity>);
@@ -6,12 +6,12 @@ var InvoiceItemEntity = /** @class */ (function () {
6
6
  // #region Constructors (1)
7
7
  function InvoiceItemEntity(data) {
8
8
  // #region Properties (8)
9
+ this.addition = 0;
9
10
  this.description = '';
10
- this.discounts = 0;
11
+ this.discount = 0;
11
12
  this.id = '';
12
13
  this.quantity = 1;
13
14
  this.sku = '';
14
- this.taxes = 0;
15
15
  this.totalPrice = 0;
16
16
  this.unitPrice = 0;
17
17
  if (data) {
@@ -3,18 +3,23 @@ import { IInvoice } from '../interfaces';
3
3
  import { InvoiceItemEntity } from './invoice-item.entity';
4
4
  import { InvoicePaymentMethodEntity } from './invoice-payment-method.entity';
5
5
  export declare class InvoiceEntity implements IInvoice {
6
+ addition: number;
6
7
  companyId: string;
7
8
  containerId: string;
8
9
  createdAt: Date;
9
- discounts: number;
10
+ discount: number;
10
11
  dueDateAt: Date;
12
+ ensureDueOnWorkday: boolean;
13
+ expiresIn: number;
11
14
  id: string;
12
- invoiceNumber: string;
13
15
  items: InvoiceItemEntity[];
14
16
  notes: string;
15
- paidDateAt: Date;
17
+ paidAt: Date;
16
18
  paymentMethod: InvoicePaymentMethodEntity[];
19
+ providerInvoiceNumber: string;
20
+ providerInvoiceUrl: string;
17
21
  status: InvoiceStatusEnum;
22
+ subscriptionId: string;
18
23
  subtotal: number;
19
24
  taxes: number;
20
25
  total: number;
@@ -3,22 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvoiceEntity = void 0;
4
4
  var enums_1 = require("../enums");
5
5
  var InvoiceEntity = /** @class */ (function () {
6
- // #endregion Properties (16)
6
+ // #endregion Properties (21)
7
7
  // #region Constructors (1)
8
8
  function InvoiceEntity(data) {
9
- // #region Properties (16)
9
+ // #region Properties (21)
10
+ this.addition = 0;
10
11
  this.companyId = '';
11
12
  this.containerId = '';
12
13
  this.createdAt = new Date();
13
- this.discounts = 0;
14
- this.dueDateAt = new Date();
14
+ this.discount = 0;
15
+ this.dueDateAt = new Date(Date.now() + 3 * 24 * 60 * 60 * 1000);
16
+ this.ensureDueOnWorkday = true;
17
+ this.expiresIn = 5;
15
18
  this.id = '';
16
- this.invoiceNumber = '';
17
19
  this.items = [];
18
20
  this.notes = '';
19
- this.paidDateAt = new Date();
21
+ this.paidAt = new Date();
20
22
  this.paymentMethod = [];
23
+ this.providerInvoiceNumber = '';
24
+ this.providerInvoiceUrl = '';
21
25
  this.status = enums_1.InvoiceStatusEnum.PENDING;
26
+ this.subscriptionId = '';
22
27
  this.subtotal = 0;
23
28
  this.taxes = 0;
24
29
  this.total = 0;
@@ -1,10 +1,10 @@
1
1
  export interface IInvoiceItem {
2
+ addition: number;
2
3
  description: string;
3
- discounts: number;
4
+ discount: number;
4
5
  id: string;
5
6
  quantity: number;
6
7
  sku: string;
7
- taxes: number;
8
8
  totalPrice: number;
9
9
  unitPrice: number;
10
10
  }
@@ -1,19 +1,24 @@
1
- import { InvoiceStatusEnum } from '../enums';
2
- import { IInvoiceItem } from './i-invoice-item';
3
- import { IInvoicePaymentMethod } from './i-invoice-payment-method';
1
+ import { InvoiceStatusEnum } from "../enums";
2
+ import { IInvoiceItem } from "./i-invoice-item";
3
+ import { IInvoicePaymentMethod } from "./i-invoice-payment-method";
4
4
  export interface IInvoice {
5
+ addition: number;
5
6
  companyId: string;
6
7
  containerId: string;
7
8
  createdAt: Date;
8
- discounts: number;
9
+ discount: number;
9
10
  dueDateAt: Date;
11
+ ensureDueOnWorkday: boolean;
12
+ expiresIn: number;
10
13
  id: string;
11
- invoiceNumber: string;
12
14
  items: IInvoiceItem[];
13
15
  notes: string;
14
- paidDateAt: Date;
16
+ paidAt: Date;
15
17
  paymentMethod: IInvoicePaymentMethod[];
18
+ providerInvoiceNumber: string;
19
+ providerInvoiceUrl: string;
16
20
  status: InvoiceStatusEnum;
21
+ subscriptionId: string;
17
22
  subtotal: number;
18
23
  taxes: number;
19
24
  total: number;
@@ -1,6 +1,7 @@
1
1
  export { AccountInformationsEntity } from './account-informations.entity';
2
2
  export { LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity } from './account-last-verification-request-data.entity';
3
3
  export { IuguCustomerEntity } from './customer.entity';
4
+ export { IuguInvoiceEntity } from './invoice.entity';
4
5
  export { IuguAccountEntity } from './iugu-account.entity';
5
6
  export { IuguPaymentTokenDataEntity } from './payment-token-data.entity';
6
7
  export { IuguPaymentTokenEntity } from './payment-token.entity';
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IuguPaymentTokenEntity = exports.IuguPaymentTokenDataEntity = exports.IuguAccountEntity = exports.IuguCustomerEntity = exports.IuguAccountLastVerificationRequestDataEntity = exports.AccountInformationsEntity = void 0;
3
+ exports.IuguPaymentTokenEntity = exports.IuguPaymentTokenDataEntity = exports.IuguAccountEntity = exports.IuguInvoiceEntity = exports.IuguCustomerEntity = exports.IuguAccountLastVerificationRequestDataEntity = exports.AccountInformationsEntity = void 0;
4
4
  var account_informations_entity_1 = require("./account-informations.entity");
5
5
  Object.defineProperty(exports, "AccountInformationsEntity", { enumerable: true, get: function () { return account_informations_entity_1.AccountInformationsEntity; } });
6
6
  var account_last_verification_request_data_entity_1 = require("./account-last-verification-request-data.entity");
7
7
  Object.defineProperty(exports, "IuguAccountLastVerificationRequestDataEntity", { enumerable: true, get: function () { return account_last_verification_request_data_entity_1.LastVerificationRequestDataEntity; } });
8
8
  var customer_entity_1 = require("./customer.entity");
9
9
  Object.defineProperty(exports, "IuguCustomerEntity", { enumerable: true, get: function () { return customer_entity_1.IuguCustomerEntity; } });
10
+ var invoice_entity_1 = require("./invoice.entity");
11
+ Object.defineProperty(exports, "IuguInvoiceEntity", { enumerable: true, get: function () { return invoice_entity_1.IuguInvoiceEntity; } });
10
12
  var iugu_account_entity_1 = require("./iugu-account.entity");
11
13
  Object.defineProperty(exports, "IuguAccountEntity", { enumerable: true, get: function () { return iugu_account_entity_1.IuguAccountEntity; } });
12
14
  var payment_token_data_entity_1 = require("./payment-token-data.entity");
@@ -0,0 +1,118 @@
1
+ import { IIuguInvoice } from "../interfaces/i-invoice";
2
+ export declare class IuguInvoiceEntity implements IIuguInvoice {
3
+ accountId: string;
4
+ accountName: string;
5
+ advanceFee: any;
6
+ advanceFeeCents: any;
7
+ authorizedAt: any;
8
+ authorizedAtIso: any;
9
+ bankAccountBranch: string;
10
+ bankAccountNumber: string;
11
+ bankSlip: any;
12
+ bankSlipExtraDue: number;
13
+ canceledAt: any;
14
+ canceledAtIso: any;
15
+ ccEmails: any;
16
+ chargebackAt: any;
17
+ chargebackAtIso: any;
18
+ commission: string;
19
+ commissionCents: any;
20
+ createdAt: string;
21
+ createdAtIso: string;
22
+ creditCardBin: any;
23
+ creditCardBrand: any;
24
+ creditCardCapturedAt: any;
25
+ creditCardLast4: any;
26
+ creditCardTid: any;
27
+ creditCardTransaction: string;
28
+ currency: string;
29
+ customVariables: any[];
30
+ customerId: any;
31
+ customerName: any;
32
+ customerRef: any;
33
+ discount: any;
34
+ discountCents: number;
35
+ doublePaymentId: any;
36
+ dueDate: string;
37
+ duplicatedInvoiceId: any;
38
+ earlyPaymentDiscount: boolean;
39
+ earlyPaymentDiscounts: any[];
40
+ email: string;
41
+ estimatedAdvanceFee: any;
42
+ expiredAt: any;
43
+ expiredAtIso: any;
44
+ externalPaymentDescription: any;
45
+ externalPaymentId: any;
46
+ externalReference: any;
47
+ financialReturnDate: any;
48
+ financialReturnDates: any;
49
+ finesOnOccurrenceDay: string;
50
+ finesOnOccurrenceDayCents: number;
51
+ id: string;
52
+ ignoreCanceledEmail: boolean;
53
+ ignoreDueEmail: boolean;
54
+ installments: any;
55
+ interest: any;
56
+ items: any[];
57
+ itemsTotalCents: number;
58
+ latePaymentFine: any;
59
+ latePaymentFineCents: number;
60
+ logs: any[];
61
+ maxInstallmentsValue: any;
62
+ notificationUrl: string;
63
+ occurrenceDate: any;
64
+ orderId: any;
65
+ originalPaymentId: any;
66
+ overpaidCents: any;
67
+ paid: string;
68
+ paidAt: any;
69
+ paidCents: any;
70
+ payableWith: string;
71
+ payerAddressCity: string;
72
+ payerAddressComplement: any;
73
+ payerAddressCountry: string;
74
+ payerAddressDistrict: string;
75
+ payerAddressNumber: string;
76
+ payerAddressState: string;
77
+ payerAddressStreet: string;
78
+ payerAddressZipCode: string;
79
+ payerCpfCnpj: string;
80
+ payerEmail: any;
81
+ payerName: string;
82
+ payerPhone: string;
83
+ payerPhonePrefix: string;
84
+ paymentMethod: any;
85
+ perDayInterest: boolean;
86
+ perDayInterestCents: number;
87
+ perDayInterestValue: any;
88
+ pix: any;
89
+ protestedAt: any;
90
+ protestedAtIso: any;
91
+ refundable: any;
92
+ refundedAt: any;
93
+ refundedAtIso: any;
94
+ refundedCents: number;
95
+ remainingCapturedCents: number;
96
+ returnUrl: string;
97
+ secureId: string;
98
+ secureUrl: string;
99
+ splitId: any;
100
+ splitRules: any;
101
+ status: string;
102
+ taxCents: number;
103
+ taxesPaid: string;
104
+ taxesPaidCents: any;
105
+ total: string;
106
+ totalCents: number;
107
+ totalOnOccurrenceDay: string;
108
+ totalOnOccurrenceDayCents: number;
109
+ totalOverpaid: string;
110
+ totalPaid: string;
111
+ totalPaidCents: number;
112
+ totalRefunded: string;
113
+ transactionNumber: number;
114
+ updatedAt: string;
115
+ userId: any;
116
+ variables: any[];
117
+ constructor(data?: Partial<IuguInvoiceEntity>);
118
+ }
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IuguInvoiceEntity = void 0;
4
+ var IuguInvoiceEntity = /** @class */ (function () {
5
+ // #endregion Properties (114)
6
+ // #region Constructors (1)
7
+ function IuguInvoiceEntity(data) {
8
+ // #region Properties (114)
9
+ this.accountId = "";
10
+ this.accountName = "";
11
+ this.bankAccountBranch = "";
12
+ this.bankAccountNumber = "";
13
+ this.bankSlip = {};
14
+ this.bankSlipExtraDue = 0;
15
+ this.commission = "";
16
+ this.createdAt = "";
17
+ this.createdAtIso = "";
18
+ this.creditCardTransaction = "";
19
+ this.currency = "";
20
+ this.customVariables = [];
21
+ this.discountCents = 0;
22
+ this.dueDate = "";
23
+ this.earlyPaymentDiscount = false;
24
+ this.earlyPaymentDiscounts = [];
25
+ this.email = "";
26
+ this.finesOnOccurrenceDay = "";
27
+ this.finesOnOccurrenceDayCents = 0;
28
+ this.id = "";
29
+ this.ignoreCanceledEmail = false;
30
+ this.ignoreDueEmail = false;
31
+ this.items = [];
32
+ this.itemsTotalCents = 0;
33
+ this.latePaymentFineCents = 0;
34
+ this.logs = [];
35
+ this.notificationUrl = "";
36
+ this.paid = "";
37
+ this.payableWith = "";
38
+ this.payerAddressCity = "";
39
+ this.payerAddressCountry = "";
40
+ this.payerAddressDistrict = "";
41
+ this.payerAddressNumber = "";
42
+ this.payerAddressState = "";
43
+ this.payerAddressStreet = "";
44
+ this.payerAddressZipCode = "";
45
+ this.payerCpfCnpj = "";
46
+ this.payerName = "";
47
+ this.payerPhone = "";
48
+ this.payerPhonePrefix = "";
49
+ this.perDayInterest = false;
50
+ this.perDayInterestCents = 0;
51
+ this.pix = {};
52
+ this.refundedCents = 0;
53
+ this.remainingCapturedCents = 0;
54
+ this.returnUrl = "";
55
+ this.secureId = "";
56
+ this.secureUrl = "";
57
+ this.status = "";
58
+ this.taxCents = 0;
59
+ this.taxesPaid = "";
60
+ this.total = "";
61
+ this.totalCents = 0;
62
+ this.totalOnOccurrenceDay = "";
63
+ this.totalOnOccurrenceDayCents = 0;
64
+ this.totalOverpaid = "";
65
+ this.totalPaid = "";
66
+ this.totalPaidCents = 0;
67
+ this.totalRefunded = "";
68
+ this.transactionNumber = 0;
69
+ this.updatedAt = "";
70
+ this.userId = "";
71
+ this.variables = [];
72
+ if (data) {
73
+ for (var key in data) {
74
+ if (data.hasOwnProperty(key) && key in this) {
75
+ this[key] = data[key];
76
+ }
77
+ }
78
+ }
79
+ }
80
+ return IuguInvoiceEntity;
81
+ }());
82
+ exports.IuguInvoiceEntity = IuguInvoiceEntity;
@@ -0,0 +1,116 @@
1
+ export interface IIuguInvoice {
2
+ accountId: string;
3
+ accountName: string;
4
+ advanceFee: any;
5
+ advanceFeeCents: any;
6
+ authorizedAt: any;
7
+ authorizedAtIso: any;
8
+ bankAccountBranch: string;
9
+ bankAccountNumber: string;
10
+ bankSlip: any;
11
+ bankSlipExtraDue: number;
12
+ canceledAt: any;
13
+ canceledAtIso: any;
14
+ ccEmails: any;
15
+ chargebackAt: any;
16
+ chargebackAtIso: any;
17
+ commission: string;
18
+ commissionCents: any;
19
+ createdAt: string;
20
+ createdAtIso: string;
21
+ creditCardBin: any;
22
+ creditCardBrand: any;
23
+ creditCardCapturedAt: any;
24
+ creditCardLast4: any;
25
+ creditCardTid: any;
26
+ creditCardTransaction: string;
27
+ currency: string;
28
+ customVariables: any[];
29
+ customerId: any;
30
+ customerName: any;
31
+ customerRef: any;
32
+ discount: any;
33
+ discountCents: number;
34
+ doublePaymentId: any;
35
+ dueDate: string;
36
+ duplicatedInvoiceId: any;
37
+ earlyPaymentDiscount: boolean;
38
+ earlyPaymentDiscounts: any[];
39
+ email: string;
40
+ estimatedAdvanceFee: any;
41
+ expiredAt: any;
42
+ expiredAtIso: any;
43
+ externalPaymentDescription: any;
44
+ externalPaymentId: any;
45
+ externalReference: any;
46
+ financialReturnDate: any;
47
+ financialReturnDates: any;
48
+ finesOnOccurrenceDay: string;
49
+ finesOnOccurrenceDayCents: number;
50
+ id: string;
51
+ ignoreCanceledEmail: boolean;
52
+ ignoreDueEmail: boolean;
53
+ installments: any;
54
+ interest: any;
55
+ items: any[];
56
+ itemsTotalCents: number;
57
+ latePaymentFine: any;
58
+ latePaymentFineCents: number;
59
+ logs: any[];
60
+ maxInstallmentsValue: any;
61
+ notificationUrl: string;
62
+ occurrenceDate: any;
63
+ orderId: any;
64
+ originalPaymentId: any;
65
+ overpaidCents: any;
66
+ paid: string;
67
+ paidAt: any;
68
+ paidCents: any;
69
+ payableWith: string;
70
+ payerAddressCity: string;
71
+ payerAddressComplement: any;
72
+ payerAddressCountry: string;
73
+ payerAddressDistrict: string;
74
+ payerAddressNumber: string;
75
+ payerAddressState: string;
76
+ payerAddressStreet: string;
77
+ payerAddressZipCode: string;
78
+ payerCpfCnpj: string;
79
+ payerEmail: any;
80
+ payerName: string;
81
+ payerPhone: string;
82
+ payerPhonePrefix: string;
83
+ paymentMethod: any;
84
+ perDayInterest: boolean;
85
+ perDayInterestCents: number;
86
+ perDayInterestValue: any;
87
+ pix: any;
88
+ protestedAt: any;
89
+ protestedAtIso: any;
90
+ refundable: any;
91
+ refundedAt: any;
92
+ refundedAtIso: any;
93
+ refundedCents: number;
94
+ remainingCapturedCents: number;
95
+ returnUrl: string;
96
+ secureId: string;
97
+ secureUrl: string;
98
+ splitId: any;
99
+ splitRules: any;
100
+ status: string;
101
+ taxCents: number;
102
+ taxesPaid: string;
103
+ taxesPaidCents: any;
104
+ total: string;
105
+ totalCents: number;
106
+ totalOnOccurrenceDay: string;
107
+ totalOnOccurrenceDayCents: number;
108
+ totalOverpaid: string;
109
+ totalPaid: string;
110
+ totalPaidCents: number;
111
+ totalRefunded: string;
112
+ transactionNumber: number;
113
+ updatedAt: string;
114
+ userId: any;
115
+ variables: any[];
116
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,6 +9,7 @@ export { IIuguMarketplaceSplit } from './i-account-marketplace-split';
9
9
  export { IIuguChangePlanSimulation } from './i-change-plan-simulation';
10
10
  export { IIuguConfigEarlyPaymentDiscount } from './i-config-early-payment-discounts';
11
11
  export { IIuguCustomer } from './i-customer';
12
+ export { IIuguInvoice } from './i-invoice';
12
13
  export { IIuguPaymentToken } from './i-payment-token';
13
14
  export { IIuguPaymentTokenData } from './i-payment-token-data';
14
15
  export { IIuguPlan } from './i-plan';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.85",
3
+ "version": "1.0.89",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2,14 +2,14 @@ import { IntervalTypeEnum } from '../../general/enums';
2
2
  import { PlanIdentifierEnum } from '../enums/plans-identifier.enum';
3
3
  import { IPlanFeature } from './i-feature';
4
4
  export interface IPlan {
5
+ createdAt: Date;
6
+ features: IPlanFeature[];
5
7
  id: string;
6
- name: string;
7
8
  identifier: PlanIdentifierEnum;
9
+ index: number;
8
10
  interval: number;
9
11
  intervalType: IntervalTypeEnum;
10
- createdAt: Date;
11
- index: number;
12
- updatedAt: Date;
12
+ name: string;
13
13
  price: number;
14
- features: IPlanFeature[];
14
+ updatedAt: Date;
15
15
  }
@@ -1,2 +1,3 @@
1
- export { SubscriptionLogEntity as SubscriptionInvoiceHistoryEntity } from './subscription-log.entity';
1
+ export { SubscriptionItemEntity } from './subscription-item.entity';
2
+ export { SubscriptionLogEntity } from './subscription-log.entity';
2
3
  export { SubscriptionEntity } from './subscription.entity';
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubscriptionEntity = exports.SubscriptionInvoiceHistoryEntity = void 0;
3
+ exports.SubscriptionEntity = exports.SubscriptionLogEntity = exports.SubscriptionItemEntity = void 0;
4
+ var subscription_item_entity_1 = require("./subscription-item.entity");
5
+ Object.defineProperty(exports, "SubscriptionItemEntity", { enumerable: true, get: function () { return subscription_item_entity_1.SubscriptionItemEntity; } });
4
6
  var subscription_log_entity_1 = require("./subscription-log.entity");
5
- Object.defineProperty(exports, "SubscriptionInvoiceHistoryEntity", { enumerable: true, get: function () { return subscription_log_entity_1.SubscriptionLogEntity; } });
7
+ Object.defineProperty(exports, "SubscriptionLogEntity", { enumerable: true, get: function () { return subscription_log_entity_1.SubscriptionLogEntity; } });
6
8
  var subscription_entity_1 = require("./subscription.entity");
7
9
  Object.defineProperty(exports, "SubscriptionEntity", { enumerable: true, get: function () { return subscription_entity_1.SubscriptionEntity; } });
@@ -0,0 +1,9 @@
1
+ import { ISubscriptionItem } from "../interfaces";
2
+ export declare class SubscriptionItemEntity implements ISubscriptionItem {
3
+ description: string;
4
+ quantity: number;
5
+ recurrent: boolean;
6
+ totalPrice: number;
7
+ unitPrice: number;
8
+ constructor(data?: Partial<SubscriptionItemEntity>);
9
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionItemEntity = void 0;
4
+ var SubscriptionItemEntity = /** @class */ (function () {
5
+ // #endregion Properties (5)
6
+ // #region Constructors (1)
7
+ function SubscriptionItemEntity(data) {
8
+ // #region Properties (5)
9
+ this.description = "";
10
+ this.quantity = 1;
11
+ this.recurrent = true;
12
+ this.totalPrice = 0;
13
+ this.unitPrice = 0;
14
+ if (data) {
15
+ for (var key in data) {
16
+ if (data.hasOwnProperty(key) && key in this) {
17
+ this[key] = data[key];
18
+ }
19
+ }
20
+ }
21
+ }
22
+ return SubscriptionItemEntity;
23
+ }());
24
+ exports.SubscriptionItemEntity = SubscriptionItemEntity;