@fiado/type-kit 1.2.10 → 1.2.11

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 (307) 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/CardCreateAdditionalRequest.d.ts +4 -0
  15. package/bin/card/dtos/CardCreateAdditionalRequest.js +13 -0
  16. package/bin/card/dtos/CardCreateRequest.d.ts +34 -0
  17. package/bin/card/dtos/CardCreateRequest.js +176 -0
  18. package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
  19. package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
  20. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
  21. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
  22. package/bin/identity/dtos/PeopleResponse.d.ts +3 -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 +79 -79
  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 +17 -17
  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/bankAccount/dtos/ExternalAccountCurrency.ts +3 -3
  138. package/src/bankAccount/dtos/ExternalAccountType.ts +3 -3
  139. package/src/bankAccount/dtos/GetExternalBankAccountRequest.ts +11 -11
  140. package/src/bankAccount/dtos/GetExternalBankAccountResponse.ts +15 -15
  141. package/src/bankAccount/dtos/GetExternalBankResponse.ts +13 -13
  142. package/src/bankAccount/index.ts +4 -4
  143. package/src/bbvaRst/dtos/CreateRSTTransactionRequest.ts +14 -14
  144. package/src/bbvaRst/dtos/CreateRSTTransactionResponse.ts +9 -9
  145. package/src/bbvaRst/enums/RSTStatusEnum.ts +4 -4
  146. package/src/bbvaRst/index.ts +2 -2
  147. package/src/beneficiary/dtos/AccountBeneficiaryCreateRequest.ts +41 -41
  148. package/src/beneficiary/dtos/AccountBeneficiaryResponse.ts +23 -23
  149. package/src/beneficiary/dtos/AccountBeneficiaryUpdateRequest.ts +39 -39
  150. package/src/beneficiary/enums/AccountType.ts +6 -6
  151. package/src/beneficiary/index.ts +7 -7
  152. package/src/card/dtos/CardActivateRequest.ts +12 -12
  153. package/src/card/dtos/CardAdditionalRequest.ts +25 -25
  154. package/src/card/dtos/CardAdditionalResponse.ts +14 -14
  155. package/src/card/dtos/CardApplicationRequest.ts +27 -27
  156. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  157. package/src/card/dtos/CardCreateAdditionalRequest.ts +78 -65
  158. package/src/card/dtos/CardResponse.ts +34 -34
  159. package/src/card/dtos/CardSensitiveInformationResponse.ts +18 -18
  160. package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
  161. package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
  162. package/src/card/dtos/CardSummaryResponse.ts +10 -10
  163. package/src/card/dtos/CardUpdateRequest.ts +11 -11
  164. package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
  165. package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
  166. package/src/card/dtos/Internal/AssignCardRequest.ts +8 -8
  167. package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
  168. package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
  169. package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
  170. package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
  171. package/src/card/dtos/Internal/GetBankAccountCardResponse.ts +32 -32
  172. package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
  173. package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
  174. package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +21 -21
  175. package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +5 -5
  176. package/src/card/enums/Brand.ts +7 -7
  177. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  178. package/src/card/enums/CardIssuing.ts +6 -6
  179. package/src/card/enums/CardType.ts +4 -4
  180. package/src/card/enums/CardUpdateKey.ts +4 -4
  181. package/src/card/enums/CreditOrDebit.ts +5 -5
  182. package/src/card/enums/DeliveryChannel.ts +7 -7
  183. package/src/card/enums/ExternalShippingStatus.ts +14 -14
  184. package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
  185. package/src/card/enums/IssuanceType.ts +5 -5
  186. package/src/card/enums/NominatedOrInnominated.ts +8 -8
  187. package/src/card/enums/OwnershipType.ts +3 -3
  188. package/src/card/enums/ShippingStatus.ts +8 -8
  189. package/src/card/enums/Status.ts +6 -6
  190. package/src/card/enums/UpdateKey.ts +5 -5
  191. package/src/card/enums/VirtualOrPhysical.ts +6 -6
  192. package/src/card/index.ts +50 -50
  193. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  194. package/src/card/validations/IsPhoneNumberConstraint.ts +29 -29
  195. package/src/contactInfo/dtos/ContactInfoCreateRequest.ts +47 -47
  196. package/src/contactInfo/dtos/GetAllContactInfoResponse.ts +13 -13
  197. package/src/contactInfo/enums/TypeOfContactIdEnum.ts +3 -3
  198. package/src/contactInfo/index.ts +2 -2
  199. package/src/contract/dtos/ContractCreateRequest.ts +29 -29
  200. package/src/contract/dtos/ContractCreateResponse.ts +2 -2
  201. package/src/contract/index.ts +4 -4
  202. package/src/country/enums/Country.ts +6 -6
  203. package/src/country/enums/CountryId.ts +6 -6
  204. package/src/country/index.ts +5 -5
  205. package/src/creditContract/dtos/CreditContractCreateRequest.ts +51 -51
  206. package/src/creditContract/enums/InstrumentEnum.ts +5 -5
  207. package/src/creditContract/index.ts +5 -5
  208. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  209. package/src/currency/index.ts +2 -2
  210. package/src/directory/dtos/DirectoryResponse.ts +19 -19
  211. package/src/directory/dtos/External.ts +6 -6
  212. package/src/directory/enums/Profile.ts +6 -6
  213. package/src/directory/enums/Scope.ts +7 -7
  214. package/src/directory/enums/Status.ts +8 -8
  215. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  216. package/src/directory/index.ts +7 -7
  217. package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
  218. package/src/eventBridge/index.ts +1 -1
  219. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  220. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  221. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  222. package/src/exchangeRate/dtos/GetExchangeRatesRequest.ts +3 -3
  223. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  224. package/src/exchangeRate/index.ts +9 -9
  225. package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
  226. package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
  227. package/src/genericMessage/index.ts +1 -1
  228. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  229. package/src/group/dtos/GroupCreateRequest.ts +54 -54
  230. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  231. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  232. package/src/group/dtos/GroupResponse.ts +17 -17
  233. package/src/group/dtos/GroupUpdateRequest.ts +31 -31
  234. package/src/group/enums/GroupAction.ts +8 -8
  235. package/src/group/enums/GroupStatus.ts +6 -6
  236. package/src/group/enums/RelationStatus.ts +8 -8
  237. package/src/group/enums/RelationType.ts +9 -9
  238. package/src/group/index.ts +18 -18
  239. package/src/header/TokenPayload.ts +18 -18
  240. package/src/header/index.ts +3 -3
  241. package/src/helpers/ValidationUtils.ts +32 -32
  242. package/src/helpers/constans/regex.ts +12 -12
  243. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  244. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  245. package/src/identity/dtos/PeopleResponse.ts +74 -72
  246. package/src/identity/dtos/PeopleUpdateRequest.ts +71 -71
  247. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  248. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  249. package/src/identity/enums/SexDocument.ts +6 -6
  250. package/src/identity/enums/TypeOfDocument.ts +5 -5
  251. package/src/identity/index.ts +12 -12
  252. package/src/index.ts +32 -32
  253. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
  254. package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
  255. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
  256. package/src/notificationMessages/enums/NotificationId.ts +13 -13
  257. package/src/notificationMessages/index.ts +5 -5
  258. package/src/p2pContact/dtos/CreateP2pContactRequest.ts +8 -8
  259. package/src/productCatalog/dtos/CreateProductCatalogRequest.ts +14 -14
  260. package/src/productCatalog/dtos/GetProductCatalogResponse.ts +38 -38
  261. package/src/productCatalog/enums/ProductTaxFeeTypeEnum.ts +3 -3
  262. package/src/productCatalog/enums/ProductTypeEnum.ts +11 -11
  263. package/src/productCatalog/index.ts +4 -4
  264. package/src/provider/enums/Provider.ts +4 -4
  265. package/src/provider/index.ts +1 -1
  266. package/src/queue/dtos/QueueMessageBase.ts +13 -13
  267. package/src/servicePayment/dtos/GetCatalogParams.ts +5 -5
  268. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  269. package/src/servicePayment/index.ts +1 -1
  270. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
  271. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
  272. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
  273. package/src/sessionActivity/index.ts +2 -2
  274. package/src/stpSpei/dtos/PutStpOrderRequest.ts +13 -13
  275. package/src/stpSpei/dtos/SpeiWebhookMessage.ts +9 -9
  276. package/src/stpSpei/enums/WebhookMessageStatusEnum.ts +4 -4
  277. package/src/stpSpei/index.ts +3 -3
  278. package/src/transaction/dtos/Credit.ts +24 -24
  279. package/src/transaction/dtos/Debit.ts +20 -20
  280. package/src/transaction/dtos/Notional.ts +20 -20
  281. package/src/transaction/dtos/Product.ts +22 -22
  282. package/src/transaction/dtos/Total.ts +20 -20
  283. package/src/transaction/dtos/TransactionCreateRequest.ts +99 -99
  284. package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
  285. package/src/transaction/dtos/TransactionGetResponse.ts +17 -17
  286. package/src/transaction/enums/OperationEnum.ts +3 -3
  287. package/src/transaction/enums/TransactionSourceEnum.ts +4 -4
  288. package/src/transaction/index.ts +8 -8
  289. package/src/transactionProcessor/dtos/AmountInfo.ts +6 -6
  290. package/src/transactionProcessor/dtos/AmountInfoItem.ts +3 -3
  291. package/src/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.ts +17 -17
  292. package/src/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.ts +16 -16
  293. package/src/transactionProcessor/dtos/AuthorizeP2pTransactionRequest.ts +8 -8
  294. package/src/transactionProcessor/dtos/AuthorizePocketTransactionRequest.ts +8 -8
  295. package/src/transactionProcessor/dtos/AuthorizeRstTransactionRequest.ts +4 -4
  296. package/src/transactionProcessor/dtos/AuthorizeServicePaymentRequest.ts +7 -7
  297. package/src/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.ts +6 -6
  298. package/src/transactionProcessor/dtos/CardInfo.ts +5 -5
  299. package/src/transactionProcessor/dtos/InstallmentsInfo.ts +6 -6
  300. package/src/transactionProcessor/dtos/MerchantInfo.ts +6 -6
  301. package/src/transactionProcessor/dtos/RSTTransactionStatusUpdate.ts +6 -6
  302. package/src/transactionProcessor/dtos/SpeiBankTransferStatusUpdate.ts +6 -6
  303. package/src/transactionProcessor/dtos/TransactionInfo.ts +7 -7
  304. package/src/transactionProcessor/dtos/TransactionProcessorQueueMessage.ts +3 -3
  305. package/src/transactionProcessor/enums/AsyncTxStatusEnum.ts +5 -5
  306. package/src/transactionProcessor/enums/TransactionProcessorCodesEnum.ts +13 -13
  307. package/src/transactionProcessor/index.ts +19 -19
@@ -1,20 +1,20 @@
1
- import {IsNotEmpty, IsNumber} from "class-validator";
2
-
3
- export class Debit {
4
-
5
- @IsNotEmpty()
6
- @IsNumber()
7
- debitNotional: number;
8
-
9
- @IsNotEmpty()
10
- @IsNumber()
11
- debitFees: number;
12
-
13
- @IsNotEmpty()
14
- @IsNumber()
15
- debitTax: number;
16
-
17
- @IsNotEmpty()
18
- @IsNumber()
19
- debitTotal: number;
20
- }
1
+ import {IsNotEmpty, IsNumber} from "class-validator";
2
+
3
+ export class Debit {
4
+
5
+ @IsNotEmpty()
6
+ @IsNumber()
7
+ debitNotional: number;
8
+
9
+ @IsNotEmpty()
10
+ @IsNumber()
11
+ debitFees: number;
12
+
13
+ @IsNotEmpty()
14
+ @IsNumber()
15
+ debitTax: number;
16
+
17
+ @IsNotEmpty()
18
+ @IsNumber()
19
+ debitTotal: number;
20
+ }
@@ -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,22 +1,22 @@
1
- import {IsEmpty, IsNotEmpty, 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
- @IsString()
15
- sourceDisplayName: string;
16
-
17
- @IsString()
18
- targetDisplayName: string;
19
-
20
- @IsString()
21
- relatedProductId: string;
22
- }
1
+ import {IsEmpty, IsNotEmpty, 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
+ @IsString()
15
+ sourceDisplayName: string;
16
+
17
+ @IsString()
18
+ targetDisplayName: string;
19
+
20
+ @IsString()
21
+ relatedProductId: string;
22
+ }
@@ -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,99 +1,99 @@
1
- import { 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
- @IsString()
53
- targetDirectoryId: string;
54
-
55
- @IsString()
56
- targetPeopleId: string;
57
-
58
- @IsNotEmpty()
59
- @IsString()
60
- transactionDate: string;
61
-
62
- @IsString()
63
- sessionId: string;
64
-
65
- @IsNotEmpty()
66
- @IsEnum(CountryId)
67
- currencyId: CountryId;
68
-
69
- @IsNotEmpty()
70
- @IsEnum(OperationEnum)
71
- operation: OperationEnum;
72
-
73
- @ValidateNested({each: true})
74
- @Type(() => Notional)
75
- notional: Notional;
76
-
77
- @ValidateNested({each: true})
78
- @Type(() => Credit)
79
- credit: Credit;
80
-
81
- @ValidateNested({each: true})
82
- @Type(() => Debit)
83
- debit: Debit;
84
-
85
- @ValidateNested({each: true})
86
- @Type(() => Total)
87
- total: Total;
88
-
89
- @ValidateNested({each: true})
90
- @Type(() => Product)
91
- product: Product;
92
-
93
- @IsNotEmpty()
94
- @IsEnum(TypeOfDirectoryId)
95
- typeOfDirectoryId: TypeOfDirectoryId;
96
-
97
- }
98
-
99
-
1
+ import { 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
+ @IsString()
53
+ targetDirectoryId: string;
54
+
55
+ @IsString()
56
+ targetPeopleId: string;
57
+
58
+ @IsNotEmpty()
59
+ @IsString()
60
+ transactionDate: string;
61
+
62
+ @IsString()
63
+ sessionId: string;
64
+
65
+ @IsNotEmpty()
66
+ @IsEnum(CountryId)
67
+ currencyId: CountryId;
68
+
69
+ @IsNotEmpty()
70
+ @IsEnum(OperationEnum)
71
+ operation: OperationEnum;
72
+
73
+ @ValidateNested({each: true})
74
+ @Type(() => Notional)
75
+ notional: Notional;
76
+
77
+ @ValidateNested({each: true})
78
+ @Type(() => Credit)
79
+ credit: Credit;
80
+
81
+ @ValidateNested({each: true})
82
+ @Type(() => Debit)
83
+ debit: Debit;
84
+
85
+ @ValidateNested({each: true})
86
+ @Type(() => Total)
87
+ total: Total;
88
+
89
+ @ValidateNested({each: true})
90
+ @Type(() => Product)
91
+ product: Product;
92
+
93
+ @IsNotEmpty()
94
+ @IsEnum(TypeOfDirectoryId)
95
+ typeOfDirectoryId: TypeOfDirectoryId;
96
+
97
+ }
98
+
99
+
@@ -1,4 +1,4 @@
1
-
2
- export class TransactionCreateResponse {
3
-
4
- }
1
+
2
+ export class TransactionCreateResponse {
3
+
4
+ }
@@ -1,18 +1,18 @@
1
- import { CountryId } from "../../country";
2
- import { ProductTypeEnum } from "../../productCatalog";
3
- import { OperationEnum } from "../enums/OperationEnum";
4
- import { TransactionSourceEnum } from "../enums/TransactionSourceEnum";
5
-
6
- export class TransactionGetResponse {
7
- pagination: any;
8
- items: {
9
- source: TransactionSourceEnum;
10
- totalAmount: number;
11
- date: Date;
12
- transactionNumber: string;
13
- transactionType: ProductTypeEnum;
14
- description: string;
15
- currencyId: CountryId;
16
- operation: OperationEnum;
17
- }[]
1
+ import { CountryId } from "../../country";
2
+ import { ProductTypeEnum } from "../../productCatalog";
3
+ import { OperationEnum } from "../enums/OperationEnum";
4
+ import { TransactionSourceEnum } from "../enums/TransactionSourceEnum";
5
+
6
+ export class TransactionGetResponse {
7
+ pagination: any;
8
+ items: {
9
+ source: TransactionSourceEnum;
10
+ totalAmount: number;
11
+ date: Date;
12
+ transactionNumber: string;
13
+ transactionType: ProductTypeEnum;
14
+ description: string;
15
+ currencyId: CountryId;
16
+ operation: OperationEnum;
17
+ }[]
18
18
  }
@@ -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,5 +1,5 @@
1
- export enum TransactionSourceEnum {
2
- FIADO_INC = "FIADO_INC",
3
- FIADO_IFPE = "FIADO_IFPE",
4
- FIADO_SA = "FIADO_SA"
1
+ export enum TransactionSourceEnum {
2
+ FIADO_INC = "FIADO_INC",
3
+ FIADO_IFPE = "FIADO_IFPE",
4
+ FIADO_SA = "FIADO_SA"
5
5
  }
@@ -1,9 +1,9 @@
1
- //dtos
2
- export * from './dtos/TransactionCreateRequest';
3
- export * from './dtos/TransactionCreateResponse';
4
- export * from './dtos/TransactionGetResponse';
5
-
6
-
7
- //enums
8
- export * from './enums/OperationEnum';
1
+ //dtos
2
+ export * from './dtos/TransactionCreateRequest';
3
+ export * from './dtos/TransactionCreateResponse';
4
+ export * from './dtos/TransactionGetResponse';
5
+
6
+
7
+ //enums
8
+ export * from './enums/OperationEnum';
9
9
  export * from './enums/TransactionSourceEnum';
@@ -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,9 +1,9 @@
1
- export class AuthorizeP2pTransactionRequest {
2
- idempotencyKey: string;
3
- productCatalogId: string;
4
- targetDirectoryId: string;
5
- amount: number;
6
- concept: string | null;
7
- saveAsFavorite: boolean;
8
- nickname: string | null;
1
+ export class AuthorizeP2pTransactionRequest {
2
+ idempotencyKey: string;
3
+ productCatalogId: string;
4
+ targetDirectoryId: string;
5
+ amount: number;
6
+ concept: string | null;
7
+ saveAsFavorite: boolean;
8
+ nickname: string | null;
9
9
  }
@@ -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,5 +1,5 @@
1
- export class AuthorizeRstTransactionRequest {
2
- idempotencyKey: string;
3
- productCatalogId: string;
4
- amount: number;
1
+ export class AuthorizeRstTransactionRequest {
2
+ idempotencyKey: string;
3
+ productCatalogId: string;
4
+ amount: number;
5
5
  }
@@ -1,8 +1,8 @@
1
- export class AuthorizeServicePaymentRequest {
2
- idempotencyKey: string;
3
- productCatalogId: string;
4
- productId: string;
5
- serviceId: string;
6
- paymentAccountNumber: string;
7
- amount: number;
1
+ export class AuthorizeServicePaymentRequest {
2
+ idempotencyKey: string;
3
+ productCatalogId: string;
4
+ productId: string;
5
+ serviceId: string;
6
+ paymentAccountNumber: string;
7
+ amount: number;
8
8
  }
@@ -1,7 +1,7 @@
1
- export default class AuthorizeSpeiBankTransferRequest {
2
- idempotencyKey: string;
3
- productCatalogId: string;
4
- targetBankAccountId: string;
5
- amount: number;
6
- concept: string | null;
1
+ export default class AuthorizeSpeiBankTransferRequest {
2
+ idempotencyKey: string;
3
+ productCatalogId: string;
4
+ targetBankAccountId: string;
5
+ amount: number;
6
+ concept: string | null;
7
7
  }
@@ -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
  }