@fiado/type-kit 1.0.58 → 1.0.59
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/.idea/aws.xml +11 -0
- package/.idea/fiado-type-kit.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/README.md +70 -70
- package/bin/account/dtos/AccountCreateRequest.d.ts +2 -2
- package/bin/account/dtos/AccountCreateRequest.js +6 -6
- package/bin/index.d.ts +1 -0
- package/bin/index.js +2 -1
- 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 +23 -23
- package/src/account/dtos/AccountCreateRequest.ts +58 -58
- package/src/account/dtos/AccountCreateResponse.ts +7 -7
- package/src/account/index.ts +4 -4
- package/src/address/dtos/AddressBase.ts +130 -130
- package/src/address/dtos/AddressCreateRequest.ts +6 -6
- package/src/address/dtos/AddressResponse.ts +41 -41
- package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
- package/src/address/dtos/Geometry.ts +4 -4
- package/src/address/dtos/OfficeDetails.ts +30 -30
- package/src/address/dtos/OperationSchedule.ts +8 -8
- package/src/address/dtos/Place.ts +83 -83
- package/src/address/dtos/Shipping.ts +36 -36
- package/src/address/dtos/Timezone.ts +5 -5
- package/src/address/enums/AddressProvider.ts +10 -10
- package/src/address/enums/AddressStatus.ts +9 -9
- package/src/address/index.ts +15 -15
- package/src/app/enums/App.ts +10 -10
- package/src/app/index.ts +3 -3
- package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
- package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
- package/src/authentication/index.ts +3 -3
- package/src/card/dtos/CardActivateRequest.ts +12 -12
- package/src/card/dtos/CardApplicationRequest.ts +20 -20
- package/src/card/dtos/CardBalanceResponse.ts +10 -10
- package/src/card/dtos/CardCreateAdditionalRequest.ts +40 -40
- package/src/card/dtos/CardCreateRequest.ts +141 -141
- package/src/card/dtos/CardResponse.ts +4 -4
- package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
- package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
- package/src/card/dtos/CardUpdateRequest.ts +13 -13
- package/src/card/enums/Brand.ts +7 -7
- package/src/card/enums/CardIssuanceStatus.ts +5 -5
- package/src/card/enums/CardType.ts +4 -4
- package/src/card/enums/CardUpdateKey.ts +4 -4
- package/src/card/enums/CreditOrDebit.ts +5 -5
- package/src/card/enums/IssuanceType.ts +5 -5
- package/src/card/enums/NominatedOrInnominated.ts +8 -8
- package/src/card/enums/OwnershipType.ts +3 -3
- package/src/card/enums/ShippingStatus.ts +8 -8
- package/src/card/enums/Status.ts +5 -5
- package/src/card/enums/UpdateKey.ts +5 -5
- package/src/card/enums/VirtualOrPhysical.ts +6 -6
- package/src/card/index.ts +28 -28
- package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
- package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
- package/src/country/enums/Country.ts +6 -6
- package/src/country/enums/CountryId.ts +6 -6
- package/src/country/index.ts +5 -5
- package/src/currency/dtos/CurrencyResponse.ts +8 -8
- package/src/currency/index.ts +2 -2
- package/src/directory/dtos/DirectoryResponse.ts +17 -17
- package/src/directory/dtos/External.ts +6 -6
- package/src/directory/enums/Profile.ts +6 -6
- package/src/directory/enums/Scope.ts +7 -7
- package/src/directory/enums/Status.ts +8 -8
- package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
- package/src/directory/index.ts +7 -7
- package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
- package/src/eventBridge/index.ts +1 -1
- package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
- package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
- package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
- package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
- package/src/exchangeRate/index.ts +8 -8
- package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
- package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
- package/src/genericMessage/index.ts +1 -1
- package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
- package/src/group/dtos/GroupCreateRequest.ts +54 -54
- package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
- package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
- package/src/group/dtos/GroupResponse.ts +17 -17
- package/src/group/dtos/GroupUpdateRequest.ts +31 -31
- package/src/group/enums/GroupAction.ts +8 -8
- package/src/group/enums/GroupStatus.ts +6 -6
- package/src/group/enums/RelationStatus.ts +8 -8
- package/src/group/enums/RelationType.ts +9 -9
- package/src/group/index.ts +18 -18
- package/src/header/TokenPayload.ts +17 -17
- package/src/header/index.ts +3 -3
- package/src/helpers/ValidationUtils.ts +32 -32
- package/src/helpers/constans/regex.ts +12 -12
- package/src/identity/dtos/IdentificationDocument.ts +24 -24
- package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
- package/src/identity/dtos/PeopleResponse.ts +80 -80
- package/src/identity/dtos/TypeOfDocument.ts +11 -11
- package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
- package/src/identity/enums/SexDocument.ts +6 -6
- package/src/identity/index.ts +11 -11
- package/src/index.ts +24 -23
- package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
- package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
- package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
- package/src/notificationMessages/enums/NotificationId.ts +13 -13
- package/src/notificationMessages/index.ts +5 -5
- package/src/pomelo/dtos/PomeloCreateUserRequest.ts +30 -30
- package/src/pomelo/dtos/PomeloCreateUserResponse.ts +35 -35
- package/src/pomelo/enums/CountryEnum.ts +8 -8
- package/src/pomelo/enums/IdentificationTypeEnum.ts +10 -10
- package/src/pomelo/enums/SexEnum.ts +3 -3
- package/src/pomelo/enums/TaxTypeEnum.ts +7 -7
- package/src/pomelo/enums/UserStatusEnum.ts +6 -6
- package/src/pomelo/index.ts +11 -11
- package/src/provider/enums/Provider.ts +5 -5
- package/src/provider/index.ts +1 -1
- package/src/queue/dtos/QueueMessageBase.ts +13 -13
- package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
- package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
- package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
- package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
- package/src/sessionActivity/index.ts +2 -2
- package/src/tern/dtos/TernAddress.ts +21 -0
- package/src/tern/dtos/TernCreateAccountRequest.ts +16 -0
- package/src/tern/dtos/TernCreateAccountResponse.ts +10 -0
- package/src/tern/dtos/TernCreateUserRequest.ts +47 -0
- package/src/tern/dtos/TernCreateUserResponse.ts +19 -0
- package/src/tern/dtos/TernGetAccountRequest.ts +10 -0
- package/src/tern/dtos/TernGetAccountResponse.ts +57 -0
- package/src/tern/dtos/TernGetUserRequest.ts +6 -0
- package/src/tern/dtos/TernGetUserResponse.ts +64 -0
- package/src/tern/enums/TernAccountStatusEnum.ts +4 -0
- package/src/tern/enums/TernAccountTypeEnum.ts +5 -0
- package/src/tern/index.ts +14 -0
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { IsString, Length, IsOptional } from 'class-validator';
|
|
2
|
-
import { CountryId } from '../../country/enums/CountryId';
|
|
3
|
-
|
|
4
|
-
export class Shipping {
|
|
5
|
-
@IsString()
|
|
6
|
-
@Length(2, 60)
|
|
7
|
-
municipality: string;
|
|
8
|
-
|
|
9
|
-
@IsString()
|
|
10
|
-
@Length(2, 60)
|
|
11
|
-
neighborhood: string;
|
|
12
|
-
|
|
13
|
-
@IsString()
|
|
14
|
-
@Length(5, 10)
|
|
15
|
-
postalCode: string;
|
|
16
|
-
|
|
17
|
-
@IsString()
|
|
18
|
-
@Length(2, 100)
|
|
19
|
-
street: string;
|
|
20
|
-
|
|
21
|
-
@IsString()
|
|
22
|
-
@Length(2, 60)
|
|
23
|
-
subRegion: string;
|
|
24
|
-
|
|
25
|
-
@IsString()
|
|
26
|
-
@Length(1, 10)
|
|
27
|
-
addressNumber: string;
|
|
28
|
-
|
|
29
|
-
@IsOptional()
|
|
30
|
-
@IsString()
|
|
31
|
-
@Length(1, 200)
|
|
32
|
-
internalNumber?: string;
|
|
33
|
-
|
|
34
|
-
@IsString()
|
|
35
|
-
countryId: CountryId;
|
|
36
|
-
}
|
|
1
|
+
import { IsString, Length, IsOptional } from 'class-validator';
|
|
2
|
+
import { CountryId } from '../../country/enums/CountryId';
|
|
3
|
+
|
|
4
|
+
export class Shipping {
|
|
5
|
+
@IsString()
|
|
6
|
+
@Length(2, 60)
|
|
7
|
+
municipality: string;
|
|
8
|
+
|
|
9
|
+
@IsString()
|
|
10
|
+
@Length(2, 60)
|
|
11
|
+
neighborhood: string;
|
|
12
|
+
|
|
13
|
+
@IsString()
|
|
14
|
+
@Length(5, 10)
|
|
15
|
+
postalCode: string;
|
|
16
|
+
|
|
17
|
+
@IsString()
|
|
18
|
+
@Length(2, 100)
|
|
19
|
+
street: string;
|
|
20
|
+
|
|
21
|
+
@IsString()
|
|
22
|
+
@Length(2, 60)
|
|
23
|
+
subRegion: string;
|
|
24
|
+
|
|
25
|
+
@IsString()
|
|
26
|
+
@Length(1, 10)
|
|
27
|
+
addressNumber: string;
|
|
28
|
+
|
|
29
|
+
@IsOptional()
|
|
30
|
+
@IsString()
|
|
31
|
+
@Length(1, 200)
|
|
32
|
+
internalNumber?: string;
|
|
33
|
+
|
|
34
|
+
@IsString()
|
|
35
|
+
countryId: CountryId;
|
|
36
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type Timezone = {
|
|
4
|
-
name: string;
|
|
5
|
-
offset: string;
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export type Timezone = {
|
|
4
|
+
name: string;
|
|
5
|
+
offset: string;
|
|
6
6
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* AddressProvider enum
|
|
4
|
-
* @description AddressProvider enum is used to define the address provider
|
|
5
|
-
* @enum {string} AddressProvider
|
|
6
|
-
*/
|
|
7
|
-
export enum AddressProvider {
|
|
8
|
-
AWS = "AWS",
|
|
9
|
-
MANUAL = "MANUAL"
|
|
10
|
-
}
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* AddressProvider enum
|
|
4
|
+
* @description AddressProvider enum is used to define the address provider
|
|
5
|
+
* @enum {string} AddressProvider
|
|
6
|
+
*/
|
|
7
|
+
export enum AddressProvider {
|
|
8
|
+
AWS = "AWS",
|
|
9
|
+
MANUAL = "MANUAL"
|
|
10
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* AddressProvider Status
|
|
4
|
-
* @description AddressProvider Status is used to define the address provider status
|
|
5
|
-
* @enum {string} AddressStatus
|
|
6
|
-
*/
|
|
7
|
-
export enum AddressStatus {
|
|
8
|
-
VISIBLE = "VISIBLE",
|
|
9
|
-
NOT_VISIBLE = "NOT_VISIBLE"
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* AddressProvider Status
|
|
4
|
+
* @description AddressProvider Status is used to define the address provider status
|
|
5
|
+
* @enum {string} AddressStatus
|
|
6
|
+
*/
|
|
7
|
+
export enum AddressStatus {
|
|
8
|
+
VISIBLE = "VISIBLE",
|
|
9
|
+
NOT_VISIBLE = "NOT_VISIBLE"
|
|
10
10
|
}
|
package/src/address/index.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
//dtos
|
|
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
|
-
export * from './dtos/OfficeDetails'
|
|
9
|
-
export * from './dtos/OperationSchedule'
|
|
10
|
-
export * from './dtos/AddressShippingCardResponse'
|
|
11
|
-
|
|
12
|
-
//enums
|
|
13
|
-
export * from './enums/AddressStatus';
|
|
14
|
-
export * from './enums/AddressProvider';
|
|
15
|
-
|
|
1
|
+
//dtos
|
|
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
|
+
export * from './dtos/OfficeDetails'
|
|
9
|
+
export * from './dtos/OperationSchedule'
|
|
10
|
+
export * from './dtos/AddressShippingCardResponse'
|
|
11
|
+
|
|
12
|
+
//enums
|
|
13
|
+
export * from './enums/AddressStatus';
|
|
14
|
+
export * from './enums/AddressProvider';
|
|
15
|
+
|
package/src/app/enums/App.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum App {
|
|
4
|
-
USER = "USER",
|
|
5
|
-
MERCHANT = "MERCHANT",
|
|
6
|
-
BACKOFFICE = "BACKOFFICE",
|
|
7
|
-
AGENT = "AGENT",
|
|
8
|
-
USER_APP = "APP",
|
|
9
|
-
USER_WEB = "WEB",
|
|
10
|
-
HYBRID = "HYBRID"
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum App {
|
|
4
|
+
USER = "USER",
|
|
5
|
+
MERCHANT = "MERCHANT",
|
|
6
|
+
BACKOFFICE = "BACKOFFICE",
|
|
7
|
+
AGENT = "AGENT",
|
|
8
|
+
USER_APP = "APP",
|
|
9
|
+
USER_WEB = "WEB",
|
|
10
|
+
HYBRID = "HYBRID"
|
|
11
11
|
}
|
package/src/app/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//enums
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
//enums
|
|
4
4
|
export * from './enums/App';
|
|
@@ -1,33 +1,33 @@
|
|
|
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
|
-
@IsOptional()
|
|
30
|
-
@IsString()
|
|
31
|
-
ownerRelation: string
|
|
32
|
-
|
|
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
|
+
@IsOptional()
|
|
30
|
+
@IsString()
|
|
31
|
+
ownerRelation: string
|
|
32
|
+
|
|
33
33
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export class SignUpAdditionalResponse {
|
|
4
|
-
direcrtoryId: string;
|
|
5
|
-
peopleId: string;
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export class SignUpAdditionalResponse {
|
|
4
|
+
direcrtoryId: string;
|
|
5
|
+
peopleId: string;
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
//dtos
|
|
3
|
-
export * from './dtos/SignUpAdditionalRequest';
|
|
1
|
+
|
|
2
|
+
//dtos
|
|
3
|
+
export * from './dtos/SignUpAdditionalRequest';
|
|
4
4
|
export * from './dtos/SignUpAdditionalResponse';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IsEnum, IsString, Matches } from 'class-validator';
|
|
2
|
-
import { CountryId } from '../../country/enums/CountryId';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export class CardActivateRequest {
|
|
6
|
-
@IsEnum(CountryId)
|
|
7
|
-
countryId: number;
|
|
8
|
-
|
|
9
|
-
@IsString()
|
|
10
|
-
@Matches(/^\d{16}$/)
|
|
11
|
-
panOrCode: string;
|
|
12
|
-
}
|
|
1
|
+
import { IsEnum, IsString, Matches } from 'class-validator';
|
|
2
|
+
import { CountryId } from '../../country/enums/CountryId';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CardActivateRequest {
|
|
6
|
+
@IsEnum(CountryId)
|
|
7
|
+
countryId: number;
|
|
8
|
+
|
|
9
|
+
@IsString()
|
|
10
|
+
@Matches(/^\d{16}$/)
|
|
11
|
+
panOrCode: string;
|
|
12
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { IsEnum, IsNotEmpty, ValidateNested } from 'class-validator';
|
|
4
|
-
import { Type } from 'class-transformer';
|
|
5
|
-
import { CountryId } from '../../country/enums/CountryId';
|
|
6
|
-
import { CardType } from '../enums/CardType';
|
|
7
|
-
import { Shipping } from '../../address/dtos/Shipping';
|
|
8
|
-
|
|
9
|
-
export class CardApplicationRequest {
|
|
10
|
-
@IsEnum(CountryId)
|
|
11
|
-
countryId: number;
|
|
12
|
-
|
|
13
|
-
@IsEnum(CardType)
|
|
14
|
-
type: string;
|
|
15
|
-
|
|
16
|
-
@IsNotEmpty()
|
|
17
|
-
@ValidateNested()
|
|
18
|
-
@Type(() => Shipping)
|
|
19
|
-
address: Shipping;
|
|
20
|
-
}
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { IsEnum, IsNotEmpty, ValidateNested } from 'class-validator';
|
|
4
|
+
import { Type } from 'class-transformer';
|
|
5
|
+
import { CountryId } from '../../country/enums/CountryId';
|
|
6
|
+
import { CardType } from '../enums/CardType';
|
|
7
|
+
import { Shipping } from '../../address/dtos/Shipping';
|
|
8
|
+
|
|
9
|
+
export class CardApplicationRequest {
|
|
10
|
+
@IsEnum(CountryId)
|
|
11
|
+
countryId: number;
|
|
12
|
+
|
|
13
|
+
@IsEnum(CardType)
|
|
14
|
+
type: string;
|
|
15
|
+
|
|
16
|
+
@IsNotEmpty()
|
|
17
|
+
@ValidateNested()
|
|
18
|
+
@Type(() => Shipping)
|
|
19
|
+
address: Shipping;
|
|
20
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TypeOfDirectoryId } from "../../directory"
|
|
2
|
-
import { CountryId } from "../../country"
|
|
3
|
-
|
|
4
|
-
export class CardBalanceResponse {
|
|
5
|
-
|
|
6
|
-
cardBalanceId: string
|
|
7
|
-
currentBalance: number
|
|
8
|
-
directoryId: string
|
|
9
|
-
typeOfDirectoryId: TypeOfDirectoryId
|
|
10
|
-
currencyId: CountryId
|
|
1
|
+
import { TypeOfDirectoryId } from "../../directory"
|
|
2
|
+
import { CountryId } from "../../country"
|
|
3
|
+
|
|
4
|
+
export class CardBalanceResponse {
|
|
5
|
+
|
|
6
|
+
cardBalanceId: string
|
|
7
|
+
currentBalance: number
|
|
8
|
+
directoryId: string
|
|
9
|
+
typeOfDirectoryId: TypeOfDirectoryId
|
|
10
|
+
currencyId: CountryId
|
|
11
11
|
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { IsDateString, IsNotEmpty, IsString, Length, ValidateNested } from "class-validator";
|
|
2
|
-
import { IsPhoneNumberFiado } from "../validations/IsPhoneNumberConstraint";
|
|
3
|
-
import { Type } from "class-transformer";
|
|
4
|
-
import { AddressCreateRequest } from "../../address";
|
|
5
|
-
|
|
6
|
-
export class CardCreateAdditionalRequest {
|
|
7
|
-
|
|
8
|
-
@IsNotEmpty()
|
|
9
|
-
@IsString()
|
|
10
|
-
@Length(3, 40)
|
|
11
|
-
name: string;
|
|
12
|
-
|
|
13
|
-
@IsNotEmpty()
|
|
14
|
-
@IsString()
|
|
15
|
-
@Length(3, 20)
|
|
16
|
-
lastNamePaternal: string;
|
|
17
|
-
|
|
18
|
-
@IsNotEmpty()
|
|
19
|
-
@IsString()
|
|
20
|
-
@Length(3, 20)
|
|
21
|
-
lastNameMaternal: string;
|
|
22
|
-
|
|
23
|
-
@IsNotEmpty()
|
|
24
|
-
@IsString()
|
|
25
|
-
@IsPhoneNumberFiado()
|
|
26
|
-
phoneNumber: string;
|
|
27
|
-
|
|
28
|
-
@IsDateString()
|
|
29
|
-
dateOfBirth: string;
|
|
30
|
-
|
|
31
|
-
@IsNotEmpty()
|
|
32
|
-
@IsString()
|
|
33
|
-
@Length(3, 20)
|
|
34
|
-
ownerRelation: string;
|
|
35
|
-
|
|
36
|
-
@ValidateNested()
|
|
37
|
-
@Type(() => AddressCreateRequest)
|
|
38
|
-
address: AddressCreateRequest;
|
|
39
|
-
}
|
|
40
|
-
|
|
1
|
+
import { IsDateString, IsNotEmpty, IsString, Length, ValidateNested } from "class-validator";
|
|
2
|
+
import { IsPhoneNumberFiado } from "../validations/IsPhoneNumberConstraint";
|
|
3
|
+
import { Type } from "class-transformer";
|
|
4
|
+
import { AddressCreateRequest } from "../../address";
|
|
5
|
+
|
|
6
|
+
export class CardCreateAdditionalRequest {
|
|
7
|
+
|
|
8
|
+
@IsNotEmpty()
|
|
9
|
+
@IsString()
|
|
10
|
+
@Length(3, 40)
|
|
11
|
+
name: string;
|
|
12
|
+
|
|
13
|
+
@IsNotEmpty()
|
|
14
|
+
@IsString()
|
|
15
|
+
@Length(3, 20)
|
|
16
|
+
lastNamePaternal: string;
|
|
17
|
+
|
|
18
|
+
@IsNotEmpty()
|
|
19
|
+
@IsString()
|
|
20
|
+
@Length(3, 20)
|
|
21
|
+
lastNameMaternal: string;
|
|
22
|
+
|
|
23
|
+
@IsNotEmpty()
|
|
24
|
+
@IsString()
|
|
25
|
+
@IsPhoneNumberFiado()
|
|
26
|
+
phoneNumber: string;
|
|
27
|
+
|
|
28
|
+
@IsDateString()
|
|
29
|
+
dateOfBirth: string;
|
|
30
|
+
|
|
31
|
+
@IsNotEmpty()
|
|
32
|
+
@IsString()
|
|
33
|
+
@Length(3, 20)
|
|
34
|
+
ownerRelation: string;
|
|
35
|
+
|
|
36
|
+
@ValidateNested()
|
|
37
|
+
@Type(() => AddressCreateRequest)
|
|
38
|
+
address: AddressCreateRequest;
|
|
39
|
+
}
|
|
40
|
+
|