@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,141 +1,141 @@
|
|
|
1
|
-
import { IsString, IsOptional, IsEnum, ValidateNested, IsNumber, Min, Max, Length, Matches } from 'class-validator';
|
|
2
|
-
import { Type } from 'class-transformer';
|
|
3
|
-
import { CountryId } from '../../country/enums/CountryId';
|
|
4
|
-
import { CardType } from '../enums/CardType';
|
|
5
|
-
import { Brand } from '../enums/Brand';
|
|
6
|
-
import { OwnershipType } from '../enums/OwnershipType';
|
|
7
|
-
import { Status } from '../enums/Status';
|
|
8
|
-
import { regexIso8601, regexUuidV4 } from '../../helpers/constans/regex';
|
|
9
|
-
import { Shipping } from '../../address';
|
|
10
|
-
|
|
11
|
-
export class CardCreateRequest {
|
|
12
|
-
|
|
13
|
-
@IsOptional()
|
|
14
|
-
@IsString()
|
|
15
|
-
@Matches(regexUuidV4,
|
|
16
|
-
{
|
|
17
|
-
message: 'id must be a valid UUID v4',
|
|
18
|
-
})
|
|
19
|
-
id?: string;
|
|
20
|
-
|
|
21
|
-
@IsOptional()
|
|
22
|
-
@IsString()
|
|
23
|
-
@Matches(regexUuidV4,
|
|
24
|
-
{
|
|
25
|
-
message: 'accountId must be a valid UUID v4 or null',
|
|
26
|
-
})
|
|
27
|
-
accountId?: string;
|
|
28
|
-
|
|
29
|
-
@IsOptional()
|
|
30
|
-
@IsString()
|
|
31
|
-
@Matches(regexIso8601, {
|
|
32
|
-
message: 'activationDate must be a valid ISO 8601 date string',
|
|
33
|
-
})
|
|
34
|
-
activationDate?: string;
|
|
35
|
-
|
|
36
|
-
@IsEnum(CountryId)
|
|
37
|
-
countryId: CountryId;
|
|
38
|
-
|
|
39
|
-
@IsEnum(CardType)
|
|
40
|
-
type: CardType;
|
|
41
|
-
|
|
42
|
-
@IsString()
|
|
43
|
-
@Matches(regexUuidV4,
|
|
44
|
-
{
|
|
45
|
-
message: 'directoryId must be a valid UUID v4',
|
|
46
|
-
})
|
|
47
|
-
directoryId?: string;
|
|
48
|
-
|
|
49
|
-
@IsString()
|
|
50
|
-
@Length(1, 100)
|
|
51
|
-
externalCardId: string;
|
|
52
|
-
|
|
53
|
-
@IsString()
|
|
54
|
-
@Length(1, 100)
|
|
55
|
-
externalUserId: string;
|
|
56
|
-
|
|
57
|
-
@IsOptional()
|
|
58
|
-
@IsString()
|
|
59
|
-
@Length(1, 100)
|
|
60
|
-
externalShipmentId: string;
|
|
61
|
-
|
|
62
|
-
@IsOptional()
|
|
63
|
-
@IsString()
|
|
64
|
-
@Length(1, 50)
|
|
65
|
-
shipmentProvider: string;
|
|
66
|
-
|
|
67
|
-
@IsOptional()
|
|
68
|
-
@IsString()
|
|
69
|
-
@Length(1, 50)
|
|
70
|
-
externalShipmentTrackingId: string;
|
|
71
|
-
|
|
72
|
-
@IsOptional()
|
|
73
|
-
@IsString()
|
|
74
|
-
@Length(1, 200)
|
|
75
|
-
externalShipmentTrackingUrl: string;
|
|
76
|
-
|
|
77
|
-
@IsOptional()
|
|
78
|
-
@IsString()
|
|
79
|
-
@Length(1, 50)
|
|
80
|
-
holderName: string;
|
|
81
|
-
|
|
82
|
-
@IsOptional()
|
|
83
|
-
@IsString()
|
|
84
|
-
@Length(1, 50)
|
|
85
|
-
holderLastName: string;
|
|
86
|
-
|
|
87
|
-
@IsOptional()
|
|
88
|
-
@IsString()
|
|
89
|
-
@Length(1, 200)
|
|
90
|
-
imageUrl?: string;
|
|
91
|
-
|
|
92
|
-
@IsEnum(Brand)
|
|
93
|
-
brand: Brand;
|
|
94
|
-
|
|
95
|
-
@IsEnum(OwnershipType)
|
|
96
|
-
ownershipType: OwnershipType;
|
|
97
|
-
|
|
98
|
-
@IsString()
|
|
99
|
-
@Length(4, 4)
|
|
100
|
-
lastFour: string;
|
|
101
|
-
|
|
102
|
-
@IsOptional()
|
|
103
|
-
@IsString()
|
|
104
|
-
@Length(1, 50)
|
|
105
|
-
providerName?: string;
|
|
106
|
-
|
|
107
|
-
@IsEnum(Status)
|
|
108
|
-
status: Status;
|
|
109
|
-
|
|
110
|
-
@IsOptional()
|
|
111
|
-
@IsString()
|
|
112
|
-
statusUpdateDate?: string;
|
|
113
|
-
|
|
114
|
-
@IsOptional()
|
|
115
|
-
@IsString()
|
|
116
|
-
@Length(1, 50)
|
|
117
|
-
tenantId?: string;
|
|
118
|
-
|
|
119
|
-
@IsOptional()
|
|
120
|
-
@IsNumber()
|
|
121
|
-
@Min(1)
|
|
122
|
-
@Max(9999999999)
|
|
123
|
-
spendLimitByTransaction?: number;
|
|
124
|
-
|
|
125
|
-
@IsOptional()
|
|
126
|
-
@IsNumber()
|
|
127
|
-
@Min(1)
|
|
128
|
-
@Max(9999999999)
|
|
129
|
-
spendLimitByDay?: number;
|
|
130
|
-
|
|
131
|
-
@IsOptional()
|
|
132
|
-
@IsNumber()
|
|
133
|
-
@Min(1)
|
|
134
|
-
@Max(9999999999)
|
|
135
|
-
spendLimitByMonth?: number;
|
|
136
|
-
|
|
137
|
-
@IsOptional()
|
|
138
|
-
@ValidateNested()
|
|
139
|
-
@Type(() => Shipping)
|
|
140
|
-
shippedAddress?: Shipping;
|
|
141
|
-
}
|
|
1
|
+
import { IsString, IsOptional, IsEnum, ValidateNested, IsNumber, Min, Max, Length, Matches } from 'class-validator';
|
|
2
|
+
import { Type } from 'class-transformer';
|
|
3
|
+
import { CountryId } from '../../country/enums/CountryId';
|
|
4
|
+
import { CardType } from '../enums/CardType';
|
|
5
|
+
import { Brand } from '../enums/Brand';
|
|
6
|
+
import { OwnershipType } from '../enums/OwnershipType';
|
|
7
|
+
import { Status } from '../enums/Status';
|
|
8
|
+
import { regexIso8601, regexUuidV4 } from '../../helpers/constans/regex';
|
|
9
|
+
import { Shipping } from '../../address';
|
|
10
|
+
|
|
11
|
+
export class CardCreateRequest {
|
|
12
|
+
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsString()
|
|
15
|
+
@Matches(regexUuidV4,
|
|
16
|
+
{
|
|
17
|
+
message: 'id must be a valid UUID v4',
|
|
18
|
+
})
|
|
19
|
+
id?: string;
|
|
20
|
+
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@IsString()
|
|
23
|
+
@Matches(regexUuidV4,
|
|
24
|
+
{
|
|
25
|
+
message: 'accountId must be a valid UUID v4 or null',
|
|
26
|
+
})
|
|
27
|
+
accountId?: string;
|
|
28
|
+
|
|
29
|
+
@IsOptional()
|
|
30
|
+
@IsString()
|
|
31
|
+
@Matches(regexIso8601, {
|
|
32
|
+
message: 'activationDate must be a valid ISO 8601 date string',
|
|
33
|
+
})
|
|
34
|
+
activationDate?: string;
|
|
35
|
+
|
|
36
|
+
@IsEnum(CountryId)
|
|
37
|
+
countryId: CountryId;
|
|
38
|
+
|
|
39
|
+
@IsEnum(CardType)
|
|
40
|
+
type: CardType;
|
|
41
|
+
|
|
42
|
+
@IsString()
|
|
43
|
+
@Matches(regexUuidV4,
|
|
44
|
+
{
|
|
45
|
+
message: 'directoryId must be a valid UUID v4',
|
|
46
|
+
})
|
|
47
|
+
directoryId?: string;
|
|
48
|
+
|
|
49
|
+
@IsString()
|
|
50
|
+
@Length(1, 100)
|
|
51
|
+
externalCardId: string;
|
|
52
|
+
|
|
53
|
+
@IsString()
|
|
54
|
+
@Length(1, 100)
|
|
55
|
+
externalUserId: string;
|
|
56
|
+
|
|
57
|
+
@IsOptional()
|
|
58
|
+
@IsString()
|
|
59
|
+
@Length(1, 100)
|
|
60
|
+
externalShipmentId: string;
|
|
61
|
+
|
|
62
|
+
@IsOptional()
|
|
63
|
+
@IsString()
|
|
64
|
+
@Length(1, 50)
|
|
65
|
+
shipmentProvider: string;
|
|
66
|
+
|
|
67
|
+
@IsOptional()
|
|
68
|
+
@IsString()
|
|
69
|
+
@Length(1, 50)
|
|
70
|
+
externalShipmentTrackingId: string;
|
|
71
|
+
|
|
72
|
+
@IsOptional()
|
|
73
|
+
@IsString()
|
|
74
|
+
@Length(1, 200)
|
|
75
|
+
externalShipmentTrackingUrl: string;
|
|
76
|
+
|
|
77
|
+
@IsOptional()
|
|
78
|
+
@IsString()
|
|
79
|
+
@Length(1, 50)
|
|
80
|
+
holderName: string;
|
|
81
|
+
|
|
82
|
+
@IsOptional()
|
|
83
|
+
@IsString()
|
|
84
|
+
@Length(1, 50)
|
|
85
|
+
holderLastName: string;
|
|
86
|
+
|
|
87
|
+
@IsOptional()
|
|
88
|
+
@IsString()
|
|
89
|
+
@Length(1, 200)
|
|
90
|
+
imageUrl?: string;
|
|
91
|
+
|
|
92
|
+
@IsEnum(Brand)
|
|
93
|
+
brand: Brand;
|
|
94
|
+
|
|
95
|
+
@IsEnum(OwnershipType)
|
|
96
|
+
ownershipType: OwnershipType;
|
|
97
|
+
|
|
98
|
+
@IsString()
|
|
99
|
+
@Length(4, 4)
|
|
100
|
+
lastFour: string;
|
|
101
|
+
|
|
102
|
+
@IsOptional()
|
|
103
|
+
@IsString()
|
|
104
|
+
@Length(1, 50)
|
|
105
|
+
providerName?: string;
|
|
106
|
+
|
|
107
|
+
@IsEnum(Status)
|
|
108
|
+
status: Status;
|
|
109
|
+
|
|
110
|
+
@IsOptional()
|
|
111
|
+
@IsString()
|
|
112
|
+
statusUpdateDate?: string;
|
|
113
|
+
|
|
114
|
+
@IsOptional()
|
|
115
|
+
@IsString()
|
|
116
|
+
@Length(1, 50)
|
|
117
|
+
tenantId?: string;
|
|
118
|
+
|
|
119
|
+
@IsOptional()
|
|
120
|
+
@IsNumber()
|
|
121
|
+
@Min(1)
|
|
122
|
+
@Max(9999999999)
|
|
123
|
+
spendLimitByTransaction?: number;
|
|
124
|
+
|
|
125
|
+
@IsOptional()
|
|
126
|
+
@IsNumber()
|
|
127
|
+
@Min(1)
|
|
128
|
+
@Max(9999999999)
|
|
129
|
+
spendLimitByDay?: number;
|
|
130
|
+
|
|
131
|
+
@IsOptional()
|
|
132
|
+
@IsNumber()
|
|
133
|
+
@Min(1)
|
|
134
|
+
@Max(9999999999)
|
|
135
|
+
spendLimitByMonth?: number;
|
|
136
|
+
|
|
137
|
+
@IsOptional()
|
|
138
|
+
@ValidateNested()
|
|
139
|
+
@Type(() => Shipping)
|
|
140
|
+
shippedAddress?: Shipping;
|
|
141
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export class CardResponse {
|
|
4
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export class CardResponse {
|
|
4
|
+
|
|
5
5
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { QueueMessageBase } from "../../queue/dtos/QueueMessageBase";
|
|
2
|
-
import { CardShipmentUpdateRequest } from "./CardShipmentUpdateRequest";
|
|
3
|
-
|
|
4
|
-
export class CardShipmentQueueMessage extends QueueMessageBase<CardShipmentUpdateRequest> {
|
|
5
|
-
|
|
6
|
-
message: CardShipmentUpdateRequest;
|
|
7
|
-
|
|
1
|
+
import { QueueMessageBase } from "../../queue/dtos/QueueMessageBase";
|
|
2
|
+
import { CardShipmentUpdateRequest } from "./CardShipmentUpdateRequest";
|
|
3
|
+
|
|
4
|
+
export class CardShipmentQueueMessage extends QueueMessageBase<CardShipmentUpdateRequest> {
|
|
5
|
+
|
|
6
|
+
message: CardShipmentUpdateRequest;
|
|
7
|
+
|
|
8
8
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { IsNotEmpty, IsString } from "class-validator";
|
|
2
|
-
|
|
3
|
-
export class CardShipmentUpdateRequest {
|
|
4
|
-
|
|
5
|
-
@IsString()
|
|
6
|
-
@IsNotEmpty()
|
|
7
|
-
shippingId: string
|
|
8
|
-
|
|
9
|
-
@IsString()
|
|
10
|
-
@IsNotEmpty()
|
|
11
|
-
status: string
|
|
12
|
-
|
|
13
|
-
@IsString()
|
|
14
|
-
@IsNotEmpty()
|
|
15
|
-
statusDetail: string
|
|
16
|
-
|
|
17
|
-
@IsString()
|
|
18
|
-
@IsNotEmpty()
|
|
19
|
-
updateAt: string
|
|
1
|
+
import { IsNotEmpty, IsString } from "class-validator";
|
|
2
|
+
|
|
3
|
+
export class CardShipmentUpdateRequest {
|
|
4
|
+
|
|
5
|
+
@IsString()
|
|
6
|
+
@IsNotEmpty()
|
|
7
|
+
shippingId: string
|
|
8
|
+
|
|
9
|
+
@IsString()
|
|
10
|
+
@IsNotEmpty()
|
|
11
|
+
status: string
|
|
12
|
+
|
|
13
|
+
@IsString()
|
|
14
|
+
@IsNotEmpty()
|
|
15
|
+
statusDetail: string
|
|
16
|
+
|
|
17
|
+
@IsString()
|
|
18
|
+
@IsNotEmpty()
|
|
19
|
+
updateAt: string
|
|
20
20
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {UpdateKey} from "../enums/UpdateKey";
|
|
2
|
-
import {IsEnum, IsString} from "class-validator";
|
|
3
|
-
import {IsValueValid} from "../validations/CardUpdateKeyConstraint";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export class CardUpdateRequest {
|
|
7
|
-
|
|
8
|
-
@IsEnum(UpdateKey)
|
|
9
|
-
type: string;
|
|
10
|
-
|
|
11
|
-
@IsString()
|
|
12
|
-
@IsValueValid()
|
|
13
|
-
value: string;
|
|
1
|
+
import {UpdateKey} from "../enums/UpdateKey";
|
|
2
|
+
import {IsEnum, IsString} from "class-validator";
|
|
3
|
+
import {IsValueValid} from "../validations/CardUpdateKeyConstraint";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CardUpdateRequest {
|
|
7
|
+
|
|
8
|
+
@IsEnum(UpdateKey)
|
|
9
|
+
type: string;
|
|
10
|
+
|
|
11
|
+
@IsString()
|
|
12
|
+
@IsValueValid()
|
|
13
|
+
value: string;
|
|
14
14
|
}
|
package/src/card/enums/Brand.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export enum Brand {
|
|
2
|
-
VISA = "VISA",
|
|
3
|
-
MASTERCARD = 'MASTERCARD',
|
|
4
|
-
AMERICAN_EXPRESS = 'AMERICAN_EXPRESS',
|
|
5
|
-
DISCOVER = 'DISCOVER',
|
|
6
|
-
DINERS_CLUB = 'DINERS_CLUB',
|
|
7
|
-
JCB = 'JCB'
|
|
1
|
+
export enum Brand {
|
|
2
|
+
VISA = "VISA",
|
|
3
|
+
MASTERCARD = 'MASTERCARD',
|
|
4
|
+
AMERICAN_EXPRESS = 'AMERICAN_EXPRESS',
|
|
5
|
+
DISCOVER = 'DISCOVER',
|
|
6
|
+
DINERS_CLUB = 'DINERS_CLUB',
|
|
7
|
+
JCB = 'JCB'
|
|
8
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export enum CardIssuanceStatus {
|
|
3
|
-
IN_PROCESS = "IN_PROCESS",
|
|
4
|
-
COMPLETED = "COMPLETED",
|
|
5
|
-
FAILED = "FAILED"
|
|
1
|
+
|
|
2
|
+
export enum CardIssuanceStatus {
|
|
3
|
+
IN_PROCESS = "IN_PROCESS",
|
|
4
|
+
COMPLETED = "COMPLETED",
|
|
5
|
+
FAILED = "FAILED"
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export enum CardType {
|
|
2
|
-
CREDIT = 'CREDIT',
|
|
3
|
-
DEBIT = 'DEBIT',
|
|
4
|
-
PREPAID = 'PREPAID'
|
|
1
|
+
export enum CardType {
|
|
2
|
+
CREDIT = 'CREDIT',
|
|
3
|
+
DEBIT = 'DEBIT',
|
|
4
|
+
PREPAID = 'PREPAID'
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export enum CardUpdateKey {
|
|
2
|
-
CHANGE_STATUS = 'CHANGE_STATUS',
|
|
3
|
-
CHANGE_PIN = 'CHANGE_PIN',
|
|
4
|
-
}
|
|
1
|
+
export enum CardUpdateKey {
|
|
2
|
+
CHANGE_STATUS = 'CHANGE_STATUS',
|
|
3
|
+
CHANGE_PIN = 'CHANGE_PIN',
|
|
4
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum CreditOrDebit {
|
|
4
|
-
CREDIT = "CREDIT",
|
|
5
|
-
DEBIT = "DEBIT"
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum CreditOrDebit {
|
|
4
|
+
CREDIT = "CREDIT",
|
|
5
|
+
DEBIT = "DEBIT"
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum IssuanceType {
|
|
4
|
-
VIRTUAL = 'VIRTUAL',
|
|
5
|
-
PHYSICAL = 'PHYSICAL'
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum IssuanceType {
|
|
4
|
+
VIRTUAL = 'VIRTUAL',
|
|
5
|
+
PHYSICAL = 'PHYSICAL'
|
|
6
6
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export enum NominatedOrInnominated {
|
|
6
|
-
|
|
7
|
-
NOMINATED = "NOMINATED",
|
|
8
|
-
INNOMINATED = "INNOMINATED"
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export enum NominatedOrInnominated {
|
|
6
|
+
|
|
7
|
+
NOMINATED = "NOMINATED",
|
|
8
|
+
INNOMINATED = "INNOMINATED"
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export enum OwnershipType {
|
|
2
|
-
NOMINATE = 'NOMINATE',
|
|
3
|
-
INNOMINATE = 'INNOMINATE',
|
|
1
|
+
export enum OwnershipType {
|
|
2
|
+
NOMINATE = 'NOMINATE',
|
|
3
|
+
INNOMINATE = 'INNOMINATE',
|
|
4
4
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export enum ShippinStatus {
|
|
5
|
-
REQUESTED = "REQUESTED",
|
|
6
|
-
IN_TRANSIT = "IN_TRANSIT",
|
|
7
|
-
DELIVERED = "DELIVERED",
|
|
8
|
-
WITH_ISSUE = "WITH_ISSUE"
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export enum ShippinStatus {
|
|
5
|
+
REQUESTED = "REQUESTED",
|
|
6
|
+
IN_TRANSIT = "IN_TRANSIT",
|
|
7
|
+
DELIVERED = "DELIVERED",
|
|
8
|
+
WITH_ISSUE = "WITH_ISSUE"
|
|
9
9
|
}
|
package/src/card/enums/Status.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export enum Status {
|
|
3
|
-
ACTIVE = 'ACTIVE',
|
|
4
|
-
PENDING = 'PENDING',
|
|
5
|
-
PAUSED = 'PAUSED',
|
|
1
|
+
|
|
2
|
+
export enum Status {
|
|
3
|
+
ACTIVE = 'ACTIVE',
|
|
4
|
+
PENDING = 'PENDING',
|
|
5
|
+
PAUSED = 'PAUSED',
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum UpdateKey {
|
|
4
|
-
CHANGE_STATUS = 'CHANGE_STATUS',
|
|
5
|
-
CHANGE_PIN = 'CHANGE_PIN'
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum UpdateKey {
|
|
4
|
+
CHANGE_STATUS = 'CHANGE_STATUS',
|
|
5
|
+
CHANGE_PIN = 'CHANGE_PIN'
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export enum VirtualOrPhysical {
|
|
5
|
-
VIRTUAL = "VIRTUAL",
|
|
6
|
-
PHYSICAL = "PHYSICAL"
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export enum VirtualOrPhysical {
|
|
5
|
+
VIRTUAL = "VIRTUAL",
|
|
6
|
+
PHYSICAL = "PHYSICAL"
|
|
7
7
|
}
|
package/src/card/index.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
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
|
-
export * from './dtos/CardResponse';
|
|
10
|
-
export * from './dtos/CardShipmentQueueMessage'
|
|
11
|
-
export * from './dtos/CardShipmentUpdateRequest'
|
|
12
|
-
|
|
13
|
-
//enums
|
|
14
|
-
export * from './enums/CardType';
|
|
15
|
-
export * from './enums/CardUpdateKey';
|
|
16
|
-
export * from './enums/IssuanceType';
|
|
17
|
-
export * from './enums/Status';
|
|
18
|
-
export * from './enums/OwnershipType';
|
|
19
|
-
export * from './enums/Brand';
|
|
20
|
-
export * from './enums/UpdateKey';
|
|
21
|
-
export * from './enums/CardIssuanceStatus';
|
|
22
|
-
export * from './enums/NominatedOrInnominated'
|
|
23
|
-
export * from './enums/CreditOrDebit'
|
|
24
|
-
export * from './enums/ShippingStatus'
|
|
25
|
-
export * from './enums/Status'
|
|
26
|
-
export * from './enums/VirtualOrPhysical'
|
|
27
|
-
|
|
28
|
-
|
|
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
|
+
export * from './dtos/CardResponse';
|
|
10
|
+
export * from './dtos/CardShipmentQueueMessage'
|
|
11
|
+
export * from './dtos/CardShipmentUpdateRequest'
|
|
12
|
+
|
|
13
|
+
//enums
|
|
14
|
+
export * from './enums/CardType';
|
|
15
|
+
export * from './enums/CardUpdateKey';
|
|
16
|
+
export * from './enums/IssuanceType';
|
|
17
|
+
export * from './enums/Status';
|
|
18
|
+
export * from './enums/OwnershipType';
|
|
19
|
+
export * from './enums/Brand';
|
|
20
|
+
export * from './enums/UpdateKey';
|
|
21
|
+
export * from './enums/CardIssuanceStatus';
|
|
22
|
+
export * from './enums/NominatedOrInnominated'
|
|
23
|
+
export * from './enums/CreditOrDebit'
|
|
24
|
+
export * from './enums/ShippingStatus'
|
|
25
|
+
export * from './enums/Status'
|
|
26
|
+
export * from './enums/VirtualOrPhysical'
|
|
27
|
+
|
|
28
|
+
|