@fiado/type-kit 1.1.8 → 1.1.9

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.
Files changed (177) hide show
  1. package/README.md +70 -70
  2. package/bin/account/dtos/CreateBankAccountInput.d.ts +8 -0
  3. package/bin/account/dtos/CreateBankAccountInput.js +6 -0
  4. package/bin/account/dtos/CreateBankAccountUserInput.d.ts +14 -0
  5. package/bin/account/dtos/CreateBankAccountUserInput.js +6 -0
  6. package/bin/card/dtos/CardResponse.d.ts +30 -0
  7. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
  8. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
  9. package/package.json +23 -23
  10. package/src/account/dtos/AccountCreateRequest.ts +75 -75
  11. package/src/account/dtos/AccountCreateResponse.ts +7 -7
  12. package/src/account/dtos/AccountInfo.ts +39 -39
  13. package/src/account/dtos/BankAccountExternalAddress.ts +17 -17
  14. package/src/account/dtos/CreateBankAccountRequest.ts +11 -11
  15. package/src/account/dtos/CreateBankAccountResponse.ts +8 -8
  16. package/src/account/dtos/CreateBankAccountUserRequest.ts +17 -17
  17. package/src/account/dtos/CreateBankAccountUserResponse.ts +11 -11
  18. package/src/account/dtos/ExchangeInfo.ts +8 -8
  19. package/src/account/dtos/GetAccountBalanceResponse.ts +36 -36
  20. package/src/account/dtos/GetAccountResponse.ts +62 -62
  21. package/src/account/dtos/GetBankAccountRequest.ts +3 -3
  22. package/src/account/dtos/GetBankAccountResponse.ts +22 -22
  23. package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +5 -5
  24. package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +8 -8
  25. package/src/account/dtos/GetBankAccountUserRequest.ts +2 -2
  26. package/src/account/dtos/GetBankAccountUserResponse.ts +25 -25
  27. package/src/account/dtos/GetPocketBalanceResponse.ts +43 -43
  28. package/src/account/dtos/GetPocketResponse.ts +8 -8
  29. package/src/account/dtos/PocketBalanceItem.ts +14 -14
  30. package/src/account/dtos/PocketItem.ts +43 -43
  31. package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
  32. package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
  33. package/src/account/entities/AccountEntityBase.ts +12 -12
  34. package/src/account/enums/AccountEntityStatusEnum.ts +4 -4
  35. package/src/account/enums/AccountLevelEnum.ts +5 -5
  36. package/src/account/enums/BankAccountTypeEnum.ts +2 -2
  37. package/src/account/enums/BankAccountUserStatusEnum.ts +4 -4
  38. package/src/account/enums/UserEntityStatusEnum.ts +4 -4
  39. package/src/account/index.ts +35 -35
  40. package/src/address/dtos/AddressBase.ts +130 -130
  41. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  42. package/src/address/dtos/AddressResponse.ts +41 -41
  43. package/src/address/dtos/AddressShippingCardRequest.ts +12 -12
  44. package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
  45. package/src/address/dtos/Geometry.ts +4 -4
  46. package/src/address/dtos/OfficeDetails.ts +30 -30
  47. package/src/address/dtos/OperationSchedule.ts +8 -8
  48. package/src/address/dtos/Place.ts +83 -83
  49. package/src/address/dtos/Shipping.ts +36 -36
  50. package/src/address/dtos/Timezone.ts +5 -5
  51. package/src/address/enums/AddressProvider.ts +10 -10
  52. package/src/address/enums/AddressStatus.ts +9 -9
  53. package/src/address/index.ts +16 -16
  54. package/src/app/enums/App.ts +10 -10
  55. package/src/app/index.ts +3 -3
  56. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  57. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  58. package/src/authentication/index.ts +3 -3
  59. package/src/card/dtos/CardActivateRequest.ts +12 -12
  60. package/src/card/dtos/CardAdditionalRequest.ts +25 -25
  61. package/src/card/dtos/CardApplicationRequest.ts +22 -22
  62. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  63. package/src/card/dtos/CardCreateAdditionalRequest.ts +40 -40
  64. package/src/card/dtos/CardResponse.ts +33 -4
  65. package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
  66. package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
  67. package/src/card/dtos/CardUpdateRequest.ts +11 -11
  68. package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
  69. package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
  70. package/src/card/dtos/Internal/AssignCardRequest.ts +8 -8
  71. package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
  72. package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
  73. package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
  74. package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
  75. package/src/card/dtos/Internal/GetBankAccountCardResponse.ts +32 -32
  76. package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
  77. package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
  78. package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +21 -21
  79. package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +5 -5
  80. package/src/card/enums/Brand.ts +7 -7
  81. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  82. package/src/card/enums/CardIssuing.ts +6 -6
  83. package/src/card/enums/CardType.ts +4 -4
  84. package/src/card/enums/CardUpdateKey.ts +4 -4
  85. package/src/card/enums/CreditOrDebit.ts +5 -5
  86. package/src/card/enums/DeliveryChannel.ts +7 -7
  87. package/src/card/enums/ExternalShippingStatus.ts +14 -14
  88. package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
  89. package/src/card/enums/IssuanceType.ts +5 -5
  90. package/src/card/enums/NominatedOrInnominated.ts +8 -8
  91. package/src/card/enums/OwnershipType.ts +3 -3
  92. package/src/card/enums/ShippingStatus.ts +8 -8
  93. package/src/card/enums/Status.ts +6 -6
  94. package/src/card/enums/UpdateKey.ts +5 -5
  95. package/src/card/enums/VirtualOrPhysical.ts +6 -6
  96. package/src/card/index.ts +47 -47
  97. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  98. package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
  99. package/src/contactInfo/dtos/GetAllContactInfoResponse.ts +13 -13
  100. package/src/contactInfo/enums/TypeOfContactIdEnum.ts +3 -3
  101. package/src/contactInfo/index.ts +1 -1
  102. package/src/country/enums/Country.ts +6 -6
  103. package/src/country/enums/CountryId.ts +6 -6
  104. package/src/country/index.ts +5 -5
  105. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  106. package/src/currency/index.ts +2 -2
  107. package/src/directory/dtos/DirectoryResponse.ts +18 -18
  108. package/src/directory/dtos/External.ts +6 -6
  109. package/src/directory/enums/Profile.ts +6 -6
  110. package/src/directory/enums/Scope.ts +7 -7
  111. package/src/directory/enums/Status.ts +8 -8
  112. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  113. package/src/directory/index.ts +7 -7
  114. package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
  115. package/src/eventBridge/index.ts +1 -1
  116. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  117. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  118. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  119. package/src/exchangeRate/dtos/GetExchangeRatesRequest.ts +3 -3
  120. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  121. package/src/exchangeRate/index.ts +9 -9
  122. package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
  123. package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
  124. package/src/genericMessage/index.ts +1 -1
  125. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  126. package/src/group/dtos/GroupCreateRequest.ts +54 -54
  127. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  128. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  129. package/src/group/dtos/GroupResponse.ts +17 -17
  130. package/src/group/dtos/GroupUpdateRequest.ts +31 -31
  131. package/src/group/enums/GroupAction.ts +8 -8
  132. package/src/group/enums/GroupStatus.ts +6 -6
  133. package/src/group/enums/RelationStatus.ts +8 -8
  134. package/src/group/enums/RelationType.ts +9 -9
  135. package/src/group/index.ts +18 -18
  136. package/src/header/TokenPayload.ts +17 -17
  137. package/src/header/index.ts +3 -3
  138. package/src/helpers/ValidationUtils.ts +32 -32
  139. package/src/helpers/constans/regex.ts +12 -12
  140. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  141. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  142. package/src/identity/dtos/PeopleResponse.ts +72 -72
  143. package/src/identity/dtos/PeopleUpdateRequest.ts +70 -70
  144. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  145. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  146. package/src/identity/enums/SexDocument.ts +6 -6
  147. package/src/identity/enums/TypeOfDocument.ts +5 -5
  148. package/src/identity/index.ts +12 -12
  149. package/src/index.ts +25 -25
  150. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
  151. package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
  152. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
  153. package/src/notificationMessages/enums/NotificationId.ts +13 -13
  154. package/src/notificationMessages/index.ts +5 -5
  155. package/src/provider/enums/Provider.ts +4 -4
  156. package/src/provider/index.ts +1 -1
  157. package/src/queue/dtos/QueueMessageBase.ts +13 -13
  158. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  159. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
  160. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
  161. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
  162. package/src/sessionActivity/index.ts +2 -2
  163. package/src/transaction/dtos/TransactionCreateRequest.ts +4 -4
  164. package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
  165. package/src/transaction/enums/OperationEnum.ts +3 -3
  166. package/src/transaction/index.ts +5 -5
  167. package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.ts +6 -6
  168. package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.ts +3 -3
  169. package/src/transactionProcessor/dtos/private/PrivateProcessorCardInfo.ts +5 -5
  170. package/src/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.ts +6 -6
  171. package/src/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.ts +7 -7
  172. package/src/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.ts +16 -16
  173. package/src/transactionProcessor/index.ts +7 -7
  174. package/.idea/aws.xml +0 -11
  175. package/.idea/fiado-type-kit.iml +0 -12
  176. package/.idea/modules.xml +0 -8
  177. package/.idea/vcs.xml +0 -6
@@ -1,11 +1,11 @@
1
- import { Provider } from "../../provider";
2
-
3
- export class CreateBankAccountUserResponse {
4
- externalUserId:string
5
- externalAccountId?:string
6
- provider:Provider
7
- accountNumber?:string
8
- routingNumber?:string
9
- }
10
-
11
-
1
+ import { Provider } from "../../provider";
2
+
3
+ export class CreateBankAccountUserResponse {
4
+ externalUserId:string
5
+ externalAccountId?:string
6
+ provider:Provider
7
+ accountNumber?:string
8
+ routingNumber?:string
9
+ }
10
+
11
+
@@ -1,9 +1,9 @@
1
- import {IsNumber, IsString} from "class-validator";
2
-
3
- export default class ExchangeInfo {
4
- @IsString()
5
- currencyId: string;
6
-
7
- @IsNumber()
8
- rate: number;
1
+ import {IsNumber, IsString} from "class-validator";
2
+
3
+ export default class ExchangeInfo {
4
+ @IsString()
5
+ currencyId: string;
6
+
7
+ @IsNumber()
8
+ rate: number;
9
9
  }
@@ -1,37 +1,37 @@
1
- import {IsNumber, IsString, Matches, ValidateNested} from "class-validator";
2
- import {regexUuidV4} from "../../helpers/constans/regex";
3
- import AccountInfo from "./AccountInfo";
4
-
5
- export class GetAccountBalanceResponse {
6
- @IsString()
7
- @Matches(regexUuidV4,
8
- {
9
- message: 'directoryId must be a valid UUID v4',
10
- })
11
- id: string;
12
-
13
- @IsString()
14
- @Matches(regexUuidV4,
15
- {
16
- message: 'directoryId must be a valid UUID v4',
17
- })
18
- directoryId: string;
19
-
20
- @IsString()
21
- currencyId: string;
22
-
23
- @IsNumber()
24
- currentBalance: number;
25
-
26
- @IsNumber()
27
- availableBalance: number;
28
-
29
- @IsNumber()
30
- lockedBalance: number;
31
-
32
- @IsNumber()
33
- unsettledBalance: number;
34
-
35
- @ValidateNested()
36
- accountInfo: AccountInfo;
1
+ import {IsNumber, IsString, Matches, ValidateNested} from "class-validator";
2
+ import {regexUuidV4} from "../../helpers/constans/regex";
3
+ import AccountInfo from "./AccountInfo";
4
+
5
+ export class GetAccountBalanceResponse {
6
+ @IsString()
7
+ @Matches(regexUuidV4,
8
+ {
9
+ message: 'directoryId must be a valid UUID v4',
10
+ })
11
+ id: string;
12
+
13
+ @IsString()
14
+ @Matches(regexUuidV4,
15
+ {
16
+ message: 'directoryId must be a valid UUID v4',
17
+ })
18
+ directoryId: string;
19
+
20
+ @IsString()
21
+ currencyId: string;
22
+
23
+ @IsNumber()
24
+ currentBalance: number;
25
+
26
+ @IsNumber()
27
+ availableBalance: number;
28
+
29
+ @IsNumber()
30
+ lockedBalance: number;
31
+
32
+ @IsNumber()
33
+ unsettledBalance: number;
34
+
35
+ @ValidateNested()
36
+ accountInfo: AccountInfo;
37
37
  }
@@ -1,63 +1,63 @@
1
- import {AccountEntityStatusEnum} from "../enums/AccountEntityStatusEnum";
2
- import {AccountLevelEnum} from "../enums/AccountLevelEnum";
3
- import {IsBoolean, IsEnum, IsNumber, IsString, Matches} from "class-validator";
4
- import {regexUuidV4} from "../../helpers/constans/regex";
5
-
6
- export class GetAccountResponse {
7
- @IsString()
8
- @Matches(regexUuidV4,
9
- {
10
- message: 'directoryId must be a valid UUID v4',
11
- })
12
- id: string;
13
-
14
- @IsString()
15
- @Matches(regexUuidV4,
16
- {
17
- message: 'directoryId must be a valid UUID v4',
18
- })
19
- directoryId: string;
20
-
21
- @IsString()
22
- currencyId: string;
23
-
24
- @IsEnum(AccountEntityStatusEnum)
25
- status: AccountEntityStatusEnum;
26
-
27
- @IsEnum(AccountLevelEnum)
28
- accountLevel: AccountLevelEnum;
29
-
30
- @IsBoolean()
31
- isPrincipal: boolean;
32
-
33
- @IsBoolean()
34
- isHost: boolean;
35
-
36
- @IsString()
37
- externalAccountId: string;
38
-
39
- @IsNumber()
40
- totalBalance: number;
41
-
42
- @IsNumber()
43
- availableBalance: number;
44
-
45
- @IsNumber()
46
- lockedBalance: number;
47
-
48
- @IsNumber()
49
- unsettledBalance: number;
50
-
51
- @IsString()
52
- typeOfDirectoryId: string;
53
-
54
- @IsString()
55
- accountNumber: string;
56
-
57
- @IsString()
58
- routingNumber: string;
59
-
60
- @IsString()
61
- createdAt: string;
62
-
1
+ import {AccountEntityStatusEnum} from "../enums/AccountEntityStatusEnum";
2
+ import {AccountLevelEnum} from "../enums/AccountLevelEnum";
3
+ import {IsBoolean, IsEnum, IsNumber, IsString, Matches} from "class-validator";
4
+ import {regexUuidV4} from "../../helpers/constans/regex";
5
+
6
+ export class GetAccountResponse {
7
+ @IsString()
8
+ @Matches(regexUuidV4,
9
+ {
10
+ message: 'directoryId must be a valid UUID v4',
11
+ })
12
+ id: string;
13
+
14
+ @IsString()
15
+ @Matches(regexUuidV4,
16
+ {
17
+ message: 'directoryId must be a valid UUID v4',
18
+ })
19
+ directoryId: string;
20
+
21
+ @IsString()
22
+ currencyId: string;
23
+
24
+ @IsEnum(AccountEntityStatusEnum)
25
+ status: AccountEntityStatusEnum;
26
+
27
+ @IsEnum(AccountLevelEnum)
28
+ accountLevel: AccountLevelEnum;
29
+
30
+ @IsBoolean()
31
+ isPrincipal: boolean;
32
+
33
+ @IsBoolean()
34
+ isHost: boolean;
35
+
36
+ @IsString()
37
+ externalAccountId: string;
38
+
39
+ @IsNumber()
40
+ totalBalance: number;
41
+
42
+ @IsNumber()
43
+ availableBalance: number;
44
+
45
+ @IsNumber()
46
+ lockedBalance: number;
47
+
48
+ @IsNumber()
49
+ unsettledBalance: number;
50
+
51
+ @IsString()
52
+ typeOfDirectoryId: string;
53
+
54
+ @IsString()
55
+ accountNumber: string;
56
+
57
+ @IsString()
58
+ routingNumber: string;
59
+
60
+ @IsString()
61
+ createdAt: string;
62
+
63
63
  }
@@ -1,4 +1,4 @@
1
- export class GetBankAccountRequest {
2
- externalAccountId: string;
3
- accountType?: "USER" | "BUSINESS";
1
+ export class GetBankAccountRequest {
2
+ externalAccountId: string;
3
+ accountType?: "USER" | "BUSINESS";
4
4
  }
@@ -1,23 +1,23 @@
1
- import {BankAccountTypeEnum} from "../enums/BankAccountTypeEnum";
2
- import {BankAccountExternalAddress} from "./BankAccountExternalAddress";
3
- import {AccountEntityStatusEnum} from "../enums/AccountEntityStatusEnum";
4
-
5
- export class GetBankAccountResponse {
6
- id: string;
7
- businessId: string;
8
- userId: string;
9
- name: string;
10
- accountNumber: string;
11
- routingNumber: string;
12
- accountType: BankAccountTypeEnum;
13
- active: boolean;
14
- isPrimary: boolean;
15
- createdDate: string;
16
- updatedDate: string;
17
- deletedDate: string;
18
- updatedBy: string;
19
- balance: number;
20
- address?: BankAccountExternalAddress;
21
- kybStatus?: string;
22
- statusName?: AccountEntityStatusEnum;
1
+ import {BankAccountTypeEnum} from "../enums/BankAccountTypeEnum";
2
+ import {BankAccountExternalAddress} from "./BankAccountExternalAddress";
3
+ import {AccountEntityStatusEnum} from "../enums/AccountEntityStatusEnum";
4
+
5
+ export class GetBankAccountResponse {
6
+ id: string;
7
+ businessId: string;
8
+ userId: string;
9
+ name: string;
10
+ accountNumber: string;
11
+ routingNumber: string;
12
+ accountType: BankAccountTypeEnum;
13
+ active: boolean;
14
+ isPrimary: boolean;
15
+ createdDate: string;
16
+ updatedDate: string;
17
+ deletedDate: string;
18
+ updatedBy: string;
19
+ balance: number;
20
+ address?: BankAccountExternalAddress;
21
+ kybStatus?: string;
22
+ statusName?: AccountEntityStatusEnum;
23
23
  }
@@ -1,6 +1,6 @@
1
-
2
- export class GetBankAccountSensitiveInformationRequest {
3
- externalCardId: string;
4
- externalAccountId?: string;
5
- externalUserId?: string;
1
+
2
+ export class GetBankAccountSensitiveInformationRequest {
3
+ externalCardId: string;
4
+ externalAccountId?: string;
5
+ externalUserId?: string;
6
6
  }
@@ -1,9 +1,9 @@
1
-
2
- export class GetBankAccountSensitiveInformationResponse {
3
- name:string
4
- cvv :string
5
- expirationYear:string
6
- expirationMonth:string
7
- pin?:string
8
- pan: string
1
+
2
+ export class GetBankAccountSensitiveInformationResponse {
3
+ name:string
4
+ cvv :string
5
+ expirationYear:string
6
+ expirationMonth:string
7
+ pin?:string
8
+ pan: string
9
9
  }
@@ -1,3 +1,3 @@
1
- export class GetBankAccountUserRequest {
2
- externalUserId: string;
1
+ export class GetBankAccountUserRequest {
2
+ externalUserId: string;
3
3
  }
@@ -1,26 +1,26 @@
1
- import {BankAccountExternalAddress} from "./BankAccountExternalAddress";
2
- import {UserEntityStatusEnum} from "../enums/UserEntityStatusEnum";
3
- import {SexDocument, TypeOfDocument} from "../../identity";
4
- import {Country} from "../../country";
5
-
6
- export class GetBankAccountUserResponse {
7
- id: string;
8
- typeOfUserId: string;
9
- dob: string;
10
- name: string;
11
- lastName: string;
12
- phoneNumber: string;
13
- email: string;
14
- address?: BankAccountExternalAddress;
15
- status: UserEntityStatusEnum;
16
- sex?: SexDocument;
17
- documentNumber: string;
18
- typeOfDocumentId?: TypeOfDocument;
19
- countryId: Country;
20
- userAccountIds?: string[];
21
- createdDate?: string;
22
- updatedDate?: string;
23
- deletedDate?: string;
24
- updatedBy?: string;
25
- accountIds?: number[];
1
+ import {BankAccountExternalAddress} from "./BankAccountExternalAddress";
2
+ import {UserEntityStatusEnum} from "../enums/UserEntityStatusEnum";
3
+ import {SexDocument, TypeOfDocument} from "../../identity";
4
+ import {Country} from "../../country";
5
+
6
+ export class GetBankAccountUserResponse {
7
+ id: string;
8
+ typeOfUserId: string;
9
+ dob: string;
10
+ name: string;
11
+ lastName: string;
12
+ phoneNumber: string;
13
+ email: string;
14
+ address?: BankAccountExternalAddress;
15
+ status: UserEntityStatusEnum;
16
+ sex?: SexDocument;
17
+ documentNumber: string;
18
+ typeOfDocumentId?: TypeOfDocument;
19
+ countryId: Country;
20
+ userAccountIds?: string[];
21
+ createdDate?: string;
22
+ updatedDate?: string;
23
+ deletedDate?: string;
24
+ updatedBy?: string;
25
+ accountIds?: number[];
26
26
  }
@@ -1,44 +1,44 @@
1
- import {IsNumber, IsString, Matches} from "class-validator";
2
- import {regexUuidV4} from "../../helpers/constans/regex";
3
-
4
- export class GetPocketBalanceResponse {
5
- @IsString()
6
- @Matches(regexUuidV4,
7
- {
8
- message: 'directoryId must be a valid UUID v4',
9
- })
10
- id: string;
11
-
12
- @IsString()
13
- @Matches(regexUuidV4,
14
- {
15
- message: 'directoryId must be a valid UUID v4',
16
- })
17
- accountId: string;
18
-
19
- @IsString()
20
- @Matches(regexUuidV4,
21
- {
22
- message: 'directoryId must be a valid UUID v4',
23
- })
24
- ownerDirectoryId: string;
25
-
26
- @IsString()
27
- @Matches(regexUuidV4,
28
- {
29
- message: 'directoryId must be a valid UUID v4',
30
- })
31
- beneficiaryDirectoryId: string;
32
-
33
- @IsString()
34
- currencyId: string;
35
-
36
- @IsNumber()
37
- currentBalance: number;
38
-
39
- @IsNumber()
40
- availableBalance: number;
41
-
42
- @IsNumber()
43
- lockedBalance: number;
1
+ import {IsNumber, IsString, Matches} from "class-validator";
2
+ import {regexUuidV4} from "../../helpers/constans/regex";
3
+
4
+ export class GetPocketBalanceResponse {
5
+ @IsString()
6
+ @Matches(regexUuidV4,
7
+ {
8
+ message: 'directoryId must be a valid UUID v4',
9
+ })
10
+ id: string;
11
+
12
+ @IsString()
13
+ @Matches(regexUuidV4,
14
+ {
15
+ message: 'directoryId must be a valid UUID v4',
16
+ })
17
+ accountId: string;
18
+
19
+ @IsString()
20
+ @Matches(regexUuidV4,
21
+ {
22
+ message: 'directoryId must be a valid UUID v4',
23
+ })
24
+ ownerDirectoryId: string;
25
+
26
+ @IsString()
27
+ @Matches(regexUuidV4,
28
+ {
29
+ message: 'directoryId must be a valid UUID v4',
30
+ })
31
+ beneficiaryDirectoryId: string;
32
+
33
+ @IsString()
34
+ currencyId: string;
35
+
36
+ @IsNumber()
37
+ currentBalance: number;
38
+
39
+ @IsNumber()
40
+ availableBalance: number;
41
+
42
+ @IsNumber()
43
+ lockedBalance: number;
44
44
  }
@@ -1,9 +1,9 @@
1
- import AccountInfo from "./AccountInfo";
2
- import PocketItem from "./PocketItem";
3
- import ExchangeInfo from "./ExchangeInfo";
4
-
5
- export default class GetPocketResponse {
6
- accountInfo: AccountInfo;
7
- pockets: PocketItem[];
8
- exchangeInfo: ExchangeInfo;
1
+ import AccountInfo from "./AccountInfo";
2
+ import PocketItem from "./PocketItem";
3
+ import ExchangeInfo from "./ExchangeInfo";
4
+
5
+ export default class GetPocketResponse {
6
+ accountInfo: AccountInfo;
7
+ pockets: PocketItem[];
8
+ exchangeInfo: ExchangeInfo;
9
9
  }
@@ -1,15 +1,15 @@
1
- import {IsNumber, IsString} from "class-validator";
2
-
3
- export class PocketBalanceItem {
4
- @IsString()
5
- currencyId: string;
6
-
7
- @IsNumber()
8
- availableBalance: number;
9
-
10
- @IsNumber()
11
- lockedBalance: number;
12
-
13
- @IsNumber()
14
- unsettledBalance: number;
1
+ import {IsNumber, IsString} from "class-validator";
2
+
3
+ export class PocketBalanceItem {
4
+ @IsString()
5
+ currencyId: string;
6
+
7
+ @IsNumber()
8
+ availableBalance: number;
9
+
10
+ @IsNumber()
11
+ lockedBalance: number;
12
+
13
+ @IsNumber()
14
+ unsettledBalance: number;
15
15
  }
@@ -1,44 +1,44 @@
1
- import {IsBoolean, IsString, Matches, ValidateNested} from "class-validator";
2
- import {regexUuidV4} from "../../helpers/constans/regex";
3
- import {PocketBalanceItem} from "./PocketBalanceItem";
4
-
5
- export default class PocketItem {
6
- @IsString()
7
- @Matches(regexUuidV4,
8
- {
9
- message: 'directoryId must be a valid UUID v4',
10
- })
11
- id: string;
12
-
13
- @IsString()
14
- @Matches(regexUuidV4,
15
- {
16
- message: 'directoryId must be a valid UUID v4',
17
- })
18
- ownerDirectoryId: string;
19
-
20
- @IsString()
21
- @Matches(regexUuidV4,
22
- {
23
- message: 'directoryId must be a valid UUID v4',
24
- })
25
- beneficiaryDirectoryId: string;
26
-
27
- @IsBoolean()
28
- isOwnerPocket: boolean;
29
-
30
- @IsString()
31
- phoneNumber: string;
32
-
33
- @IsString()
34
- name: string;
35
-
36
- @IsString()
37
- lastName: string;
38
-
39
- @IsString()
40
- profilePicture: string;
41
-
42
- @ValidateNested()
43
- pocketBalance: PocketBalanceItem[];
1
+ import {IsBoolean, IsString, Matches, ValidateNested} from "class-validator";
2
+ import {regexUuidV4} from "../../helpers/constans/regex";
3
+ import {PocketBalanceItem} from "./PocketBalanceItem";
4
+
5
+ export default class PocketItem {
6
+ @IsString()
7
+ @Matches(regexUuidV4,
8
+ {
9
+ message: 'directoryId must be a valid UUID v4',
10
+ })
11
+ id: string;
12
+
13
+ @IsString()
14
+ @Matches(regexUuidV4,
15
+ {
16
+ message: 'directoryId must be a valid UUID v4',
17
+ })
18
+ ownerDirectoryId: string;
19
+
20
+ @IsString()
21
+ @Matches(regexUuidV4,
22
+ {
23
+ message: 'directoryId must be a valid UUID v4',
24
+ })
25
+ beneficiaryDirectoryId: string;
26
+
27
+ @IsBoolean()
28
+ isOwnerPocket: boolean;
29
+
30
+ @IsString()
31
+ phoneNumber: string;
32
+
33
+ @IsString()
34
+ name: string;
35
+
36
+ @IsString()
37
+ lastName: string;
38
+
39
+ @IsString()
40
+ profilePicture: string;
41
+
42
+ @ValidateNested()
43
+ pocketBalance: PocketBalanceItem[];
44
44
  }
@@ -1,27 +1,27 @@
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
-
7
- export class UpdateBankAccountUserRequest {
8
- id:string
9
- name?: string
10
- lastName?: string
11
- typeOfDocumentId?: TypeOfDocument
12
- documentNumber?: string
13
- sex?: SexDocument
14
- email?: string
15
- phoneNumber?: string
16
- status?: BankAccountUserStatus
17
- taxNumber?: string
18
- taxType?: "RFC"
19
- address?: AddressBase
20
- dob?:string
21
- nationality?:CountryId
22
- createdDate?: string
23
- updatedDate?: string
24
- deletedDate?: string
25
- updatedBy?: string
26
- governmentId?: string
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
+
7
+ export class UpdateBankAccountUserRequest {
8
+ id:string
9
+ name?: string
10
+ lastName?: string
11
+ typeOfDocumentId?: TypeOfDocument
12
+ documentNumber?: string
13
+ sex?: SexDocument
14
+ email?: string
15
+ phoneNumber?: string
16
+ status?: BankAccountUserStatus
17
+ taxNumber?: string
18
+ taxType?: "RFC"
19
+ address?: AddressBase
20
+ dob?:string
21
+ nationality?:CountryId
22
+ createdDate?: string
23
+ updatedDate?: string
24
+ deletedDate?: string
25
+ updatedBy?: string
26
+ governmentId?: string
27
27
  }