@fiado/type-kit 3.43.1 → 3.45.0
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/index.d.ts +1 -0
- package/bin/index.js +2 -1
- package/bin/messagesConnector/dtos/SendMessageRequest.d.ts +20 -0
- package/bin/messagesConnector/dtos/SendMessageRequest.js +118 -0
- package/bin/messagesConnector/dtos/VerifyOtpRequest.d.ts +5 -0
- package/bin/messagesConnector/dtos/VerifyOtpRequest.js +34 -0
- package/bin/messagesConnector/index.d.ts +2 -0
- package/bin/messagesConnector/index.js +2 -0
- package/bin/walletFunding/dtos/AuthorizeWalletFundingRequest.d.ts +13 -0
- package/bin/walletFunding/dtos/AuthorizeWalletFundingRequest.js +63 -0
- package/bin/walletFunding/dtos/AuthorizeWalletFundingResponse.d.ts +10 -0
- package/bin/walletFunding/dtos/AuthorizeWalletFundingResponse.js +6 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +5 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.js +31 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +7 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +6 -0
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.d.ts +3 -0
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.js +21 -0
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +7 -0
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.js +6 -0
- package/bin/walletFunding/dtos/CreateFundingReferenceRequest.d.ts +13 -0
- package/bin/walletFunding/dtos/CreateFundingReferenceRequest.js +65 -0
- package/bin/walletFunding/dtos/CreateFundingReferenceResponse.d.ts +10 -0
- package/bin/walletFunding/dtos/CreateFundingReferenceResponse.js +6 -0
- package/bin/walletFunding/dtos/CreditWalletFundingRequest.d.ts +10 -0
- package/bin/walletFunding/dtos/CreditWalletFundingRequest.js +55 -0
- package/bin/walletFunding/dtos/CreditWalletFundingResponse.d.ts +8 -0
- package/bin/walletFunding/dtos/CreditWalletFundingResponse.js +6 -0
- package/bin/walletFunding/dtos/FundingProviderReferenceData.d.ts +12 -0
- package/bin/walletFunding/dtos/FundingProviderReferenceData.js +9 -0
- package/bin/walletFunding/dtos/ListFundingReferencesRequest.d.ts +5 -0
- package/bin/walletFunding/dtos/ListFundingReferencesRequest.js +27 -0
- package/bin/walletFunding/dtos/ListFundingReferencesResponse.d.ts +4 -0
- package/bin/walletFunding/dtos/ListFundingReferencesResponse.js +6 -0
- package/bin/walletFunding/dtos/ListWalletFundingReferencesRequest.d.ts +6 -0
- package/bin/walletFunding/dtos/ListWalletFundingReferencesRequest.js +28 -0
- package/bin/walletFunding/dtos/ListWalletFundingReferencesResponse.d.ts +16 -0
- package/bin/walletFunding/dtos/ListWalletFundingReferencesResponse.js +9 -0
- package/bin/walletFunding/dtos/ReverseWalletFundingRequest.d.ts +9 -0
- package/bin/walletFunding/dtos/ReverseWalletFundingRequest.js +51 -0
- package/bin/walletFunding/dtos/ReverseWalletFundingResponse.d.ts +7 -0
- package/bin/walletFunding/dtos/ReverseWalletFundingResponse.js +6 -0
- package/bin/walletFunding/dtos/ValidateWalletFundingRequest.d.ts +9 -0
- package/bin/walletFunding/dtos/ValidateWalletFundingRequest.js +51 -0
- package/bin/walletFunding/dtos/ValidateWalletFundingResponse.d.ts +6 -0
- package/bin/walletFunding/dtos/ValidateWalletFundingResponse.js +6 -0
- package/bin/walletFunding/dtos/index.d.ts +19 -0
- package/bin/walletFunding/dtos/index.js +35 -0
- package/bin/walletFunding/enums/FundingMethodEnum.d.ts +3 -0
- package/bin/walletFunding/enums/FundingMethodEnum.js +7 -0
- package/bin/walletFunding/enums/WalletFundingErrorCodeEnum.d.ts +16 -0
- package/bin/walletFunding/enums/WalletFundingErrorCodeEnum.js +20 -0
- package/bin/walletFunding/enums/WalletFundingModeEnum.d.ts +4 -0
- package/bin/walletFunding/enums/WalletFundingModeEnum.js +8 -0
- package/bin/walletFunding/enums/WalletFundingPaymentStatusEnum.d.ts +6 -0
- package/bin/walletFunding/enums/WalletFundingPaymentStatusEnum.js +10 -0
- package/bin/walletFunding/enums/WalletFundingReferenceStatusEnum.d.ts +6 -0
- package/bin/walletFunding/enums/WalletFundingReferenceStatusEnum.js +10 -0
- package/bin/walletFunding/enums/WalletFundingRefundReasonEnum.d.ts +8 -0
- package/bin/walletFunding/enums/WalletFundingRefundReasonEnum.js +12 -0
- package/bin/walletFunding/enums/index.d.ts +6 -0
- package/bin/walletFunding/enums/index.js +22 -0
- package/bin/walletFunding/index.d.ts +2 -0
- package/bin/walletFunding/index.js +18 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/messagesConnector/dtos/SendMessageRequest.ts +23 -0
- package/src/messagesConnector/dtos/VerifyOtpRequest.ts +8 -0
- package/src/messagesConnector/index.ts +2 -0
- package/src/walletFunding/dtos/AuthorizeWalletFundingRequest.ts +18 -0
- package/src/walletFunding/dtos/AuthorizeWalletFundingResponse.ts +11 -0
- package/src/walletFunding/dtos/CancelFundingReferenceRequest.ts +7 -0
- package/src/walletFunding/dtos/CancelFundingReferenceResponse.ts +8 -0
- package/src/walletFunding/dtos/CancelWalletFundingRequest.ts +5 -0
- package/src/walletFunding/dtos/CancelWalletFundingResponse.ts +8 -0
- package/src/walletFunding/dtos/CreateFundingReferenceRequest.ts +18 -0
- package/src/walletFunding/dtos/CreateFundingReferenceResponse.ts +11 -0
- package/src/walletFunding/dtos/CreditWalletFundingRequest.ts +12 -0
- package/src/walletFunding/dtos/CreditWalletFundingResponse.ts +9 -0
- package/src/walletFunding/dtos/FundingProviderReferenceData.ts +10 -0
- package/src/walletFunding/dtos/ListFundingReferencesRequest.ts +7 -0
- package/src/walletFunding/dtos/ListFundingReferencesResponse.ts +5 -0
- package/src/walletFunding/dtos/ListWalletFundingReferencesRequest.ts +8 -0
- package/src/walletFunding/dtos/ListWalletFundingReferencesResponse.ts +18 -0
- package/src/walletFunding/dtos/ReverseWalletFundingRequest.ts +11 -0
- package/src/walletFunding/dtos/ReverseWalletFundingResponse.ts +8 -0
- package/src/walletFunding/dtos/ValidateWalletFundingRequest.ts +11 -0
- package/src/walletFunding/dtos/ValidateWalletFundingResponse.ts +7 -0
- package/src/walletFunding/dtos/index.ts +19 -0
- package/src/walletFunding/enums/FundingMethodEnum.ts +3 -0
- package/src/walletFunding/enums/WalletFundingErrorCodeEnum.ts +16 -0
- package/src/walletFunding/enums/WalletFundingModeEnum.ts +4 -0
- package/src/walletFunding/enums/WalletFundingPaymentStatusEnum.ts +6 -0
- package/src/walletFunding/enums/WalletFundingReferenceStatusEnum.ts +6 -0
- package/src/walletFunding/enums/WalletFundingRefundReasonEnum.ts +8 -0
- package/src/walletFunding/enums/index.ts +6 -0
- package/src/walletFunding/index.ts +2 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ListFundingReferencesRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const WalletFundingReferenceStatusEnum_1 = require("../enums/WalletFundingReferenceStatusEnum");
|
|
15
|
+
class ListFundingReferencesRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.ListFundingReferencesRequest = ListFundingReferencesRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.MaxLength)(64),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], ListFundingReferencesRequest.prototype, "directoryId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsEnum)(WalletFundingReferenceStatusEnum_1.WalletFundingReferenceStatusEnum),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], ListFundingReferencesRequest.prototype, "status", void 0);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WalletFundingReferenceStatusEnum } from "../enums/WalletFundingReferenceStatusEnum";
|
|
2
|
+
import { FundingMethodEnum } from "../enums/FundingMethodEnum";
|
|
3
|
+
export declare class ListWalletFundingReferencesRequest {
|
|
4
|
+
status?: WalletFundingReferenceStatusEnum;
|
|
5
|
+
method?: FundingMethodEnum;
|
|
6
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ListWalletFundingReferencesRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const WalletFundingReferenceStatusEnum_1 = require("../enums/WalletFundingReferenceStatusEnum");
|
|
15
|
+
const FundingMethodEnum_1 = require("../enums/FundingMethodEnum");
|
|
16
|
+
class ListWalletFundingReferencesRequest {
|
|
17
|
+
}
|
|
18
|
+
exports.ListWalletFundingReferencesRequest = ListWalletFundingReferencesRequest;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.IsEnum)(WalletFundingReferenceStatusEnum_1.WalletFundingReferenceStatusEnum),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], ListWalletFundingReferencesRequest.prototype, "status", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_validator_1.IsEnum)(FundingMethodEnum_1.FundingMethodEnum),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], ListWalletFundingReferencesRequest.prototype, "method", void 0);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WalletFundingReferenceStatusEnum } from "../enums/WalletFundingReferenceStatusEnum";
|
|
2
|
+
import { WalletFundingModeEnum } from "../enums/WalletFundingModeEnum";
|
|
3
|
+
import { FundingProviderReferenceData } from "./FundingProviderReferenceData";
|
|
4
|
+
export declare class WalletFundingReferenceListItem {
|
|
5
|
+
fundingId: string;
|
|
6
|
+
mode: WalletFundingModeEnum;
|
|
7
|
+
amount?: number;
|
|
8
|
+
currencyCode: string;
|
|
9
|
+
status: WalletFundingReferenceStatusEnum;
|
|
10
|
+
expiresAt: string;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
providerData: FundingProviderReferenceData;
|
|
13
|
+
}
|
|
14
|
+
export declare class ListWalletFundingReferencesResponse {
|
|
15
|
+
items: WalletFundingReferenceListItem[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListWalletFundingReferencesResponse = exports.WalletFundingReferenceListItem = void 0;
|
|
4
|
+
class WalletFundingReferenceListItem {
|
|
5
|
+
}
|
|
6
|
+
exports.WalletFundingReferenceListItem = WalletFundingReferenceListItem;
|
|
7
|
+
class ListWalletFundingReferencesResponse {
|
|
8
|
+
}
|
|
9
|
+
exports.ListWalletFundingReferencesResponse = ListWalletFundingReferencesResponse;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ReverseWalletFundingRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class ReverseWalletFundingRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.ReverseWalletFundingRequest = ReverseWalletFundingRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.MaxLength)(64),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ReverseWalletFundingRequest.prototype, "directoryId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.MaxLength)(64),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ReverseWalletFundingRequest.prototype, "walletAccountId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
(0, class_validator_1.IsPositive)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ReverseWalletFundingRequest.prototype, "amount", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.Length)(3, 3),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ReverseWalletFundingRequest.prototype, "currencyCode", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.MaxLength)(32),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ReverseWalletFundingRequest.prototype, "providerName", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.MaxLength)(128),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ReverseWalletFundingRequest.prototype, "providerReference", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.MaxLength)(64),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], ReverseWalletFundingRequest.prototype, "providerTxId", void 0);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
+
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
+
export declare class ReverseWalletFundingResponse {
|
|
4
|
+
status: BenefitPaymentStatusEnum;
|
|
5
|
+
errorCode?: WalletFundingErrorCodeEnum;
|
|
6
|
+
transactionNumber?: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ValidateWalletFundingRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class ValidateWalletFundingRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.ValidateWalletFundingRequest = ValidateWalletFundingRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.MaxLength)(64),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ValidateWalletFundingRequest.prototype, "directoryId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.MaxLength)(64),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ValidateWalletFundingRequest.prototype, "walletAccountId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
(0, class_validator_1.IsPositive)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ValidateWalletFundingRequest.prototype, "amount", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.Length)(3, 3),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ValidateWalletFundingRequest.prototype, "currencyCode", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.MaxLength)(32),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ValidateWalletFundingRequest.prototype, "providerName", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.MaxLength)(128),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ValidateWalletFundingRequest.prototype, "providerReference", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.MaxLength)(64),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], ValidateWalletFundingRequest.prototype, "providerTxId", void 0);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from "./FundingProviderReferenceData";
|
|
2
|
+
export * from "./AuthorizeWalletFundingRequest";
|
|
3
|
+
export * from "./AuthorizeWalletFundingResponse";
|
|
4
|
+
export * from "./CancelWalletFundingRequest";
|
|
5
|
+
export * from "./CancelWalletFundingResponse";
|
|
6
|
+
export * from "./ListWalletFundingReferencesRequest";
|
|
7
|
+
export * from "./ListWalletFundingReferencesResponse";
|
|
8
|
+
export * from "./CreateFundingReferenceRequest";
|
|
9
|
+
export * from "./CreateFundingReferenceResponse";
|
|
10
|
+
export * from "./CancelFundingReferenceRequest";
|
|
11
|
+
export * from "./CancelFundingReferenceResponse";
|
|
12
|
+
export * from "./ListFundingReferencesRequest";
|
|
13
|
+
export * from "./ListFundingReferencesResponse";
|
|
14
|
+
export * from "./ValidateWalletFundingRequest";
|
|
15
|
+
export * from "./ValidateWalletFundingResponse";
|
|
16
|
+
export * from "./CreditWalletFundingRequest";
|
|
17
|
+
export * from "./CreditWalletFundingResponse";
|
|
18
|
+
export * from "./ReverseWalletFundingRequest";
|
|
19
|
+
export * from "./ReverseWalletFundingResponse";
|
|
@@ -0,0 +1,35 @@
|
|
|
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("./FundingProviderReferenceData"), exports);
|
|
18
|
+
__exportStar(require("./AuthorizeWalletFundingRequest"), exports);
|
|
19
|
+
__exportStar(require("./AuthorizeWalletFundingResponse"), exports);
|
|
20
|
+
__exportStar(require("./CancelWalletFundingRequest"), exports);
|
|
21
|
+
__exportStar(require("./CancelWalletFundingResponse"), exports);
|
|
22
|
+
__exportStar(require("./ListWalletFundingReferencesRequest"), exports);
|
|
23
|
+
__exportStar(require("./ListWalletFundingReferencesResponse"), exports);
|
|
24
|
+
__exportStar(require("./CreateFundingReferenceRequest"), exports);
|
|
25
|
+
__exportStar(require("./CreateFundingReferenceResponse"), exports);
|
|
26
|
+
__exportStar(require("./CancelFundingReferenceRequest"), exports);
|
|
27
|
+
__exportStar(require("./CancelFundingReferenceResponse"), exports);
|
|
28
|
+
__exportStar(require("./ListFundingReferencesRequest"), exports);
|
|
29
|
+
__exportStar(require("./ListFundingReferencesResponse"), exports);
|
|
30
|
+
__exportStar(require("./ValidateWalletFundingRequest"), exports);
|
|
31
|
+
__exportStar(require("./ValidateWalletFundingResponse"), exports);
|
|
32
|
+
__exportStar(require("./CreditWalletFundingRequest"), exports);
|
|
33
|
+
__exportStar(require("./CreditWalletFundingResponse"), exports);
|
|
34
|
+
__exportStar(require("./ReverseWalletFundingRequest"), exports);
|
|
35
|
+
__exportStar(require("./ReverseWalletFundingResponse"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FundingMethodEnum = void 0;
|
|
4
|
+
var FundingMethodEnum;
|
|
5
|
+
(function (FundingMethodEnum) {
|
|
6
|
+
FundingMethodEnum["CASH"] = "CASH";
|
|
7
|
+
})(FundingMethodEnum || (exports.FundingMethodEnum = FundingMethodEnum = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum WalletFundingErrorCodeEnum {
|
|
2
|
+
WALLET_NOT_ACTIVE = "WALLET_NOT_ACTIVE",
|
|
3
|
+
KYC_REQUIRED = "KYC_REQUIRED",
|
|
4
|
+
AMOUNT_EXCEEDS_LEVEL_LIMIT = "AMOUNT_EXCEEDS_LEVEL_LIMIT",
|
|
5
|
+
MONTHLY_LIMIT_EXCEEDED = "MONTHLY_LIMIT_EXCEEDED",
|
|
6
|
+
AML_BLOCKED = "AML_BLOCKED",
|
|
7
|
+
TOO_MANY_ACTIVE_REFERENCES = "TOO_MANY_ACTIVE_REFERENCES",
|
|
8
|
+
REFERENCE_NOT_FOUND = "REFERENCE_NOT_FOUND",
|
|
9
|
+
REFERENCE_NOT_CANCELABLE = "REFERENCE_NOT_CANCELABLE",
|
|
10
|
+
REFERENCE_EXPIRED = "REFERENCE_EXPIRED",
|
|
11
|
+
REFERENCE_CANCELLED = "REFERENCE_CANCELLED",
|
|
12
|
+
REFERENCE_ALREADY_PAID = "REFERENCE_ALREADY_PAID",
|
|
13
|
+
AMOUNT_MISMATCH = "AMOUNT_MISMATCH",
|
|
14
|
+
PROVIDER_REJECTED = "PROVIDER_REJECTED",
|
|
15
|
+
PROVIDER_TIMEOUT = "PROVIDER_TIMEOUT"
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletFundingErrorCodeEnum = void 0;
|
|
4
|
+
var WalletFundingErrorCodeEnum;
|
|
5
|
+
(function (WalletFundingErrorCodeEnum) {
|
|
6
|
+
WalletFundingErrorCodeEnum["WALLET_NOT_ACTIVE"] = "WALLET_NOT_ACTIVE";
|
|
7
|
+
WalletFundingErrorCodeEnum["KYC_REQUIRED"] = "KYC_REQUIRED";
|
|
8
|
+
WalletFundingErrorCodeEnum["AMOUNT_EXCEEDS_LEVEL_LIMIT"] = "AMOUNT_EXCEEDS_LEVEL_LIMIT";
|
|
9
|
+
WalletFundingErrorCodeEnum["MONTHLY_LIMIT_EXCEEDED"] = "MONTHLY_LIMIT_EXCEEDED";
|
|
10
|
+
WalletFundingErrorCodeEnum["AML_BLOCKED"] = "AML_BLOCKED";
|
|
11
|
+
WalletFundingErrorCodeEnum["TOO_MANY_ACTIVE_REFERENCES"] = "TOO_MANY_ACTIVE_REFERENCES";
|
|
12
|
+
WalletFundingErrorCodeEnum["REFERENCE_NOT_FOUND"] = "REFERENCE_NOT_FOUND";
|
|
13
|
+
WalletFundingErrorCodeEnum["REFERENCE_NOT_CANCELABLE"] = "REFERENCE_NOT_CANCELABLE";
|
|
14
|
+
WalletFundingErrorCodeEnum["REFERENCE_EXPIRED"] = "REFERENCE_EXPIRED";
|
|
15
|
+
WalletFundingErrorCodeEnum["REFERENCE_CANCELLED"] = "REFERENCE_CANCELLED";
|
|
16
|
+
WalletFundingErrorCodeEnum["REFERENCE_ALREADY_PAID"] = "REFERENCE_ALREADY_PAID";
|
|
17
|
+
WalletFundingErrorCodeEnum["AMOUNT_MISMATCH"] = "AMOUNT_MISMATCH";
|
|
18
|
+
WalletFundingErrorCodeEnum["PROVIDER_REJECTED"] = "PROVIDER_REJECTED";
|
|
19
|
+
WalletFundingErrorCodeEnum["PROVIDER_TIMEOUT"] = "PROVIDER_TIMEOUT";
|
|
20
|
+
})(WalletFundingErrorCodeEnum || (exports.WalletFundingErrorCodeEnum = WalletFundingErrorCodeEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletFundingModeEnum = void 0;
|
|
4
|
+
var WalletFundingModeEnum;
|
|
5
|
+
(function (WalletFundingModeEnum) {
|
|
6
|
+
WalletFundingModeEnum["FIXED"] = "FIXED";
|
|
7
|
+
WalletFundingModeEnum["OPEN"] = "OPEN";
|
|
8
|
+
})(WalletFundingModeEnum || (exports.WalletFundingModeEnum = WalletFundingModeEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletFundingPaymentStatusEnum = void 0;
|
|
4
|
+
var WalletFundingPaymentStatusEnum;
|
|
5
|
+
(function (WalletFundingPaymentStatusEnum) {
|
|
6
|
+
WalletFundingPaymentStatusEnum["CONSULTED"] = "CONSULTED";
|
|
7
|
+
WalletFundingPaymentStatusEnum["APPLIED"] = "APPLIED";
|
|
8
|
+
WalletFundingPaymentStatusEnum["REVERSED"] = "REVERSED";
|
|
9
|
+
WalletFundingPaymentStatusEnum["QUEUED_FOR_REFUND"] = "QUEUED_FOR_REFUND";
|
|
10
|
+
})(WalletFundingPaymentStatusEnum || (exports.WalletFundingPaymentStatusEnum = WalletFundingPaymentStatusEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletFundingReferenceStatusEnum = void 0;
|
|
4
|
+
var WalletFundingReferenceStatusEnum;
|
|
5
|
+
(function (WalletFundingReferenceStatusEnum) {
|
|
6
|
+
WalletFundingReferenceStatusEnum["ACTIVE"] = "ACTIVE";
|
|
7
|
+
WalletFundingReferenceStatusEnum["PAID"] = "PAID";
|
|
8
|
+
WalletFundingReferenceStatusEnum["EXPIRED"] = "EXPIRED";
|
|
9
|
+
WalletFundingReferenceStatusEnum["CANCELLED"] = "CANCELLED";
|
|
10
|
+
})(WalletFundingReferenceStatusEnum || (exports.WalletFundingReferenceStatusEnum = WalletFundingReferenceStatusEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum WalletFundingRefundReasonEnum {
|
|
2
|
+
WALLET_CANCELLED = "WALLET_CANCELLED",
|
|
3
|
+
AML_BLOCKED = "AML_BLOCKED",
|
|
4
|
+
LIMIT_EXCEEDED = "LIMIT_EXCEEDED",
|
|
5
|
+
WALLET_NOT_FOUND = "WALLET_NOT_FOUND",
|
|
6
|
+
PROCESSOR_FAILURE = "PROCESSOR_FAILURE",
|
|
7
|
+
INSUFFICIENT_BALANCE_FOR_REVERSE = "INSUFFICIENT_BALANCE_FOR_REVERSE"
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletFundingRefundReasonEnum = void 0;
|
|
4
|
+
var WalletFundingRefundReasonEnum;
|
|
5
|
+
(function (WalletFundingRefundReasonEnum) {
|
|
6
|
+
WalletFundingRefundReasonEnum["WALLET_CANCELLED"] = "WALLET_CANCELLED";
|
|
7
|
+
WalletFundingRefundReasonEnum["AML_BLOCKED"] = "AML_BLOCKED";
|
|
8
|
+
WalletFundingRefundReasonEnum["LIMIT_EXCEEDED"] = "LIMIT_EXCEEDED";
|
|
9
|
+
WalletFundingRefundReasonEnum["WALLET_NOT_FOUND"] = "WALLET_NOT_FOUND";
|
|
10
|
+
WalletFundingRefundReasonEnum["PROCESSOR_FAILURE"] = "PROCESSOR_FAILURE";
|
|
11
|
+
WalletFundingRefundReasonEnum["INSUFFICIENT_BALANCE_FOR_REVERSE"] = "INSUFFICIENT_BALANCE_FOR_REVERSE";
|
|
12
|
+
})(WalletFundingRefundReasonEnum || (exports.WalletFundingRefundReasonEnum = WalletFundingRefundReasonEnum = {}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./FundingMethodEnum";
|
|
2
|
+
export * from "./WalletFundingModeEnum";
|
|
3
|
+
export * from "./WalletFundingReferenceStatusEnum";
|
|
4
|
+
export * from "./WalletFundingPaymentStatusEnum";
|
|
5
|
+
export * from "./WalletFundingErrorCodeEnum";
|
|
6
|
+
export * from "./WalletFundingRefundReasonEnum";
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./FundingMethodEnum"), exports);
|
|
18
|
+
__exportStar(require("./WalletFundingModeEnum"), exports);
|
|
19
|
+
__exportStar(require("./WalletFundingReferenceStatusEnum"), exports);
|
|
20
|
+
__exportStar(require("./WalletFundingPaymentStatusEnum"), exports);
|
|
21
|
+
__exportStar(require("./WalletFundingErrorCodeEnum"), exports);
|
|
22
|
+
__exportStar(require("./WalletFundingRefundReasonEnum"), exports);
|
|
@@ -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("./enums"), exports);
|
|
18
|
+
__exportStar(require("./dtos"), exports);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -81,4 +81,5 @@ export * as CognitoBackofficeConnector from './cognitoBackofficeConnector';
|
|
|
81
81
|
// platform-rbac-business — migrar Permission/Scope/AuthContext/RoleAssignmentInfo a `rbac/`).
|
|
82
82
|
export * as PlatformRbac from './platformRbac';
|
|
83
83
|
export * as Remittance from './remittance';
|
|
84
|
+
export * as WalletFunding from './walletFunding';
|
|
84
85
|
export * from './messaging';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsEnum, IsNotEmpty, IsObject, IsOptional, IsString, IsUUID } from 'class-validator';
|
|
3
|
+
import { DeliveryChannelEnum } from '../../messaging';
|
|
4
|
+
|
|
5
|
+
export class SendMessageRequest {
|
|
6
|
+
@Expose() @IsEnum(DeliveryChannelEnum) channelType!: DeliveryChannelEnum;
|
|
7
|
+
@Expose() @IsString() @IsNotEmpty() messageType!: string;
|
|
8
|
+
@Expose() @IsUUID() directoryId!: string;
|
|
9
|
+
@Expose() @IsString() @IsNotEmpty() typeOfDirectory!: string;
|
|
10
|
+
@Expose() @IsString() @IsNotEmpty() language!: string;
|
|
11
|
+
@Expose() @IsString() @IsNotEmpty() country!: string;
|
|
12
|
+
@Expose() @IsOptional() @IsString() destination?: string;
|
|
13
|
+
@Expose() @IsOptional() @IsString() var1?: string;
|
|
14
|
+
@Expose() @IsOptional() @IsString() var2?: string;
|
|
15
|
+
@Expose() @IsOptional() @IsString() var3?: string;
|
|
16
|
+
@Expose() @IsOptional() @IsString() var4?: string;
|
|
17
|
+
@Expose() @IsOptional() @IsString() var5?: string;
|
|
18
|
+
@Expose() @IsOptional() @IsUUID() beneficiaryDirectoryId?: string;
|
|
19
|
+
@Expose() @IsOptional() @IsString() beneficiaryTypeOfDirectoryId?: string;
|
|
20
|
+
@Expose() @IsOptional() @IsObject() options?: Record<string, unknown>;
|
|
21
|
+
@Expose() @IsOptional() @IsUUID() referenceMessageId?: string;
|
|
22
|
+
@Expose() @IsOptional() @IsString() transactionNumber?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsNotEmpty, IsString, IsUUID } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
export class VerifyOtpRequest {
|
|
5
|
+
@Expose() @IsUUID() directoryId!: string;
|
|
6
|
+
@Expose() @IsString() @IsNotEmpty() typeOfDirectoryId!: string;
|
|
7
|
+
@Expose() @IsString() @IsNotEmpty() message!: string;
|
|
8
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './enums/DeliveryChannelExtendedEnum';
|
|
2
2
|
export * from './validators/IsStringValueRecord';
|
|
3
3
|
export * from './dtos/NotificationQueueMessageRequestV2';
|
|
4
|
+
export * from './dtos/SendMessageRequest';
|
|
4
5
|
export * from './dtos/SendMessageResponse';
|
|
6
|
+
export * from './dtos/VerifyOtpRequest';
|
|
5
7
|
export * from './dtos/VerifyOtpResponse';
|
|
6
8
|
export * from './dtos/OtpValidatedResponse';
|
|
7
9
|
export * from './dtos/NotificationResponse';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsString, IsEnum, IsOptional, IsNumber, IsPositive,
|
|
3
|
+
Length, Min, Max, IsLatitude, IsLongitude, MaxLength,
|
|
4
|
+
} from "class-validator";
|
|
5
|
+
import { FundingMethodEnum } from "../enums/FundingMethodEnum";
|
|
6
|
+
import { WalletFundingModeEnum } from "../enums/WalletFundingModeEnum";
|
|
7
|
+
|
|
8
|
+
export class AuthorizeWalletFundingRequest {
|
|
9
|
+
@IsString() @MaxLength(64) directoryId!: string;
|
|
10
|
+
@IsEnum(FundingMethodEnum) method!: FundingMethodEnum;
|
|
11
|
+
@IsEnum(WalletFundingModeEnum) mode!: WalletFundingModeEnum;
|
|
12
|
+
@IsOptional() @IsNumber() @IsPositive() amount?: number;
|
|
13
|
+
@IsString() @Length(3, 3) currencyCode!: string;
|
|
14
|
+
@IsNumber() @Min(1) @Max(30) expirationDays!: number;
|
|
15
|
+
@IsString() @MaxLength(64) idempotencyKey!: string;
|
|
16
|
+
@IsOptional() @IsLatitude() latitude?: number;
|
|
17
|
+
@IsOptional() @IsLongitude() longitude?: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
+
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
+
import { FundingProviderReferenceData } from "./FundingProviderReferenceData";
|
|
4
|
+
|
|
5
|
+
export class AuthorizeWalletFundingResponse {
|
|
6
|
+
status!: BenefitPaymentStatusEnum;
|
|
7
|
+
errorCode?: WalletFundingErrorCodeEnum;
|
|
8
|
+
fundingId?: string;
|
|
9
|
+
expiresAt?: string;
|
|
10
|
+
providerData?: FundingProviderReferenceData;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
+
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
+
|
|
4
|
+
export class CancelFundingReferenceResponse {
|
|
5
|
+
fundingId!: string;
|
|
6
|
+
status!: BenefitPaymentStatusEnum;
|
|
7
|
+
errorCode?: WalletFundingErrorCodeEnum;
|
|
8
|
+
}
|