@fiado/type-kit 1.0.69 → 1.0.71
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/account/dtos/CreateBankAccountInput.d.ts +8 -0
- package/bin/account/dtos/CreateBankAccountInput.js +6 -0
- package/bin/account/dtos/CreateBankAccountOutput.d.ts +5 -0
- package/bin/account/dtos/CreateBankAccountOutput.js +6 -0
- package/bin/account/dtos/CreateBankAccountUserInput.d.ts +14 -0
- package/bin/account/dtos/CreateBankAccountUserInput.js +6 -0
- package/bin/account/dtos/CreateBankAccountUserOutput.d.ts +8 -0
- package/bin/account/dtos/CreateBankAccountUserOutput.js +6 -0
- package/bin/account/dtos/GetBankAccountSensitiveInformationRequest.d.ts +5 -0
- package/bin/account/dtos/GetBankAccountSensitiveInformationRequest.js +6 -0
- package/bin/account/dtos/GetBankAccountSensitiveInformationResponse.d.ts +8 -0
- package/bin/account/dtos/GetBankAccountSensitiveInformationResponse.js +6 -0
- package/bin/account/dtos/UpdateBankAccountUserRequest.d.ts +26 -0
- package/bin/account/dtos/UpdateBankAccountUserRequest.js +6 -0
- package/bin/account/dtos/UpdateBankAccountUserResponse.d.ts +4 -0
- package/bin/account/dtos/UpdateBankAccountUserResponse.js +6 -0
- package/bin/account/enums/BankAccountUserStatusEnum.d.ts +5 -0
- package/bin/account/enums/BankAccountUserStatusEnum.js +9 -0
- package/bin/account/index.d.ts +4 -0
- package/bin/account/index.js +4 -0
- package/bin/identity/enums/TypeOfDocument.d.ts +6 -0
- package/bin/identity/enums/TypeOfDocument.js +10 -0
- package/bin/tern/dtos/TernAddress.d.ts +8 -0
- package/bin/tern/dtos/TernAddress.js +40 -0
- package/bin/tern/dtos/TernCreateAccountRequest.d.ts +7 -0
- package/bin/tern/dtos/TernCreateAccountRequest.js +33 -0
- package/bin/tern/dtos/TernCreateAccountResponse.d.ts +5 -0
- package/bin/tern/dtos/TernCreateAccountResponse.js +25 -0
- package/bin/tern/dtos/TernCreateUserRequest.d.ts +15 -0
- package/bin/tern/dtos/TernCreateUserRequest.js +70 -0
- package/bin/tern/dtos/TernCreateUserResponse.d.ts +8 -0
- package/bin/tern/dtos/TernCreateUserResponse.js +37 -0
- package/bin/tern/dtos/TernGetAccountRequest.d.ts +5 -0
- package/bin/tern/dtos/TernGetAccountRequest.js +25 -0
- package/bin/tern/dtos/TernGetAccountResponse.d.ts +22 -0
- package/bin/tern/dtos/TernGetAccountResponse.js +87 -0
- package/bin/tern/dtos/TernGetUserRequest.d.ts +3 -0
- package/bin/tern/dtos/TernGetUserRequest.js +20 -0
- package/bin/tern/dtos/TernGetUserResponse.d.ts +24 -0
- package/bin/tern/dtos/TernGetUserResponse.js +96 -0
- package/bin/tern/enums/TernAccountStatusEnum.d.ts +4 -0
- package/bin/tern/enums/TernAccountStatusEnum.js +8 -0
- package/bin/tern/enums/TernAccountTypeEnum.d.ts +5 -0
- package/bin/tern/enums/TernAccountTypeEnum.js +9 -0
- package/bin/tern/index.d.ts +11 -0
- package/bin/tern/index.js +29 -0
- package/package.json +1 -1
- package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +6 -0
- package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +9 -0
- package/src/account/dtos/UpdateBankAccountUserRequest.ts +27 -0
- package/src/account/dtos/UpdateBankAccountUserResponse.ts +4 -0
- package/src/account/enums/BankAccountUserStatusEnum.ts +5 -0
- package/src/account/index.ts +4 -3
- package/src/identity/enums/TypeOfDocument.ts +6 -0
- package/.idea/aws.xml +0 -11
- package/.idea/fiado-type-kit.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/sonarlint/issuestore/1/2/12453d06e6e35287172e482940b954ba12dc25a2 +0 -2
- package/.idea/sonarlint/issuestore/1/8/18c290c3d5b13d503bb211e6319a9e64ccd83350 +0 -0
- package/.idea/sonarlint/issuestore/1/f/1fcc1ef4b4c5c551f5f5833f39af79dd4d6440bd +0 -0
- package/.idea/sonarlint/issuestore/2/5/25497cc140764f84080ed16d4d408b09b411525a +0 -0
- package/.idea/sonarlint/issuestore/3/5/355a0b1b7628657539752d4cfbd8f33fcc664d5d +0 -0
- package/.idea/sonarlint/issuestore/3/7/37a0f1ea15e5f94c2fc86540cc529be06a155756 +0 -2
- package/.idea/sonarlint/issuestore/3/9/3942490f54c10c0111afa09b30a079f3ef9aeec7 +0 -0
- package/.idea/sonarlint/issuestore/3/a/3a96f9d5c15844580b34596455a77e22ce0b1da1 +0 -0
- package/.idea/sonarlint/issuestore/4/f/4f9e0d80d4df64baa27bf681528cb43a3ba4fde6 +0 -0
- package/.idea/sonarlint/issuestore/5/5/55792c374cceb362b99620756061abf16563279b +0 -0
- package/.idea/sonarlint/issuestore/5/8/5815363aa7c189fe1d8a995d750c3a3f27900621 +0 -0
- package/.idea/sonarlint/issuestore/5/a/5a74acb4b064cbe70d9a71991eb486fb4d78f531 +0 -0
- package/.idea/sonarlint/issuestore/6/1/619fe0b2aa30704d95a60035674b31d432fc5a75 +0 -0
- package/.idea/sonarlint/issuestore/6/4/646b88aafc1ca8453d1a111ea33d258c52e07851 +0 -0
- package/.idea/sonarlint/issuestore/6/9/69abfdb53d85b80c255b3ab2a88666175ceeac54 +0 -0
- package/.idea/sonarlint/issuestore/6/b/6bcb55d35bf54b940fe29f44e2bb679bc6f621e1 +0 -0
- package/.idea/sonarlint/issuestore/6/f/6f43ceef55b03d8c26768ceb4ee9e3e1cea7ddd4 +0 -0
- package/.idea/sonarlint/issuestore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
- package/.idea/sonarlint/issuestore/7/3/73eee44012dacbb17c6d2e2d988e6def209267b8 +0 -0
- package/.idea/sonarlint/issuestore/7/7/77a3404a468e41376864800c0ab63d69287e6eab +0 -0
- package/.idea/sonarlint/issuestore/7/e/7ecdb333781356fc0fe1cc9fa84ac8f76b996401 +0 -0
- package/.idea/sonarlint/issuestore/7/f/7f9d84f1e541f40d1bc582e467f11283b3acfe99 +0 -0
- package/.idea/sonarlint/issuestore/8/b/8b0588db2495f22a93ce5d97cc089971f40aa4ec +0 -0
- package/.idea/sonarlint/issuestore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
- package/.idea/sonarlint/issuestore/9/4/948b0afb07fbe2035d9d0a168a017e51c2b221a2 +0 -0
- package/.idea/sonarlint/issuestore/9/f/9fc96c9beeba61e907bd3ba313f11eac8cf0d430 +0 -0
- package/.idea/sonarlint/issuestore/a/9/a903e3bfc804794d9b9535cbb530c68383652b5d +0 -0
- package/.idea/sonarlint/issuestore/c/5/c5fb850250c7443c48a6c12b5cf6916773da31f1 +0 -0
- package/.idea/sonarlint/issuestore/d/3/d3d6982c02d9d56dc2122ebca0b84b00a90b67e5 +0 -0
- package/.idea/sonarlint/issuestore/f/9/f9cb0ab2ca2e8ce4e64e10034c949066c38000f5 +0 -0
- package/.idea/sonarlint/issuestore/f/9/f9d6327040914014594d301e0dc6361a476a5ff4 +0 -0
- package/.idea/sonarlint/issuestore/index.pb +0 -63
- package/.idea/sonarlint/securityhotspotstore/1/2/12453d06e6e35287172e482940b954ba12dc25a2 +0 -0
- package/.idea/sonarlint/securityhotspotstore/1/8/18c290c3d5b13d503bb211e6319a9e64ccd83350 +0 -0
- package/.idea/sonarlint/securityhotspotstore/1/f/1fcc1ef4b4c5c551f5f5833f39af79dd4d6440bd +0 -0
- package/.idea/sonarlint/securityhotspotstore/2/5/25497cc140764f84080ed16d4d408b09b411525a +0 -0
- package/.idea/sonarlint/securityhotspotstore/3/5/355a0b1b7628657539752d4cfbd8f33fcc664d5d +0 -0
- package/.idea/sonarlint/securityhotspotstore/3/7/37a0f1ea15e5f94c2fc86540cc529be06a155756 +0 -0
- package/.idea/sonarlint/securityhotspotstore/3/9/3942490f54c10c0111afa09b30a079f3ef9aeec7 +0 -0
- package/.idea/sonarlint/securityhotspotstore/3/a/3a96f9d5c15844580b34596455a77e22ce0b1da1 +0 -0
- package/.idea/sonarlint/securityhotspotstore/4/f/4f9e0d80d4df64baa27bf681528cb43a3ba4fde6 +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/5/55792c374cceb362b99620756061abf16563279b +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/8/5815363aa7c189fe1d8a995d750c3a3f27900621 +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/a/5a74acb4b064cbe70d9a71991eb486fb4d78f531 +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/1/619fe0b2aa30704d95a60035674b31d432fc5a75 +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/4/646b88aafc1ca8453d1a111ea33d258c52e07851 +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/9/69abfdb53d85b80c255b3ab2a88666175ceeac54 +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/b/6bcb55d35bf54b940fe29f44e2bb679bc6f621e1 +0 -0
- package/.idea/sonarlint/securityhotspotstore/6/f/6f43ceef55b03d8c26768ceb4ee9e3e1cea7ddd4 +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/3/73eee44012dacbb17c6d2e2d988e6def209267b8 +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/7/77a3404a468e41376864800c0ab63d69287e6eab +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/e/7ecdb333781356fc0fe1cc9fa84ac8f76b996401 +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/f/7f9d84f1e541f40d1bc582e467f11283b3acfe99 +0 -0
- package/.idea/sonarlint/securityhotspotstore/8/b/8b0588db2495f22a93ce5d97cc089971f40aa4ec +0 -0
- package/.idea/sonarlint/securityhotspotstore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
- package/.idea/sonarlint/securityhotspotstore/9/4/948b0afb07fbe2035d9d0a168a017e51c2b221a2 +0 -0
- package/.idea/sonarlint/securityhotspotstore/9/f/9fc96c9beeba61e907bd3ba313f11eac8cf0d430 +0 -0
- package/.idea/sonarlint/securityhotspotstore/a/9/a903e3bfc804794d9b9535cbb530c68383652b5d +0 -0
- package/.idea/sonarlint/securityhotspotstore/c/5/c5fb850250c7443c48a6c12b5cf6916773da31f1 +0 -0
- package/.idea/sonarlint/securityhotspotstore/d/3/d3d6982c02d9d56dc2122ebca0b84b00a90b67e5 +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/9/f9cb0ab2ca2e8ce4e64e10034c949066c38000f5 +0 -0
- package/.idea/sonarlint/securityhotspotstore/f/9/f9d6327040914014594d301e0dc6361a476a5ff4 +0 -0
- package/.idea/sonarlint/securityhotspotstore/index.pb +0 -63
- package/.idea/vcs.xml +0 -6
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AddressBase } from "../../address/dtos/AddressBase";
|
|
2
|
+
export declare class CreateBankAccountUserInput {
|
|
3
|
+
directoryId: string;
|
|
4
|
+
typeOfDirectoryId: string;
|
|
5
|
+
firstName: string;
|
|
6
|
+
lastName: string;
|
|
7
|
+
phoneNumber: string;
|
|
8
|
+
address: AddressBase;
|
|
9
|
+
email: string;
|
|
10
|
+
dob: string;
|
|
11
|
+
documentNumber: string;
|
|
12
|
+
documentType?: string;
|
|
13
|
+
gender?: "M" | "F";
|
|
14
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetBankAccountSensitiveInformationInput = void 0;
|
|
4
|
+
class GetBankAccountSensitiveInformationInput {
|
|
5
|
+
}
|
|
6
|
+
exports.GetBankAccountSensitiveInformationInput = GetBankAccountSensitiveInformationInput;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetBankAccountSensitiveInformationOutput = void 0;
|
|
4
|
+
class GetBankAccountSensitiveInformationOutput {
|
|
5
|
+
}
|
|
6
|
+
exports.GetBankAccountSensitiveInformationOutput = GetBankAccountSensitiveInformationOutput;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AddressBase } from "../../address/dtos/AddressBase";
|
|
2
|
+
import { CountryId } from "../../country";
|
|
3
|
+
import { SexDocument } from "../../identity";
|
|
4
|
+
import { TypeOfDocument } from "../../identity/enums/TypeOfDocument";
|
|
5
|
+
import { BankAccountUserStatus } from "../enums/BankAccountUserStatusEnum";
|
|
6
|
+
export declare class UpdateBankAccountUserRequest {
|
|
7
|
+
id: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
lastName?: string;
|
|
10
|
+
typeOfDocumentId?: TypeOfDocument;
|
|
11
|
+
documentNumber?: string;
|
|
12
|
+
sex?: SexDocument;
|
|
13
|
+
email?: string;
|
|
14
|
+
phoneNumber?: string;
|
|
15
|
+
status?: BankAccountUserStatus;
|
|
16
|
+
taxNumber?: string;
|
|
17
|
+
taxType?: "RFC";
|
|
18
|
+
address?: AddressBase;
|
|
19
|
+
dob?: string;
|
|
20
|
+
nationality?: CountryId;
|
|
21
|
+
createdDate?: string;
|
|
22
|
+
updatedDate?: string;
|
|
23
|
+
deletedDate?: string;
|
|
24
|
+
updatedBy?: string;
|
|
25
|
+
governmentId?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BankAccountUserStatus = void 0;
|
|
4
|
+
var BankAccountUserStatus;
|
|
5
|
+
(function (BankAccountUserStatus) {
|
|
6
|
+
BankAccountUserStatus["ACTIVE"] = "ACTIVE";
|
|
7
|
+
BankAccountUserStatus["BLOCKED"] = "BLOCKED";
|
|
8
|
+
BankAccountUserStatus["INACTIVE"] = "INACTIVE";
|
|
9
|
+
})(BankAccountUserStatus || (exports.BankAccountUserStatus = BankAccountUserStatus = {}));
|
package/bin/account/index.d.ts
CHANGED
|
@@ -9,6 +9,10 @@ export * from './dtos/GetBankAccountRequest';
|
|
|
9
9
|
export * from './dtos/GetBankAccountResponse';
|
|
10
10
|
export * from './dtos/GetBankAccountUserRequest';
|
|
11
11
|
export * from './dtos/GetBankAccountUserResponse';
|
|
12
|
+
export * from './dtos/UpdateBankAccountUserRequest';
|
|
13
|
+
export * from './dtos/UpdateBankAccountUserResponse';
|
|
14
|
+
export * from './dtos/GetBankAccountSensitiveInformationRequest';
|
|
15
|
+
export * from './dtos/GetBankAccountSensitiveInformationResponse';
|
|
12
16
|
export * from './entities/AccountEntityBase';
|
|
13
17
|
export * from './enums/AccountEntityStatusEnum';
|
|
14
18
|
export * from './enums/BankAccountTypeEnum';
|
package/bin/account/index.js
CHANGED
|
@@ -26,6 +26,10 @@ __exportStar(require("./dtos/GetBankAccountRequest"), exports);
|
|
|
26
26
|
__exportStar(require("./dtos/GetBankAccountResponse"), exports);
|
|
27
27
|
__exportStar(require("./dtos/GetBankAccountUserRequest"), exports);
|
|
28
28
|
__exportStar(require("./dtos/GetBankAccountUserResponse"), exports);
|
|
29
|
+
__exportStar(require("./dtos/UpdateBankAccountUserRequest"), exports);
|
|
30
|
+
__exportStar(require("./dtos/UpdateBankAccountUserResponse"), exports);
|
|
31
|
+
__exportStar(require("./dtos/GetBankAccountSensitiveInformationRequest"), exports);
|
|
32
|
+
__exportStar(require("./dtos/GetBankAccountSensitiveInformationResponse"), exports);
|
|
29
33
|
//Entities
|
|
30
34
|
__exportStar(require("./entities/AccountEntityBase"), exports);
|
|
31
35
|
//Enums
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TypeOfDocument = void 0;
|
|
4
|
+
var TypeOfDocument;
|
|
5
|
+
(function (TypeOfDocument) {
|
|
6
|
+
TypeOfDocument["MX_NATIONAL_ID"] = "MX_NATIONAL_ID";
|
|
7
|
+
TypeOfDocument["MX_PASSPORT"] = "MX_PASSPORT";
|
|
8
|
+
TypeOfDocument["US_DRIVER_LICENSE"] = "US_DRIVER_LICENSE";
|
|
9
|
+
TypeOfDocument["US_PASSPORT"] = "US_PASSPORT";
|
|
10
|
+
})(TypeOfDocument || (exports.TypeOfDocument = TypeOfDocument = {}));
|
|
@@ -0,0 +1,40 @@
|
|
|
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.TernAddress = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class TernAddress {
|
|
15
|
+
}
|
|
16
|
+
exports.TernAddress = TernAddress;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], TernAddress.prototype, "address1", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], TernAddress.prototype, "address2", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], TernAddress.prototype, "city", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], TernAddress.prototype, "province", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], TernAddress.prototype, "postalCode", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], TernAddress.prototype, "country", void 0);
|
|
@@ -0,0 +1,33 @@
|
|
|
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.TernCreateAccountRequest = void 0;
|
|
13
|
+
const TernAccountTypeEnum_1 = require("../enums/TernAccountTypeEnum");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class TernCreateAccountRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.TernCreateAccountRequest = TernCreateAccountRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], TernCreateAccountRequest.prototype, "externalUserId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], TernCreateAccountRequest.prototype, "name", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], TernCreateAccountRequest.prototype, "lastName", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsEnum)(TernAccountTypeEnum_1.TernAccountTypeEnum),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], TernCreateAccountRequest.prototype, "type", void 0);
|
|
@@ -0,0 +1,25 @@
|
|
|
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.TernCreateAccountResponse = void 0;
|
|
13
|
+
const provider_1 = require("../../provider");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class TernCreateAccountResponse {
|
|
16
|
+
}
|
|
17
|
+
exports.TernCreateAccountResponse = TernCreateAccountResponse;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], TernCreateAccountResponse.prototype, "externalAccountId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsEnum)(provider_1.Provider),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], TernCreateAccountResponse.prototype, "provider", void 0);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SexDocument } from "../../identity";
|
|
2
|
+
import { AddressResponse } from "../../address";
|
|
3
|
+
export declare class TernCreateUserRequest {
|
|
4
|
+
directoryId: string;
|
|
5
|
+
typeOfDirectoryId: string;
|
|
6
|
+
firstName: string;
|
|
7
|
+
lastName: string;
|
|
8
|
+
phoneNumber: string;
|
|
9
|
+
address: AddressResponse;
|
|
10
|
+
email: string;
|
|
11
|
+
dob: string;
|
|
12
|
+
documentNumber: string;
|
|
13
|
+
documentType?: string;
|
|
14
|
+
gender?: SexDocument;
|
|
15
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.TernCreateUserRequest = void 0;
|
|
13
|
+
const identity_1 = require("../../identity");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const regex_1 = require("../../helpers/constans/regex");
|
|
16
|
+
const directory_1 = require("../../directory");
|
|
17
|
+
const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberConstraint");
|
|
18
|
+
const address_1 = require("../../address");
|
|
19
|
+
class TernCreateUserRequest {
|
|
20
|
+
}
|
|
21
|
+
exports.TernCreateUserRequest = TernCreateUserRequest;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.Matches)(regex_1.regexUuidV4, {
|
|
25
|
+
message: 'directoryId must be a valid UUID v4',
|
|
26
|
+
}),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], TernCreateUserRequest.prototype, "directoryId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsEnum)(directory_1.TypeOfDirectoryId),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], TernCreateUserRequest.prototype, "typeOfDirectoryId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], TernCreateUserRequest.prototype, "firstName", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], TernCreateUserRequest.prototype, "lastName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, IsPhoneNumberConstraint_1.IsPhoneNumberFiado)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], TernCreateUserRequest.prototype, "phoneNumber", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.ValidateNested)(),
|
|
47
|
+
__metadata("design:type", address_1.AddressResponse)
|
|
48
|
+
], TernCreateUserRequest.prototype, "address", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsEmail)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], TernCreateUserRequest.prototype, "email", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsDateString)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], TernCreateUserRequest.prototype, "dob", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
(0, class_validator_1.Length)(1, 30),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], TernCreateUserRequest.prototype, "documentNumber", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsString)(),
|
|
64
|
+
(0, class_validator_1.Length)(1, 30),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], TernCreateUserRequest.prototype, "documentType", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsEnum)(identity_1.SexDocument),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], TernCreateUserRequest.prototype, "gender", void 0);
|
|
@@ -0,0 +1,37 @@
|
|
|
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.TernCreateUserResponse = void 0;
|
|
13
|
+
const provider_1 = require("../../provider");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class TernCreateUserResponse {
|
|
16
|
+
}
|
|
17
|
+
exports.TernCreateUserResponse = TernCreateUserResponse;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], TernCreateUserResponse.prototype, "externalUserId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], TernCreateUserResponse.prototype, "externalAccountId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsEnum)(provider_1.Provider),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], TernCreateUserResponse.prototype, "provider", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], TernCreateUserResponse.prototype, "accountNumber", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], TernCreateUserResponse.prototype, "routingNumber", void 0);
|
|
@@ -0,0 +1,25 @@
|
|
|
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.TernGetAccountRequest = void 0;
|
|
13
|
+
const TernAccountTypeEnum_1 = require("../enums/TernAccountTypeEnum");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class TernGetAccountRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.TernGetAccountRequest = TernGetAccountRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], TernGetAccountRequest.prototype, "externalAccountId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsEnum)(TernAccountTypeEnum_1.TernAccountTypeEnum),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], TernGetAccountRequest.prototype, "accountType", void 0);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TernAccountTypeEnum } from "../enums/TernAccountTypeEnum";
|
|
2
|
+
import { TernAddress } from "./TernAddress";
|
|
3
|
+
import { TernAccountStatusEnum } from "../enums/TernAccountStatusEnum";
|
|
4
|
+
export declare class TernGetAccountResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
businessId: string;
|
|
7
|
+
userId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
accountNumber: string;
|
|
10
|
+
routingNumber: string;
|
|
11
|
+
accountType: TernAccountTypeEnum;
|
|
12
|
+
active: boolean;
|
|
13
|
+
isPrimary: boolean;
|
|
14
|
+
createdDate: string;
|
|
15
|
+
updatedDate: string;
|
|
16
|
+
deletedDate: string;
|
|
17
|
+
updatedBy: string;
|
|
18
|
+
balance: number;
|
|
19
|
+
address?: TernAddress;
|
|
20
|
+
kybStatus?: string;
|
|
21
|
+
statusName?: TernAccountStatusEnum;
|
|
22
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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.TernGetAccountResponse = void 0;
|
|
13
|
+
const TernAccountTypeEnum_1 = require("../enums/TernAccountTypeEnum");
|
|
14
|
+
const TernAddress_1 = require("./TernAddress");
|
|
15
|
+
const TernAccountStatusEnum_1 = require("../enums/TernAccountStatusEnum");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
17
|
+
class TernGetAccountResponse {
|
|
18
|
+
}
|
|
19
|
+
exports.TernGetAccountResponse = TernGetAccountResponse;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], TernGetAccountResponse.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], TernGetAccountResponse.prototype, "businessId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], TernGetAccountResponse.prototype, "userId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], TernGetAccountResponse.prototype, "name", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], TernGetAccountResponse.prototype, "accountNumber", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], TernGetAccountResponse.prototype, "routingNumber", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsEnum)(TernAccountTypeEnum_1.TernAccountTypeEnum),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], TernGetAccountResponse.prototype, "accountType", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsBoolean)(),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], TernGetAccountResponse.prototype, "active", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsBoolean)(),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], TernGetAccountResponse.prototype, "isPrimary", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsString)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], TernGetAccountResponse.prototype, "createdDate", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], TernGetAccountResponse.prototype, "updatedDate", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsString)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], TernGetAccountResponse.prototype, "deletedDate", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsString)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], TernGetAccountResponse.prototype, "updatedBy", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsNumber)(),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], TernGetAccountResponse.prototype, "balance", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.ValidateNested)(),
|
|
78
|
+
__metadata("design:type", TernAddress_1.TernAddress)
|
|
79
|
+
], TernGetAccountResponse.prototype, "address", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_validator_1.IsString)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], TernGetAccountResponse.prototype, "kybStatus", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_validator_1.IsEnum)(TernAccountStatusEnum_1.TernAccountStatusEnum),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], TernGetAccountResponse.prototype, "statusName", void 0);
|