cecon-interfaces 1.1.26 → 1.1.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/dist/app/entities/rabbit.entity.d.ts +5 -2
  2. package/dist/app/entities/rabbit.entity.js +7 -4
  3. package/dist/app/interfaces/i-rabbit.d.ts +15 -0
  4. package/dist/esm2022/app/entities/rabbit.entity.mjs +8 -5
  5. package/dist/esm2022/app/interfaces/i-rabbit.mjs +1 -1
  6. package/dist/esm2022/general/enums/bank-slip-status.enum.mjs +9 -0
  7. package/dist/esm2022/general/enums/index.mjs +2 -1
  8. package/dist/esm2022/general/enums/payment-type.enum.mjs +2 -1
  9. package/dist/esm2022/invoice/entities/index.mjs +6 -2
  10. package/dist/esm2022/invoice/entities/invoice-bank-slip.entity.mjs +23 -0
  11. package/dist/esm2022/invoice/entities/invoice-credit-card.entity.mjs +21 -0
  12. package/dist/esm2022/invoice/entities/invoice-item.entity.mjs +3 -8
  13. package/dist/esm2022/invoice/entities/invoice-log.entity.mjs +19 -0
  14. package/dist/esm2022/invoice/entities/invoice-payer.entity.mjs +22 -0
  15. package/dist/esm2022/invoice/entities/invoice-pix.entity.mjs +19 -0
  16. package/dist/esm2022/invoice/entities/invoice.entity.mjs +36 -11
  17. package/dist/esm2022/invoice/enums/index.mjs +2 -2
  18. package/dist/esm2022/invoice/enums/invoices-status.enum.mjs +15 -15
  19. package/dist/esm2022/invoice/interfaces/i-invoice-bank-slip.mjs +2 -0
  20. package/dist/esm2022/invoice/interfaces/i-invoice-credit-card.mjs +2 -0
  21. package/dist/esm2022/invoice/interfaces/i-invoice-item.mjs +1 -1
  22. package/dist/esm2022/invoice/interfaces/i-invoice-log.mjs +2 -0
  23. package/dist/esm2022/invoice/interfaces/i-invoice-payer.mjs +2 -0
  24. package/dist/esm2022/invoice/interfaces/i-invoice-pix.mjs +2 -0
  25. package/dist/esm2022/invoice/interfaces/i-invoice.mjs +1 -1
  26. package/dist/esm2022/invoice/interfaces/index.mjs +1 -1
  27. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
  28. package/dist/fesm2022/cecon-interfaces.mjs +154 -51
  29. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  30. package/dist/general/enums/bank-slip-status.enum.d.ts +7 -0
  31. package/dist/general/enums/bank-slip-status.enum.js +11 -0
  32. package/dist/general/enums/index.d.ts +1 -0
  33. package/dist/general/enums/index.js +3 -1
  34. package/dist/general/enums/payment-type.enum.d.ts +2 -1
  35. package/dist/general/enums/payment-type.enum.js +1 -0
  36. package/dist/invoice/entities/index.d.ts +5 -1
  37. package/dist/invoice/entities/index.js +11 -3
  38. package/dist/invoice/entities/invoice-bank-slip.entity.d.ts +11 -0
  39. package/dist/invoice/entities/invoice-bank-slip.entity.js +27 -0
  40. package/dist/invoice/entities/invoice-credit-card.entity.d.ts +10 -0
  41. package/dist/invoice/entities/invoice-credit-card.entity.js +25 -0
  42. package/dist/invoice/entities/invoice-item.entity.d.ts +0 -5
  43. package/dist/invoice/entities/invoice-item.entity.js +2 -7
  44. package/dist/invoice/entities/invoice-log.entity.d.ts +8 -0
  45. package/dist/invoice/entities/invoice-log.entity.js +23 -0
  46. package/dist/invoice/entities/invoice-payer.entity.d.ts +11 -0
  47. package/dist/invoice/entities/invoice-payer.entity.js +26 -0
  48. package/dist/invoice/entities/invoice-pix.entity.d.ts +8 -0
  49. package/dist/invoice/entities/invoice-pix.entity.js +23 -0
  50. package/dist/invoice/entities/invoice.entity.d.ts +36 -8
  51. package/dist/invoice/entities/invoice.entity.js +34 -9
  52. package/dist/invoice/enums/index.d.ts +1 -1
  53. package/dist/invoice/enums/index.js +2 -2
  54. package/dist/invoice/enums/invoices-status.enum.d.ts +1 -1
  55. package/dist/invoice/enums/invoices-status.enum.js +15 -15
  56. package/dist/invoice/interfaces/i-invoice-bank-slip.d.ts +10 -0
  57. package/dist/invoice/interfaces/i-invoice-credit-card.d.ts +8 -0
  58. package/dist/invoice/interfaces/i-invoice-credit-card.js +2 -0
  59. package/dist/invoice/interfaces/i-invoice-item.d.ts +0 -5
  60. package/dist/invoice/interfaces/i-invoice-log.d.ts +6 -0
  61. package/dist/invoice/interfaces/i-invoice-log.js +2 -0
  62. package/dist/invoice/interfaces/i-invoice-payer.d.ts +9 -0
  63. package/dist/invoice/interfaces/i-invoice-payer.js +2 -0
  64. package/dist/invoice/interfaces/i-invoice-pix.d.ts +6 -0
  65. package/dist/invoice/interfaces/i-invoice-pix.js +2 -0
  66. package/dist/invoice/interfaces/i-invoice.d.ts +38 -10
  67. package/dist/invoice/interfaces/index.d.ts +5 -1
  68. package/dist/package.json +1 -1
  69. package/dist/subscription/interfaces/i-subscription.d.ts +1 -1
  70. package/package.json +1 -1
  71. package/dist/esm2022/invoice/entities/invoice-payment-method.entity.mjs +0 -31
  72. package/dist/esm2022/invoice/interfaces/i-invoice-payment-method.mjs +0 -2
  73. package/dist/invoice/entities/invoice-payment-method.entity.d.ts +0 -20
  74. package/dist/invoice/entities/invoice-payment-method.entity.js +0 -35
  75. package/dist/invoice/interfaces/i-invoice-payment-method.d.ts +0 -18
  76. /package/dist/invoice/interfaces/{i-invoice-payment-method.js → i-invoice-bank-slip.js} +0 -0
@@ -1,3 +1,7 @@
1
1
  export { IInvoice } from './i-invoice';
2
+ export { IInvoiceBankSlip } from './i-invoice-bank-slip';
3
+ export { IInvoiceCreditCard } from './i-invoice-credit-card';
2
4
  export { IInvoiceItem } from './i-invoice-item';
3
- export { IInvoicePaymentMethod } from './i-invoice-payment-method';
5
+ export { IInvoiceLog } from './i-invoice-log';
6
+ export { IInvoicePayer } from './i-invoice-payer';
7
+ export { IInvoicePix } from './i-invoice-pix';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.26",
3
+ "version": "1.1.30",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,13 +19,13 @@ export interface ISubscription {
19
19
  features: IFeature[];
20
20
  id: string;
21
21
  interval: number;
22
- payment: IPayment;
23
22
  intervalType: IntervalTypeEnum;
24
23
  invoices: IInvoice[];
25
24
  items: ISubscriptionItem[];
26
25
  logs: ISubscriptionLog[];
27
26
  notes: string;
28
27
  partnerId: string | null;
28
+ payment: IPayment;
29
29
  planId: string;
30
30
  planName: string;
31
31
  renewPaymentDate: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.26",
3
+ "version": "1.1.30",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,31 +0,0 @@
1
- import { PaymentStatusEnum, PaymentTypeEnum } from '../../general';
2
- export class InvoicePaymentMethodEntity {
3
- // #region Properties (15)
4
- amount = 0;
5
- brand = '';
6
- createdAt = new Date();
7
- currency = '';
8
- expMonth = 0;
9
- expYear = 0;
10
- id = '';
11
- last4 = '';
12
- name = '';
13
- pixQrCode = '';
14
- pixUrl = '';
15
- status = PaymentStatusEnum.PENDING;
16
- transactionId = '';
17
- type = PaymentTypeEnum.CREDIT_CARD;
18
- updatedAt = new Date();
19
- // #endregion Properties (15)
20
- // #region Constructors (1)
21
- constructor(data) {
22
- if (data) {
23
- for (let key in data) {
24
- if (data.hasOwnProperty(key) && key in this) {
25
- this[key] = data[key];
26
- }
27
- }
28
- }
29
- }
30
- }
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52b2ljZS1wYXltZW50LW1ldGhvZC5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvaW52b2ljZS9lbnRpdGllcy9pbnZvaWNlLXBheW1lbnQtbWV0aG9kLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsZUFBZSxFQUFFLE1BQU0sZ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ICAgIC8vICNyZWdpb24gQ29uc3RydWN0b3JzICgxKVxuXG4gICAgY29uc3RydWN0b3IoZGF0YT86IFBhcnRpYWw8SW52b2ljZVBheW1lbnRNZXRob2RFbnRpdHk+KSB7XG4gICAgICAgIGlmIChkYXRhKSB7XG4gICAgICAgICAgICBmb3IgKGxldCBrZXkgaW4gZGF0YSkge1xuICAgICAgICAgICAgICAgIGlmIChkYXRhLmhhc093blByb3BlcnR5KGtleSkgJiYga2V5IGluIHRoaXMpIHtcbiAgICAgICAgICAgICAgICAgICAgKHRoaXMgYXMgYW55KVtrZXldID0gKGRhdGEgYXMgYW55KVtrZXldO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8vICNlbmRyZWdpb24gQ29uc3RydWN0b3JzICgxKVxufVxuIl19
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1pbnZvaWNlLXBheW1lbnQtbWV0aG9kLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2ludm9pY2UvaW50ZXJmYWNlcy9pLWludm9pY2UtcGF5bWVudC1tZXRob2QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFBheW1lbnRTdGF0dXNFbnVtLCBQYXltZW50VHlwZUVudW0gfSBmcm9tICcuLi8uLi9nZW5lcmFsJztcblxuZXhwb3J0IGludGVyZmFjZSBJSW52b2ljZVBheW1lbnRNZXRob2Qge1xuICAgIC8vICNyZWdpb24gUHJvcGVydGllcyAoMTUpXG5cbiAgICBhbW91bnQ6IG51bWJlcjtcbiAgICBicmFuZDogc3RyaW5nO1xuICAgIGNyZWF0ZWRBdDogRGF0ZTtcbiAgICBjdXJyZW5jeTogc3RyaW5nO1xuICAgIGV4cE1vbnRoOiBudW1iZXI7XG4gICAgZXhwWWVhcjogbnVtYmVyO1xuICAgIGlkOiBzdHJpbmc7XG4gICAgbGFzdDQ6IHN0cmluZztcbiAgICBuYW1lOiBzdHJpbmc7XG4gICAgcGl4UXJDb2RlOiBzdHJpbmc7XG4gICAgcGl4VXJsOiBzdHJpbmc7XG4gICAgc3RhdHVzOiBQYXltZW50U3RhdHVzRW51bTtcbiAgICB0cmFuc2FjdGlvbklkOiBzdHJpbmc7XG4gICAgdHlwZTogUGF5bWVudFR5cGVFbnVtO1xuICAgIHVwZGF0ZWRBdDogRGF0ZTtcblxuICAgIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMTUpXG59XG4iXX0=
@@ -1,20 +0,0 @@
1
- import { PaymentStatusEnum, PaymentTypeEnum } from '../../general';
2
- import { IInvoicePaymentMethod } from '../interfaces';
3
- export declare class InvoicePaymentMethodEntity implements IInvoicePaymentMethod {
4
- amount: number;
5
- brand: string;
6
- createdAt: Date;
7
- currency: string;
8
- expMonth: number;
9
- expYear: number;
10
- id: string;
11
- last4: string;
12
- name: string;
13
- pixQrCode: string;
14
- pixUrl: string;
15
- status: PaymentStatusEnum;
16
- transactionId: string;
17
- type: PaymentTypeEnum;
18
- updatedAt: Date;
19
- constructor(data?: Partial<InvoicePaymentMethodEntity>);
20
- }
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvoicePaymentMethodEntity = void 0;
4
- var general_1 = require("../../general");
5
- var InvoicePaymentMethodEntity = /** @class */ (function () {
6
- // #endregion Properties (15)
7
- // #region Constructors (1)
8
- function InvoicePaymentMethodEntity(data) {
9
- // #region Properties (15)
10
- this.amount = 0;
11
- this.brand = '';
12
- this.createdAt = new Date();
13
- this.currency = '';
14
- this.expMonth = 0;
15
- this.expYear = 0;
16
- this.id = '';
17
- this.last4 = '';
18
- this.name = '';
19
- this.pixQrCode = '';
20
- this.pixUrl = '';
21
- this.status = general_1.PaymentStatusEnum.PENDING;
22
- this.transactionId = '';
23
- this.type = general_1.PaymentTypeEnum.CREDIT_CARD;
24
- this.updatedAt = new Date();
25
- if (data) {
26
- for (var key in data) {
27
- if (data.hasOwnProperty(key) && key in this) {
28
- this[key] = data[key];
29
- }
30
- }
31
- }
32
- }
33
- return InvoicePaymentMethodEntity;
34
- }());
35
- exports.InvoicePaymentMethodEntity = InvoicePaymentMethodEntity;
@@ -1,18 +0,0 @@
1
- import { PaymentStatusEnum, PaymentTypeEnum } from '../../general';
2
- export interface IInvoicePaymentMethod {
3
- amount: number;
4
- brand: string;
5
- createdAt: Date;
6
- currency: string;
7
- expMonth: number;
8
- expYear: number;
9
- id: string;
10
- last4: string;
11
- name: string;
12
- pixQrCode: string;
13
- pixUrl: string;
14
- status: PaymentStatusEnum;
15
- transactionId: string;
16
- type: PaymentTypeEnum;
17
- updatedAt: Date;
18
- }