@fiado/api-invoker 1.3.85 → 1.3.86

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 (327) hide show
  1. package/bin/account-beneficiary/AccountBeneficiaryApi.d.ts +10 -0
  2. package/bin/account-beneficiary/AccountBeneficiaryApi.js +32 -0
  3. package/bin/account-beneficiary/index.d.ts +2 -0
  4. package/bin/account-beneficiary/index.js +18 -0
  5. package/bin/account-beneficiary/interfaces/IAccountBeneficiaryApi.d.ts +5 -0
  6. package/bin/account-beneficiary/interfaces/IAccountBeneficiaryApi.js +2 -0
  7. package/bin/account-fiadoinc/AccountFiadoIncApi.d.ts +32 -0
  8. package/bin/account-fiadoinc/AccountFiadoIncApi.js +84 -0
  9. package/bin/account-fiadoinc/index.d.ts +4 -0
  10. package/bin/account-fiadoinc/index.js +20 -0
  11. package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.d.ts +18 -0
  12. package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.js +2 -0
  13. package/bin/account-fiadoinc/queue/Publisher.d.ts +9 -0
  14. package/bin/account-fiadoinc/queue/Publisher.js +34 -0
  15. package/bin/account-fiadoinc/queue/interfaces/IPublisher.d.ts +7 -0
  16. package/bin/account-fiadoinc/queue/interfaces/IPublisher.js +2 -0
  17. package/bin/account-fiadosa/AccountFiadoSAApi.d.ts +15 -0
  18. package/bin/account-fiadosa/AccountFiadoSAApi.js +47 -0
  19. package/bin/account-fiadosa/index.d.ts +2 -0
  20. package/bin/account-fiadosa/index.js +18 -0
  21. package/bin/account-fiadosa/interfaces/IAccountFiadoSAApi.d.ts +10 -0
  22. package/bin/account-fiadosa/interfaces/IAccountFiadoSAApi.js +2 -0
  23. package/bin/account-pagoconfiado/AccountPagoConfiadoApi.d.ts +17 -0
  24. package/bin/account-pagoconfiado/AccountPagoConfiadoApi.js +55 -0
  25. package/bin/account-pagoconfiado/index.d.ts +2 -0
  26. package/bin/account-pagoconfiado/index.js +18 -0
  27. package/bin/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.d.ts +12 -0
  28. package/bin/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.js +2 -0
  29. package/bin/activity-business/ActivityApi.d.ts +12 -0
  30. package/bin/activity-business/ActivityApi.js +49 -0
  31. package/bin/activity-business/index.d.ts +4 -0
  32. package/bin/activity-business/index.js +20 -0
  33. package/bin/activity-business/interfaces/IActivityApi.d.ts +7 -0
  34. package/bin/activity-business/interfaces/IActivityApi.js +2 -0
  35. package/bin/activity-business/queue/ActivityPublisher.d.ts +6 -0
  36. package/bin/activity-business/queue/ActivityPublisher.js +36 -0
  37. package/bin/activity-business/queue/IActivityPublisher.d.ts +4 -0
  38. package/bin/activity-business/queue/IActivityPublisher.js +2 -0
  39. package/bin/address/AddressApi.d.ts +13 -0
  40. package/bin/address/AddressApi.js +55 -0
  41. package/bin/address/index.d.ts +2 -0
  42. package/bin/address/index.js +18 -0
  43. package/bin/address/interfaces/IAddressApi.d.ts +26 -0
  44. package/bin/address/interfaces/IAddressApi.js +2 -0
  45. package/bin/appselectondata/AppSelectionDataApi.d.ts +12 -0
  46. package/bin/appselectondata/AppSelectionDataApi.js +47 -0
  47. package/bin/appselectondata/index.d.ts +2 -0
  48. package/bin/appselectondata/index.js +18 -0
  49. package/bin/appselectondata/interfaces/IAppSelectionDataApi.d.ts +18 -0
  50. package/bin/appselectondata/interfaces/IAppSelectionDataApi.js +2 -0
  51. package/bin/authentication/AuthenticationApi.d.ts +8 -0
  52. package/bin/authentication/AuthenticationApi.js +32 -0
  53. package/bin/authentication/index.d.ts +2 -0
  54. package/bin/authentication/index.js +18 -0
  55. package/bin/authentication/interfaces/IAuthenticationApi.d.ts +4 -0
  56. package/bin/authentication/interfaces/IAuthenticationApi.js +2 -0
  57. package/bin/bankAccount/BankAccountApi.d.ts +13 -0
  58. package/bin/bankAccount/BankAccountApi.js +43 -0
  59. package/bin/bankAccount/index.d.ts +2 -0
  60. package/bin/bankAccount/index.js +18 -0
  61. package/bin/bankAccount/interfaces/IBankAccountApi.d.ts +5 -0
  62. package/bin/bankAccount/interfaces/IBankAccountApi.js +2 -0
  63. package/bin/bbvaRst/api/BBVARstApi.d.ts +9 -0
  64. package/bin/bbvaRst/api/BBVARstApi.js +32 -0
  65. package/bin/bbvaRst/api/interfaces/IBBVARstApi.d.ts +4 -0
  66. package/bin/bbvaRst/api/interfaces/IBBVARstApi.js +2 -0
  67. package/bin/bbvaRst/index.d.ts +2 -0
  68. package/bin/bbvaRst/index.js +18 -0
  69. package/bin/blacklist/BlackListApi.d.ts +12 -0
  70. package/bin/blacklist/BlackListApi.js +37 -0
  71. package/bin/blacklist/index.d.ts +2 -0
  72. package/bin/blacklist/index.js +18 -0
  73. package/bin/blacklist/interfaces/IBlackListApi.d.ts +17 -0
  74. package/bin/blacklist/interfaces/IBlackListApi.js +2 -0
  75. package/bin/card/CardApi.d.ts +21 -0
  76. package/bin/card/CardApi.js +69 -0
  77. package/bin/card/index.d.ts +2 -0
  78. package/bin/card/index.js +18 -0
  79. package/bin/card/interfaces/ICardApi.d.ts +15 -0
  80. package/bin/card/interfaces/ICardApi.js +2 -0
  81. package/bin/centralPayments/CentralPaymentsConnectorApi.d.ts +67 -0
  82. package/bin/centralPayments/CentralPaymentsConnectorApi.js +223 -0
  83. package/bin/centralPayments/index.d.ts +2 -0
  84. package/bin/centralPayments/index.js +18 -0
  85. package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.d.ts +57 -0
  86. package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.js +2 -0
  87. package/bin/cnbv-business/CnbvApi.d.ts +8 -0
  88. package/bin/cnbv-business/CnbvApi.js +31 -0
  89. package/bin/cnbv-business/index.d.ts +2 -0
  90. package/bin/cnbv-business/index.js +18 -0
  91. package/bin/cnbv-business/interfaces/ICnbvApi.d.ts +3 -0
  92. package/bin/cnbv-business/interfaces/ICnbvApi.js +2 -0
  93. package/bin/cognitoConnector/CognitoConnectorApi.d.ts +16 -0
  94. package/bin/cognitoConnector/CognitoConnectorApi.js +89 -0
  95. package/bin/cognitoConnector/CognitoConnectorV2.d.ts +18 -0
  96. package/bin/cognitoConnector/CognitoConnectorV2.js +74 -0
  97. package/bin/cognitoConnector/index.d.ts +4 -0
  98. package/bin/cognitoConnector/index.js +20 -0
  99. package/bin/cognitoConnector/interfaces/ICognitoConnectorApi.d.ts +12 -0
  100. package/bin/cognitoConnector/interfaces/ICognitoConnectorApi.js +2 -0
  101. package/bin/cognitoConnector/interfaces/ICognitoV2Api.d.ts +46 -0
  102. package/bin/cognitoConnector/interfaces/ICognitoV2Api.js +2 -0
  103. package/bin/collector/CollectorApi.d.ts +17 -0
  104. package/bin/collector/CollectorApi.js +64 -0
  105. package/bin/collector/index.d.ts +2 -0
  106. package/bin/collector/index.js +18 -0
  107. package/bin/collector/interfaces/ICollectorApi.d.ts +22 -0
  108. package/bin/collector/interfaces/ICollectorApi.js +2 -0
  109. package/bin/contactInformation/ContactInformationApi.d.ts +9 -0
  110. package/bin/contactInformation/ContactInformationApi.js +31 -0
  111. package/bin/contactInformation/index.d.ts +2 -0
  112. package/bin/contactInformation/index.js +18 -0
  113. package/bin/contactInformation/interface/IContactInformationApi.d.ts +4 -0
  114. package/bin/contactInformation/interface/IContactInformationApi.js +2 -0
  115. package/bin/container.config.d.ts +2 -0
  116. package/bin/container.config.js +121 -0
  117. package/bin/contract-generator/ContractGeneratorApi.d.ts +9 -0
  118. package/bin/contract-generator/ContractGeneratorApi.js +37 -0
  119. package/bin/contract-generator/index.d.ts +2 -0
  120. package/bin/contract-generator/index.js +18 -0
  121. package/bin/contract-generator/interfaces/IContractGeneratorApi.d.ts +14 -0
  122. package/bin/contract-generator/interfaces/IContractGeneratorApi.js +2 -0
  123. package/bin/device/DeviceApi.d.ts +14 -0
  124. package/bin/device/DeviceApi.js +45 -0
  125. package/bin/device/index.d.ts +2 -0
  126. package/bin/device/index.js +18 -0
  127. package/bin/device/interfaces/IDeviceApi.d.ts +30 -0
  128. package/bin/device/interfaces/IDeviceApi.js +2 -0
  129. package/bin/directories/DirectoriesApi.d.ts +20 -0
  130. package/bin/directories/DirectoriesApi.js +61 -0
  131. package/bin/directories/index.d.ts +2 -0
  132. package/bin/directories/index.js +18 -0
  133. package/bin/directories/interfaces/IDirectoriesApi.d.ts +21 -0
  134. package/bin/directories/interfaces/IDirectoriesApi.js +2 -0
  135. package/bin/directory/DirectoryApi.d.ts +22 -0
  136. package/bin/directory/DirectoryApi.js +145 -0
  137. package/bin/directory/index.d.ts +2 -0
  138. package/bin/directory/index.js +18 -0
  139. package/bin/directory/interfaces/IDirectoryApi.d.ts +55 -0
  140. package/bin/directory/interfaces/IDirectoryApi.js +2 -0
  141. package/bin/directorySetting/DirectorySettingApi.d.ts +31 -0
  142. package/bin/directorySetting/DirectorySettingApi.js +56 -0
  143. package/bin/directorySetting/index.d.ts +2 -0
  144. package/bin/directorySetting/index.js +18 -0
  145. package/bin/directorySetting/interfaces/IDirectorySettingApi.d.ts +42 -0
  146. package/bin/directorySetting/interfaces/IDirectorySettingApi.js +2 -0
  147. package/bin/disputes/DisputesApi.d.ts +24 -0
  148. package/bin/disputes/DisputesApi.js +61 -0
  149. package/bin/disputes/index.d.ts +2 -0
  150. package/bin/disputes/index.js +18 -0
  151. package/bin/disputes/interfaces/IDisputesApi.d.ts +48 -0
  152. package/bin/disputes/interfaces/IDisputesApi.js +2 -0
  153. package/bin/document-image-processor/DocumentImageProcessorApi.d.ts +11 -0
  154. package/bin/document-image-processor/DocumentImageProcessorApi.js +36 -0
  155. package/bin/document-image-processor/index.d.ts +2 -0
  156. package/bin/document-image-processor/index.js +18 -0
  157. package/bin/document-image-processor/interfaces/IDocumentImageProcessorApi.d.ts +6 -0
  158. package/bin/document-image-processor/interfaces/IDocumentImageProcessorApi.js +2 -0
  159. package/bin/estafeta/api/EstafetaApi.d.ts +26 -0
  160. package/bin/estafeta/api/EstafetaApi.js +71 -0
  161. package/bin/estafeta/api/interfaces/IEstafetaApi.d.ts +20 -0
  162. package/bin/estafeta/api/interfaces/IEstafetaApi.js +2 -0
  163. package/bin/estafeta/index.d.ts +2 -0
  164. package/bin/estafeta/index.js +18 -0
  165. package/bin/exchangeRates/ExchangeRatesApi.d.ts +11 -0
  166. package/bin/exchangeRates/ExchangeRatesApi.js +39 -0
  167. package/bin/exchangeRates/index.d.ts +2 -0
  168. package/bin/exchangeRates/index.js +18 -0
  169. package/bin/exchangeRates/interfaces/IExchangeRatesApi.d.ts +6 -0
  170. package/bin/exchangeRates/interfaces/IExchangeRatesApi.js +2 -0
  171. package/bin/fiadoMessages/api/FiadoMessagesApi.d.ts +8 -0
  172. package/bin/fiadoMessages/api/FiadoMessagesApi.js +37 -0
  173. package/bin/fiadoMessages/api/interfaces/IFiadoMessagesApi.d.ts +3 -0
  174. package/bin/fiadoMessages/api/interfaces/IFiadoMessagesApi.js +2 -0
  175. package/bin/fiadoMessages/index.d.ts +2 -0
  176. package/bin/fiadoMessages/index.js +18 -0
  177. package/bin/fraudPreventionEngine/api/FraudPreventionEngineApi.d.ts +11 -0
  178. package/bin/fraudPreventionEngine/api/FraudPreventionEngineApi.js +35 -0
  179. package/bin/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.d.ts +6 -0
  180. package/bin/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.js +2 -0
  181. package/bin/fraudPreventionEngine/index.d.ts +2 -0
  182. package/bin/fraudPreventionEngine/index.js +18 -0
  183. package/bin/group/GroupApi.d.ts +19 -0
  184. package/bin/group/GroupApi.js +70 -0
  185. package/bin/group/index.d.ts +2 -0
  186. package/bin/group/index.js +18 -0
  187. package/bin/group/interfaces/IGroupApi.d.ts +28 -0
  188. package/bin/group/interfaces/IGroupApi.js +2 -0
  189. package/bin/identity/IdentityApi.d.ts +15 -0
  190. package/bin/identity/IdentityApi.js +85 -0
  191. package/bin/identity/index.d.ts +2 -0
  192. package/bin/identity/index.js +18 -0
  193. package/bin/identity/interfaces/IIdentityApi.d.ts +33 -0
  194. package/bin/identity/interfaces/IIdentityApi.js +2 -0
  195. package/bin/index.d.ts +49 -0
  196. package/bin/index.js +65 -0
  197. package/bin/legalDocument/api/LegalDocumentApi.d.ts +8 -0
  198. package/bin/legalDocument/api/LegalDocumentApi.js +34 -0
  199. package/bin/legalDocument/api/interfaces/ILegalDocumentApi.d.ts +3 -0
  200. package/bin/legalDocument/api/interfaces/ILegalDocumentApi.js +2 -0
  201. package/bin/legalDocument/index.d.ts +2 -0
  202. package/bin/legalDocument/index.js +18 -0
  203. package/bin/notificationMessages/index.d.ts +2 -0
  204. package/bin/notificationMessages/index.js +18 -0
  205. package/bin/notificationMessages/queue/NotificationMessagePublisher.d.ts +12 -0
  206. package/bin/notificationMessages/queue/NotificationMessagePublisher.js +47 -0
  207. package/bin/notificationMessages/queue/interfaces/INotificationMessagesPublisher.d.ts +6 -0
  208. package/bin/notificationMessages/queue/interfaces/INotificationMessagesPublisher.js +2 -0
  209. package/bin/observations/ObservationsApi.d.ts +10 -0
  210. package/bin/observations/ObservationsApi.js +39 -0
  211. package/bin/observations/index.d.ts +2 -0
  212. package/bin/observations/index.js +18 -0
  213. package/bin/observations/interfaces/IObservationsApi.d.ts +8 -0
  214. package/bin/observations/interfaces/IObservationsApi.js +2 -0
  215. package/bin/order-collector-business/OrderCollectorApi.d.ts +9 -0
  216. package/bin/order-collector-business/OrderCollectorApi.js +37 -0
  217. package/bin/order-collector-business/index.d.ts +2 -0
  218. package/bin/order-collector-business/index.js +18 -0
  219. package/bin/order-collector-business/interfaces/IOrderCollectorApi.d.ts +7 -0
  220. package/bin/order-collector-business/interfaces/IOrderCollectorApi.js +2 -0
  221. package/bin/p2pContact/api/P2pContactApi.d.ts +9 -0
  222. package/bin/p2pContact/api/P2pContactApi.js +34 -0
  223. package/bin/p2pContact/api/interfaces/IP2pContactApi.d.ts +4 -0
  224. package/bin/p2pContact/api/interfaces/IP2pContactApi.js +2 -0
  225. package/bin/p2pContact/index.d.ts +2 -0
  226. package/bin/p2pContact/index.js +18 -0
  227. package/bin/pomelo/api/PomeloApi.d.ts +23 -0
  228. package/bin/pomelo/api/PomeloApi.js +86 -0
  229. package/bin/pomelo/api/interfaces/IPomeloApi.d.ts +17 -0
  230. package/bin/pomelo/api/interfaces/IPomeloApi.js +2 -0
  231. package/bin/pomelo/index.d.ts +2 -0
  232. package/bin/pomelo/index.js +18 -0
  233. package/bin/pomeloProcessor/api/PomeloProcessorApi.d.ts +8 -0
  234. package/bin/pomeloProcessor/api/PomeloProcessorApi.js +32 -0
  235. package/bin/pomeloProcessor/api/interfaces/IPomeloProcessorApi.d.ts +3 -0
  236. package/bin/pomeloProcessor/api/interfaces/IPomeloProcessorApi.js +2 -0
  237. package/bin/pomeloProcessor/index.d.ts +2 -0
  238. package/bin/pomeloProcessor/index.js +18 -0
  239. package/bin/pricelist-business/PriceListApi.d.ts +15 -0
  240. package/bin/pricelist-business/PriceListApi.js +55 -0
  241. package/bin/pricelist-business/index.d.ts +2 -0
  242. package/bin/pricelist-business/index.js +18 -0
  243. package/bin/pricelist-business/interfaces/IPriceListApi.d.ts +18 -0
  244. package/bin/pricelist-business/interfaces/IPriceListApi.js +2 -0
  245. package/bin/product-catalog/ProductCatalogApi.d.ts +10 -0
  246. package/bin/product-catalog/ProductCatalogApi.js +31 -0
  247. package/bin/product-catalog/index.d.ts +2 -0
  248. package/bin/product-catalog/index.js +18 -0
  249. package/bin/product-catalog/interfaces/IProductCatalogApi.d.ts +5 -0
  250. package/bin/product-catalog/interfaces/IProductCatalogApi.js +2 -0
  251. package/bin/riskProfile/api/RiskProfileApi.d.ts +15 -0
  252. package/bin/riskProfile/api/RiskProfileApi.js +47 -0
  253. package/bin/riskProfile/api/TransactionAlertApi.d.ts +13 -0
  254. package/bin/riskProfile/api/TransactionAlertApi.js +31 -0
  255. package/bin/riskProfile/api/interfaces/IRiskProfileApi.d.ts +10 -0
  256. package/bin/riskProfile/api/interfaces/IRiskProfileApi.js +2 -0
  257. package/bin/riskProfile/api/interfaces/ITransactionAlertApi.d.ts +8 -0
  258. package/bin/riskProfile/api/interfaces/ITransactionAlertApi.js +2 -0
  259. package/bin/riskProfile/index.d.ts +6 -0
  260. package/bin/riskProfile/index.js +22 -0
  261. package/bin/riskProfile/queue/TransactionAlarmPublisher.d.ts +6 -0
  262. package/bin/riskProfile/queue/TransactionAlarmPublisher.js +36 -0
  263. package/bin/riskProfile/queue/interfaces/ITransactionAlarmPublisher.d.ts +4 -0
  264. package/bin/riskProfile/queue/interfaces/ITransactionAlarmPublisher.js +2 -0
  265. package/bin/service-business/ServiceApi.d.ts +32 -0
  266. package/bin/service-business/ServiceApi.js +89 -0
  267. package/bin/service-business/index.d.ts +2 -0
  268. package/bin/service-business/index.js +18 -0
  269. package/bin/service-business/interfaces/IServiceApi.d.ts +72 -0
  270. package/bin/service-business/interfaces/IServiceApi.js +2 -0
  271. package/bin/sessionActivity/index.d.ts +2 -0
  272. package/bin/sessionActivity/index.js +18 -0
  273. package/bin/sessionActivity/queue/SessionActivityPublisher.d.ts +6 -0
  274. package/bin/sessionActivity/queue/SessionActivityPublisher.js +34 -0
  275. package/bin/sessionActivity/queue/interfaces/ISessionActivityPublisher.d.ts +4 -0
  276. package/bin/sessionActivity/queue/interfaces/ISessionActivityPublisher.js +2 -0
  277. package/bin/stpAccount/api/STPAccountApi.d.ts +15 -0
  278. package/bin/stpAccount/api/STPAccountApi.js +39 -0
  279. package/bin/stpAccount/api/interfaces/ISTPAccountApi.d.ts +10 -0
  280. package/bin/stpAccount/api/interfaces/ISTPAccountApi.js +2 -0
  281. package/bin/stpAccount/index.d.ts +2 -0
  282. package/bin/stpAccount/index.js +18 -0
  283. package/bin/stpServicePayment/api/StpServicePaymentApi.d.ts +14 -0
  284. package/bin/stpServicePayment/api/StpServicePaymentApi.js +50 -0
  285. package/bin/stpServicePayment/api/interfaces/IStpServicePaymentApi.d.ts +9 -0
  286. package/bin/stpServicePayment/api/interfaces/IStpServicePaymentApi.js +2 -0
  287. package/bin/stpServicePayment/index.d.ts +2 -0
  288. package/bin/stpServicePayment/index.js +18 -0
  289. package/bin/stpSpei/api/StpSpeiApi.d.ts +10 -0
  290. package/bin/stpSpei/api/StpSpeiApi.js +47 -0
  291. package/bin/stpSpei/api/interfaces/IStpSpeiApi.d.ts +5 -0
  292. package/bin/stpSpei/api/interfaces/IStpSpeiApi.js +2 -0
  293. package/bin/stpSpei/index.d.ts +2 -0
  294. package/bin/stpSpei/index.js +18 -0
  295. package/bin/tern/api/TernApi.d.ts +30 -0
  296. package/bin/tern/api/TernApi.js +125 -0
  297. package/bin/tern/api/interfaces/ITernApi.d.ts +26 -0
  298. package/bin/tern/api/interfaces/ITernApi.js +2 -0
  299. package/bin/tern/index.d.ts +2 -0
  300. package/bin/tern/index.js +18 -0
  301. package/bin/transaction/api/TransactionApi.d.ts +45 -0
  302. package/bin/transaction/api/TransactionApi.js +84 -0
  303. package/bin/transaction/api/interfaces/ITransactionApi.d.ts +40 -0
  304. package/bin/transaction/api/interfaces/ITransactionApi.js +2 -0
  305. package/bin/transaction/index.d.ts +4 -0
  306. package/bin/transaction/index.js +20 -0
  307. package/bin/transaction/queue/TransactionPublisher.d.ts +6 -0
  308. package/bin/transaction/queue/TransactionPublisher.js +36 -0
  309. package/bin/transaction/queue/interfaces/ITransactionPublisher.d.ts +4 -0
  310. package/bin/transaction/queue/interfaces/ITransactionPublisher.js +2 -0
  311. package/bin/transactionProcessor/api/TransactionProcessorApi.d.ts +16 -0
  312. package/bin/transactionProcessor/api/TransactionProcessorApi.js +51 -0
  313. package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.d.ts +11 -0
  314. package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.js +2 -0
  315. package/bin/transactionProcessor/index.d.ts +2 -0
  316. package/bin/transactionProcessor/index.js +18 -0
  317. package/bin/utils/InvokerUtils.d.ts +4 -0
  318. package/bin/utils/InvokerUtils.js +34 -0
  319. package/bin/zendesk/ZendeskApi.d.ts +11 -0
  320. package/bin/zendesk/ZendeskApi.js +41 -0
  321. package/bin/zendesk/index.d.ts +2 -0
  322. package/bin/zendesk/index.js +18 -0
  323. package/bin/zendesk/interfaces/IZendeskApi.d.ts +9 -0
  324. package/bin/zendesk/interfaces/IZendeskApi.js +2 -0
  325. package/package.json +2 -2
  326. package/src/transaction/api/TransactionApi.ts +1 -1
  327. package/src/transaction/api/interfaces/ITransactionApi.ts +2 -2
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./queue/SessionActivityPublisher"), exports);
18
+ __exportStar(require("./queue/interfaces/ISessionActivityPublisher"), exports);
@@ -0,0 +1,6 @@
1
+ import { ISessionActivityPublisher } from "./interfaces/ISessionActivityPublisher";
2
+ import { SessionActivityQueueMessageRequest } from "@fiado/type-kit/bin/sessionActivity";
3
+ export declare class SessionActivityPublisher implements ISessionActivityPublisher {
4
+ private readonly SESSION_ACTIVITY_QUEUE;
5
+ publish(message: SessionActivityQueueMessageRequest): Promise<void>;
6
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.SessionActivityPublisher = void 0;
10
+ const client_sqs_1 = require("@aws-sdk/client-sqs");
11
+ const inversify_1 = require("inversify");
12
+ let SessionActivityPublisher = class SessionActivityPublisher {
13
+ constructor() {
14
+ this.SESSION_ACTIVITY_QUEUE = process.env.SESSION_ACTIVITY_QUEUE;
15
+ }
16
+ async publish(message) {
17
+ try {
18
+ const client = new client_sqs_1.SQSClient();
19
+ const sendMessageRequest = {
20
+ QueueUrl: this.SESSION_ACTIVITY_QUEUE,
21
+ MessageBody: JSON.stringify(message)
22
+ };
23
+ const command = new client_sqs_1.SendMessageCommand(sendMessageRequest);
24
+ await client.send(command);
25
+ }
26
+ catch (error) {
27
+ throw new Error(`Error publishing message to queue ${': ' + error.message}`);
28
+ }
29
+ }
30
+ };
31
+ exports.SessionActivityPublisher = SessionActivityPublisher;
32
+ exports.SessionActivityPublisher = SessionActivityPublisher = __decorate([
33
+ (0, inversify_1.injectable)()
34
+ ], SessionActivityPublisher);
@@ -0,0 +1,4 @@
1
+ import { SessionActivityQueueMessageRequest } from "@fiado/type-kit/bin/sessionActivity";
2
+ export interface ISessionActivityPublisher {
3
+ publish(message: SessionActivityQueueMessageRequest): Promise<void>;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import { ISTPAccountApi } from "./interfaces/ISTPAccountApi";
2
+ import { IHttpRequest } from "@fiado/http-client";
3
+ import { AccountCreateRequest } from "@fiado/type-kit/bin/account";
4
+ import { CreateAccountWebhookDetail } from "@fiado/type-kit/bin/stpAccount";
5
+ export default class STPAccountApi implements ISTPAccountApi {
6
+ private httpRequest;
7
+ private readonly baseUrl;
8
+ constructor(httpRequest: IHttpRequest);
9
+ updateAccountDetails(request: CreateAccountWebhookDetail): Promise<any>;
10
+ createAccount(request: AccountCreateRequest): Promise<any>;
11
+ cancelAccount(request: {
12
+ accountNumber: string;
13
+ documentNumber: string;
14
+ }): Promise<any>;
15
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const inversify_1 = require("inversify");
16
+ let STPAccountApi = class STPAccountApi {
17
+ constructor(httpRequest) {
18
+ this.httpRequest = httpRequest;
19
+ this.baseUrl = process.env.STP_ACCOUNT_LAMBDA_URL || "";
20
+ }
21
+ async updateAccountDetails(request) {
22
+ const url = `${this.baseUrl}account/update`;
23
+ return await this.httpRequest.put(url, request);
24
+ }
25
+ async createAccount(request) {
26
+ const url = `${this.baseUrl}account/create`;
27
+ return await this.httpRequest.post(url, request);
28
+ }
29
+ async cancelAccount(request) {
30
+ const url = `${this.baseUrl}account/cancel`;
31
+ return await this.httpRequest.post(url, request);
32
+ }
33
+ };
34
+ STPAccountApi = __decorate([
35
+ (0, inversify_1.injectable)(),
36
+ __param(0, (0, inversify_1.inject)("IHttpRequest")),
37
+ __metadata("design:paramtypes", [Object])
38
+ ], STPAccountApi);
39
+ exports.default = STPAccountApi;
@@ -0,0 +1,10 @@
1
+ import { AccountCreateRequest } from "@fiado/type-kit/bin/account";
2
+ import { CreateAccountWebhookDetail } from "@fiado/type-kit/bin/stpAccount";
3
+ export interface ISTPAccountApi {
4
+ createAccount(request: AccountCreateRequest): Promise<any>;
5
+ updateAccountDetails(request: CreateAccountWebhookDetail): Promise<any>;
6
+ cancelAccount(request: {
7
+ accountNumber: string;
8
+ documentNumber: string;
9
+ }): Promise<any>;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from './api/STPAccountApi';
2
+ export * from './api/interfaces/ISTPAccountApi';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./api/STPAccountApi"), exports);
18
+ __exportStar(require("./api/interfaces/ISTPAccountApi"), exports);
@@ -0,0 +1,14 @@
1
+ import { IStpServicePaymentApi } from "./interfaces/IStpServicePaymentApi";
2
+ import { IHttpRequest } from "@fiado/http-client";
3
+ import { GetCatalogParams, ServicePaymentRequest } from "@fiado/type-kit/bin/servicePayment";
4
+ import { ApiGatewayResponse } from "@fiado/gateway-adapter";
5
+ export default class StpServicePaymentApi implements IStpServicePaymentApi {
6
+ private httpRequest;
7
+ private readonly baseUrl;
8
+ constructor(httpRequest: IHttpRequest);
9
+ pay(request: ServicePaymentRequest): Promise<ApiGatewayResponse<any>>;
10
+ getTransaction(transactionNumber: string): Promise<ApiGatewayResponse<any>>;
11
+ getById(id: string): Promise<ApiGatewayResponse<any>>;
12
+ getPaymentValidation(transactionNumber: string): Promise<ApiGatewayResponse<any>>;
13
+ getCatalog(params: GetCatalogParams): Promise<ApiGatewayResponse<any>>;
14
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const inversify_1 = require("inversify");
16
+ let StpServicePaymentApi = class StpServicePaymentApi {
17
+ constructor(httpRequest) {
18
+ this.httpRequest = httpRequest;
19
+ this.baseUrl = process.env.STP_SERVICE_PAY_LAMBDA_URL || "";
20
+ }
21
+ async pay(request) {
22
+ const url = `${this.baseUrl}/pay`;
23
+ return await this.httpRequest.post(url, request);
24
+ }
25
+ async getTransaction(transactionNumber) {
26
+ const url = `${this.baseUrl}/transaction/${transactionNumber}`;
27
+ return await this.httpRequest.get(url);
28
+ }
29
+ async getById(id) {
30
+ const url = `${this.baseUrl}/transaction/${id}`;
31
+ return await this.httpRequest.get(url);
32
+ }
33
+ async getPaymentValidation(transactionNumber) {
34
+ const url = `${this.baseUrl}/pay/validation/${transactionNumber}`;
35
+ return await this.httpRequest.get(url);
36
+ }
37
+ async getCatalog(params) {
38
+ let url = `${this.baseUrl}/catalog`;
39
+ if (params) {
40
+ url += `?${Object.keys(params).map(key => `${key}=${encodeURIComponent(params[key])}`).join('&')}`;
41
+ }
42
+ return await this.httpRequest.get(url);
43
+ }
44
+ };
45
+ StpServicePaymentApi = __decorate([
46
+ (0, inversify_1.injectable)(),
47
+ __param(0, (0, inversify_1.inject)("IHttpRequest")),
48
+ __metadata("design:paramtypes", [Object])
49
+ ], StpServicePaymentApi);
50
+ exports.default = StpServicePaymentApi;
@@ -0,0 +1,9 @@
1
+ import { GetCatalogParams, ServicePaymentRequest } from "@fiado/type-kit/bin/servicePayment";
2
+ import { ApiGatewayResponse } from "@fiado/gateway-adapter";
3
+ export interface IStpServicePaymentApi {
4
+ pay(request: ServicePaymentRequest): Promise<ApiGatewayResponse<any>>;
5
+ getTransaction(transactionNumber: string): Promise<ApiGatewayResponse<any>>;
6
+ getPaymentValidation(transactionNumber: string): Promise<ApiGatewayResponse<any>>;
7
+ getCatalog(params: GetCatalogParams): Promise<ApiGatewayResponse<any>>;
8
+ getById(id: string): any;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from './api/interfaces/IStpServicePaymentApi';
2
+ export * from './api/StpServicePaymentApi';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./api/interfaces/IStpServicePaymentApi"), exports);
18
+ __exportStar(require("./api/StpServicePaymentApi"), exports);
@@ -0,0 +1,10 @@
1
+ import { IStpSpeiApi } from "./interfaces/IStpSpeiApi";
2
+ import { IHttpRequest } from "@fiado/http-client";
3
+ import { BusinessNameEnum, PutStpOrderRequest } from "@fiado/type-kit/bin/stpSpei";
4
+ export declare class StpSpeiApi implements IStpSpeiApi {
5
+ private httpRequest;
6
+ private readonly baseUrl;
7
+ constructor(httpRequest: IHttpRequest);
8
+ putStpOrder(request: PutStpOrderRequest): Promise<any>;
9
+ getBusinessAccountBalance(businessName: BusinessNameEnum): Promise<any>;
10
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.StpSpeiApi = void 0;
16
+ const inversify_1 = require("inversify");
17
+ let StpSpeiApi = class StpSpeiApi {
18
+ constructor(httpRequest) {
19
+ this.httpRequest = httpRequest;
20
+ this.baseUrl = process.env.STP_SPEI_LAMBDA_URL || "";
21
+ }
22
+ async putStpOrder(request) {
23
+ const url = `${this.baseUrl}`;
24
+ const headers = {
25
+ 'Content-Type': 'application/json',
26
+ operationName: "putConnectorStpOrders"
27
+ };
28
+ return await this.httpRequest.post(url, request, headers);
29
+ }
30
+ async getBusinessAccountBalance(businessName) {
31
+ const url = `${this.baseUrl}`;
32
+ const request = {
33
+ business: businessName
34
+ };
35
+ const headers = {
36
+ 'Content-Type': 'application/json',
37
+ operationName: "getBusinessAccountBalance"
38
+ };
39
+ return await this.httpRequest.post(url, request, headers);
40
+ }
41
+ };
42
+ exports.StpSpeiApi = StpSpeiApi;
43
+ exports.StpSpeiApi = StpSpeiApi = __decorate([
44
+ (0, inversify_1.injectable)(),
45
+ __param(0, (0, inversify_1.inject)("IHttpRequest")),
46
+ __metadata("design:paramtypes", [Object])
47
+ ], StpSpeiApi);
@@ -0,0 +1,5 @@
1
+ import { BusinessNameEnum, PutStpOrderRequest } from "@fiado/type-kit/bin/stpSpei";
2
+ export interface IStpSpeiApi {
3
+ putStpOrder(request: PutStpOrderRequest): Promise<any>;
4
+ getBusinessAccountBalance(businessName: BusinessNameEnum): Promise<any>;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from './api/interfaces/IStpSpeiApi';
2
+ export * from './api/StpSpeiApi';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./api/interfaces/IStpSpeiApi"), exports);
18
+ __exportStar(require("./api/StpSpeiApi"), exports);
@@ -0,0 +1,30 @@
1
+ import { ITernApi } from "./interfaces/ITernApi";
2
+ import { IHttpRequest } from "@fiado/http-client";
3
+ import { BankAccountP2pTransferRequest, CreateBankAccountRequest, CreateBankAccountUserRequest, GetBankAccountRequest, GetBankAccountUserRequest } from "@fiado/type-kit/bin/account";
4
+ import { ActivateBankAccountCardRequest, AssignCardRequest, CreateBankAccountCardRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
5
+ import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
6
+ import { BankAccountP2pTransferResponse } from "@fiado/type-kit/bin/account/dtos/BankAccountP2pTransferResponse";
7
+ export default class TernApi implements ITernApi {
8
+ private readonly httpRequest;
9
+ private readonly baseUrl;
10
+ constructor(httpRequest: IHttpRequest);
11
+ getUser(request: GetBankAccountUserRequest): Promise<any>;
12
+ createUser(request: CreateBankAccountUserRequest): Promise<any>;
13
+ getAccount(request: GetBankAccountRequest): Promise<any>;
14
+ getBusinessAccount(request: GetBankAccountRequest): Promise<any>;
15
+ createAccount(request: CreateBankAccountRequest): Promise<any>;
16
+ getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>;
17
+ getCardsById(externalCardId: string): Promise<any>;
18
+ createCard(request: CreateBankAccountCardRequest): Promise<any>;
19
+ blockCard(request: UpdateBankAccountCardRequest): Promise<any>;
20
+ changePin(request: UpdateBankAccountCardRequest): Promise<any>;
21
+ updateCard(request: UpdateBankAccountCardRequest): Promise<any>;
22
+ activateCard(request: ActivateBankAccountCardRequest): Promise<any>;
23
+ assignCardToUser(request: AssignCardRequest): Promise<any>;
24
+ p2pTransfer(request: BankAccountP2pTransferRequest): Promise<FiadoApiResponse<BankAccountP2pTransferResponse>>;
25
+ getTransactions(accountId: string, page: number, pageSize?: number | null, startDate?: string | null, endDate?: string | null, detail?: boolean, raw?: boolean): Promise<any>;
26
+ getCardTransactions(externalUserId: string, page: number, pageSize: number): Promise<any>;
27
+ getAccountTransactions(accountId: string): Promise<any>;
28
+ getCardsByUserId(externalUserId: string): Promise<any>;
29
+ getAccountsByUserId(externalUserId: string): Promise<any>;
30
+ }
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const inversify_1 = require("inversify");
16
+ let TernApi = class TernApi {
17
+ constructor(httpRequest) {
18
+ this.httpRequest = httpRequest;
19
+ this.baseUrl = process.env.TERN_LAMBDA_URL || "";
20
+ }
21
+ /// USERS
22
+ async getUser(request) {
23
+ const url = `${this.baseUrl}users/${request.externalUserId}`;
24
+ return await this.httpRequest.get(url);
25
+ }
26
+ async createUser(request) {
27
+ const url = `${this.baseUrl}users/create`;
28
+ return await this.httpRequest.post(url, request);
29
+ }
30
+ /// ACCOUNTS
31
+ async getAccount(request) {
32
+ const url = `${this.baseUrl}accounts/${request.externalAccountId}`;
33
+ return await this.httpRequest.get(url);
34
+ }
35
+ async getBusinessAccount(request) {
36
+ const url = `${this.baseUrl}accounts/${request.externalAccountId}?accountType=BUSINESS`;
37
+ return await this.httpRequest.get(url);
38
+ }
39
+ async createAccount(request) {
40
+ const url = `${this.baseUrl}accounts/create`;
41
+ return await this.httpRequest.post(url, request);
42
+ }
43
+ /// CARDS
44
+ async getCardSensitiveInformation(externalCardId, externalUserId) {
45
+ const url = `${this.baseUrl}cards/${externalCardId}/sensitive`;
46
+ return await this.httpRequest.get(url);
47
+ }
48
+ async getCardsById(externalCardId) {
49
+ const url = `${this.baseUrl}cards/${externalCardId}/`;
50
+ return await this.httpRequest.get(url);
51
+ }
52
+ async createCard(request) {
53
+ const url = `${this.baseUrl}cards/create`;
54
+ return await this.httpRequest.post(url, request);
55
+ }
56
+ async blockCard(request) {
57
+ const url = `${this.baseUrl}cards/block`;
58
+ return await this.httpRequest.post(url, request);
59
+ }
60
+ async changePin(request) {
61
+ const url = `${this.baseUrl}cards/${request.cardId}/`;
62
+ return await this.httpRequest.put(url, request);
63
+ }
64
+ async updateCard(request) {
65
+ const url = `${this.baseUrl}cards/${request.cardId}/`;
66
+ return await this.httpRequest.put(url, request);
67
+ }
68
+ async activateCard(request) {
69
+ const url = `${this.baseUrl}cards/activate`;
70
+ return await this.httpRequest.post(url, request);
71
+ }
72
+ async assignCardToUser(request) {
73
+ const url = `${this.baseUrl}cards/activate`;
74
+ return await this.httpRequest.post(url, request);
75
+ }
76
+ async p2pTransfer(request) {
77
+ const url = `${this.baseUrl}users/accounts/transfer_balances`;
78
+ return await this.httpRequest.patch(url, request);
79
+ }
80
+ //transactions
81
+ async getTransactions(accountId, page, pageSize, startDate, endDate, detail = false, raw = false) {
82
+ try {
83
+ let url = `${this.baseUrl}users/${accountId}/v2/transactions?page=${page}&detail=${detail}&raw=${raw}`;
84
+ // Verificar si pageSize es válido y agregarlo
85
+ if (pageSize != null) {
86
+ url += `&pageSize=${encodeURIComponent(pageSize)}`;
87
+ }
88
+ // Verificar si startDate es válido y agregarlo
89
+ if (startDate) {
90
+ url += `&startDate=${encodeURIComponent(startDate)}`;
91
+ }
92
+ // Verificar si endDate es válido y agregarlo
93
+ if (endDate) {
94
+ url += `&endDate=${encodeURIComponent(endDate)}`;
95
+ }
96
+ return await this.httpRequest.get(url);
97
+ }
98
+ catch (error) {
99
+ console.log(error);
100
+ throw error;
101
+ }
102
+ }
103
+ async getCardTransactions(externalUserId, page, pageSize) {
104
+ const url = `${this.baseUrl}users/${externalUserId}/transactions?page=${page}&pageSize=${pageSize}`;
105
+ return await this.httpRequest.get(url);
106
+ }
107
+ async getAccountTransactions(accountId) {
108
+ const url = `${this.baseUrl}accounts/${accountId}/transactions/all`;
109
+ return await this.httpRequest.get(url);
110
+ }
111
+ async getCardsByUserId(externalUserId) {
112
+ const url = `${this.baseUrl}users/${externalUserId}/cards`;
113
+ return await this.httpRequest.get(url);
114
+ }
115
+ async getAccountsByUserId(externalUserId) {
116
+ const url = `${this.baseUrl}users/${externalUserId}/accounts`;
117
+ return await this.httpRequest.get(url);
118
+ }
119
+ };
120
+ TernApi = __decorate([
121
+ (0, inversify_1.injectable)(),
122
+ __param(0, (0, inversify_1.inject)("IHttpRequest")),
123
+ __metadata("design:paramtypes", [Object])
124
+ ], TernApi);
125
+ exports.default = TernApi;
@@ -0,0 +1,26 @@
1
+ import { BankAccountP2pTransferRequest, CreateBankAccountRequest, CreateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
2
+ import { GetBankAccountUserRequest } from "@fiado/type-kit/bin/account/dtos/GetBankAccountUserRequest";
3
+ import { GetBankAccountRequest } from "@fiado/type-kit/bin/account/dtos/GetBankAccountRequest";
4
+ import { ActivateBankAccountCardRequest, AssignCardRequest, CreateBankAccountCardRequest, UpdateBankAccountCardRequest, UpdateBankAccountCardResponse } from "@fiado/type-kit/bin/card";
5
+ import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
6
+ import { BankAccountP2pTransferResponse } from "@fiado/type-kit/bin/account/dtos/BankAccountP2pTransferResponse";
7
+ export interface ITernApi {
8
+ getUser(request: GetBankAccountUserRequest): Promise<any>;
9
+ getAccount(request: GetBankAccountRequest): Promise<any>;
10
+ getBusinessAccount(request: GetBankAccountRequest): Promise<any>;
11
+ createUser(request: CreateBankAccountUserRequest): Promise<any>;
12
+ createAccount(request: CreateBankAccountRequest): Promise<any>;
13
+ getCardsById(externalCardId: string): Promise<any>;
14
+ createCard(request: CreateBankAccountCardRequest): Promise<any>;
15
+ blockCard(request: UpdateBankAccountCardRequest): Promise<any>;
16
+ changePin(request: UpdateBankAccountCardRequest): Promise<UpdateBankAccountCardResponse>;
17
+ updateCard(request: UpdateBankAccountCardRequest): Promise<any>;
18
+ activateCard(request: ActivateBankAccountCardRequest): Promise<any>;
19
+ assignCardToUser(request: AssignCardRequest): Promise<any>;
20
+ p2pTransfer(request: BankAccountP2pTransferRequest): Promise<FiadoApiResponse<BankAccountP2pTransferResponse>>;
21
+ getTransactions(accountId: string, page: number, pageSize?: number | null, startDate?: string | null, endDate?: string | null, detail?: boolean, raw?: boolean): Promise<any>;
22
+ getCardTransactions(externalUserId: string, page: number, pageSize: number): Promise<any>;
23
+ getAccountTransactions(accountId: string): Promise<any>;
24
+ getCardsByUserId(externalUserId: string): Promise<any>;
25
+ getAccountsByUserId(externalUserId: string): Promise<any>;
26
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from './api/TernApi';
2
+ export * from './api/interfaces/ITernApi';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./api/TernApi"), exports);
18
+ __exportStar(require("./api/interfaces/ITernApi"), exports);
@@ -0,0 +1,45 @@
1
+ import { IHttpRequest } from "@fiado/http-client";
2
+ import { ITransactionApi } from "./interfaces/ITransactionApi";
3
+ import { TransactionSourceEnum } from "@fiado/type-kit/bin/transaction";
4
+ export default class TransactionApi implements ITransactionApi {
5
+ private httpRequest;
6
+ private readonly baseUrl;
7
+ constructor(httpRequest: IHttpRequest);
8
+ getActivityProblemsByStatus(status: string, index?: string, pageSize?: number): Promise<any>;
9
+ updateActivityProblemStatus(id: string, params: {
10
+ status: string;
11
+ observation?: string;
12
+ correctedBy?: string;
13
+ correctedAt?: number;
14
+ updatedBy: string;
15
+ }): Promise<any>;
16
+ getTransactionsByDirectoryIdAndSource(params: {
17
+ directoryId: string;
18
+ source: TransactionSourceEnum;
19
+ index?: string;
20
+ pageSize?: number;
21
+ }): Promise<any>;
22
+ getFiadoTxByDirectoryAndBetweenDates(params: {
23
+ directoryId: string;
24
+ targetOrSource: string;
25
+ startDate: string;
26
+ endDate: string;
27
+ index?: string;
28
+ pageSize?: number;
29
+ }): Promise<any>;
30
+ getTransactionDetailByTransactionNumber(params: {
31
+ transactionNumber: string;
32
+ directoryId: string;
33
+ source: TransactionSourceEnum;
34
+ }): Promise<any>;
35
+ getTransactionDetailById(params: {
36
+ id: string;
37
+ source: TransactionSourceEnum;
38
+ }): Promise<any>;
39
+ updateTransaction(params: {
40
+ id: string;
41
+ source: TransactionSourceEnum;
42
+ params: any;
43
+ }): Promise<any>;
44
+ getTransactionsByDisputeOrFraudLogId(id: string): Promise<any>;
45
+ }