@fiado/type-kit 2.0.63 → 2.0.65

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.
@@ -0,0 +1,7 @@
1
+ import { ProcessValidationEnum } from "../enums/ProcessValidationEnum";
2
+ export declare class ProcessValidationResultDto {
3
+ processValidationEnum: ProcessValidationEnum;
4
+ message: string;
5
+ errors: string[];
6
+ static default(): ProcessValidationResultDto;
7
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProcessValidationResultDto = void 0;
4
+ const ProcessValidationEnum_1 = require("../enums/ProcessValidationEnum");
5
+ class ProcessValidationResultDto {
6
+ static default() {
7
+ return {
8
+ processValidationEnum: ProcessValidationEnum_1.ProcessValidationEnum.VALIDATION_SUCCESS,
9
+ message: "Process validation success",
10
+ errors: []
11
+ };
12
+ }
13
+ }
14
+ exports.ProcessValidationResultDto = ProcessValidationResultDto;
@@ -0,0 +1,4 @@
1
+ export declare enum ProcessValidationEnum {
2
+ VALIDATION_SUCCESS = "VALIDATION_SUCCESS",
3
+ VALIDATION_FAILED = "VALIDATION_FAILED"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProcessValidationEnum = void 0;
4
+ var ProcessValidationEnum;
5
+ (function (ProcessValidationEnum) {
6
+ ProcessValidationEnum["VALIDATION_SUCCESS"] = "VALIDATION_SUCCESS";
7
+ ProcessValidationEnum["VALIDATION_FAILED"] = "VALIDATION_FAILED";
8
+ })(ProcessValidationEnum || (exports.ProcessValidationEnum = ProcessValidationEnum = {}));
@@ -0,0 +1,2 @@
1
+ export * from './dtos/ProcessValidationResultDto';
2
+ export * from './enums/ProcessValidationEnum';
@@ -0,0 +1,20 @@
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
+ //dtos
18
+ __exportStar(require("./dtos/ProcessValidationResultDto"), exports);
19
+ //Enums
20
+ __exportStar(require("./enums/ProcessValidationEnum"), exports);
@@ -0,0 +1,12 @@
1
+ import { OperationEnum } from "../enums/OperationEnum";
2
+ import { PocketOperationTypeEnum } from "../enums/PocketOperationTypeEnum";
3
+ export declare class AuthorizeRenewalTransactionRequest {
4
+ idempotencyKey: string;
5
+ originalTransactionId: string;
6
+ externalAccountId: string;
7
+ amount: number;
8
+ transactionNumber?: string;
9
+ operation: OperationEnum;
10
+ operationType: PocketOperationTypeEnum;
11
+ originalRelatedId?: string;
12
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthorizeRenewalTransactionRequest = void 0;
4
+ class AuthorizeRenewalTransactionRequest {
5
+ }
6
+ exports.AuthorizeRenewalTransactionRequest = AuthorizeRenewalTransactionRequest;
@@ -0,0 +1,10 @@
1
+ export declare class ProviderPreAuthRenewalRequest {
2
+ idempotencyKey: string;
3
+ ownerDirectoryId: string;
4
+ originalTransactionId: string;
5
+ externalAccountId: string;
6
+ amount: number;
7
+ currencyId: string;
8
+ originalTransactionNumber?: string;
9
+ originalRelatedTransactionId?: string;
10
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProviderPreAuthRenewalRequest = void 0;
4
+ class ProviderPreAuthRenewalRequest {
5
+ }
6
+ exports.ProviderPreAuthRenewalRequest = ProviderPreAuthRenewalRequest;
@@ -0,0 +1,9 @@
1
+ import { TransactionStatusEnum } from "../../transaction/enums/TransactionStatusEnum";
2
+ export declare class ProviderPreAuthRenewalResponse {
3
+ idempotencyKey: string;
4
+ originalTransactionId: string;
5
+ originalTransactionNumber: string;
6
+ transactionId: string;
7
+ transactionNumber: string;
8
+ status?: TransactionStatusEnum;
9
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProviderPreAuthRenewalResponse = void 0;
4
+ class ProviderPreAuthRenewalResponse {
5
+ }
6
+ exports.ProviderPreAuthRenewalResponse = ProviderPreAuthRenewalResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "2.0.63",
3
+ "version": "2.0.65",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,17 @@
1
+ import { ProcessValidationEnum } from "../enums/ProcessValidationEnum";
2
+
3
+
4
+ export class ProcessValidationResultDto {
5
+
6
+ processValidationEnum: ProcessValidationEnum;
7
+ message: string;
8
+ errors: string[];
9
+
10
+ public static default(): ProcessValidationResultDto {
11
+ return {
12
+ processValidationEnum: ProcessValidationEnum.VALIDATION_SUCCESS,
13
+ message: "Process validation success",
14
+ errors: []
15
+ } as ProcessValidationResultDto;
16
+ }
17
+ }
@@ -0,0 +1,4 @@
1
+ export enum ProcessValidationEnum {
2
+ VALIDATION_SUCCESS = "VALIDATION_SUCCESS",
3
+ VALIDATION_FAILED = "VALIDATION_FAILED",
4
+ }
@@ -0,0 +1,5 @@
1
+ //dtos
2
+ export * from './dtos/ProcessValidationResultDto';
3
+
4
+ //Enums
5
+ export * from './enums/ProcessValidationEnum';
@@ -0,0 +1,10 @@
1
+ export class ProviderPreAuthRenewalRequest {
2
+ idempotencyKey: string;
3
+ ownerDirectoryId: string;
4
+ originalTransactionId: string;
5
+ externalAccountId: string;
6
+ amount: number;
7
+ currencyId: string;
8
+ originalTransactionNumber?: string;
9
+ originalRelatedTransactionId?: string;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { TransactionStatusEnum } from "../../transaction/enums/TransactionStatusEnum";
2
+
3
+ export class ProviderPreAuthRenewalResponse {
4
+ idempotencyKey: string;
5
+ originalTransactionId: string;
6
+ originalTransactionNumber: string;
7
+ transactionId: string;
8
+ transactionNumber: string;
9
+ status?: TransactionStatusEnum;
10
+ }