cecon-interfaces 1.3.7 → 1.3.8

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -45,6 +45,7 @@ export * from './subscription-customer';
45
45
  export * from './token';
46
46
  export * from './token-jwt';
47
47
  export * from './transaction';
48
+ export * from './transfer-request';
48
49
  export * from './verifier-token';
49
50
  export * from './viacep';
50
51
  export * from './voucher';
package/dist/index.js CHANGED
@@ -61,6 +61,7 @@ __exportStar(require("./subscription-customer"), exports);
61
61
  __exportStar(require("./token"), exports);
62
62
  __exportStar(require("./token-jwt"), exports);
63
63
  __exportStar(require("./transaction"), exports);
64
+ __exportStar(require("./transfer-request"), exports);
64
65
  __exportStar(require("./verifier-token"), exports);
65
66
  __exportStar(require("./viacep"), exports);
66
67
  __exportStar(require("./voucher"), exports);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.3.07",
3
+ "version": "1.3.08",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1 @@
1
+ export { TransferRequestEntity } from './withdraw-request.entity';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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; } });
@@ -0,0 +1,20 @@
1
+ import { IInvoicePix } from '../../invoice';
2
+ import { EWithdrawRequestStatus } from '../../withdraw/enums';
3
+ import { ITransferRequest } from '../interfaces/i-withdraw-request';
4
+ export declare class TransferRequestEntity implements ITransferRequest {
5
+ amount: number;
6
+ aprovedAt: Date | null;
7
+ containerId: string;
8
+ merchantId: string;
9
+ createdAt: Date;
10
+ id: string;
11
+ liveMode: boolean;
12
+ status: EWithdrawRequestStatus;
13
+ transactionId: string | null;
14
+ transferDocumentUrl: string | null;
15
+ updatedAt: Date;
16
+ transactionReferenceId: string | null;
17
+ naiRefId: string;
18
+ pix: IInvoicePix | null;
19
+ constructor(data?: Partial<TransferRequestEntity>);
20
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransferRequestEntity = void 0;
4
+ var enums_1 = require("../../withdraw/enums");
5
+ var TransferRequestEntity = /** @class */ (function () {
6
+ function TransferRequestEntity(data) {
7
+ // #region Properties (11)
8
+ this.amount = 0;
9
+ this.aprovedAt = null;
10
+ this.containerId = '';
11
+ this.merchantId = '';
12
+ this.createdAt = new Date();
13
+ this.id = '';
14
+ this.liveMode = false;
15
+ this.status = enums_1.EWithdrawRequestStatus.PENDING;
16
+ this.transactionId = null;
17
+ this.transferDocumentUrl = null;
18
+ this.updatedAt = new Date();
19
+ this.transactionReferenceId = null;
20
+ this.naiRefId = '';
21
+ this.pix = null;
22
+ if (data) {
23
+ for (var key in data) {
24
+ if (data.hasOwnProperty(key) && key in this) {
25
+ this[key] = data[key];
26
+ }
27
+ }
28
+ }
29
+ }
30
+ return TransferRequestEntity;
31
+ }());
32
+ exports.TransferRequestEntity = TransferRequestEntity;
@@ -0,0 +1,2 @@
1
+ export * from './interfaces';
2
+ export * from './entities';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./interfaces"), exports);
18
+ __exportStar(require("./entities"), exports);
@@ -0,0 +1,18 @@
1
+ import { IInvoicePix } from '../../invoice';
2
+ import { EWithdrawRequestStatus } from '../../withdraw/enums';
3
+ export interface ITransferRequest {
4
+ id: string;
5
+ createdAt: Date;
6
+ liveMode: boolean;
7
+ containerId: string;
8
+ merchantId: string;
9
+ naiRefId: string;
10
+ amount: number;
11
+ aprovedAt: Date | null;
12
+ transactionId: string | null;
13
+ transactionReferenceId: string | null;
14
+ status: EWithdrawRequestStatus;
15
+ transferDocumentUrl: string | null;
16
+ updatedAt: Date;
17
+ pix: IInvoicePix | null;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { ITransferRequest } from './i-withdraw-request';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.3.07",
3
+ "version": "1.3.08",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",