@fiado/type-kit 1.1.68 → 1.1.70
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/bankAccount/dtos/ExternalAccountCurrency.d.ts +4 -0
- package/bin/bankAccount/dtos/ExternalAccountCurrency.js +6 -0
- package/bin/bankAccount/dtos/ExternalAccountType.d.ts +4 -0
- package/bin/bankAccount/dtos/ExternalAccountType.js +6 -0
- package/bin/bankAccount/dtos/GetExternalBankAccountRequest.d.ts +12 -0
- package/bin/bankAccount/dtos/GetExternalBankAccountRequest.js +5 -0
- package/bin/bankAccount/dtos/GetExternalBankAccountResponse.d.ts +15 -0
- package/bin/bankAccount/dtos/GetExternalBankAccountResponse.js +5 -0
- package/bin/bankAccount/dtos/GetExternalBankResponse.d.ts +13 -0
- package/bin/bankAccount/dtos/GetExternalBankResponse.js +6 -0
- package/bin/bankAccount/index.d.ts +5 -0
- package/bin/bankAccount/index.js +21 -0
- package/bin/index.d.ts +1 -0
- package/bin/index.js +2 -1
- package/bin/transaction/dtos/TransactionCreateRequest.d.ts +1 -0
- package/bin/transaction/dtos/TransactionCreateRequest.js +4 -0
- package/bin/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.d.ts +7 -0
- package/bin/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.js +5 -0
- package/package.json +1 -1
- package/src/bankAccount/dtos/ExternalAccountCurrency.ts +4 -0
- package/src/bankAccount/dtos/ExternalAccountType.ts +4 -0
- package/src/bankAccount/dtos/GetExternalBankAccountRequest.ts +12 -0
- package/src/bankAccount/dtos/GetExternalBankAccountResponse.ts +16 -0
- package/src/bankAccount/dtos/GetExternalBankResponse.ts +14 -0
- package/src/bankAccount/index.ts +5 -0
- package/src/index.ts +1 -0
- package/src/transaction/dtos/Credit.ts +2 -3
- package/src/transaction/dtos/TransactionCreateRequest.ts +3 -0
- package/src/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.ts +7 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default class GetExternalBankAccountRequest {
|
|
2
|
+
countryId?: string;
|
|
3
|
+
bankAccountId?: string;
|
|
4
|
+
accountNumber?: string;
|
|
5
|
+
directoryId?: string;
|
|
6
|
+
typeOfDirectoryId?: string;
|
|
7
|
+
alias?: string;
|
|
8
|
+
accountTypeId?: string;
|
|
9
|
+
accountHolderName?: string;
|
|
10
|
+
bankId?: string;
|
|
11
|
+
default?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ExternalAccountType } from "./ExternalAccountType";
|
|
2
|
+
export default class GetExternalBankAccountResponse {
|
|
3
|
+
id: string;
|
|
4
|
+
countryId: string;
|
|
5
|
+
accountNumber: string | null;
|
|
6
|
+
bankId: string;
|
|
7
|
+
alias: string | null;
|
|
8
|
+
directoryId: string;
|
|
9
|
+
typeOfDirectoryId: string;
|
|
10
|
+
accountHolderName: string;
|
|
11
|
+
email: string | null;
|
|
12
|
+
accountType: [ExternalAccountType];
|
|
13
|
+
bankName: string | null;
|
|
14
|
+
iconUrl: string | null;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ExternalAccountType } from "./ExternalAccountType";
|
|
2
|
+
import { ExternalAccountCurrency } from "./ExternalAccountCurrency";
|
|
3
|
+
export declare class GetExternalBankResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
accountNumberRegex: string;
|
|
8
|
+
sortNumber: number;
|
|
9
|
+
currency: ExternalAccountCurrency;
|
|
10
|
+
accountType: [ExternalAccountType];
|
|
11
|
+
iconUrl: string | null;
|
|
12
|
+
bankCode: string | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./dtos/ExternalAccountType"), exports);
|
|
18
|
+
__exportStar(require("./dtos/ExternalAccountCurrency"), exports);
|
|
19
|
+
__exportStar(require("./dtos/GetExternalBankAccountRequest"), exports);
|
|
20
|
+
__exportStar(require("./dtos/GetExternalBankAccountResponse"), exports);
|
|
21
|
+
__exportStar(require("./dtos/GetExternalBankResponse"), exports);
|
package/bin/index.d.ts
CHANGED
package/bin/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Account = void 0;
|
|
26
|
+
exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Account = void 0;
|
|
27
27
|
exports.Account = __importStar(require("./account"));
|
|
28
28
|
exports.Beneficiary = __importStar(require("./beneficiary"));
|
|
29
29
|
exports.Address = __importStar(require("./address"));
|
|
@@ -50,3 +50,4 @@ exports.ProductCatalog = __importStar(require("./productCatalog"));
|
|
|
50
50
|
exports.Contract = __importStar(require("./contract"));
|
|
51
51
|
exports.CreditContract = __importStar(require("./creditContract"));
|
|
52
52
|
exports.P2pContact = __importStar(require("./p2pContact"));
|
|
53
|
+
exports.BankAccount = __importStar(require("./bankAccount"));
|
|
@@ -68,6 +68,10 @@ __decorate([
|
|
|
68
68
|
(0, class_validator_1.IsString)(),
|
|
69
69
|
__metadata("design:type", String)
|
|
70
70
|
], TransactionCreateRequest.prototype, "targetDirectoryId", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsString)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], TransactionCreateRequest.prototype, "targetPeopleId", void 0);
|
|
71
75
|
__decorate([
|
|
72
76
|
(0, class_validator_1.IsNotEmpty)(),
|
|
73
77
|
(0, class_validator_1.IsString)(),
|
package/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default class GetExternalBankAccountRequest {
|
|
2
|
+
countryId?: string;
|
|
3
|
+
bankAccountId?: string;
|
|
4
|
+
accountNumber?: string;
|
|
5
|
+
directoryId?: string;
|
|
6
|
+
typeOfDirectoryId?: string;
|
|
7
|
+
alias?: string;
|
|
8
|
+
accountTypeId?: string;
|
|
9
|
+
accountHolderName?: string;
|
|
10
|
+
bankId?: string;
|
|
11
|
+
default?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {ExternalAccountType} from "./ExternalAccountType";
|
|
2
|
+
|
|
3
|
+
export default class GetExternalBankAccountResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
countryId: string;
|
|
6
|
+
accountNumber: string | null;
|
|
7
|
+
bankId: string;
|
|
8
|
+
alias: string | null;
|
|
9
|
+
directoryId: string;
|
|
10
|
+
typeOfDirectoryId: string;
|
|
11
|
+
accountHolderName: string;
|
|
12
|
+
email: string | null;
|
|
13
|
+
accountType: [ExternalAccountType];
|
|
14
|
+
bankName: string | null;
|
|
15
|
+
iconUrl: string | null
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {ExternalAccountType} from "./ExternalAccountType";
|
|
2
|
+
import {ExternalAccountCurrency} from "./ExternalAccountCurrency";
|
|
3
|
+
|
|
4
|
+
export class GetExternalBankResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
accountNumberRegex: string;
|
|
9
|
+
sortNumber: number;
|
|
10
|
+
currency: ExternalAccountCurrency;
|
|
11
|
+
accountType: [ExternalAccountType];
|
|
12
|
+
iconUrl: string | null;
|
|
13
|
+
bankCode: string | null;
|
|
14
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {IsNotEmpty, IsNumber
|
|
2
|
-
import { regexUuidV4 } from "../../helpers/constans/regex";
|
|
1
|
+
import {IsNotEmpty, IsNumber} from "class-validator";
|
|
3
2
|
|
|
4
3
|
export class Credit {
|
|
5
|
-
|
|
4
|
+
|
|
6
5
|
@IsNotEmpty()
|
|
7
6
|
@IsNumber()
|
|
8
7
|
creditNotional: number;
|