@fiado/type-kit 1.6.93 → 1.6.94
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/CreateBankAccountOutput.d.ts +5 -0
- package/bin/account/dtos/CreateBankAccountOutput.js +6 -0
- package/bin/account/dtos/CreateBankAccountUserOutput.d.ts +8 -0
- package/bin/account/dtos/CreateBankAccountUserOutput.js +6 -0
- package/bin/creditContract/dto/CreditContractCreateRequest.d.ts +15 -0
- package/bin/creditContract/dto/CreditContractCreateRequest.js +72 -0
- package/bin/helpdesk/dtos/CreateHelpdeskUser.d.ts +13 -0
- package/bin/helpdesk/dtos/CreateHelpdeskUser.js +43 -0
- package/bin/identity/dtos/PeopleCreateRequest.d.ts +1 -0
- package/bin/identity/dtos/PeopleResponse.d.ts +3 -2
- package/bin/identity/dtos/PeopleUpdateRequest.d.ts +3 -0
- package/bin/issuanceBusiness/dtos/BaseIssuanceRequirement.d.ts +1 -1
- package/bin/issuanceBusiness/dtos/BaseIssuanceRequirement.js +1 -1
- package/bin/transaction/TransactionCreateRequest.d.ts +2 -0
- package/bin/transaction/TransactionCreateRequest.js +6 -0
- package/bin/transaction/TransactionCreateResponse.d.ts +2 -0
- package/bin/transaction/TransactionCreateResponse.js +6 -0
- package/bin/transaction/dtos/TransactionSourceEnum.d.ts +5 -0
- package/bin/transaction/dtos/TransactionSourceEnum.js +9 -0
- package/package.json +1 -1
- package/src/identity/dtos/PeopleCreateRequest.ts +1 -0
- package/src/identity/dtos/PeopleResponse.ts +3 -2
- package/src/identity/dtos/PeopleUpdateRequest.ts +3 -2
- package/src/issuanceBusiness/dtos/BaseIssuanceRequirement.ts +2 -2
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +0 -3
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +0 -22
- package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.d.ts +0 -5
- package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.js +0 -6
- package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.d.ts +0 -7
- package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.js +0 -6
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CountryId } from "../../country";
|
|
2
|
+
import { InstrumentEnum } from "../enums/InstrumentEnum";
|
|
3
|
+
export default class CreditContractCreateRequest {
|
|
4
|
+
directoryUserId: string;
|
|
5
|
+
relatedTransaction: string;
|
|
6
|
+
peopleId: string;
|
|
7
|
+
currencyId: CountryId;
|
|
8
|
+
creditNotional: number;
|
|
9
|
+
creditFee: number;
|
|
10
|
+
creditTax: number;
|
|
11
|
+
creditTotal: number;
|
|
12
|
+
instrument: InstrumentEnum;
|
|
13
|
+
amountBlocked: number;
|
|
14
|
+
relatedPocketId: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
const class_validator_1 = require("class-validator");
|
|
13
|
+
const country_1 = require("../../country");
|
|
14
|
+
const InstrumentEnum_1 = require("../enums/InstrumentEnum");
|
|
15
|
+
class CreditContractCreateRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.default = CreditContractCreateRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreditContractCreateRequest.prototype, "directoryUserId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreditContractCreateRequest.prototype, "relatedTransaction", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreditContractCreateRequest.prototype, "peopleId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsEnum)(country_1.CountryId),
|
|
35
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CreditContractCreateRequest.prototype, "currencyId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsNumber)(),
|
|
40
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], CreditContractCreateRequest.prototype, "creditNotional", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsNumber)(),
|
|
45
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], CreditContractCreateRequest.prototype, "creditFee", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsNumber)(),
|
|
50
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], CreditContractCreateRequest.prototype, "creditTax", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsNumber)(),
|
|
55
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], CreditContractCreateRequest.prototype, "creditTotal", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsEnum)(InstrumentEnum_1.InstrumentEnum),
|
|
60
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], CreditContractCreateRequest.prototype, "instrument", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsNumber)(),
|
|
65
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], CreditContractCreateRequest.prototype, "amountBlocked", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsString)(),
|
|
70
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], CreditContractCreateRequest.prototype, "relatedPocketId", void 0);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TypeOfContactIdEnum } from "../../contactInfo";
|
|
2
|
+
export declare class CreateHelpdeskUser {
|
|
3
|
+
directoryId: string;
|
|
4
|
+
indexName: string;
|
|
5
|
+
usaDebitAccount: boolean;
|
|
6
|
+
mxnDebitAccount: boolean;
|
|
7
|
+
otherContacts: {
|
|
8
|
+
contact: string;
|
|
9
|
+
typeOfContactId: TypeOfContactIdEnum;
|
|
10
|
+
}[];
|
|
11
|
+
directoryStatus: string;
|
|
12
|
+
bankSponsor: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.CreateHelpdeskUser = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CreateHelpdeskUser {
|
|
15
|
+
}
|
|
16
|
+
exports.CreateHelpdeskUser = CreateHelpdeskUser;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CreateHelpdeskUser.prototype, "directoryId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateHelpdeskUser.prototype, "indexName", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsBoolean)(),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], CreateHelpdeskUser.prototype, "usaDebitAccount", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsBoolean)(),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], CreateHelpdeskUser.prototype, "mxnDebitAccount", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CreateHelpdeskUser.prototype, "directoryStatus", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], CreateHelpdeskUser.prototype, "bankSponsor", void 0);
|
|
@@ -58,7 +58,7 @@ export declare class PeopleResponse {
|
|
|
58
58
|
dateOfVeredict: boolean | null;
|
|
59
59
|
duplicateUserDetection: boolean;
|
|
60
60
|
fiadoListApproved: boolean | null;
|
|
61
|
-
|
|
61
|
+
MEX_InfoSelfVerified: InfoSelfVerifiedStatus;
|
|
62
62
|
magicNumber: boolean;
|
|
63
63
|
MEX_Address: boolean;
|
|
64
64
|
MEX_Beneficiaries: boolean;
|
|
@@ -74,7 +74,7 @@ export declare class PeopleResponse {
|
|
|
74
74
|
MEX_INEValidation: boolean | null;
|
|
75
75
|
MEX_Signed: boolean | null;
|
|
76
76
|
USA_Beneficiaries: boolean | null;
|
|
77
|
-
|
|
77
|
+
USA_InfoSelfVerified: InfoSelfVerifiedStatus;
|
|
78
78
|
USA_Signed: boolean | null;
|
|
79
79
|
older18: boolean | null;
|
|
80
80
|
signature: boolean;
|
|
@@ -88,5 +88,6 @@ export declare class PeopleResponse {
|
|
|
88
88
|
uploadSelfie: boolean;
|
|
89
89
|
createdAt: number;
|
|
90
90
|
updatedAt: number;
|
|
91
|
+
SIN: string | null;
|
|
91
92
|
};
|
|
92
93
|
}
|
|
@@ -70,6 +70,8 @@ export declare class PeopleUpdateRequest {
|
|
|
70
70
|
MXN_MonthlyIncome?: string | null;
|
|
71
71
|
MXN_MonthlyExtraSupport?: string | null;
|
|
72
72
|
pepLevel?: string | null;
|
|
73
|
+
USA_InfoSelfVerified?: InfoSelfVerifiedStatus;
|
|
74
|
+
MEX_InfoSelfVerified?: InfoSelfVerifiedStatus;
|
|
73
75
|
infoSelfVerified?: InfoSelfVerifiedStatus;
|
|
74
76
|
beneficialOwner?: string | null;
|
|
75
77
|
weeklyIncomeUSD?: string | null;
|
|
@@ -79,4 +81,5 @@ export declare class PeopleUpdateRequest {
|
|
|
79
81
|
authorizationNeededMXN?: AuthorizationNeededMXNStatus;
|
|
80
82
|
authorizerEmail?: string | null;
|
|
81
83
|
dateOfVeredict?: string | null;
|
|
84
|
+
SIN?: string | null;
|
|
82
85
|
}
|
|
@@ -11,7 +11,7 @@ export declare class BaseIssuanceRequirementDto {
|
|
|
11
11
|
dateOfVeredict?: boolean;
|
|
12
12
|
duplicateUserDetection?: boolean | null;
|
|
13
13
|
fiadoListApproved?: boolean | null;
|
|
14
|
-
|
|
14
|
+
MEX_InfoSelfVerified?: boolean;
|
|
15
15
|
magicNumber?: boolean;
|
|
16
16
|
MEX_Address?: boolean;
|
|
17
17
|
MEX_Beneficiaries?: boolean | null;
|
|
@@ -93,7 +93,7 @@ __decorate([
|
|
|
93
93
|
(0, class_validator_1.IsOptional)(),
|
|
94
94
|
(0, class_validator_1.IsBoolean)(),
|
|
95
95
|
__metadata("design:type", Boolean)
|
|
96
|
-
], BaseIssuanceRequirementDto.prototype, "
|
|
96
|
+
], BaseIssuanceRequirementDto.prototype, "MEX_InfoSelfVerified", void 0);
|
|
97
97
|
__decorate([
|
|
98
98
|
(0, class_transformer_1.Expose)(),
|
|
99
99
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionSourceEnum = void 0;
|
|
4
|
+
var TransactionSourceEnum;
|
|
5
|
+
(function (TransactionSourceEnum) {
|
|
6
|
+
TransactionSourceEnum["FIADO_INC"] = "FIADO_INC";
|
|
7
|
+
TransactionSourceEnum["FIADO_IFPE"] = "FIADO_IFPE";
|
|
8
|
+
TransactionSourceEnum["FIADO_SA"] = "FIADO_SA";
|
|
9
|
+
})(TransactionSourceEnum || (exports.TransactionSourceEnum = TransactionSourceEnum = {}));
|
package/package.json
CHANGED
|
@@ -61,7 +61,7 @@ export class PeopleResponse {
|
|
|
61
61
|
dateOfVeredict:boolean| null;
|
|
62
62
|
duplicateUserDetection:boolean;
|
|
63
63
|
fiadoListApproved:boolean| null;
|
|
64
|
-
|
|
64
|
+
MEX_InfoSelfVerified:InfoSelfVerifiedStatus;
|
|
65
65
|
magicNumber:boolean;
|
|
66
66
|
MEX_Address:boolean;
|
|
67
67
|
MEX_Beneficiaries:boolean;
|
|
@@ -77,7 +77,7 @@ export class PeopleResponse {
|
|
|
77
77
|
MEX_INEValidation:boolean | null;
|
|
78
78
|
MEX_Signed:boolean | null;
|
|
79
79
|
USA_Beneficiaries:boolean | null;
|
|
80
|
-
|
|
80
|
+
USA_InfoSelfVerified:InfoSelfVerifiedStatus;
|
|
81
81
|
USA_Signed:boolean | null;
|
|
82
82
|
older18:boolean | null;
|
|
83
83
|
signature:boolean;
|
|
@@ -91,5 +91,6 @@ export class PeopleResponse {
|
|
|
91
91
|
uploadSelfie:boolean;
|
|
92
92
|
createdAt:number,
|
|
93
93
|
updatedAt:number
|
|
94
|
+
SIN: string | null;
|
|
94
95
|
}
|
|
95
96
|
}
|
|
@@ -74,8 +74,8 @@ export class PeopleUpdateRequest {
|
|
|
74
74
|
MXN_MonthlyIncome?: string | null;
|
|
75
75
|
MXN_MonthlyExtraSupport ?: string | null;
|
|
76
76
|
pepLevel?: string | null;
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
USA_InfoSelfVerified?:InfoSelfVerifiedStatus;
|
|
78
|
+
MEX_InfoSelfVerified?:InfoSelfVerifiedStatus;
|
|
79
79
|
infoSelfVerified?: InfoSelfVerifiedStatus;
|
|
80
80
|
beneficialOwner?:string | null;
|
|
81
81
|
weeklyIncomeUSD?: string | null;
|
|
@@ -85,4 +85,5 @@ export class PeopleUpdateRequest {
|
|
|
85
85
|
authorizationNeededMXN?: AuthorizationNeededMXNStatus;
|
|
86
86
|
authorizerEmail?: string | null;
|
|
87
87
|
dateOfVeredict?: string | null;
|
|
88
|
+
SIN?: string | null;
|
|
88
89
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
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.GroupDirectoryRetationsUpdateRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class GroupDirectoryRetationsUpdateRequest {
|
|
15
|
-
}
|
|
16
|
-
exports.GroupDirectoryRetationsUpdateRequest = GroupDirectoryRetationsUpdateRequest;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsOptional)(),
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
(0, class_validator_1.Length)(1, 20),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], GroupDirectoryRetationsUpdateRequest.prototype, "agent", void 0);
|