cecon-interfaces 1.3.12 → 1.3.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. package/dist/esm2022/transfer-request/entities/index.mjs +2 -2
  2. package/dist/esm2022/transfer-request/entities/transfer-request.entity.mjs +32 -0
  3. package/dist/esm2022/transfer-request/interfaces/i-transfer-request.mjs +2 -0
  4. package/dist/esm2022/transfer-request/interfaces/index.mjs +1 -1
  5. package/dist/esm2022/withdraw/entities/withdraw-request.entity.mjs +5 -1
  6. package/dist/esm2022/withdraw/interfaces/i-withdraw-request.mjs +1 -1
  7. package/dist/fesm2022/cecon-interfaces.mjs +6 -0
  8. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  9. package/dist/package.json +1 -1
  10. package/dist/transfer-request/entities/index.d.ts +1 -1
  11. package/dist/transfer-request/entities/index.js +2 -2
  12. package/dist/transfer-request/entities/{withdraw-request.entity.d.ts → transfer-request.entity.d.ts} +5 -1
  13. package/dist/transfer-request/entities/{withdraw-request.entity.js → transfer-request.entity.js} +4 -0
  14. package/dist/transfer-request/interfaces/{i-withdraw-request.d.ts → i-transfer-request.d.ts} +4 -3
  15. package/dist/transfer-request/interfaces/index.d.ts +1 -1
  16. package/dist/withdraw/entities/withdraw-request.entity.d.ts +4 -0
  17. package/dist/withdraw/entities/withdraw-request.entity.js +4 -0
  18. package/dist/withdraw/interfaces/i-withdraw-request.d.ts +4 -2
  19. package/package.json +1 -1
  20. package/dist/esm2022/transfer-request/entities/withdraw-request.entity.mjs +0 -28
  21. package/dist/esm2022/transfer-request/interfaces/i-withdraw-request.mjs +0 -2
  22. /package/dist/transfer-request/interfaces/{i-withdraw-request.js → i-transfer-request.js} +0 -0
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.3.12",
3
+ "version": "1.3.14",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1 +1 @@
1
- export { TransferRequestEntity } from './withdraw-request.entity';
1
+ export { TransferRequestEntity } from './transfer-request.entity';
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TransferRequestEntity = void 0;
4
- var withdraw_request_entity_1 = require("./withdraw-request.entity");
5
- Object.defineProperty(exports, "TransferRequestEntity", { enumerable: true, get: function () { return withdraw_request_entity_1.TransferRequestEntity; } });
4
+ var transfer_request_entity_1 = require("./transfer-request.entity");
5
+ Object.defineProperty(exports, "TransferRequestEntity", { enumerable: true, get: function () { return transfer_request_entity_1.TransferRequestEntity; } });
@@ -1,6 +1,7 @@
1
+ import { IDesenfilaInfo, IMobyoInfo, INatiInfo } from '../../general';
1
2
  import { IInvoicePix } from '../../invoice';
2
3
  import { EWithdrawRequestStatus } from '../../withdraw/enums';
3
- import { ITransferRequest } from '../interfaces/i-withdraw-request';
4
+ import { ITransferRequest } from '../interfaces/i-transfer-request';
4
5
  export declare class TransferRequestEntity implements ITransferRequest {
5
6
  amount: number;
6
7
  aprovedAt: Date | null;
@@ -16,5 +17,8 @@ export declare class TransferRequestEntity implements ITransferRequest {
16
17
  transactionReferenceId: string | null;
17
18
  naiRefId: string;
18
19
  pix: IInvoicePix | null;
20
+ natiInfo: INatiInfo;
21
+ mobyoInfo: IMobyoInfo;
22
+ desenfilaInfo: IDesenfilaInfo;
19
23
  constructor(data?: Partial<TransferRequestEntity>);
20
24
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TransferRequestEntity = void 0;
4
+ var general_1 = require("../../general");
4
5
  var enums_1 = require("../../withdraw/enums");
5
6
  var TransferRequestEntity = /** @class */ (function () {
6
7
  function TransferRequestEntity(data) {
@@ -19,6 +20,9 @@ var TransferRequestEntity = /** @class */ (function () {
19
20
  this.transactionReferenceId = null;
20
21
  this.naiRefId = '';
21
22
  this.pix = null;
23
+ this.natiInfo = new general_1.NatiInfoEntity();
24
+ this.mobyoInfo = new general_1.MobyoInfoEntity();
25
+ this.desenfilaInfo = new general_1.DesenfilaInfoEntity();
22
26
  if (data) {
23
27
  for (var key in data) {
24
28
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,12 +1,10 @@
1
+ import { INatiInfo, IMobyoInfo, IDesenfilaInfo } from '../../general';
1
2
  import { IInvoicePix } from '../../invoice';
2
3
  import { EWithdrawRequestStatus } from '../../withdraw/enums';
3
4
  export interface ITransferRequest {
4
5
  id: string;
5
6
  createdAt: Date;
6
7
  liveMode: boolean;
7
- containerId: string;
8
- merchantId: string;
9
- naiRefId: string;
10
8
  amount: number;
11
9
  aprovedAt: Date | null;
12
10
  transactionId: string | null;
@@ -15,4 +13,7 @@ export interface ITransferRequest {
15
13
  transferDocumentUrl: string | null;
16
14
  updatedAt: Date;
17
15
  pix: IInvoicePix | null;
16
+ natiInfo: INatiInfo;
17
+ mobyoInfo: IMobyoInfo;
18
+ desenfilaInfo: IDesenfilaInfo;
18
19
  }
@@ -1 +1 @@
1
- export { ITransferRequest } from './i-withdraw-request';
1
+ export { ITransferRequest } from './i-transfer-request';
@@ -1,3 +1,4 @@
1
+ import { IDesenfilaInfo, IMobyoInfo, INatiInfo } from '../../general';
1
2
  import { EWithdrawRequestStatus } from '../enums';
2
3
  import { IWithdrawRequest } from '../interfaces/i-withdraw-request';
3
4
  export declare class WithDrawRequestEntity implements IWithdrawRequest {
@@ -12,5 +13,8 @@ export declare class WithDrawRequestEntity implements IWithdrawRequest {
12
13
  transactionId: string | null;
13
14
  transferDocumentUrl: string | null;
14
15
  updatedAt: Date;
16
+ natiInfo: INatiInfo;
17
+ mobyoInfo: IMobyoInfo;
18
+ desenfilaInfo: IDesenfilaInfo;
15
19
  constructor(data?: Partial<WithDrawRequestEntity>);
16
20
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WithDrawRequestEntity = void 0;
4
+ var general_1 = require("../../general");
4
5
  var enums_1 = require("../enums");
5
6
  var WithDrawRequestEntity = /** @class */ (function () {
6
7
  // #endregion Properties (11)
@@ -18,6 +19,9 @@ var WithDrawRequestEntity = /** @class */ (function () {
18
19
  this.transactionId = null;
19
20
  this.transferDocumentUrl = null;
20
21
  this.updatedAt = new Date();
22
+ this.natiInfo = new general_1.NatiInfoEntity();
23
+ this.mobyoInfo = new general_1.MobyoInfoEntity();
24
+ this.desenfilaInfo = new general_1.DesenfilaInfoEntity();
21
25
  if (data) {
22
26
  for (var key in data) {
23
27
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,8 +1,7 @@
1
+ import { INatiInfo, IMobyoInfo, IDesenfilaInfo } from '../../general';
1
2
  import { EWithdrawRequestStatus } from '../enums';
2
3
  export interface IWithdrawRequest {
3
4
  amount: number;
4
- containerId: string;
5
- merchantId: string;
6
5
  createdAt: Date;
7
6
  aprovedAt: Date | null;
8
7
  id: string;
@@ -11,4 +10,7 @@ export interface IWithdrawRequest {
11
10
  transactionId: string | null;
12
11
  transferDocumentUrl: string | null;
13
12
  updatedAt: Date;
13
+ natiInfo: INatiInfo;
14
+ mobyoInfo: IMobyoInfo;
15
+ desenfilaInfo: IDesenfilaInfo;
14
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.3.12",
3
+ "version": "1.3.14",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,28 +0,0 @@
1
- import { EWithdrawRequestStatus } from '../../withdraw/enums';
2
- export class TransferRequestEntity {
3
- // #region Properties (11)
4
- amount = 0;
5
- aprovedAt = null;
6
- containerId = '';
7
- merchantId = '';
8
- createdAt = new Date();
9
- id = '';
10
- liveMode = false;
11
- status = EWithdrawRequestStatus.PENDING;
12
- transactionId = null;
13
- transferDocumentUrl = null;
14
- updatedAt = new Date();
15
- transactionReferenceId = null;
16
- naiRefId = '';
17
- pix = null;
18
- constructor(data) {
19
- if (data) {
20
- for (let key in data) {
21
- if (data.hasOwnProperty(key) && key in this) {
22
- this[key] = data[key];
23
- }
24
- }
25
- }
26
- }
27
- }
28
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2l0aGRyYXctcmVxdWVzdC5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdHJhbnNmZXItcmVxdWVzdC9lbnRpdGllcy93aXRoZHJhdy1yZXF1ZXN0LmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUc5RCxNQUFNLE9BQU8scUJBQXFCO0lBQ2hDLDBCQUEwQjtJQUVuQixNQUFNLEdBQVcsQ0FBQyxDQUFDO0lBQ25CLFNBQVMsR0FBZ0IsSUFBSSxDQUFDO0lBQzlCLFdBQVcsR0FBVyxFQUFFLENBQUM7SUFDekIsVUFBVSxHQUFXLEVBQUUsQ0FBQztJQUN4QixTQUFTLEdBQVMsSUFBSSxJQUFJLEVBQUUsQ0FBQztJQUM3QixFQUFFLEdBQVcsRUFBRSxDQUFDO0lBQ2hCLFFBQVEsR0FBWSxLQUFLLENBQUM7SUFDMUIsTUFBTSxHQUEyQixzQkFBc0IsQ0FBQyxPQUFPLENBQUM7SUFDaEUsYUFBYSxHQUFrQixJQUFJLENBQUM7SUFDcEMsbUJBQW1CLEdBQWtCLElBQUksQ0FBQztJQUMxQyxTQUFTLEdBQVMsSUFBSSxJQUFJLEVBQUUsQ0FBQztJQUM3QixzQkFBc0IsR0FBa0IsSUFBSSxDQUFBO0lBQzVDLFFBQVEsR0FBVyxFQUFFLENBQUM7SUFDdEIsR0FBRyxHQUF1QixJQUFJLENBQUM7SUFFdEMsWUFBWSxJQUFxQztRQUMvQyxJQUFJLElBQUksRUFBR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