@fiado/type-kit 1.1.57 → 1.1.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.
Files changed (284) hide show
  1. package/README.md +70 -70
  2. package/bin/account/dtos/AccountResponse.d.ts +21 -0
  3. package/bin/account/dtos/AccountResponse.js +6 -0
  4. package/bin/account/dtos/CreateBankAccountInput.d.ts +8 -0
  5. package/bin/account/dtos/CreateBankAccountInput.js +6 -0
  6. package/bin/account/dtos/CreateBankAccountUserInput.d.ts +14 -0
  7. package/bin/account/dtos/CreateBankAccountUserInput.js +6 -0
  8. package/bin/account/dtos/PocketCreateRequest.d.ts +4 -0
  9. package/bin/account/dtos/PocketCreateRequest.js +31 -0
  10. package/bin/account/dtos/PocketCreateResponse.d.ts +2 -0
  11. package/bin/account/dtos/PocketCreateResponse.js +6 -0
  12. package/bin/account/enums/AccountStatus.d.ts +5 -0
  13. package/bin/account/enums/AccountStatus.js +9 -0
  14. package/bin/card/dtos/CardApplicationRequest.js +1 -1
  15. package/bin/card/dtos/CardCreateAdditionalRequest.d.ts +1 -1
  16. package/bin/card/dtos/CardCreateAdditionalRequest.js +1 -1
  17. package/bin/card/dtos/CardCreateRequest.d.ts +34 -0
  18. package/bin/card/dtos/CardCreateRequest.js +176 -0
  19. package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
  20. package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
  21. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
  22. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
  23. package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +28 -0
  24. package/bin/pomelo/dtos/PomeloCreateUserRequest.js +2 -0
  25. package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +35 -0
  26. package/bin/pomelo/dtos/PomeloCreateUserResponse.js +2 -0
  27. package/bin/pomelo/enums/CountryEnum.d.ts +8 -0
  28. package/bin/pomelo/enums/CountryEnum.js +12 -0
  29. package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +7 -0
  30. package/bin/pomelo/enums/IdentificationTypeEnum.js +11 -0
  31. package/bin/pomelo/enums/SexEnum.d.ts +4 -0
  32. package/bin/pomelo/enums/SexEnum.js +8 -0
  33. package/bin/pomelo/enums/TaxTypeEnum.d.ts +7 -0
  34. package/bin/pomelo/enums/TaxTypeEnum.js +11 -0
  35. package/bin/pomelo/enums/UserStatusEnum.d.ts +4 -0
  36. package/bin/pomelo/enums/UserStatusEnum.js +8 -0
  37. package/bin/pomelo/index.d.ts +7 -0
  38. package/bin/pomelo/index.js +25 -0
  39. package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +3 -0
  40. package/bin/productCatalog/dtos/GetProductCatalogRequest.js +19 -0
  41. package/bin/tern/dtos/TernAddress.d.ts +8 -0
  42. package/bin/tern/dtos/TernAddress.js +40 -0
  43. package/bin/tern/dtos/TernCreateAccountRequest.d.ts +7 -0
  44. package/bin/tern/dtos/TernCreateAccountRequest.js +33 -0
  45. package/bin/tern/dtos/TernCreateAccountResponse.d.ts +5 -0
  46. package/bin/tern/dtos/TernCreateAccountResponse.js +25 -0
  47. package/bin/tern/dtos/TernCreateUserRequest.d.ts +15 -0
  48. package/bin/tern/dtos/TernCreateUserRequest.js +70 -0
  49. package/bin/tern/dtos/TernCreateUserResponse.d.ts +8 -0
  50. package/bin/tern/dtos/TernCreateUserResponse.js +37 -0
  51. package/bin/tern/dtos/TernGetAccountRequest.d.ts +5 -0
  52. package/bin/tern/dtos/TernGetAccountRequest.js +25 -0
  53. package/bin/tern/dtos/TernGetAccountResponse.d.ts +22 -0
  54. package/bin/tern/dtos/TernGetAccountResponse.js +87 -0
  55. package/bin/tern/dtos/TernGetUserRequest.d.ts +3 -0
  56. package/bin/tern/dtos/TernGetUserRequest.js +20 -0
  57. package/bin/tern/dtos/TernGetUserResponse.d.ts +24 -0
  58. package/bin/tern/dtos/TernGetUserResponse.js +96 -0
  59. package/bin/tern/enums/TernAccountStatusEnum.d.ts +4 -0
  60. package/bin/tern/enums/TernAccountStatusEnum.js +8 -0
  61. package/bin/tern/enums/TernAccountTypeEnum.d.ts +5 -0
  62. package/bin/tern/enums/TernAccountTypeEnum.js +9 -0
  63. package/bin/tern/index.d.ts +11 -0
  64. package/bin/tern/index.js +29 -0
  65. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.d.ts +5 -0
  66. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.js +6 -0
  67. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.d.ts +7 -0
  68. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.js +6 -0
  69. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.d.ts +6 -0
  70. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.js +6 -0
  71. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.d.ts +4 -0
  72. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.js +6 -0
  73. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.d.ts +6 -0
  74. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.js +6 -0
  75. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.d.ts +7 -0
  76. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.js +6 -0
  77. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.d.ts +8 -0
  78. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.js +6 -0
  79. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.d.ts +16 -0
  80. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.js +6 -0
  81. package/package.json +23 -23
  82. package/src/account/dtos/AccountCreateRequest.ts +78 -78
  83. package/src/account/dtos/AccountCreateResponse.ts +7 -7
  84. package/src/account/dtos/AccountInfo.ts +39 -39
  85. package/src/account/dtos/AccountUpdateBalanceRequest.ts +6 -6
  86. package/src/account/dtos/BankAccountExternalAddress.ts +17 -17
  87. package/src/account/dtos/BankAccountP2pTransferRequest.ts +7 -7
  88. package/src/account/dtos/CreateBankAccountRequest.ts +11 -11
  89. package/src/account/dtos/CreateBankAccountResponse.ts +8 -8
  90. package/src/account/dtos/CreateBankAccountUserRequest.ts +17 -17
  91. package/src/account/dtos/CreateBankAccountUserResponse.ts +11 -11
  92. package/src/account/dtos/ExchangeInfo.ts +8 -8
  93. package/src/account/dtos/ExecuteP2pOperationRequest.ts +7 -7
  94. package/src/account/dtos/ExecutePocketOperationRequest.ts +5 -5
  95. package/src/account/dtos/GetAccountBalanceResponse.ts +36 -36
  96. package/src/account/dtos/GetAccountResponse.ts +62 -62
  97. package/src/account/dtos/GetBankAccountRequest.ts +3 -3
  98. package/src/account/dtos/GetBankAccountResponse.ts +22 -22
  99. package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +5 -5
  100. package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +8 -8
  101. package/src/account/dtos/GetBankAccountUserRequest.ts +2 -2
  102. package/src/account/dtos/GetBankAccountUserResponse.ts +25 -25
  103. package/src/account/dtos/GetPocketBalanceResponse.ts +46 -46
  104. package/src/account/dtos/GetPocketResponse.ts +8 -8
  105. package/src/account/dtos/PocketBalanceItem.ts +14 -14
  106. package/src/account/dtos/PocketItem.ts +43 -43
  107. package/src/account/dtos/UpdateBalanceOperation.ts +8 -8
  108. package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
  109. package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
  110. package/src/account/entities/AccountEntityBase.ts +12 -12
  111. package/src/account/enums/AccountEntityStatusEnum.ts +4 -4
  112. package/src/account/enums/AccountLevelEnum.ts +5 -5
  113. package/src/account/enums/BankAccountP2pTransferType.ts +5 -5
  114. package/src/account/enums/BankAccountTypeEnum.ts +2 -2
  115. package/src/account/enums/BankAccountUserStatusEnum.ts +4 -4
  116. package/src/account/enums/UserEntityStatusEnum.ts +4 -4
  117. package/src/account/index.ts +41 -41
  118. package/src/address/dtos/AddressBase.ts +130 -130
  119. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  120. package/src/address/dtos/AddressResponse.ts +41 -41
  121. package/src/address/dtos/AddressShippingCardRequest.ts +12 -12
  122. package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
  123. package/src/address/dtos/Geometry.ts +4 -4
  124. package/src/address/dtos/OfficeDetails.ts +30 -30
  125. package/src/address/dtos/OperationSchedule.ts +8 -8
  126. package/src/address/dtos/Place.ts +83 -83
  127. package/src/address/dtos/Shipping.ts +36 -36
  128. package/src/address/dtos/Timezone.ts +5 -5
  129. package/src/address/enums/AddressProvider.ts +10 -10
  130. package/src/address/enums/AddressStatus.ts +9 -9
  131. package/src/address/index.ts +16 -16
  132. package/src/app/enums/App.ts +10 -10
  133. package/src/app/index.ts +3 -3
  134. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  135. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  136. package/src/authentication/index.ts +3 -3
  137. package/src/beneficiary/dtos/AccountBeneficiaryCreateRequest.ts +41 -41
  138. package/src/beneficiary/dtos/AccountBeneficiaryResponse.ts +23 -23
  139. package/src/beneficiary/dtos/AccountBeneficiaryUpdateRequest.ts +39 -39
  140. package/src/beneficiary/enums/AccountType.ts +6 -6
  141. package/src/beneficiary/index.ts +7 -7
  142. package/src/card/dtos/CardActivateRequest.ts +12 -12
  143. package/src/card/dtos/CardAdditionalRequest.ts +25 -25
  144. package/src/card/dtos/CardAdditionalResponse.ts +12 -12
  145. package/src/card/dtos/CardApplicationRequest.ts +27 -27
  146. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  147. package/src/card/dtos/CardCreateAdditionalRequest.ts +40 -40
  148. package/src/card/dtos/CardResponse.ts +34 -34
  149. package/src/card/dtos/CardSensitiveInformationResponse.ts +18 -18
  150. package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
  151. package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
  152. package/src/card/dtos/CardSummaryResponse.ts +10 -10
  153. package/src/card/dtos/CardUpdateRequest.ts +11 -11
  154. package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
  155. package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
  156. package/src/card/dtos/Internal/AssignCardRequest.ts +8 -8
  157. package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
  158. package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
  159. package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
  160. package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
  161. package/src/card/dtos/Internal/GetBankAccountCardResponse.ts +32 -32
  162. package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
  163. package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
  164. package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +21 -21
  165. package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +5 -5
  166. package/src/card/enums/Brand.ts +7 -7
  167. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  168. package/src/card/enums/CardIssuing.ts +6 -6
  169. package/src/card/enums/CardType.ts +4 -4
  170. package/src/card/enums/CardUpdateKey.ts +4 -4
  171. package/src/card/enums/CreditOrDebit.ts +5 -5
  172. package/src/card/enums/DeliveryChannel.ts +7 -7
  173. package/src/card/enums/ExternalShippingStatus.ts +14 -14
  174. package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
  175. package/src/card/enums/IssuanceType.ts +5 -5
  176. package/src/card/enums/NominatedOrInnominated.ts +8 -8
  177. package/src/card/enums/OwnershipType.ts +3 -3
  178. package/src/card/enums/ShippingStatus.ts +8 -8
  179. package/src/card/enums/Status.ts +6 -6
  180. package/src/card/enums/UpdateKey.ts +5 -5
  181. package/src/card/enums/VirtualOrPhysical.ts +6 -6
  182. package/src/card/index.ts +50 -50
  183. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  184. package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
  185. package/src/contactInfo/dtos/GetAllContactInfoResponse.ts +13 -13
  186. package/src/contactInfo/enums/TypeOfContactIdEnum.ts +3 -3
  187. package/src/contactInfo/index.ts +1 -1
  188. package/src/contract/dtos/ContractCreateRequest.ts +29 -29
  189. package/src/contract/dtos/ContractCreateResponse.ts +2 -2
  190. package/src/contract/index.ts +4 -4
  191. package/src/country/enums/Country.ts +6 -6
  192. package/src/country/enums/CountryId.ts +6 -6
  193. package/src/country/index.ts +5 -5
  194. package/src/creditContract/dtos/CreditContractCreateRequest.ts +51 -51
  195. package/src/creditContract/enums/InstrumentEnum.ts +5 -5
  196. package/src/creditContract/index.ts +5 -5
  197. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  198. package/src/currency/index.ts +2 -2
  199. package/src/directory/dtos/DirectoryResponse.ts +18 -18
  200. package/src/directory/dtos/External.ts +6 -6
  201. package/src/directory/enums/Profile.ts +6 -6
  202. package/src/directory/enums/Scope.ts +7 -7
  203. package/src/directory/enums/Status.ts +8 -8
  204. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  205. package/src/directory/index.ts +7 -7
  206. package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
  207. package/src/eventBridge/index.ts +1 -1
  208. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  209. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  210. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  211. package/src/exchangeRate/dtos/GetExchangeRatesRequest.ts +3 -3
  212. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  213. package/src/exchangeRate/index.ts +9 -9
  214. package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
  215. package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
  216. package/src/genericMessage/index.ts +1 -1
  217. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  218. package/src/group/dtos/GroupCreateRequest.ts +54 -54
  219. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  220. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  221. package/src/group/dtos/GroupResponse.ts +17 -17
  222. package/src/group/dtos/GroupUpdateRequest.ts +31 -31
  223. package/src/group/enums/GroupAction.ts +8 -8
  224. package/src/group/enums/GroupStatus.ts +6 -6
  225. package/src/group/enums/RelationStatus.ts +8 -8
  226. package/src/group/enums/RelationType.ts +9 -9
  227. package/src/group/index.ts +18 -18
  228. package/src/header/TokenPayload.ts +18 -18
  229. package/src/header/index.ts +3 -3
  230. package/src/helpers/ValidationUtils.ts +32 -32
  231. package/src/helpers/constans/regex.ts +12 -12
  232. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  233. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  234. package/src/identity/dtos/PeopleResponse.ts +72 -72
  235. package/src/identity/dtos/PeopleUpdateRequest.ts +71 -71
  236. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  237. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  238. package/src/identity/enums/SexDocument.ts +6 -6
  239. package/src/identity/enums/TypeOfDocument.ts +5 -5
  240. package/src/identity/index.ts +12 -12
  241. package/src/index.ts +28 -28
  242. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
  243. package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
  244. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
  245. package/src/notificationMessages/enums/NotificationId.ts +13 -13
  246. package/src/notificationMessages/index.ts +5 -5
  247. package/src/productCatalog/dtos/CreateProductCatalogRequest.ts +14 -14
  248. package/src/productCatalog/dtos/GetProductCatalogResponse.ts +38 -38
  249. package/src/productCatalog/enums/ProductTaxFeeTypeEnum.ts +3 -3
  250. package/src/productCatalog/enums/ProductTypeEnum.ts +8 -8
  251. package/src/productCatalog/index.ts +4 -4
  252. package/src/provider/enums/Provider.ts +4 -4
  253. package/src/provider/index.ts +1 -1
  254. package/src/queue/dtos/QueueMessageBase.ts +13 -13
  255. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  256. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
  257. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
  258. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
  259. package/src/sessionActivity/index.ts +2 -2
  260. package/src/transaction/dtos/Credit.ts +21 -21
  261. package/src/transaction/dtos/Debit.ts +20 -20
  262. package/src/transaction/dtos/Notional.ts +20 -20
  263. package/src/transaction/dtos/Product.ts +21 -21
  264. package/src/transaction/dtos/Total.ts +20 -20
  265. package/src/transaction/dtos/TransactionCreateRequest.ts +101 -101
  266. package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
  267. package/src/transaction/enums/OperationEnum.ts +3 -3
  268. package/src/transaction/index.ts +5 -5
  269. package/src/transactionProcessor/dtos/AmountInfo.ts +6 -6
  270. package/src/transactionProcessor/dtos/AmountInfoItem.ts +3 -3
  271. package/src/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.ts +17 -17
  272. package/src/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.ts +16 -16
  273. package/src/transactionProcessor/dtos/AuthorizeP2pTransactionRequest.ts +5 -5
  274. package/src/transactionProcessor/dtos/AuthorizePocketTransactionRequest.ts +8 -8
  275. package/src/transactionProcessor/dtos/CardInfo.ts +5 -5
  276. package/src/transactionProcessor/dtos/InstallmentsInfo.ts +6 -6
  277. package/src/transactionProcessor/dtos/MerchantInfo.ts +6 -6
  278. package/src/transactionProcessor/dtos/TransactionInfo.ts +7 -7
  279. package/src/transactionProcessor/enums/TransactionProcessorCodesEnum.ts +12 -12
  280. package/src/transactionProcessor/index.ts +13 -13
  281. package/.idea/aws.xml +0 -11
  282. package/.idea/fiado-type-kit.iml +0 -12
  283. package/.idea/modules.xml +0 -8
  284. package/.idea/vcs.xml +0 -6
@@ -1,20 +1,20 @@
1
- import {IsNotEmpty, IsNumber} from "class-validator";
2
-
3
- export class Notional {
4
-
5
- @IsNotEmpty()
6
- @IsNumber()
7
- notional: number;
8
-
9
- @IsNotEmpty()
10
- @IsNumber()
11
- productFees: number;
12
-
13
- @IsNotEmpty()
14
- @IsNumber()
15
- productTax: number;
16
-
17
- @IsNotEmpty()
18
- @IsNumber()
19
- total: number;
20
- }
1
+ import {IsNotEmpty, IsNumber} from "class-validator";
2
+
3
+ export class Notional {
4
+
5
+ @IsNotEmpty()
6
+ @IsNumber()
7
+ notional: number;
8
+
9
+ @IsNotEmpty()
10
+ @IsNumber()
11
+ productFees: number;
12
+
13
+ @IsNotEmpty()
14
+ @IsNumber()
15
+ productTax: number;
16
+
17
+ @IsNotEmpty()
18
+ @IsNumber()
19
+ total: number;
20
+ }
@@ -1,21 +1,21 @@
1
- import {IsNotEmpty, IsNumber, IsString} from "class-validator";
2
- import { ProductTypeEnum } from "../../productCatalog";
3
-
4
- export class Product {
5
-
6
- @IsNotEmpty()
7
- @IsString()
8
- type: ProductTypeEnum;
9
-
10
- @IsNotEmpty()
11
- @IsString()
12
- description: string;
13
-
14
- @IsNotEmpty()
15
- @IsString()
16
- displayName: string;
17
-
18
- @IsNotEmpty()
19
- @IsString()
20
- relatedProductId: string;
21
- }
1
+ import {IsNotEmpty, IsNumber, IsString} from "class-validator";
2
+ import { ProductTypeEnum } from "../../productCatalog";
3
+
4
+ export class Product {
5
+
6
+ @IsNotEmpty()
7
+ @IsString()
8
+ type: ProductTypeEnum;
9
+
10
+ @IsNotEmpty()
11
+ @IsString()
12
+ description: string;
13
+
14
+ @IsNotEmpty()
15
+ @IsString()
16
+ displayName: string;
17
+
18
+ @IsNotEmpty()
19
+ @IsString()
20
+ relatedProductId: string;
21
+ }
@@ -1,20 +1,20 @@
1
- import {IsNotEmpty, IsNumber} from "class-validator";
2
-
3
- export class Total {
4
-
5
- @IsNotEmpty()
6
- @IsNumber()
7
- totalNotional: number;
8
-
9
- @IsNotEmpty()
10
- @IsNumber()
11
- totalFees: number;
12
-
13
- @IsNotEmpty()
14
- @IsNumber()
15
- totalTax: number;
16
-
17
- @IsNotEmpty()
18
- @IsNumber()
19
- totalTotal: number;
20
- }
1
+ import {IsNotEmpty, IsNumber} from "class-validator";
2
+
3
+ export class Total {
4
+
5
+ @IsNotEmpty()
6
+ @IsNumber()
7
+ totalNotional: number;
8
+
9
+ @IsNotEmpty()
10
+ @IsNumber()
11
+ totalFees: number;
12
+
13
+ @IsNotEmpty()
14
+ @IsNumber()
15
+ totalTax: number;
16
+
17
+ @IsNotEmpty()
18
+ @IsNumber()
19
+ totalTotal: number;
20
+ }
@@ -1,101 +1,101 @@
1
- import {IsEmpty, IsEnum, IsNotEmpty, IsString, Length, Matches, ValidateNested} from "class-validator";
2
- import {regexUuidV4} from "../../helpers/constans/regex";
3
- import {CountryId} from "../../country";
4
- import {OperationEnum} from "../enums/OperationEnum";
5
- import {TypeOfDirectoryId} from "../../directory";
6
- import {Type} from "class-transformer";
7
- import {Notional} from "./Notional";
8
- import {Credit} from "./Credit";
9
- import {Debit} from "./Debit";
10
- import {Total} from "./Total";
11
- import {Product} from "./Product";
12
-
13
- export class TransactionCreateRequest {
14
-
15
- @IsNotEmpty()
16
- @IsString()
17
- @Length(3, 50)
18
- transactionNumber: string;
19
-
20
- @IsNotEmpty()
21
- @IsString()
22
- @Matches(regexUuidV4,
23
- {
24
- message: 'directoryId must be a valid UUID v4',
25
- })
26
- directoryId: string;
27
-
28
- @IsNotEmpty()
29
- @IsString()
30
- @Matches(regexUuidV4,
31
- {
32
- message: 'peopleId must be a valid UUID v4',
33
- })
34
- peopleId: string;
35
-
36
- @IsNotEmpty()
37
- @IsString()
38
- accountId: string;
39
-
40
- @IsNotEmpty()
41
- @IsString()
42
- pocketId: string;
43
-
44
- @IsNotEmpty()
45
- @IsString()
46
- @Matches(regexUuidV4,
47
- {
48
- message: 'ownerDirectoryId must be a valid UUID v4',
49
- })
50
- ownerDirectoryId: string;
51
-
52
- @IsEmpty()
53
- @IsString()
54
- @Matches(regexUuidV4,
55
- {
56
- message: 'ownerDirectoryId must be a valid UUID v4',
57
- })
58
- targetDirectoryId: string | null;
59
-
60
- @IsNotEmpty()
61
- @IsString()
62
- transactionDate: string;
63
-
64
- @IsString()
65
- sessionId: string;
66
-
67
- @IsNotEmpty()
68
- @IsEnum(CountryId)
69
- currencyId: CountryId;
70
-
71
- @IsNotEmpty()
72
- @IsEnum(OperationEnum)
73
- operation: OperationEnum;
74
-
75
- @ValidateNested({each: true})
76
- @Type(() => Notional)
77
- notional: Notional;
78
-
79
- @ValidateNested({each: true})
80
- @Type(() => Credit)
81
- credit: Credit;
82
-
83
- @ValidateNested({each: true})
84
- @Type(() => Debit)
85
- debit: Debit;
86
-
87
- @ValidateNested({each: true})
88
- @Type(() => Total)
89
- total: Total;
90
-
91
- @ValidateNested({each: true})
92
- @Type(() => Product)
93
- product: Product;
94
-
95
- @IsNotEmpty()
96
- @IsEnum(TypeOfDirectoryId)
97
- typeOfDirectoryId: TypeOfDirectoryId;
98
-
99
- }
100
-
101
-
1
+ import {IsEmpty, IsEnum, IsNotEmpty, IsString, Length, Matches, ValidateNested} from "class-validator";
2
+ import {regexUuidV4} from "../../helpers/constans/regex";
3
+ import {CountryId} from "../../country";
4
+ import {OperationEnum} from "../enums/OperationEnum";
5
+ import {TypeOfDirectoryId} from "../../directory";
6
+ import {Type} from "class-transformer";
7
+ import {Notional} from "./Notional";
8
+ import {Credit} from "./Credit";
9
+ import {Debit} from "./Debit";
10
+ import {Total} from "./Total";
11
+ import {Product} from "./Product";
12
+
13
+ export class TransactionCreateRequest {
14
+
15
+ @IsNotEmpty()
16
+ @IsString()
17
+ @Length(3, 50)
18
+ transactionNumber: string;
19
+
20
+ @IsNotEmpty()
21
+ @IsString()
22
+ @Matches(regexUuidV4,
23
+ {
24
+ message: 'directoryId must be a valid UUID v4',
25
+ })
26
+ directoryId: string;
27
+
28
+ @IsNotEmpty()
29
+ @IsString()
30
+ @Matches(regexUuidV4,
31
+ {
32
+ message: 'peopleId must be a valid UUID v4',
33
+ })
34
+ peopleId: string;
35
+
36
+ @IsNotEmpty()
37
+ @IsString()
38
+ accountId: string;
39
+
40
+ @IsNotEmpty()
41
+ @IsString()
42
+ pocketId: string;
43
+
44
+ @IsNotEmpty()
45
+ @IsString()
46
+ @Matches(regexUuidV4,
47
+ {
48
+ message: 'ownerDirectoryId must be a valid UUID v4',
49
+ })
50
+ ownerDirectoryId: string;
51
+
52
+ @IsEmpty()
53
+ @IsString()
54
+ @Matches(regexUuidV4,
55
+ {
56
+ message: 'ownerDirectoryId must be a valid UUID v4',
57
+ })
58
+ targetDirectoryId: string | null;
59
+
60
+ @IsNotEmpty()
61
+ @IsString()
62
+ transactionDate: string;
63
+
64
+ @IsString()
65
+ sessionId: string;
66
+
67
+ @IsNotEmpty()
68
+ @IsEnum(CountryId)
69
+ currencyId: CountryId;
70
+
71
+ @IsNotEmpty()
72
+ @IsEnum(OperationEnum)
73
+ operation: OperationEnum;
74
+
75
+ @ValidateNested({each: true})
76
+ @Type(() => Notional)
77
+ notional: Notional;
78
+
79
+ @ValidateNested({each: true})
80
+ @Type(() => Credit)
81
+ credit: Credit;
82
+
83
+ @ValidateNested({each: true})
84
+ @Type(() => Debit)
85
+ debit: Debit;
86
+
87
+ @ValidateNested({each: true})
88
+ @Type(() => Total)
89
+ total: Total;
90
+
91
+ @ValidateNested({each: true})
92
+ @Type(() => Product)
93
+ product: Product;
94
+
95
+ @IsNotEmpty()
96
+ @IsEnum(TypeOfDirectoryId)
97
+ typeOfDirectoryId: TypeOfDirectoryId;
98
+
99
+ }
100
+
101
+
@@ -1,4 +1,4 @@
1
-
2
- export class TransactionCreateResponse {
3
-
4
- }
1
+
2
+ export class TransactionCreateResponse {
3
+
4
+ }
@@ -1,4 +1,4 @@
1
- export enum OperationEnum {
2
- ADD = "ADD",
3
- SUBSTRACT = "SUBSTRACT"
1
+ export enum OperationEnum {
2
+ ADD = "ADD",
3
+ SUBSTRACT = "SUBSTRACT"
4
4
  }
@@ -1,6 +1,6 @@
1
- //dtos
2
- export * from './dtos/TransactionCreateRequest';
3
- export * from './dtos/TransactionCreateResponse';
4
-
5
- //enums
1
+ //dtos
2
+ export * from './dtos/TransactionCreateRequest';
3
+ export * from './dtos/TransactionCreateResponse';
4
+
5
+ //enums
6
6
  export * from './enums/OperationEnum';
@@ -1,7 +1,7 @@
1
- import {AmountInfoItem} from "./AmountInfoItem";
2
-
3
- export class AmountInfo {
4
- transaction: AmountInfoItem;
5
- settlement: AmountInfoItem;
6
- local: AmountInfoItem;
1
+ import {AmountInfoItem} from "./AmountInfoItem";
2
+
3
+ export class AmountInfo {
4
+ transaction: AmountInfoItem;
5
+ settlement: AmountInfoItem;
6
+ local: AmountInfoItem;
7
7
  }
@@ -1,4 +1,4 @@
1
- export class AmountInfoItem {
2
- total: number;
3
- currencyId: string;
1
+ export class AmountInfoItem {
2
+ total: number;
3
+ currencyId: string;
4
4
  }
@@ -1,18 +1,18 @@
1
- import {TransactionInfo} from "./TransactionInfo";
2
- import {MerchantInfo} from "./MerchantInfo";
3
- import {CardInfo} from "./CardInfo";
4
- import {AmountInfo} from "./AmountInfo";
5
- import {CountryId} from "../../country";
6
- import {InstallmentsInfo} from "./InstallmentsInfo";
7
-
8
- export class AuthorizeCreditCardAdjustmentRequest {
9
- idempotencyKey: string;
10
- externalUserId: string;
11
- cardInfo: CardInfo;
12
- productCatalogId: string;
13
- merchantInfo: MerchantInfo;
14
- amountInfo: AmountInfo;
15
- transactionInfo: TransactionInfo;
16
- countryId: CountryId;
17
- installments: InstallmentsInfo;
1
+ import {TransactionInfo} from "./TransactionInfo";
2
+ import {MerchantInfo} from "./MerchantInfo";
3
+ import {CardInfo} from "./CardInfo";
4
+ import {AmountInfo} from "./AmountInfo";
5
+ import {CountryId} from "../../country";
6
+ import {InstallmentsInfo} from "./InstallmentsInfo";
7
+
8
+ export class AuthorizeCreditCardAdjustmentRequest {
9
+ idempotencyKey: string;
10
+ externalUserId: string;
11
+ cardInfo: CardInfo;
12
+ productCatalogId: string;
13
+ merchantInfo: MerchantInfo;
14
+ amountInfo: AmountInfo;
15
+ transactionInfo: TransactionInfo;
16
+ countryId: CountryId;
17
+ installments: InstallmentsInfo;
18
18
  }
@@ -1,17 +1,17 @@
1
- import {CardInfo} from "./CardInfo";
2
- import {MerchantInfo} from "./MerchantInfo";
3
- import {AmountInfo} from "./AmountInfo";
4
- import {TransactionInfo} from "./TransactionInfo";
5
- import {CountryId} from "../../country";
6
-
7
- export class AuthorizeCreditCardPurchaseRequest {
8
- idempotencyKey: string;
9
- externalUserId: string;
10
- cardInfo: CardInfo | null;
11
- productCatalogId: string;
12
- merchantInfo: MerchantInfo;
13
- amountInfo: AmountInfo;
14
- transactionInfo: TransactionInfo;
15
- countryId: CountryId;
16
- additionalData: any;
1
+ import {CardInfo} from "./CardInfo";
2
+ import {MerchantInfo} from "./MerchantInfo";
3
+ import {AmountInfo} from "./AmountInfo";
4
+ import {TransactionInfo} from "./TransactionInfo";
5
+ import {CountryId} from "../../country";
6
+
7
+ export class AuthorizeCreditCardPurchaseRequest {
8
+ idempotencyKey: string;
9
+ externalUserId: string;
10
+ cardInfo: CardInfo | null;
11
+ productCatalogId: string;
12
+ merchantInfo: MerchantInfo;
13
+ amountInfo: AmountInfo;
14
+ transactionInfo: TransactionInfo;
15
+ countryId: CountryId;
16
+ additionalData: any;
17
17
  }
@@ -1,6 +1,6 @@
1
- export class AuthorizeP2pTransactionRequest {
2
- idempotencyKey: string;
3
- productCatalogId: string;
4
- targetDirectoryId: string;
5
- amount: number;
1
+ export class AuthorizeP2pTransactionRequest {
2
+ idempotencyKey: string;
3
+ productCatalogId: string;
4
+ targetDirectoryId: string;
5
+ amount: number;
6
6
  }
@@ -1,9 +1,9 @@
1
- import {OperationEnum} from "../../transaction";
2
-
3
- export class AuthorizePocketTransactionRequest {
4
- idempotencyKey: string;
5
- productCatalogId: string;
6
- targetPocketId: string;
7
- operation: OperationEnum;
8
- amount: number;
1
+ import {OperationEnum} from "../../transaction";
2
+
3
+ export class AuthorizePocketTransactionRequest {
4
+ idempotencyKey: string;
5
+ productCatalogId: string;
6
+ targetPocketId: string;
7
+ operation: OperationEnum;
8
+ amount: number;
9
9
  }
@@ -1,6 +1,6 @@
1
- export class CardInfo {
2
- productType: string;
3
- lastFour: string;
4
- provider: string;
5
- externalCardId: string;
1
+ export class CardInfo {
2
+ productType: string;
3
+ lastFour: string;
4
+ provider: string;
5
+ externalCardId: string;
6
6
  }
@@ -1,7 +1,7 @@
1
- export class InstallmentsInfo {
2
- quantity: string;
3
- creditType: string;
4
- gracePeriod: string;
5
- currentInstallment: string;
6
- promotionType: string;
1
+ export class InstallmentsInfo {
2
+ quantity: string;
3
+ creditType: string;
4
+ gracePeriod: string;
5
+ currentInstallment: string;
6
+ promotionType: string;
7
7
  }
@@ -1,7 +1,7 @@
1
- export class MerchantInfo {
2
- id: string;
3
- address: string;
4
- name: string;
5
- mcc: string;
6
- terminalId: string;
1
+ export class MerchantInfo {
2
+ id: string;
3
+ address: string;
4
+ name: string;
5
+ mcc: string;
6
+ terminalId: string;
7
7
  }
@@ -1,8 +1,8 @@
1
- export class TransactionInfo {
2
- id: string;
3
- type: string;
4
- network: string;
5
- date: string;
6
- originalTransactionId: string;
7
- pointType: string;
1
+ export class TransactionInfo {
2
+ id: string;
3
+ type: string;
4
+ network: string;
5
+ date: string;
6
+ originalTransactionId: string;
7
+ pointType: string;
8
8
  }
@@ -1,13 +1,13 @@
1
- export enum TransactionProcessorCodesEnum {
2
- CARD_NOT_FOUND = "CARD_NOT_FOUND",
3
- CARD_NOT_ACTIVE = "CARD_NOT_ACTIVE",
4
- USER_NOT_ACTIVE = "USER_NOT_ACTIVE",
5
- DOCUMENT_ID_NOT_FOUND = "DOCUMENT_ID_NOT_FOUND",
6
- TRX_AMOUNT_LIMIT_EXCEEDED = "TRX_AMOUNT_LIMIT_EXCEEDED",
7
- INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
8
- USER_NOT_AUTHORIZED_FOR_CREDIT = "USER_NOT_AUTHORIZED_FOR_CREDIT",
9
- ACCOUNT_BLOCKED = "ACCOUNT_BLOCKED",
10
- SYSTEM_ERROR = "SYSTEM_ERROR",
11
- PRODUCT_NOT_FOUND = "PRODUCT_NOT_FOUND",
12
- TRANSACTION_APPROVED = "TRANSACTION_APPROVED"
1
+ export enum TransactionProcessorCodesEnum {
2
+ CARD_NOT_FOUND = "CARD_NOT_FOUND",
3
+ CARD_NOT_ACTIVE = "CARD_NOT_ACTIVE",
4
+ USER_NOT_ACTIVE = "USER_NOT_ACTIVE",
5
+ DOCUMENT_ID_NOT_FOUND = "DOCUMENT_ID_NOT_FOUND",
6
+ TRX_AMOUNT_LIMIT_EXCEEDED = "TRX_AMOUNT_LIMIT_EXCEEDED",
7
+ INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
8
+ USER_NOT_AUTHORIZED_FOR_CREDIT = "USER_NOT_AUTHORIZED_FOR_CREDIT",
9
+ ACCOUNT_BLOCKED = "ACCOUNT_BLOCKED",
10
+ SYSTEM_ERROR = "SYSTEM_ERROR",
11
+ PRODUCT_NOT_FOUND = "PRODUCT_NOT_FOUND",
12
+ TRANSACTION_APPROVED = "TRANSACTION_APPROVED"
13
13
  }
@@ -1,13 +1,13 @@
1
- export * from './dtos/AmountInfo';
2
- export * from './dtos/AmountInfoItem';
3
- export * from './dtos/AuthorizeCreditCardAdjustmentRequest';
4
- export * from './dtos/AuthorizeCreditCardPurchaseRequest';
5
- export * from './dtos/AuthorizeP2pTransactionRequest';
6
- export * from './dtos/AuthorizePocketTransactionRequest';
7
- export * from './dtos/CardInfo';
8
- export * from './dtos/InstallmentsInfo';
9
- export * from './dtos/MerchantInfo';
10
- export * from './dtos/TransactionInfo';
11
-
12
- export * from './enums/TransactionProcessorCodesEnum';
13
-
1
+ export * from './dtos/AmountInfo';
2
+ export * from './dtos/AmountInfoItem';
3
+ export * from './dtos/AuthorizeCreditCardAdjustmentRequest';
4
+ export * from './dtos/AuthorizeCreditCardPurchaseRequest';
5
+ export * from './dtos/AuthorizeP2pTransactionRequest';
6
+ export * from './dtos/AuthorizePocketTransactionRequest';
7
+ export * from './dtos/CardInfo';
8
+ export * from './dtos/InstallmentsInfo';
9
+ export * from './dtos/MerchantInfo';
10
+ export * from './dtos/TransactionInfo';
11
+
12
+ export * from './enums/TransactionProcessorCodesEnum';
13
+
package/.idea/aws.xml DELETED
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="accountSettings">
4
- <option name="activeRegion" value="us-east-1" />
5
- <option name="recentlyUsedRegions">
6
- <list>
7
- <option value="us-east-1" />
8
- </list>
9
- </option>
10
- </component>
11
- </project>
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
- <excludeFolder url="file://$MODULE_DIR$/temp" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
12
- </module>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/fiado-type-kit.iml" filepath="$PROJECT_DIR$/.idea/fiado-type-kit.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>