@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.
- package/bin/common/dtos/ProcessValidationResultDto.d.ts +7 -0
- package/bin/common/dtos/ProcessValidationResultDto.js +14 -0
- package/bin/common/enums/ProcessValidationEnum.d.ts +4 -0
- package/bin/common/enums/ProcessValidationEnum.js +8 -0
- package/bin/common/index.d.ts +2 -0
- package/bin/common/index.js +20 -0
- package/bin/transactionProcessor/dtos/AuthorizeRenewalTransactionRequest.d.ts +12 -0
- package/bin/transactionProcessor/dtos/AuthorizeRenewalTransactionRequest.js +6 -0
- package/bin/transactionProcessor/dtos/ProviderPreAuthRenewalRequest.d.ts +10 -0
- package/bin/transactionProcessor/dtos/ProviderPreAuthRenewalRequest.js +6 -0
- package/bin/transactionProcessor/dtos/ProviderPreAuthRenewalResponse.d.ts +9 -0
- package/bin/transactionProcessor/dtos/ProviderPreAuthRenewalResponse.js +6 -0
- package/package.json +1 -1
- package/src/common/dtos/ProcessValidationResultDto.ts +17 -0
- package/src/common/enums/ProcessValidationEnum.ts +4 -0
- package/src/common/index.ts +5 -0
- package/src/transactionProcessor/dtos/ProviderPreAuthRenewalRequest.ts +10 -0
- package/src/transactionProcessor/dtos/ProviderPreAuthRenewalResponse.ts +10 -0
|
@@ -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,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,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,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,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
|
+
}
|
package/package.json
CHANGED
|
@@ -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,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
|
+
}
|