@fiado/type-kit 1.2.48 → 1.2.50

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 (336) hide show
  1. package/README.md +70 -70
  2. package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
  3. package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
  4. package/bin/contactInfo/dtos/ContactInfoBackOfficeResponse.d.ts +4 -0
  5. package/bin/contactInfo/dtos/ContactInfoBackOfficeResponse.js +7 -0
  6. package/bin/contactInfo/dtos/ContactInfoCreateBackOfficeRequest.d.ts +4 -0
  7. package/bin/{account/dtos/PocketCreateRequest.js → contactInfo/dtos/ContactInfoCreateBackOfficeRequest.js} +7 -14
  8. package/bin/contactInfo/dtos/ContactInfoCreateRequest.d.ts +2 -15
  9. package/bin/contactInfo/dtos/ContactInfoCreateRequest.js +2 -65
  10. package/bin/contactInfo/dtos/ContactInfoRequest.d.ts +11 -0
  11. package/bin/{tern/dtos/TernAddress.js → contactInfo/dtos/ContactInfoRequest.js} +25 -16
  12. package/bin/contactInfo/dtos/ContactInfoResponse.d.ts +12 -0
  13. package/bin/contactInfo/dtos/ContactInfoResponse.js +6 -0
  14. package/bin/contactInfo/dtos/ContactInfoUpdateBackOfficeRequest.d.ts +5 -0
  15. package/bin/{tern/dtos/TernGetAccountRequest.js → contactInfo/dtos/ContactInfoUpdateBackOfficeRequest.js} +12 -9
  16. package/bin/contactInfo/dtos/ContactInfoUpdateRequest.d.ts +3 -0
  17. package/bin/contactInfo/dtos/ContactInfoUpdateRequest.js +7 -0
  18. package/bin/contactInfo/index.d.ts +6 -1
  19. package/bin/contactInfo/index.js +6 -1
  20. package/package.json +23 -23
  21. package/src/account/dtos/AccountCreateRequest.ts +79 -79
  22. package/src/account/dtos/AccountCreateResponse.ts +7 -7
  23. package/src/account/dtos/AccountInfo.ts +39 -39
  24. package/src/account/dtos/AccountUpdateBalanceRequest.ts +6 -6
  25. package/src/account/dtos/AccountUpdateRequest.ts +36 -36
  26. package/src/account/dtos/BankAccountExternalAddress.ts +17 -17
  27. package/src/account/dtos/BankAccountP2pTransferRequest.ts +7 -7
  28. package/src/account/dtos/CreateBankAccountRequest.ts +11 -11
  29. package/src/account/dtos/CreateBankAccountResponse.ts +8 -8
  30. package/src/account/dtos/CreateBankAccountUserRequest.ts +17 -17
  31. package/src/account/dtos/CreateBankAccountUserResponse.ts +11 -11
  32. package/src/account/dtos/ExchangeInfo.ts +8 -8
  33. package/src/account/dtos/ExecuteP2pOperationRequest.ts +7 -7
  34. package/src/account/dtos/ExecutePocketOperationRequest.ts +5 -5
  35. package/src/account/dtos/GetAccountBalanceResponse.ts +46 -46
  36. package/src/account/dtos/GetAccountResponse.ts +62 -62
  37. package/src/account/dtos/GetBankAccountRequest.ts +3 -3
  38. package/src/account/dtos/GetBankAccountResponse.ts +22 -22
  39. package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +5 -5
  40. package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +8 -8
  41. package/src/account/dtos/GetBankAccountUserRequest.ts +2 -2
  42. package/src/account/dtos/GetBankAccountUserResponse.ts +25 -25
  43. package/src/account/dtos/GetPocketBalanceResponse.ts +46 -46
  44. package/src/account/dtos/GetPocketResponse.ts +8 -8
  45. package/src/account/dtos/PocketBalanceItem.ts +17 -17
  46. package/src/account/dtos/PocketItem.ts +43 -43
  47. package/src/account/dtos/UpdateBalanceOperation.ts +10 -10
  48. package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
  49. package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
  50. package/src/account/entities/AccountEntityBase.ts +12 -12
  51. package/src/account/enums/AccountEntityStatusEnum.ts +4 -4
  52. package/src/account/enums/AccountLevelEnum.ts +5 -5
  53. package/src/account/enums/BankAccountP2pTransferType.ts +5 -5
  54. package/src/account/enums/BankAccountTypeEnum.ts +2 -2
  55. package/src/account/enums/BankAccountUserStatusEnum.ts +4 -4
  56. package/src/account/enums/UserEntityStatusEnum.ts +4 -4
  57. package/src/account/index.ts +42 -42
  58. package/src/activity/dtos/ActivityMessageRequest.ts +24 -24
  59. package/src/activity/dtos/ActivityMessageResponse.ts +24 -24
  60. package/src/activity/dtos/ActivityQueueMessage.ts +9 -9
  61. package/src/activity/index.ts +8 -8
  62. package/src/address/dtos/AddressBase.ts +130 -130
  63. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  64. package/src/address/dtos/AddressResponse.ts +41 -41
  65. package/src/address/dtos/AddressShippingCardRequest.ts +12 -12
  66. package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
  67. package/src/address/dtos/Geometry.ts +4 -4
  68. package/src/address/dtos/OfficeDetails.ts +30 -30
  69. package/src/address/dtos/OperationSchedule.ts +8 -8
  70. package/src/address/dtos/Place.ts +83 -83
  71. package/src/address/dtos/Shipping.ts +36 -36
  72. package/src/address/dtos/Timezone.ts +5 -5
  73. package/src/address/enums/AddressProvider.ts +10 -10
  74. package/src/address/enums/AddressStatus.ts +9 -9
  75. package/src/address/index.ts +16 -16
  76. package/src/app/enums/App.ts +10 -10
  77. package/src/app/index.ts +3 -3
  78. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  79. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  80. package/src/authentication/index.ts +3 -3
  81. package/src/bankAccount/dtos/ExternalAccountCurrency.ts +3 -3
  82. package/src/bankAccount/dtos/ExternalAccountType.ts +3 -3
  83. package/src/bankAccount/dtos/GetExternalBankAccountRequest.ts +11 -11
  84. package/src/bankAccount/dtos/GetExternalBankAccountResponse.ts +15 -15
  85. package/src/bankAccount/dtos/GetExternalBankResponse.ts +13 -13
  86. package/src/bankAccount/index.ts +4 -4
  87. package/src/bbvaRst/dtos/CreateRSTTransactionRequest.ts +14 -14
  88. package/src/bbvaRst/dtos/CreateRSTTransactionResponse.ts +9 -9
  89. package/src/bbvaRst/enums/RSTStatusEnum.ts +4 -4
  90. package/src/bbvaRst/index.ts +2 -2
  91. package/src/beneficiary/dtos/AccountBeneficiaryCreateRequest.ts +41 -41
  92. package/src/beneficiary/dtos/AccountBeneficiaryResponse.ts +23 -23
  93. package/src/beneficiary/dtos/AccountBeneficiaryUpdateRequest.ts +39 -39
  94. package/src/beneficiary/enums/AccountType.ts +6 -6
  95. package/src/beneficiary/index.ts +7 -7
  96. package/src/card/dtos/CardActivateRequest.ts +12 -12
  97. package/src/card/dtos/CardAdditionalRequest.ts +25 -25
  98. package/src/card/dtos/CardAdditionalResponse.ts +14 -14
  99. package/src/card/dtos/CardApplicationRequest.ts +27 -27
  100. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  101. package/src/card/dtos/CardCreateAdditionalRequest.ts +78 -78
  102. package/src/card/dtos/CardResponse.ts +34 -34
  103. package/src/card/dtos/CardSensitiveInformationResponse.ts +18 -18
  104. package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
  105. package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
  106. package/src/card/dtos/CardSummaryResponse.ts +10 -10
  107. package/src/card/dtos/CardUpdateRequest.ts +11 -11
  108. package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
  109. package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
  110. package/src/card/dtos/Internal/AssignCardRequest.ts +8 -8
  111. package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
  112. package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
  113. package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
  114. package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
  115. package/src/card/dtos/Internal/GetBankAccountCardResponse.ts +32 -32
  116. package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
  117. package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
  118. package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +21 -21
  119. package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +5 -5
  120. package/src/card/enums/Brand.ts +7 -7
  121. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  122. package/src/card/enums/CardIssuing.ts +6 -6
  123. package/src/card/enums/CardType.ts +4 -4
  124. package/src/card/enums/CardUpdateKey.ts +4 -4
  125. package/src/card/enums/CreditOrDebit.ts +5 -5
  126. package/src/card/enums/DeliveryChannel.ts +7 -7
  127. package/src/card/enums/ExternalShippingStatus.ts +14 -14
  128. package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
  129. package/src/card/enums/IssuanceType.ts +5 -5
  130. package/src/card/enums/NominatedOrInnominated.ts +8 -8
  131. package/src/card/enums/OwnershipType.ts +3 -3
  132. package/src/card/enums/ShippingStatus.ts +8 -8
  133. package/src/card/enums/Status.ts +6 -6
  134. package/src/card/enums/UpdateKey.ts +5 -5
  135. package/src/card/enums/VirtualOrPhysical.ts +6 -6
  136. package/src/card/index.ts +50 -50
  137. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  138. package/src/card/validations/IsPhoneNumberConstraint.ts +29 -29
  139. package/src/contactInfo/dtos/ContactInfoBackOfficeResponse.ts +7 -0
  140. package/src/contactInfo/dtos/ContactInfoCreateBackOfficeRequest.ts +11 -0
  141. package/src/contactInfo/dtos/ContactInfoCreateRequest.ts +3 -48
  142. package/src/contactInfo/dtos/ContactInfoRequest.ts +30 -0
  143. package/src/contactInfo/dtos/{GetAllContactInfoResponse.ts → ContactInfoResponse.ts} +14 -13
  144. package/src/contactInfo/dtos/ContactInfoUpdateBackOfficeRequest.ts +16 -0
  145. package/src/contactInfo/dtos/ContactInfoUpdateRequest.ts +5 -0
  146. package/src/contactInfo/enums/TypeOfContactIdEnum.ts +3 -3
  147. package/src/contactInfo/index.ts +7 -2
  148. package/src/contract/dtos/ContractCreateRequest.ts +29 -29
  149. package/src/contract/dtos/ContractCreateResponse.ts +2 -2
  150. package/src/contract/index.ts +4 -4
  151. package/src/country/enums/Country.ts +6 -6
  152. package/src/country/enums/CountryId.ts +6 -6
  153. package/src/country/index.ts +5 -5
  154. package/src/creditContract/dtos/CreditContractCreateRequest.ts +51 -51
  155. package/src/creditContract/enums/InstrumentEnum.ts +5 -5
  156. package/src/creditContract/index.ts +5 -5
  157. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  158. package/src/currency/index.ts +2 -2
  159. package/src/directory/dtos/DirectoryResponse.ts +19 -19
  160. package/src/directory/dtos/External.ts +6 -6
  161. package/src/directory/enums/Profile.ts +6 -6
  162. package/src/directory/enums/Scope.ts +7 -7
  163. package/src/directory/enums/Status.ts +8 -8
  164. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  165. package/src/directory/index.ts +7 -7
  166. package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
  167. package/src/eventBridge/index.ts +1 -1
  168. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  169. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  170. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  171. package/src/exchangeRate/dtos/GetExchangeRatesRequest.ts +3 -3
  172. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  173. package/src/exchangeRate/index.ts +9 -9
  174. package/src/fraudPreventionEngine/dtos/CreateAccountLevelRequest.ts +9 -9
  175. package/src/fraudPreventionEngine/dtos/GetAccountLevelParams.ts +3 -3
  176. package/src/fraudPreventionEngine/dtos/GetAccountLevelResponse.ts +7 -7
  177. package/src/fraudPreventionEngine/enums/AccountLevelTenantEnum.ts +5 -5
  178. package/src/fraudPreventionEngine/index.ts +5 -5
  179. package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
  180. package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
  181. package/src/genericMessage/index.ts +1 -1
  182. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  183. package/src/group/dtos/GroupCreateRequest.ts +54 -54
  184. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  185. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  186. package/src/group/dtos/GroupResponse.ts +17 -17
  187. package/src/group/dtos/GroupUpdateRequest.ts +31 -31
  188. package/src/group/enums/GroupAction.ts +8 -8
  189. package/src/group/enums/GroupStatus.ts +6 -6
  190. package/src/group/enums/RelationStatus.ts +8 -8
  191. package/src/group/enums/RelationType.ts +9 -9
  192. package/src/group/index.ts +18 -18
  193. package/src/header/TokenPayload.ts +18 -18
  194. package/src/header/index.ts +3 -3
  195. package/src/helpers/ValidationUtils.ts +32 -32
  196. package/src/helpers/constans/regex.ts +12 -12
  197. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  198. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  199. package/src/identity/dtos/PeopleResponse.ts +74 -74
  200. package/src/identity/dtos/PeopleUpdateRequest.ts +73 -73
  201. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  202. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  203. package/src/identity/enums/SexDocument.ts +6 -6
  204. package/src/identity/enums/TypeOfDocument.ts +5 -5
  205. package/src/identity/index.ts +12 -12
  206. package/src/index.ts +35 -35
  207. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
  208. package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
  209. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
  210. package/src/notificationMessages/enums/NotificationId.ts +13 -13
  211. package/src/notificationMessages/index.ts +5 -5
  212. package/src/p2pContact/dtos/CreateP2pContactRequest.ts +8 -8
  213. package/src/productCatalog/dtos/CreateProductCatalogRequest.ts +14 -14
  214. package/src/productCatalog/dtos/GetProductCatalogResponse.ts +38 -38
  215. package/src/productCatalog/enums/ProductTaxFeeTypeEnum.ts +3 -3
  216. package/src/productCatalog/enums/ProductTypeEnum.ts +15 -15
  217. package/src/productCatalog/index.ts +4 -4
  218. package/src/provider/enums/Provider.ts +4 -4
  219. package/src/provider/index.ts +1 -1
  220. package/src/queue/dtos/QueueMessageBase.ts +13 -13
  221. package/src/servicePayment/dtos/GetCatalogParams.ts +5 -5
  222. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  223. package/src/servicePayment/index.ts +1 -1
  224. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
  225. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
  226. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
  227. package/src/sessionActivity/index.ts +2 -2
  228. package/src/stpSpei/dtos/PutStpOrderRequest.ts +13 -13
  229. package/src/stpSpei/dtos/SpeiWebhookMessage.ts +9 -9
  230. package/src/stpSpei/enums/WebhookMessageStatusEnum.ts +4 -4
  231. package/src/stpSpei/index.ts +3 -3
  232. package/src/transaction/dtos/Credit.ts +24 -24
  233. package/src/transaction/dtos/Debit.ts +20 -20
  234. package/src/transaction/dtos/Notional.ts +20 -20
  235. package/src/transaction/dtos/Product.ts +16 -16
  236. package/src/transaction/dtos/ProductDetail.ts +23 -23
  237. package/src/transaction/dtos/Total.ts +20 -20
  238. package/src/transaction/dtos/TransactionCreateRequest.ts +109 -109
  239. package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
  240. package/src/transaction/dtos/TransactionGetDetailResponse.ts +24 -24
  241. package/src/transaction/dtos/TransactionGetResponse.ts +19 -19
  242. package/src/transaction/enums/OperationEnum.ts +3 -3
  243. package/src/transaction/enums/TransactionSourceEnum.ts +4 -4
  244. package/src/transaction/enums/TransactionStatusEnum.ts +6 -6
  245. package/src/transaction/index.ts +17 -17
  246. package/src/transactionProcessor/dtos/AmountInfo.ts +6 -6
  247. package/src/transactionProcessor/dtos/AmountInfoItem.ts +3 -3
  248. package/src/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.ts +19 -19
  249. package/src/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.ts +16 -16
  250. package/src/transactionProcessor/dtos/AuthorizeP2pTransactionRequest.ts +8 -8
  251. package/src/transactionProcessor/dtos/AuthorizePocketTransactionRequest.ts +8 -8
  252. package/src/transactionProcessor/dtos/AuthorizeRstTransactionRequest.ts +4 -4
  253. package/src/transactionProcessor/dtos/AuthorizeServicePaymentRequest.ts +7 -7
  254. package/src/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.ts +6 -6
  255. package/src/transactionProcessor/dtos/CardInfo.ts +5 -5
  256. package/src/transactionProcessor/dtos/InstallmentsInfo.ts +6 -6
  257. package/src/transactionProcessor/dtos/MerchantInfo.ts +6 -6
  258. package/src/transactionProcessor/dtos/ProcessUpdateLevelRequest.ts +3 -3
  259. package/src/transactionProcessor/dtos/RSTTransactionStatusUpdate.ts +6 -6
  260. package/src/transactionProcessor/dtos/SpeiBankTransferStatusUpdate.ts +6 -6
  261. package/src/transactionProcessor/dtos/TransactionInfo.ts +7 -7
  262. package/src/transactionProcessor/dtos/TransactionProcessorQueueMessage.ts +3 -3
  263. package/src/transactionProcessor/enums/AsyncTxStatusEnum.ts +5 -5
  264. package/src/transactionProcessor/enums/TransactionProcessorCodesEnum.ts +15 -15
  265. package/src/transactionProcessor/index.ts +20 -20
  266. package/bin/account/dtos/AccountResponse.d.ts +0 -21
  267. package/bin/account/dtos/AccountResponse.js +0 -6
  268. package/bin/account/dtos/CreateBankAccountInput.d.ts +0 -8
  269. package/bin/account/dtos/CreateBankAccountInput.js +0 -6
  270. package/bin/account/dtos/CreateBankAccountUserInput.d.ts +0 -14
  271. package/bin/account/dtos/CreateBankAccountUserInput.js +0 -6
  272. package/bin/account/dtos/PocketCreateRequest.d.ts +0 -4
  273. package/bin/account/dtos/PocketCreateResponse.d.ts +0 -2
  274. package/bin/account/dtos/PocketCreateResponse.js +0 -6
  275. package/bin/account/enums/AccountStatus.d.ts +0 -5
  276. package/bin/account/enums/AccountStatus.js +0 -9
  277. package/bin/card/dtos/CardCreateRequest.d.ts +0 -34
  278. package/bin/card/dtos/CardCreateRequest.js +0 -176
  279. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +0 -3
  280. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +0 -22
  281. package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +0 -28
  282. package/bin/pomelo/dtos/PomeloCreateUserRequest.js +0 -2
  283. package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +0 -35
  284. package/bin/pomelo/dtos/PomeloCreateUserResponse.js +0 -2
  285. package/bin/pomelo/enums/CountryEnum.d.ts +0 -8
  286. package/bin/pomelo/enums/CountryEnum.js +0 -12
  287. package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +0 -7
  288. package/bin/pomelo/enums/IdentificationTypeEnum.js +0 -11
  289. package/bin/pomelo/enums/SexEnum.d.ts +0 -4
  290. package/bin/pomelo/enums/SexEnum.js +0 -8
  291. package/bin/pomelo/enums/TaxTypeEnum.d.ts +0 -7
  292. package/bin/pomelo/enums/TaxTypeEnum.js +0 -11
  293. package/bin/pomelo/enums/UserStatusEnum.d.ts +0 -4
  294. package/bin/pomelo/enums/UserStatusEnum.js +0 -8
  295. package/bin/pomelo/index.d.ts +0 -7
  296. package/bin/pomelo/index.js +0 -25
  297. package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +0 -3
  298. package/bin/productCatalog/dtos/GetProductCatalogRequest.js +0 -19
  299. package/bin/tern/dtos/TernAddress.d.ts +0 -8
  300. package/bin/tern/dtos/TernCreateAccountRequest.d.ts +0 -7
  301. package/bin/tern/dtos/TernCreateAccountRequest.js +0 -33
  302. package/bin/tern/dtos/TernCreateAccountResponse.d.ts +0 -5
  303. package/bin/tern/dtos/TernCreateAccountResponse.js +0 -25
  304. package/bin/tern/dtos/TernCreateUserRequest.d.ts +0 -15
  305. package/bin/tern/dtos/TernCreateUserRequest.js +0 -70
  306. package/bin/tern/dtos/TernCreateUserResponse.d.ts +0 -8
  307. package/bin/tern/dtos/TernCreateUserResponse.js +0 -37
  308. package/bin/tern/dtos/TernGetAccountRequest.d.ts +0 -5
  309. package/bin/tern/dtos/TernGetAccountResponse.d.ts +0 -22
  310. package/bin/tern/dtos/TernGetAccountResponse.js +0 -87
  311. package/bin/tern/dtos/TernGetUserRequest.d.ts +0 -3
  312. package/bin/tern/dtos/TernGetUserRequest.js +0 -20
  313. package/bin/tern/dtos/TernGetUserResponse.d.ts +0 -24
  314. package/bin/tern/dtos/TernGetUserResponse.js +0 -96
  315. package/bin/tern/enums/TernAccountStatusEnum.d.ts +0 -4
  316. package/bin/tern/enums/TernAccountStatusEnum.js +0 -8
  317. package/bin/tern/enums/TernAccountTypeEnum.d.ts +0 -5
  318. package/bin/tern/enums/TernAccountTypeEnum.js +0 -9
  319. package/bin/tern/index.d.ts +0 -11
  320. package/bin/tern/index.js +0 -29
  321. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.d.ts +0 -5
  322. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.js +0 -6
  323. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.d.ts +0 -7
  324. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.js +0 -6
  325. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.d.ts +0 -6
  326. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.js +0 -6
  327. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.d.ts +0 -4
  328. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.js +0 -6
  329. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.d.ts +0 -6
  330. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.js +0 -6
  331. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.d.ts +0 -7
  332. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.js +0 -6
  333. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.d.ts +0 -8
  334. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.js +0 -6
  335. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.d.ts +0 -16
  336. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.js +0 -6
@@ -1,24 +1,24 @@
1
- import {IsOptional, IsString} from "class-validator";
2
-
3
- export class ProductDetail {
4
- //
5
- @IsOptional()
6
- @IsString()
7
- sourceName: string;
8
-
9
- @IsOptional()
10
- @IsString()
11
- sourceNumber: string;
12
-
13
- @IsOptional()
14
- @IsString()
15
- targetName: string;
16
-
17
- @IsOptional()
18
- @IsString()
19
- targetNumber: string;
20
-
21
- @IsOptional()
22
- @IsString()
23
- description: string;
1
+ import {IsOptional, IsString} from "class-validator";
2
+
3
+ export class ProductDetail {
4
+ //
5
+ @IsOptional()
6
+ @IsString()
7
+ sourceName: string;
8
+
9
+ @IsOptional()
10
+ @IsString()
11
+ sourceNumber: string;
12
+
13
+ @IsOptional()
14
+ @IsString()
15
+ targetName: string;
16
+
17
+ @IsOptional()
18
+ @IsString()
19
+ targetNumber: string;
20
+
21
+ @IsOptional()
22
+ @IsString()
23
+ description: string;
24
24
  }
@@ -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,109 +1,109 @@
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
- import {TransactionStatusEnum} from "../enums/TransactionStatusEnum";
13
-
14
- export class TransactionCreateRequest {
15
-
16
- @IsNotEmpty()
17
- @IsString()
18
- @Length(3, 50)
19
- transactionNumber: string;
20
-
21
- @IsNotEmpty()
22
- @IsString()
23
- @Matches(regexUuidV4,
24
- {
25
- message: 'directoryId must be a valid UUID v4',
26
- })
27
- directoryId: string;
28
-
29
- @IsNotEmpty()
30
- @IsString()
31
- @Matches(regexUuidV4,
32
- {
33
- message: 'peopleId must be a valid UUID v4',
34
- })
35
- peopleId: string;
36
-
37
- @IsString()
38
- pocketId: string;
39
-
40
- @IsString()
41
- fiadoSaAccountId: string;
42
-
43
- @IsNotEmpty()
44
- @IsString()
45
- pagoConfiadoAccountId: string;
46
-
47
- @IsNotEmpty()
48
- @IsString()
49
- @Matches(regexUuidV4,
50
- {
51
- message: 'ownerDirectoryId must be a valid UUID v4',
52
- })
53
- ownerDirectoryId: string;
54
-
55
-
56
- @IsString()
57
- targetDirectoryId: string;
58
-
59
- @IsString()
60
- targetPeopleId: string;
61
-
62
- @IsString()
63
- targetPagoConfiadoAccountId: string;
64
-
65
- @IsNotEmpty()
66
- @IsString()
67
- transactionDate: string;
68
-
69
- @IsString()
70
- sessionId: string;
71
-
72
- @IsNotEmpty()
73
- @IsEnum(CountryId)
74
- currencyId: CountryId;
75
-
76
- @IsNotEmpty()
77
- @IsEnum(OperationEnum)
78
- operation: OperationEnum;
79
-
80
- @ValidateNested({each: true})
81
- @Type(() => Notional)
82
- notional: Notional;
83
-
84
- @ValidateNested({each: true})
85
- @Type(() => Credit)
86
- credit: Credit;
87
-
88
- @ValidateNested({each: true})
89
- @Type(() => Debit)
90
- debit: Debit;
91
-
92
- @ValidateNested({each: true})
93
- @Type(() => Total)
94
- total: Total;
95
-
96
- @ValidateNested({each: true})
97
- @Type(() => Product)
98
- product: Product;
99
-
100
- @IsNotEmpty()
101
- @IsEnum(TypeOfDirectoryId)
102
- typeOfDirectoryId: TypeOfDirectoryId;
103
-
104
- @IsNotEmpty()
105
- @IsEnum(TransactionStatusEnum)
106
- status: TransactionStatusEnum;
107
- }
108
-
109
-
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
+ import {TransactionStatusEnum} from "../enums/TransactionStatusEnum";
13
+
14
+ export class TransactionCreateRequest {
15
+
16
+ @IsNotEmpty()
17
+ @IsString()
18
+ @Length(3, 50)
19
+ transactionNumber: string;
20
+
21
+ @IsNotEmpty()
22
+ @IsString()
23
+ @Matches(regexUuidV4,
24
+ {
25
+ message: 'directoryId must be a valid UUID v4',
26
+ })
27
+ directoryId: string;
28
+
29
+ @IsNotEmpty()
30
+ @IsString()
31
+ @Matches(regexUuidV4,
32
+ {
33
+ message: 'peopleId must be a valid UUID v4',
34
+ })
35
+ peopleId: string;
36
+
37
+ @IsString()
38
+ pocketId: string;
39
+
40
+ @IsString()
41
+ fiadoSaAccountId: string;
42
+
43
+ @IsNotEmpty()
44
+ @IsString()
45
+ pagoConfiadoAccountId: string;
46
+
47
+ @IsNotEmpty()
48
+ @IsString()
49
+ @Matches(regexUuidV4,
50
+ {
51
+ message: 'ownerDirectoryId must be a valid UUID v4',
52
+ })
53
+ ownerDirectoryId: string;
54
+
55
+
56
+ @IsString()
57
+ targetDirectoryId: string;
58
+
59
+ @IsString()
60
+ targetPeopleId: string;
61
+
62
+ @IsString()
63
+ targetPagoConfiadoAccountId: string;
64
+
65
+ @IsNotEmpty()
66
+ @IsString()
67
+ transactionDate: string;
68
+
69
+ @IsString()
70
+ sessionId: string;
71
+
72
+ @IsNotEmpty()
73
+ @IsEnum(CountryId)
74
+ currencyId: CountryId;
75
+
76
+ @IsNotEmpty()
77
+ @IsEnum(OperationEnum)
78
+ operation: OperationEnum;
79
+
80
+ @ValidateNested({each: true})
81
+ @Type(() => Notional)
82
+ notional: Notional;
83
+
84
+ @ValidateNested({each: true})
85
+ @Type(() => Credit)
86
+ credit: Credit;
87
+
88
+ @ValidateNested({each: true})
89
+ @Type(() => Debit)
90
+ debit: Debit;
91
+
92
+ @ValidateNested({each: true})
93
+ @Type(() => Total)
94
+ total: Total;
95
+
96
+ @ValidateNested({each: true})
97
+ @Type(() => Product)
98
+ product: Product;
99
+
100
+ @IsNotEmpty()
101
+ @IsEnum(TypeOfDirectoryId)
102
+ typeOfDirectoryId: TypeOfDirectoryId;
103
+
104
+ @IsNotEmpty()
105
+ @IsEnum(TransactionStatusEnum)
106
+ status: TransactionStatusEnum;
107
+ }
108
+
109
+
@@ -1,4 +1,4 @@
1
-
2
- export class TransactionCreateResponse {
3
-
4
- }
1
+
2
+ export class TransactionCreateResponse {
3
+
4
+ }
@@ -1,25 +1,25 @@
1
- import { CountryId } from "../../country";
2
- import { OperationEnum } from "../enums/OperationEnum";
3
- import { TransactionSourceEnum } from "../enums/TransactionSourceEnum";
4
- import { TransactionStatusEnum } from "../enums/TransactionStatusEnum";
5
- import { Credit } from "./Credit";
6
- import { Debit } from "./Debit";
7
- import { Notional } from "./Notional";
8
- import { Product } from "./Product";
9
- import { Total } from "./Total";
10
-
11
- export class TransactionGetDetailResponse {
12
- currencyId:CountryId
13
- source: TransactionSourceEnum
14
- transactionNumber:string
15
- product:Product
16
- credit:Credit|null
17
- debit:Debit|null
18
- total: Total|null
19
- notional: Notional|null
20
- status: TransactionStatusEnum
21
- date:string
22
- operation: OperationEnum
23
- displayName: string
24
- transactionType?: string
1
+ import { CountryId } from "../../country";
2
+ import { OperationEnum } from "../enums/OperationEnum";
3
+ import { TransactionSourceEnum } from "../enums/TransactionSourceEnum";
4
+ import { TransactionStatusEnum } from "../enums/TransactionStatusEnum";
5
+ import { Credit } from "./Credit";
6
+ import { Debit } from "./Debit";
7
+ import { Notional } from "./Notional";
8
+ import { Product } from "./Product";
9
+ import { Total } from "./Total";
10
+
11
+ export class TransactionGetDetailResponse {
12
+ currencyId:CountryId
13
+ source: TransactionSourceEnum
14
+ transactionNumber:string
15
+ product:Product
16
+ credit:Credit|null
17
+ debit:Debit|null
18
+ total: Total|null
19
+ notional: Notional|null
20
+ status: TransactionStatusEnum
21
+ date:string
22
+ operation: OperationEnum
23
+ displayName: string
24
+ transactionType?: string
25
25
  }
@@ -1,20 +1,20 @@
1
- import { CountryId } from "../../country";
2
- import { ProductTypeEnum } from "../../productCatalog";
3
- import { OperationEnum } from "../enums/OperationEnum";
4
- import { TransactionSourceEnum } from "../enums/TransactionSourceEnum";
5
- import { TransactionStatusEnum } from "../enums/TransactionStatusEnum";
6
-
7
- export class TransactionGetResponse {
8
- pagination: any;
9
- items: {
10
- source: TransactionSourceEnum;
11
- amount: number;
12
- date: Date;
13
- transactionNumber: string;
14
- transactionType: ProductTypeEnum;
15
- displayName: string;
16
- currencyId: CountryId;
17
- operation: OperationEnum;
18
- status: TransactionStatusEnum;
19
- }[]
1
+ import { CountryId } from "../../country";
2
+ import { ProductTypeEnum } from "../../productCatalog";
3
+ import { OperationEnum } from "../enums/OperationEnum";
4
+ import { TransactionSourceEnum } from "../enums/TransactionSourceEnum";
5
+ import { TransactionStatusEnum } from "../enums/TransactionStatusEnum";
6
+
7
+ export class TransactionGetResponse {
8
+ pagination: any;
9
+ items: {
10
+ source: TransactionSourceEnum;
11
+ amount: number;
12
+ date: Date;
13
+ transactionNumber: string;
14
+ transactionType: ProductTypeEnum;
15
+ displayName: string;
16
+ currencyId: CountryId;
17
+ operation: OperationEnum;
18
+ status: TransactionStatusEnum;
19
+ }[]
20
20
  }
@@ -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,7 +1,7 @@
1
- export enum TransactionStatusEnum {
2
- PENDING = 'PENDING',
3
- COMPLETED = 'COMPLETED',
4
- REJECTED = 'REJECTED',
5
- CANCELLED = 'CANCELLED',
6
- RETURNED = "RETURNED"
1
+ export enum TransactionStatusEnum {
2
+ PENDING = 'PENDING',
3
+ COMPLETED = 'COMPLETED',
4
+ REJECTED = 'REJECTED',
5
+ CANCELLED = 'CANCELLED',
6
+ RETURNED = "RETURNED"
7
7
  }
@@ -1,17 +1,17 @@
1
- //dtos
2
- export * from './dtos/TransactionCreateRequest';
3
- export * from './dtos/TransactionCreateResponse';
4
- export * from './dtos/TransactionGetDetailResponse';
5
- export * from './dtos/TransactionGetResponse';
6
- export * from './dtos/Credit';
7
- export * from './dtos/Debit';
8
- export * from './dtos/Notional';
9
- export * from './dtos/Product';
10
- export * from './dtos/ProductDetail';
11
- export * from './dtos/Total';
12
-
13
-
14
- //enums
15
- export * from './enums/OperationEnum';
16
- export * from './enums/TransactionSourceEnum';
17
- export * from './enums/TransactionStatusEnum';
1
+ //dtos
2
+ export * from './dtos/TransactionCreateRequest';
3
+ export * from './dtos/TransactionCreateResponse';
4
+ export * from './dtos/TransactionGetDetailResponse';
5
+ export * from './dtos/TransactionGetResponse';
6
+ export * from './dtos/Credit';
7
+ export * from './dtos/Debit';
8
+ export * from './dtos/Notional';
9
+ export * from './dtos/Product';
10
+ export * from './dtos/ProductDetail';
11
+ export * from './dtos/Total';
12
+
13
+
14
+ //enums
15
+ export * from './enums/OperationEnum';
16
+ export * from './enums/TransactionSourceEnum';
17
+ export * from './enums/TransactionStatusEnum';
@@ -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,20 +1,20 @@
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
- import {OperationEnum} from "../../transaction";
8
-
9
- export class AuthorizeCreditCardAdjustmentRequest {
10
- idempotencyKey: string;
11
- externalUserId: string;
12
- cardInfo: CardInfo;
13
- productCatalogId: string;
14
- merchantInfo: MerchantInfo;
15
- amountInfo: AmountInfo;
16
- transactionInfo: TransactionInfo;
17
- countryId: CountryId;
18
- installments: InstallmentsInfo;
19
- operation: OperationEnum;
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
+ import {OperationEnum} from "../../transaction";
8
+
9
+ export class AuthorizeCreditCardAdjustmentRequest {
10
+ idempotencyKey: string;
11
+ externalUserId: string;
12
+ cardInfo: CardInfo;
13
+ productCatalogId: string;
14
+ merchantInfo: MerchantInfo;
15
+ amountInfo: AmountInfo;
16
+ transactionInfo: TransactionInfo;
17
+ countryId: CountryId;
18
+ installments: InstallmentsInfo;
19
+ operation: OperationEnum;
20
20
  }
@@ -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
  }