@fiado/type-kit 1.0.5 → 1.0.7
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/README.md +36 -1
- package/bin/account/dtos/AccountCreateRequest.d.ts +14 -0
- package/bin/account/dtos/AccountCreateRequest.js +65 -0
- package/bin/account/dtos/AccountResponse.js +0 -79
- package/bin/account/dtos/PocketCreateRequest.d.ts +4 -0
- package/bin/account/dtos/PocketCreateRequest.js +31 -0
- package/bin/account/index.d.ts +4 -0
- package/bin/account/index.js +22 -0
- package/bin/address/dtos/AddressCreateRequest.d.ts +3 -0
- package/bin/address/dtos/AddressCreateRequest.js +7 -0
- package/bin/address/index.d.ts +7 -0
- package/bin/address/index.js +9 -0
- package/bin/app/enums/App.d.ts +9 -0
- package/bin/app/enums/App.js +13 -0
- package/bin/authentication/dtos/SignUpAdditionalRequest.d.ts +7 -0
- package/bin/authentication/dtos/SignUpAdditionalRequest.js +46 -0
- package/bin/authentication/dtos/SignUpAdditionalResponse.d.ts +4 -0
- package/bin/authentication/dtos/SignUpAdditionalResponse.js +6 -0
- package/bin/authentication/index.d.ts +1 -0
- package/bin/authentication/index.js +28 -0
- package/bin/card/dtos/CardBalanceResponse.d.ts +9 -0
- package/bin/card/dtos/CardBalanceResponse.js +6 -0
- package/bin/card/dtos/CardCreateAdditionalRequest.d.ts +10 -0
- package/bin/card/dtos/CardCreateAdditionalRequest.js +59 -0
- package/bin/card/dtos/CardCreateRequest.d.ts +34 -0
- package/bin/card/dtos/CardCreateRequest.js +176 -0
- package/bin/card/dtos/CardResponse.js +0 -0
- package/bin/card/index.d.ts +13 -0
- package/bin/card/index.js +10 -4
- package/bin/country/index.d.ts +1 -0
- package/bin/country/index.js +3 -0
- package/bin/currency/dtos/CurrencyResponse.d.ts +6 -0
- package/bin/currency/dtos/CurrencyResponse.js +6 -0
- package/bin/directory/dtos/DirectoryResponse.d.ts +16 -0
- package/bin/directory/dtos/DirectoryResponse.js +2 -0
- package/bin/directory/dtos/External.d.ts +5 -0
- package/bin/directory/dtos/External.js +2 -0
- package/bin/directory/enums/Profile.d.ts +5 -0
- package/bin/directory/enums/Profile.js +9 -0
- package/bin/directory/enums/Scope.d.ts +6 -0
- package/bin/directory/enums/Scope.js +10 -0
- package/bin/directory/enums/Status.d.ts +6 -0
- package/bin/directory/enums/Status.js +10 -0
- package/bin/directory/index.d.ts +1 -0
- package/bin/directory/index.js +19 -0
- package/bin/exchangeRate/dtos/ExchangeRateCreateRequest.d.ts +17 -0
- package/bin/exchangeRate/dtos/ExchangeRateCreateRequest.js +74 -0
- package/bin/exchangeRate/dtos/ExchangeRateResponse.d.ts +18 -0
- package/bin/exchangeRate/dtos/ExchangeRateResponse.js +6 -0
- package/bin/exchangeRate/enums/ExchangeRateStatus.d.ts +4 -0
- package/bin/exchangeRate/enums/ExchangeRateStatus.js +8 -0
- package/bin/exchangeRate/index.d.ts +2 -0
- package/bin/exchangeRate/index.js +20 -0
- package/bin/identity/dtos/IdentificationDocument.d.ts +22 -0
- package/bin/identity/dtos/IdentificationDocument.js +6 -0
- package/bin/identity/dtos/PeopleCreateRequest.d.ts +0 -0
- package/bin/identity/dtos/PeopleCreateRequest.js +0 -0
- package/bin/identity/dtos/PeopleResponse.d.ts +75 -0
- package/bin/identity/dtos/PeopleResponse.js +6 -0
- package/bin/identity/dtos/TypeOfDocument.d.ts +10 -0
- package/bin/identity/dtos/TypeOfDocument.js +6 -0
- package/bin/identity/enums/IdentificationDocumentStatus.d.ts +5 -0
- package/bin/identity/enums/IdentificationDocumentStatus.js +9 -0
- package/bin/identity/enums/SexDocument.d.ts +4 -0
- package/bin/identity/enums/SexDocument.js +8 -0
- package/bin/identity/index.d.ts +0 -0
- package/bin/identity/index.js +0 -0
- package/bin/index.d.ts +6 -15
- package/bin/index.js +18 -17
- package/package.json +1 -1
- package/src/account/dtos/{CreateAccountRequest.ts → AccountCreateRequest.ts} +1 -1
- package/src/account/dtos/AccountResponse.ts +2 -36
- package/src/account/dtos/{CreatePockeRequest.ts → PocketCreateRequest.ts} +1 -1
- package/src/account/index.ts +11 -0
- package/src/address/dtos/AddressCreateRequest.ts +7 -0
- package/src/address/index.ts +11 -0
- package/src/app/enums/App.ts +11 -0
- package/src/authentication/dtos/SignUpAdditionalRequest.ts +34 -0
- package/src/authentication/dtos/SignUpAdditionalResponse.ts +6 -0
- package/src/authentication/index.ts +3 -0
- package/src/card/dtos/CardBalanceResponse.ts +12 -0
- package/src/card/dtos/CardCreateAdditionalRequest.ts +41 -0
- package/src/card/dtos/{CreateCardRequest.ts → CardCreateRequest.ts} +1 -1
- package/src/card/dtos/CardResponse.ts +0 -0
- package/src/card/index.ts +17 -0
- package/src/country/index.ts +6 -1
- package/src/currency/dtos/CurrencyResponse.ts +10 -0
- package/src/directory/dtos/DirectoryResponse.ts +18 -0
- package/src/directory/dtos/External.ts +7 -0
- package/src/directory/enums/Profile.ts +7 -0
- package/src/directory/enums/Scope.ts +8 -0
- package/src/directory/enums/Status.ts +8 -0
- package/src/directory/index.ts +7 -0
- package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +51 -0
- package/src/exchangeRate/dtos/ExchangeRateResponse.ts +22 -0
- package/src/exchangeRate/enums/ExchangeRateStatus.ts +6 -0
- package/src/exchangeRate/index.ts +7 -0
- package/src/identity/dtos/IdentificationDocument.ts +25 -0
- package/src/identity/dtos/PeopleCreateRequest.ts +0 -0
- package/src/identity/dtos/PeopleResponse.ts +80 -0
- package/src/identity/dtos/TypeOfDocument.ts +12 -0
- package/src/identity/enums/IdentificationDocumentStatus.ts +7 -0
- package/src/identity/enums/SexDocument.ts +6 -0
- package/src/identity/index.ts +0 -0
- package/src/index.ts +6 -18
- package/src/address/dtos/CreateAddressRequest.ts +0 -7
- /package/{src/account/dtos/PocketResponse.ts → bin/card/dtos/CardResponse.d.ts} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdentificationDocumentStatus = void 0;
|
|
4
|
+
var IdentificationDocumentStatus;
|
|
5
|
+
(function (IdentificationDocumentStatus) {
|
|
6
|
+
IdentificationDocumentStatus["VERIFIED"] = "VERIFIED";
|
|
7
|
+
IdentificationDocumentStatus["REJECTED"] = "REJECTED";
|
|
8
|
+
IdentificationDocumentStatus["UNVERIFIED"] = "UNVERIFIED";
|
|
9
|
+
})(IdentificationDocumentStatus || (exports.IdentificationDocumentStatus = IdentificationDocumentStatus = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SexDocument = void 0;
|
|
4
|
+
var SexDocument;
|
|
5
|
+
(function (SexDocument) {
|
|
6
|
+
SexDocument["M"] = "M";
|
|
7
|
+
SexDocument["F"] = "F";
|
|
8
|
+
})(SexDocument || (exports.SexDocument = SexDocument = {}));
|
|
File without changes
|
|
File without changes
|
package/bin/index.d.ts
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './card
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './card/enums/IssuanceType';
|
|
8
|
-
export * from './card/enums/Status';
|
|
9
|
-
export * from './card/enums/IssuanceType';
|
|
10
|
-
export * from './card/enums/OwnershipType';
|
|
11
|
-
export * from './card/enums/Brand';
|
|
12
|
-
export * from './card/enums/UpdateKey';
|
|
13
|
-
export * from './card/enums/Status';
|
|
14
|
-
export * from './card/enums/CardType';
|
|
15
|
-
export * from './card/enums/OwnershipType';
|
|
1
|
+
export * as Account from './account';
|
|
2
|
+
export * as Address from './address';
|
|
3
|
+
export * as Authentication from './authentication';
|
|
4
|
+
export * as Card from './card';
|
|
5
|
+
export * as Country from './country';
|
|
6
|
+
export * as Directory from './directory';
|
package/bin/index.js
CHANGED
|
@@ -10,22 +10,23 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
|
-
var
|
|
14
|
-
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
15
24
|
};
|
|
16
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
__exportStar(require("./card/enums/Status"), exports);
|
|
25
|
-
__exportStar(require("./card/enums/IssuanceType"), exports);
|
|
26
|
-
__exportStar(require("./card/enums/OwnershipType"), exports);
|
|
27
|
-
__exportStar(require("./card/enums/Brand"), exports);
|
|
28
|
-
__exportStar(require("./card/enums/UpdateKey"), exports);
|
|
29
|
-
__exportStar(require("./card/enums/Status"), exports);
|
|
30
|
-
__exportStar(require("./card/enums/CardType"), exports);
|
|
31
|
-
__exportStar(require("./card/enums/OwnershipType"), exports);
|
|
26
|
+
exports.Directory = exports.Country = exports.Card = exports.Authentication = exports.Address = exports.Account = void 0;
|
|
27
|
+
exports.Account = __importStar(require("./account"));
|
|
28
|
+
exports.Address = __importStar(require("./address"));
|
|
29
|
+
exports.Authentication = __importStar(require("./authentication"));
|
|
30
|
+
exports.Card = __importStar(require("./card"));
|
|
31
|
+
exports.Country = __importStar(require("./country"));
|
|
32
|
+
exports.Directory = __importStar(require("./directory"));
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { regexUuidV4 } from '../../helpers/constans/regex';
|
|
|
5
5
|
import { TypeOfDirectoryId } from '../../directory/enums/TypeOfDirectoryId';
|
|
6
6
|
import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
|
|
7
7
|
|
|
8
|
-
export class
|
|
8
|
+
export class AccountCreateRequest {
|
|
9
9
|
|
|
10
10
|
@IsString()
|
|
11
11
|
@Matches(regexUuidV4,
|
|
@@ -1,60 +1,26 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
import { IsEnum, IsNumber, IsOptional, IsString, IsDateString } from 'class-validator';
|
|
4
3
|
import { Provider } from '../../provider/enums/Provider';
|
|
5
4
|
import { Country } from '../../country/enums/Country';
|
|
6
5
|
import { AccountStatus } from '../enums/AccountStatus';
|
|
7
6
|
import { TypeOfDirectoryId } from '../../directory/enums/TypeOfDirectoryId';
|
|
8
7
|
|
|
9
|
-
|
|
10
8
|
export class AccountResponse {
|
|
11
|
-
|
|
9
|
+
|
|
12
10
|
id: string;
|
|
13
|
-
|
|
14
|
-
@IsOptional()
|
|
15
|
-
@IsString()
|
|
16
11
|
typeOfAccountId: string;
|
|
17
|
-
|
|
18
|
-
@IsOptional()
|
|
19
|
-
@IsString()
|
|
20
12
|
externalAccountId: string;
|
|
21
|
-
|
|
22
|
-
@IsOptional()
|
|
23
|
-
@IsString()
|
|
24
13
|
externalSubAccountId: string | null;
|
|
25
|
-
|
|
26
|
-
@IsEnum(Provider)
|
|
27
14
|
provider: Provider;
|
|
28
|
-
|
|
29
|
-
@IsString()
|
|
30
15
|
directoryId: string;
|
|
31
|
-
|
|
32
|
-
@IsEnum(TypeOfDirectoryId)
|
|
33
16
|
typeOfDirectoryId: TypeOfDirectoryId;
|
|
34
|
-
|
|
35
|
-
@IsNumber()
|
|
36
17
|
currentBalance: number;
|
|
37
|
-
|
|
38
|
-
@IsNumber()
|
|
39
18
|
balanceLock: number;
|
|
40
|
-
|
|
41
|
-
@IsEnum(Country)
|
|
42
19
|
countryId: Country;
|
|
43
|
-
|
|
44
|
-
@IsDateString()
|
|
45
20
|
createDate: string;
|
|
46
|
-
|
|
47
|
-
@IsDateString()
|
|
48
21
|
lastUpdateDate: string;
|
|
49
|
-
|
|
50
|
-
@IsOptional()
|
|
51
|
-
@IsString()
|
|
52
22
|
accountNumber: string
|
|
53
|
-
|
|
54
|
-
@IsOptional()
|
|
55
|
-
@IsString()
|
|
56
23
|
routingNumber: string;
|
|
57
|
-
|
|
58
|
-
@IsEnum(AccountStatus)
|
|
59
24
|
status: AccountStatus;
|
|
25
|
+
|
|
60
26
|
}
|
package/src/address/index.ts
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
+
//dtos
|
|
1
2
|
export * from './dtos/Shipping';
|
|
3
|
+
export * from './dtos/AddressCreateRequest';
|
|
4
|
+
export * from './dtos/AddressResponse';
|
|
5
|
+
export * from './dtos/Geometry';
|
|
6
|
+
export * from './dtos/Place';
|
|
7
|
+
export * from './dtos/Timezone';
|
|
8
|
+
|
|
9
|
+
//enums
|
|
10
|
+
export * from './enums/AddressStatus';
|
|
11
|
+
export * from './enums/AddressProvider';
|
|
12
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IsBoolean, IsNotEmpty, IsOptional, IsString, Length, Matches } from "class-validator";
|
|
2
|
+
import { IsPhoneNumberFiado } from "../../card/validations/IsPhoneNumberConstraint";
|
|
3
|
+
import { regexUuidV4 } from "../../helpers/constans/regex";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class SignUpAdditionalRequest {
|
|
8
|
+
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
@IsString()
|
|
11
|
+
@Length(3, 70)
|
|
12
|
+
name: string;
|
|
13
|
+
|
|
14
|
+
@IsNotEmpty()
|
|
15
|
+
@IsString()
|
|
16
|
+
@IsPhoneNumberFiado()
|
|
17
|
+
phoneNumber: string;
|
|
18
|
+
|
|
19
|
+
@IsBoolean()
|
|
20
|
+
mexCreditAdditionalWish: boolean;
|
|
21
|
+
|
|
22
|
+
@IsString()
|
|
23
|
+
@Matches(regexUuidV4,
|
|
24
|
+
{
|
|
25
|
+
message: 'ownerDirectoryId must be a valid UUID v4',
|
|
26
|
+
})
|
|
27
|
+
ownerDirectoryId?: string;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@IsOptional()
|
|
31
|
+
@IsString()
|
|
32
|
+
ownerRelation: string
|
|
33
|
+
|
|
34
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IsEnum, IsNumber, IsUUID } from "class-validator"
|
|
2
|
+
import { TypeOfDirectoryId } from "../../directory"
|
|
3
|
+
import { CountryId } from "../../country"
|
|
4
|
+
|
|
5
|
+
export class CardBalanceResponse {
|
|
6
|
+
|
|
7
|
+
cardBalanceId: string
|
|
8
|
+
currentBalance: number
|
|
9
|
+
directoryId: string
|
|
10
|
+
typeOfDirectoryId: TypeOfDirectoryId
|
|
11
|
+
currencyId: CountryId
|
|
12
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { IsDateString, IsString, Length, ValidateNested } from "class-validator";
|
|
2
|
+
import { IsNotEmpty } from "class-validator/types/decorator/common/IsNotEmpty";
|
|
3
|
+
import { IsPhoneNumberFiado } from "../validations/IsPhoneNumberConstraint";
|
|
4
|
+
import { Type } from "class-transformer";
|
|
5
|
+
import { AddressCreateRequest } from "../../address";
|
|
6
|
+
|
|
7
|
+
export class CardCreateAdditionalRequest {
|
|
8
|
+
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
@IsString()
|
|
11
|
+
@Length(3, 40)
|
|
12
|
+
name: string;
|
|
13
|
+
|
|
14
|
+
@IsNotEmpty()
|
|
15
|
+
@IsString()
|
|
16
|
+
@Length(3, 20)
|
|
17
|
+
lastNamePaternal: string;
|
|
18
|
+
|
|
19
|
+
@IsNotEmpty()
|
|
20
|
+
@IsString()
|
|
21
|
+
@Length(3, 20)
|
|
22
|
+
lastNameMaternal: string;
|
|
23
|
+
|
|
24
|
+
@IsNotEmpty()
|
|
25
|
+
@IsString()
|
|
26
|
+
@IsPhoneNumberFiado()
|
|
27
|
+
phoneNumber: string;
|
|
28
|
+
|
|
29
|
+
@IsDateString()
|
|
30
|
+
dateOfBirth: string;
|
|
31
|
+
|
|
32
|
+
@IsNotEmpty()
|
|
33
|
+
@IsString()
|
|
34
|
+
@Length(3, 20)
|
|
35
|
+
ownerRelation: string;
|
|
36
|
+
|
|
37
|
+
@ValidateNested()
|
|
38
|
+
@Type(() => AddressCreateRequest)
|
|
39
|
+
address: AddressCreateRequest;
|
|
40
|
+
}
|
|
41
|
+
|
|
@@ -8,7 +8,7 @@ import { Status } from '../enums/Status';
|
|
|
8
8
|
import { regexIso8601, regexUuidV4 } from '../../helpers/constans/regex';
|
|
9
9
|
import { Shipping } from '../../address';
|
|
10
10
|
|
|
11
|
-
export class
|
|
11
|
+
export class CardCreateRequest {
|
|
12
12
|
|
|
13
13
|
@IsOptional()
|
|
14
14
|
@IsString()
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
//dtos
|
|
3
|
+
export * from './dtos/CardActivateRequest';
|
|
4
|
+
export * from './dtos/CardApplicationRequest';
|
|
5
|
+
export * from './dtos/CardCreateRequest';
|
|
6
|
+
export * from './dtos/CardUpdateRequest';
|
|
7
|
+
export * from './dtos/CardCreateAdditionalRequest';
|
|
8
|
+
export * from './dtos/CardBalanceResponse';
|
|
9
|
+
|
|
10
|
+
//enums
|
|
11
|
+
export * from './enums/CardType';
|
|
12
|
+
export * from './enums/CardUpdateKey';
|
|
13
|
+
export * from './enums/IssuanceType';
|
|
14
|
+
export * from './enums/Status';
|
|
15
|
+
export * from './enums/OwnershipType';
|
|
16
|
+
export * from './enums/Brand';
|
|
17
|
+
export * from './enums/UpdateKey';
|
package/src/country/index.ts
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Profile } from "../enums/Profile";
|
|
2
|
+
import { Scope } from "../enums/Scope";
|
|
3
|
+
import { Status } from "../enums/Status";
|
|
4
|
+
import { External } from "./External";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export interface Directory {
|
|
8
|
+
identityId: string | null;
|
|
9
|
+
lastSession: string | null;
|
|
10
|
+
ownerDirectoryId: string | null;
|
|
11
|
+
password: string;
|
|
12
|
+
peopleId: string;
|
|
13
|
+
phoneNumber: string;
|
|
14
|
+
scope: Array<Scope>;
|
|
15
|
+
status: Status;
|
|
16
|
+
userProfile: Profile;
|
|
17
|
+
external: Array<External>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
import { IsEnum, IsNumber, IsString, IsUUID, Max, Min, ValidateNested } from "class-validator";
|
|
3
|
+
import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
|
|
4
|
+
import { Type } from "class-transformer";
|
|
5
|
+
import { CountryId } from "../../country";
|
|
6
|
+
import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
|
|
7
|
+
|
|
8
|
+
export class ExchangeRateCreateRequest {
|
|
9
|
+
|
|
10
|
+
@IsUUID()
|
|
11
|
+
id: string;
|
|
12
|
+
|
|
13
|
+
@IsNumber()
|
|
14
|
+
adjustmentExchangeRate: number;
|
|
15
|
+
|
|
16
|
+
@IsNumber()
|
|
17
|
+
adjustmentPercentage: number;
|
|
18
|
+
|
|
19
|
+
@ValidateNested()
|
|
20
|
+
@Type(() => CurrencyResponse)
|
|
21
|
+
destinationCurrency: CurrencyResponse;
|
|
22
|
+
|
|
23
|
+
@IsString()
|
|
24
|
+
destinationCurrencyId: CountryId;
|
|
25
|
+
|
|
26
|
+
@IsNumber()
|
|
27
|
+
exchangeRate: number;
|
|
28
|
+
|
|
29
|
+
@IsNumber()
|
|
30
|
+
fxFactor: number;
|
|
31
|
+
|
|
32
|
+
@IsNumber()
|
|
33
|
+
@Max(50000)
|
|
34
|
+
@Min(10)
|
|
35
|
+
maxRequestAmount: number;
|
|
36
|
+
|
|
37
|
+
@IsNumber()
|
|
38
|
+
@Max(50000)
|
|
39
|
+
@Min(10)
|
|
40
|
+
minRequestAmount: number;
|
|
41
|
+
|
|
42
|
+
@ValidateNested()
|
|
43
|
+
@Type(() => CurrencyResponse)
|
|
44
|
+
originCurrency: CurrencyResponse;
|
|
45
|
+
|
|
46
|
+
@IsString()
|
|
47
|
+
originCurrencyId: string;
|
|
48
|
+
|
|
49
|
+
@IsEnum(ExchangeRateStatus)
|
|
50
|
+
status: ExchangeRateStatus;
|
|
51
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IsEnum, IsISO8601, IsNumber, IsString, IsUUID, Max, Min, ValidateNested } from "class-validator";
|
|
2
|
+
import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
|
|
3
|
+
import { Type } from "class-transformer";
|
|
4
|
+
import { CountryId } from "../../country";
|
|
5
|
+
import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
|
|
6
|
+
|
|
7
|
+
export class ExchangeRateResponse {
|
|
8
|
+
|
|
9
|
+
id: string;
|
|
10
|
+
adjustmentExchangeRate: number;
|
|
11
|
+
adjustmentPercentage: number;
|
|
12
|
+
createDate: string;
|
|
13
|
+
destinationCurrency: CurrencyResponse;
|
|
14
|
+
destinationCurrencyId: CountryId;
|
|
15
|
+
exchangeRate: number;
|
|
16
|
+
fxFactor: number;
|
|
17
|
+
maxRequestAmount: number;
|
|
18
|
+
minRequestAmount: number;
|
|
19
|
+
originCurrency: CurrencyResponse;
|
|
20
|
+
originCurrencyId: string;
|
|
21
|
+
status: ExchangeRateStatus;
|
|
22
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Country } from "../../country/enums/Country";
|
|
2
|
+
import { IdentificationDocumentStatus } from "../enums/IdentificationDocumentStatus";
|
|
3
|
+
import { SexDocument } from "../enums/SexDocument";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class IdentificationDocument {
|
|
7
|
+
|
|
8
|
+
frontImageName: string | null;
|
|
9
|
+
backImageName: string | null;
|
|
10
|
+
countryId: Country | null;
|
|
11
|
+
expirationDate: string | null;
|
|
12
|
+
issueDate: string | null;
|
|
13
|
+
lastNameFirst: string | null;
|
|
14
|
+
lastNameSecond: string | null;
|
|
15
|
+
names: string | null;
|
|
16
|
+
fullName: string | null;
|
|
17
|
+
countryOfBirth: string | null;
|
|
18
|
+
dateOfBirth: string | null;
|
|
19
|
+
documentNumber: string | null;
|
|
20
|
+
typeOfDocument: string;
|
|
21
|
+
sex: SexDocument | null;
|
|
22
|
+
verificationId: string | null;
|
|
23
|
+
curp: string | null;
|
|
24
|
+
status: IdentificationDocumentStatus;
|
|
25
|
+
}
|
|
File without changes
|