fuse_client 1.0.31 → 1.0.33

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. checksums.yaml +4 -4
  2. data/Gemfile.lock +7 -8
  3. data/README.md +4 -1
  4. data/docs/AddSpendPowerTransactionRequest.md +22 -0
  5. data/docs/AddSpendPowerTransactionResponse.md +20 -0
  6. data/docs/AssetReport.md +26 -0
  7. data/docs/AssetReportAccountsInner.md +24 -0
  8. data/docs/{GetAssetReportResponseReportAccountsInnerBalances.md → AssetReportAccountsInnerBalance.md} +2 -2
  9. data/docs/{GetAssetReportResponseReportAccountsInnerHistoricalBalancesInner.md → AssetReportAccountsInnerHistoricalBalancesInner.md} +2 -2
  10. data/docs/{GetAssetReportResponse.md → AssetReportResponse.md} +3 -3
  11. data/docs/AssetReportTransaction.md +36 -0
  12. data/docs/CreateAssetReportRequest.md +2 -4
  13. data/docs/CreateAssetReportResponse.md +2 -2
  14. data/docs/CreateLinkTokenRequest.md +6 -2
  15. data/docs/CreateLinkTokenRequestPlaid.md +1 -1
  16. data/docs/CreateLinkTokenRequestTeller.md +18 -0
  17. data/docs/CreateLinkTokenRequestTellerConfig.md +18 -0
  18. data/docs/CreateSessionRequest.md +4 -4
  19. data/docs/CreateSpendPowerCustomizationResponse.md +20 -0
  20. data/docs/CreateSpendPowerRequest.md +22 -0
  21. data/docs/CreateSpendPowerResponse.md +20 -0
  22. data/docs/DeleteSpendPowerResponse.md +20 -0
  23. data/docs/Entity.md +1 -1
  24. data/docs/ExchangeFinancialConnectionsPublicTokenRequest.md +1 -1
  25. data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +2 -2
  26. data/docs/FinancialConnectionsAccountBalance.md +1 -1
  27. data/docs/FinancialConnectionsAccountCachedBalance.md +1 -1
  28. data/docs/FinancialConnectionsInvestmentSecurity.md +2 -2
  29. data/docs/FinancialConnectionsInvestmentSecurityType.md +15 -0
  30. data/docs/FinancialConnectionsInvestmentTransaction.md +2 -0
  31. data/docs/FuseApi.md +484 -18
  32. data/docs/FuseApiAggregatorError.md +28 -0
  33. data/docs/FuseApiError.md +7 -5
  34. data/docs/FuseApiErrorCode.md +15 -0
  35. data/docs/FuseApiErrorData.md +1 -1
  36. data/docs/FuseApiErrorType.md +15 -0
  37. data/docs/GetAssetReportRequest.md +2 -0
  38. data/docs/GetFinancialConnectionsAccountStatementRequest.md +22 -0
  39. data/docs/GetFinancialConnectionsAccountStatementResponse.md +20 -0
  40. data/docs/GetInvestmentTransactionsResponse.md +2 -0
  41. data/docs/GetSpendPowerResponse.md +20 -0
  42. data/docs/MigrateFinancialConnectionsAggregatorConnectionData.md +3 -1
  43. data/docs/MigrateFinancialConnectionsAggregatorConnectionDataPlaid.md +3 -1
  44. data/docs/MigrateFinancialConnectionsAggregatorConnectionDataTeller.md +18 -0
  45. data/docs/MigrateFinancialConnectionsTokenRequest.md +1 -1
  46. data/docs/RefreshAssetReportRequest.md +5 -5
  47. data/docs/RefreshAssetReportResponse.md +22 -0
  48. data/docs/SpendPower.md +30 -0
  49. data/docs/SpendPowerApi.md +122 -0
  50. data/docs/SpendPowerCustomization.md +22 -0
  51. data/docs/Transaction.md +2 -2
  52. data/docs/UpdateSpendPowerCustomizationResponse.md +20 -0
  53. data/docs/WebhookEvent.md +6 -0
  54. data/fuse_client.gemspec +1 -1
  55. data/lib/fuse_client/api/fuse_api.rb +385 -16
  56. data/lib/fuse_client/api/spend_power_api.rb +146 -0
  57. data/lib/fuse_client/api_client.rb +1 -1
  58. data/lib/fuse_client/api_error.rb +1 -1
  59. data/lib/fuse_client/configuration.rb +51 -4
  60. data/lib/fuse_client/models/account_subtype.rb +1 -1
  61. data/lib/fuse_client/models/account_type.rb +3 -2
  62. data/lib/fuse_client/models/add_spend_power_transaction_request.rb +284 -0
  63. data/lib/fuse_client/models/add_spend_power_transaction_response.rb +240 -0
  64. data/lib/fuse_client/models/aggregator.rb +4 -2
  65. data/lib/fuse_client/models/{get_asset_report_response_report.rb → asset_report.rb} +15 -27
  66. data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner.rb → asset_report_accounts_inner.rb} +27 -26
  67. data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner_balances.rb → asset_report_accounts_inner_balance.rb} +4 -4
  68. data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner_historical_balances_inner.rb → asset_report_accounts_inner_historical_balances_inner.rb} +4 -4
  69. data/lib/fuse_client/models/{get_asset_report_response.rb → asset_report_response.rb} +5 -5
  70. data/lib/fuse_client/models/asset_report_transaction.rb +385 -0
  71. data/lib/fuse_client/models/country_code.rb +1 -1
  72. data/lib/fuse_client/models/create_asset_report_request.rb +11 -23
  73. data/lib/fuse_client/models/create_asset_report_response.rb +3 -3
  74. data/lib/fuse_client/models/create_entity_request.rb +1 -1
  75. data/lib/fuse_client/models/create_entity_response.rb +1 -1
  76. data/lib/fuse_client/models/create_link_token_request.rb +25 -6
  77. data/lib/fuse_client/models/create_link_token_request_mx.rb +1 -1
  78. data/lib/fuse_client/models/create_link_token_request_plaid.rb +2 -2
  79. data/lib/fuse_client/models/create_link_token_request_teller.rb +220 -0
  80. data/lib/fuse_client/models/create_link_token_request_teller_config.rb +254 -0
  81. data/lib/fuse_client/models/create_link_token_response.rb +1 -1
  82. data/lib/fuse_client/models/create_session_request.rb +31 -8
  83. data/lib/fuse_client/models/create_session_response.rb +1 -1
  84. data/lib/fuse_client/models/create_spend_power_customization_response.rb +240 -0
  85. data/lib/fuse_client/models/create_spend_power_request.rb +255 -0
  86. data/lib/fuse_client/models/create_spend_power_response.rb +240 -0
  87. data/lib/fuse_client/models/currency.rb +1 -1
  88. data/lib/fuse_client/models/delete_financial_connection_response.rb +1 -1
  89. data/lib/fuse_client/models/delete_spend_power_response.rb +239 -0
  90. data/lib/fuse_client/models/entity.rb +2 -2
  91. data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +6 -1
  92. data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +3 -3
  93. data/lib/fuse_client/models/financial_connection_data.rb +1 -1
  94. data/lib/fuse_client/models/financial_connection_details.rb +1 -1
  95. data/lib/fuse_client/models/financial_connection_details_mx.rb +1 -1
  96. data/lib/fuse_client/models/financial_connection_details_plaid.rb +1 -1
  97. data/lib/fuse_client/models/financial_connection_details_teller.rb +1 -1
  98. data/lib/fuse_client/models/financial_connections_account.rb +1 -1
  99. data/lib/fuse_client/models/financial_connections_account_balance.rb +2 -2
  100. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +2 -2
  101. data/lib/fuse_client/models/financial_connections_account_details.rb +1 -1
  102. data/lib/fuse_client/models/financial_connections_account_details_ach.rb +1 -1
  103. data/lib/fuse_client/models/financial_connections_account_institution.rb +1 -1
  104. data/lib/fuse_client/models/financial_connections_account_liability.rb +1 -1
  105. data/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +1 -1
  106. data/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +1 -1
  107. data/lib/fuse_client/models/financial_connections_holding.rb +1 -1
  108. data/lib/fuse_client/models/financial_connections_investment_security.rb +24 -8
  109. data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +1 -1
  110. data/lib/fuse_client/models/financial_connections_investment_security_type.rb +64 -0
  111. data/lib/fuse_client/models/financial_connections_investment_transaction.rb +50 -2
  112. data/lib/fuse_client/models/financial_connections_owner.rb +1 -1
  113. data/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +1 -1
  114. data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +1 -1
  115. data/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +1 -1
  116. data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +1 -1
  117. data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +1 -1
  118. data/lib/fuse_client/models/financial_institution.rb +1 -1
  119. data/lib/fuse_client/models/financial_institution_logo.rb +1 -1
  120. data/lib/fuse_client/models/fuse_api_aggregator_error.rb +264 -0
  121. data/lib/fuse_client/models/fuse_api_error.rb +43 -28
  122. data/lib/fuse_client/models/fuse_api_error_code.rb +76 -0
  123. data/lib/fuse_client/models/fuse_api_error_data.rb +2 -2
  124. data/lib/fuse_client/models/fuse_api_error_type.rb +42 -0
  125. data/lib/fuse_client/models/fuse_api_warning.rb +1 -1
  126. data/lib/fuse_client/models/fuse_api_warning_data.rb +1 -1
  127. data/lib/fuse_client/models/fuse_api_warning_data_warnings_inner.rb +1 -1
  128. data/lib/fuse_client/models/get_asset_report_request.rb +17 -2
  129. data/lib/fuse_client/models/get_entity_response.rb +1 -1
  130. data/lib/fuse_client/models/get_financial_connection_response.rb +1 -1
  131. data/lib/fuse_client/models/get_financial_connections_account_details_request.rb +1 -1
  132. data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +1 -1
  133. data/lib/fuse_client/models/get_financial_connections_account_statement_request.rb +250 -0
  134. data/lib/fuse_client/models/get_financial_connections_account_statement_response.rb +240 -0
  135. data/lib/fuse_client/models/get_financial_connections_accounts_request.rb +1 -1
  136. data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +1 -1
  137. data/lib/fuse_client/models/get_financial_connections_balance_request.rb +1 -1
  138. data/lib/fuse_client/models/get_financial_connections_balance_request_options.rb +1 -1
  139. data/lib/fuse_client/models/get_financial_connections_balance_response.rb +1 -1
  140. data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
  141. data/lib/fuse_client/models/get_financial_connections_owners_response.rb +1 -1
  142. data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +1 -1
  143. data/lib/fuse_client/models/get_financial_connections_transactions_request.rb +1 -1
  144. data/lib/fuse_client/models/get_financial_connections_transactions_response.rb +1 -1
  145. data/lib/fuse_client/models/get_financial_institution_response.rb +1 -1
  146. data/lib/fuse_client/models/get_investment_holdings_request.rb +1 -1
  147. data/lib/fuse_client/models/get_investment_holdings_request_options.rb +1 -1
  148. data/lib/fuse_client/models/get_investment_holdings_response.rb +1 -1
  149. data/lib/fuse_client/models/get_investment_transactions_request.rb +1 -1
  150. data/lib/fuse_client/models/get_investment_transactions_request_options.rb +1 -1
  151. data/lib/fuse_client/models/get_investment_transactions_response.rb +12 -2
  152. data/lib/fuse_client/models/get_liabilities_request.rb +1 -1
  153. data/lib/fuse_client/models/get_liabilities_response.rb +1 -1
  154. data/lib/fuse_client/models/get_spend_power_response.rb +239 -0
  155. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data.rb +14 -5
  156. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx.rb +1 -1
  157. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid.rb +15 -5
  158. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_teller.rb +226 -0
  159. data/lib/fuse_client/models/migrate_financial_connections_token_request.rb +23 -4
  160. data/lib/fuse_client/models/migrate_financial_connections_token_request_entity.rb +1 -1
  161. data/lib/fuse_client/models/migrate_financial_connections_token_response.rb +1 -1
  162. data/lib/fuse_client/models/product.rb +3 -3
  163. data/lib/fuse_client/models/refresh_asset_report_request.rb +32 -33
  164. data/lib/fuse_client/models/refresh_asset_report_response.rb +240 -0
  165. data/lib/fuse_client/models/spend_power.rb +315 -0
  166. data/lib/fuse_client/models/spend_power_customization.rb +289 -0
  167. data/lib/fuse_client/models/sync_financial_connections_data_response.rb +1 -1
  168. data/lib/fuse_client/models/sync_transactions_request.rb +1 -1
  169. data/lib/fuse_client/models/sync_transactions_response.rb +1 -1
  170. data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
  171. data/lib/fuse_client/models/transaction.rb +15 -3
  172. data/lib/fuse_client/models/transaction_merchant.rb +1 -1
  173. data/lib/fuse_client/models/update_entity_request.rb +1 -1
  174. data/lib/fuse_client/models/update_entity_response.rb +1 -1
  175. data/lib/fuse_client/models/update_spend_power_customization_response.rb +240 -0
  176. data/lib/fuse_client/models/webhook_event.rb +34 -2
  177. data/lib/fuse_client/models/webhook_source.rb +1 -1
  178. data/lib/fuse_client/models/webhook_type.rb +4 -3
  179. data/lib/fuse_client/version.rb +2 -2
  180. data/lib/fuse_client.rb +28 -6
  181. data/spec/api/fuse_api_spec.rb +69 -6
  182. data/spec/api/spend_power_api_spec.rb +64 -0
  183. data/spec/api_client_spec.rb +1 -1
  184. data/spec/configuration_spec.rb +1 -1
  185. data/spec/models/account_subtype_spec.rb +1 -1
  186. data/spec/models/account_type_spec.rb +1 -1
  187. data/spec/models/add_spend_power_transaction_request_spec.rb +50 -0
  188. data/spec/models/add_spend_power_transaction_response_spec.rb +40 -0
  189. data/spec/models/aggregator_spec.rb +1 -1
  190. data/spec/models/{get_asset_report_response_report_accounts_inner_balances_spec.rb → asset_report_accounts_inner_balance_spec.rb} +7 -7
  191. data/spec/models/{get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb → asset_report_accounts_inner_historical_balances_inner_spec.rb} +7 -7
  192. data/spec/models/{get_asset_report_response_report_accounts_inner_spec.rb → asset_report_accounts_inner_spec.rb} +10 -10
  193. data/spec/models/{get_asset_report_response_spec.rb → asset_report_response_spec.rb} +7 -7
  194. data/spec/models/{get_asset_report_response_report_spec.rb → asset_report_spec.rb} +8 -14
  195. data/spec/models/asset_report_transaction_spec.rb +96 -0
  196. data/spec/models/country_code_spec.rb +1 -1
  197. data/spec/models/create_asset_report_request_spec.rb +1 -7
  198. data/spec/models/create_asset_report_response_spec.rb +1 -1
  199. data/spec/models/create_entity_request_spec.rb +1 -1
  200. data/spec/models/create_entity_response_spec.rb +1 -1
  201. data/spec/models/create_link_token_request_mx_spec.rb +1 -1
  202. data/spec/models/create_link_token_request_plaid_spec.rb +1 -1
  203. data/spec/models/create_link_token_request_spec.rb +13 -1
  204. data/spec/models/create_link_token_request_teller_config_spec.rb +38 -0
  205. data/spec/models/create_link_token_request_teller_spec.rb +34 -0
  206. data/spec/models/create_link_token_response_spec.rb +1 -1
  207. data/spec/models/create_session_request_spec.rb +1 -1
  208. data/spec/models/create_session_response_spec.rb +1 -1
  209. data/spec/models/create_spend_power_customization_response_spec.rb +40 -0
  210. data/spec/models/create_spend_power_request_spec.rb +46 -0
  211. data/spec/models/create_spend_power_response_spec.rb +40 -0
  212. data/spec/models/currency_spec.rb +1 -1
  213. data/spec/models/delete_financial_connection_response_spec.rb +1 -1
  214. data/spec/models/delete_spend_power_response_spec.rb +40 -0
  215. data/spec/models/entity_spec.rb +1 -1
  216. data/spec/models/exchange_financial_connections_public_token_request_spec.rb +1 -1
  217. data/spec/models/exchange_financial_connections_public_token_response_spec.rb +1 -1
  218. data/spec/models/financial_connection_data_spec.rb +1 -1
  219. data/spec/models/financial_connection_details_mx_spec.rb +1 -1
  220. data/spec/models/financial_connection_details_plaid_spec.rb +1 -1
  221. data/spec/models/financial_connection_details_spec.rb +1 -1
  222. data/spec/models/financial_connection_details_teller_spec.rb +1 -1
  223. data/spec/models/financial_connections_account_balance_spec.rb +1 -1
  224. data/spec/models/financial_connections_account_cached_balance_spec.rb +1 -1
  225. data/spec/models/financial_connections_account_details_ach_spec.rb +1 -1
  226. data/spec/models/financial_connections_account_details_spec.rb +1 -1
  227. data/spec/models/financial_connections_account_institution_spec.rb +1 -1
  228. data/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +1 -1
  229. data/spec/models/financial_connections_account_liability_all_of_spec.rb +1 -1
  230. data/spec/models/financial_connections_account_liability_spec.rb +1 -1
  231. data/spec/models/financial_connections_account_spec.rb +1 -1
  232. data/spec/models/financial_connections_holding_spec.rb +1 -1
  233. data/spec/models/financial_connections_investment_security_exchange_spec.rb +1 -1
  234. data/spec/models/financial_connections_investment_security_spec.rb +1 -1
  235. data/spec/models/financial_connections_investment_security_type_spec.rb +28 -0
  236. data/spec/models/financial_connections_investment_transaction_spec.rb +11 -1
  237. data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +1 -1
  238. data/spec/models/financial_connections_owner_addresses_inner_spec.rb +1 -1
  239. data/spec/models/financial_connections_owner_emails_inner_spec.rb +1 -1
  240. data/spec/models/financial_connections_owner_names_inner_spec.rb +1 -1
  241. data/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +1 -1
  242. data/spec/models/financial_connections_owner_spec.rb +1 -1
  243. data/spec/models/financial_institution_logo_spec.rb +1 -1
  244. data/spec/models/financial_institution_spec.rb +1 -1
  245. data/spec/models/fuse_api_aggregator_error_spec.rb +64 -0
  246. data/spec/models/fuse_api_error_code_spec.rb +28 -0
  247. data/spec/models/fuse_api_error_data_spec.rb +1 -1
  248. data/spec/models/fuse_api_error_spec.rb +7 -9
  249. data/spec/models/fuse_api_error_type_spec.rb +28 -0
  250. data/spec/models/fuse_api_warning_data_spec.rb +1 -1
  251. data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +1 -1
  252. data/spec/models/fuse_api_warning_spec.rb +1 -1
  253. data/spec/models/get_asset_report_request_spec.rb +7 -1
  254. data/spec/models/get_entity_response_spec.rb +1 -1
  255. data/spec/models/get_financial_connection_response_spec.rb +1 -1
  256. data/spec/models/get_financial_connections_account_details_request_spec.rb +1 -1
  257. data/spec/models/get_financial_connections_account_details_response_spec.rb +1 -1
  258. data/spec/models/get_financial_connections_account_statement_request_spec.rb +46 -0
  259. data/spec/models/get_financial_connections_account_statement_response_spec.rb +40 -0
  260. data/spec/models/get_financial_connections_accounts_request_spec.rb +1 -1
  261. data/spec/models/get_financial_connections_accounts_response_spec.rb +1 -1
  262. data/spec/models/get_financial_connections_balance_request_options_spec.rb +1 -1
  263. data/spec/models/get_financial_connections_balance_request_spec.rb +1 -1
  264. data/spec/models/get_financial_connections_balance_response_spec.rb +1 -1
  265. data/spec/models/get_financial_connections_owners_request_spec.rb +1 -1
  266. data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +1 -1
  267. data/spec/models/get_financial_connections_owners_response_spec.rb +1 -1
  268. data/spec/models/get_financial_connections_transactions_request_spec.rb +1 -1
  269. data/spec/models/get_financial_connections_transactions_response_spec.rb +1 -1
  270. data/spec/models/get_financial_institution_response_spec.rb +1 -1
  271. data/spec/models/get_investment_holdings_request_options_spec.rb +1 -1
  272. data/spec/models/get_investment_holdings_request_spec.rb +1 -1
  273. data/spec/models/get_investment_holdings_response_spec.rb +1 -1
  274. data/spec/models/get_investment_transactions_request_options_spec.rb +1 -1
  275. data/spec/models/get_investment_transactions_request_spec.rb +1 -1
  276. data/spec/models/get_investment_transactions_response_spec.rb +7 -1
  277. data/spec/models/get_liabilities_request_spec.rb +1 -1
  278. data/spec/models/get_liabilities_response_spec.rb +1 -1
  279. data/spec/models/get_spend_power_response_spec.rb +40 -0
  280. data/spec/models/migrate_financial_connections_aggregator_connection_data_mx_spec.rb +1 -1
  281. data/spec/models/migrate_financial_connections_aggregator_connection_data_plaid_spec.rb +7 -1
  282. data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +7 -1
  283. data/spec/models/migrate_financial_connections_aggregator_connection_data_teller_spec.rb +34 -0
  284. data/spec/models/migrate_financial_connections_token_request_entity_spec.rb +1 -1
  285. data/spec/models/migrate_financial_connections_token_request_spec.rb +2 -2
  286. data/spec/models/migrate_financial_connections_token_response_spec.rb +1 -1
  287. data/spec/models/product_spec.rb +1 -1
  288. data/spec/models/refresh_asset_report_request_spec.rb +3 -3
  289. data/spec/models/refresh_asset_report_response_spec.rb +46 -0
  290. data/spec/models/spend_power_customization_spec.rb +50 -0
  291. data/spec/models/spend_power_spec.rb +70 -0
  292. data/spec/models/sync_financial_connections_data_response_spec.rb +1 -1
  293. data/spec/models/sync_transactions_request_spec.rb +1 -1
  294. data/spec/models/sync_transactions_response_removed_inner_spec.rb +1 -1
  295. data/spec/models/sync_transactions_response_spec.rb +1 -1
  296. data/spec/models/transaction_merchant_spec.rb +1 -1
  297. data/spec/models/transaction_spec.rb +9 -1
  298. data/spec/models/update_entity_request_spec.rb +1 -1
  299. data/spec/models/update_entity_response_spec.rb +1 -1
  300. data/spec/models/update_spend_power_customization_response_spec.rb +40 -0
  301. data/spec/models/webhook_event_spec.rb +19 -1
  302. data/spec/models/webhook_source_spec.rb +1 -1
  303. data/spec/models/webhook_type_spec.rb +1 -1
  304. data/spec/spec_helper.rb +1 -1
  305. metadata +110 -22
  306. data/docs/GetAssetReportResponseReport.md +0 -28
  307. data/docs/GetAssetReportResponseReportAccountsInner.md +0 -24
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -20,10 +20,10 @@ module FuseClient
20
20
  OWNERSHIP = "ownership".freeze
21
21
  TRANSACTIONS = "transactions".freeze
22
22
  INVESTMENTS = "investments".freeze
23
- ASSET_REPORT = "asset_report".freeze
23
+ ASSETS = "assets".freeze
24
24
 
25
25
  def self.all_vars
26
- @all_vars ||= [ACCOUNT_DETAILS, BALANCE, OWNERSHIP, TRANSACTIONS, INVESTMENTS, ASSET_REPORT].freeze
26
+ @all_vars ||= [ACCOUNT_DETAILS, BALANCE, OWNERSHIP, TRANSACTIONS, INVESTMENTS, ASSETS].freeze
27
27
  end
28
28
 
29
29
  # Builds the enum from string
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -15,21 +15,21 @@ require 'time'
15
15
 
16
16
  module FuseClient
17
17
  class RefreshAssetReportRequest
18
- # The asset_report_token returned by the original call to /asset_report/create
18
+ # Access fuse token corresponding to the financial account to be refresh the Asset Report for.
19
19
  attr_accessor :access_token
20
20
 
21
+ # The asset_report_token returned by the original call to /asset_report/create
22
+ attr_accessor :asset_report_token
23
+
21
24
  # The maximum integer number of days of history to include in the Asset Report
22
25
  attr_accessor :days_requested
23
26
 
24
- # Indicates whether to include identity data in the Asset Report
25
- attr_accessor :include_identity
26
-
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
30
  :'access_token' => :'access_token',
31
- :'days_requested' => :'days_requested',
32
- :'include_identity' => :'include_identity'
31
+ :'asset_report_token' => :'asset_report_token',
32
+ :'days_requested' => :'days_requested'
33
33
  }
34
34
  end
35
35
 
@@ -42,8 +42,8 @@ module FuseClient
42
42
  def self.openapi_types
43
43
  {
44
44
  :'access_token' => :'String',
45
- :'days_requested' => :'Float',
46
- :'include_identity' => :'Boolean'
45
+ :'asset_report_token' => :'String',
46
+ :'days_requested' => :'Float'
47
47
  }
48
48
  end
49
49
 
@@ -72,14 +72,12 @@ module FuseClient
72
72
  self.access_token = attributes[:'access_token']
73
73
  end
74
74
 
75
- if attributes.key?(:'days_requested')
76
- self.days_requested = attributes[:'days_requested']
75
+ if attributes.key?(:'asset_report_token')
76
+ self.asset_report_token = attributes[:'asset_report_token']
77
77
  end
78
78
 
79
- if attributes.key?(:'include_identity')
80
- self.include_identity = attributes[:'include_identity']
81
- else
82
- self.include_identity = true
79
+ if attributes.key?(:'days_requested')
80
+ self.days_requested = attributes[:'days_requested']
83
81
  end
84
82
  end
85
83
 
@@ -87,15 +85,19 @@ module FuseClient
87
85
  # @return Array for valid properties with the reasons
88
86
  def list_invalid_properties
89
87
  invalid_properties = Array.new
90
- if @days_requested.nil?
91
- invalid_properties.push('invalid value for "days_requested", days_requested cannot be nil.')
88
+ if @access_token.nil?
89
+ invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
90
+ end
91
+
92
+ if @asset_report_token.nil?
93
+ invalid_properties.push('invalid value for "asset_report_token", asset_report_token cannot be nil.')
92
94
  end
93
95
 
94
- if @days_requested > 365
95
- invalid_properties.push('invalid value for "days_requested", must be smaller than or equal to 365.')
96
+ if !@days_requested.nil? && @days_requested > 731
97
+ invalid_properties.push('invalid value for "days_requested", must be smaller than or equal to 731.')
96
98
  end
97
99
 
98
- if @days_requested < 1
100
+ if !@days_requested.nil? && @days_requested < 1
99
101
  invalid_properties.push('invalid value for "days_requested", must be greater than or equal to 1.')
100
102
  end
101
103
 
@@ -105,24 +107,21 @@ module FuseClient
105
107
  # Check to see if the all the properties in the model are valid
106
108
  # @return true if the model is valid
107
109
  def valid?
108
- return false if @days_requested.nil?
109
- return false if @days_requested > 365
110
- return false if @days_requested < 1
110
+ return false if @access_token.nil?
111
+ return false if @asset_report_token.nil?
112
+ return false if !@days_requested.nil? && @days_requested > 731
113
+ return false if !@days_requested.nil? && @days_requested < 1
111
114
  true
112
115
  end
113
116
 
114
117
  # Custom attribute writer method with validation
115
118
  # @param [Object] days_requested Value to be assigned
116
119
  def days_requested=(days_requested)
117
- if days_requested.nil?
118
- fail ArgumentError, 'days_requested cannot be nil'
119
- end
120
-
121
- if days_requested > 365
122
- fail ArgumentError, 'invalid value for "days_requested", must be smaller than or equal to 365.'
120
+ if !days_requested.nil? && days_requested > 731
121
+ fail ArgumentError, 'invalid value for "days_requested", must be smaller than or equal to 731.'
123
122
  end
124
123
 
125
- if days_requested < 1
124
+ if !days_requested.nil? && days_requested < 1
126
125
  fail ArgumentError, 'invalid value for "days_requested", must be greater than or equal to 1.'
127
126
  end
128
127
 
@@ -135,8 +134,8 @@ module FuseClient
135
134
  return true if self.equal?(o)
136
135
  self.class == o.class &&
137
136
  access_token == o.access_token &&
138
- days_requested == o.days_requested &&
139
- include_identity == o.include_identity
137
+ asset_report_token == o.asset_report_token &&
138
+ days_requested == o.days_requested
140
139
  end
141
140
 
142
141
  # @see the `==` method
@@ -148,7 +147,7 @@ module FuseClient
148
147
  # Calculates hash code according to all attributes.
149
148
  # @return [Integer] Hash code
150
149
  def hash
151
- [access_token, days_requested, include_identity].hash
150
+ [access_token, asset_report_token, days_requested].hash
152
151
  end
153
152
 
154
153
  # Builds the object from hash
@@ -0,0 +1,240 @@
1
+ =begin
2
+ #Fuse
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.5.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FuseClient
17
+ class RefreshAssetReportResponse
18
+ # A token that can be provided to endpoints such as /asset_report to fetch an asset report.
19
+ attr_accessor :asset_report_token
20
+
21
+ # A unique ID identifying an Asset Report.
22
+ attr_accessor :asset_report_id
23
+
24
+ # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
25
+ attr_accessor :request_id
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'asset_report_token' => :'asset_report_token',
31
+ :'asset_report_id' => :'asset_report_id',
32
+ :'request_id' => :'request_id'
33
+ }
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'asset_report_token' => :'String',
45
+ :'asset_report_id' => :'String',
46
+ :'request_id' => :'String'
47
+ }
48
+ end
49
+
50
+ # List of attributes with nullable: true
51
+ def self.openapi_nullable
52
+ Set.new([
53
+ ])
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::RefreshAssetReportResponse` initialize method"
61
+ end
62
+
63
+ # check to see if the attribute exists and convert string to symbol for hash key
64
+ attributes = attributes.each_with_object({}) { |(k, v), h|
65
+ if (!self.class.attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::RefreshAssetReportResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
+ end
68
+ h[k.to_sym] = v
69
+ }
70
+
71
+ if attributes.key?(:'asset_report_token')
72
+ self.asset_report_token = attributes[:'asset_report_token']
73
+ end
74
+
75
+ if attributes.key?(:'asset_report_id')
76
+ self.asset_report_id = attributes[:'asset_report_id']
77
+ end
78
+
79
+ if attributes.key?(:'request_id')
80
+ self.request_id = attributes[:'request_id']
81
+ end
82
+ end
83
+
84
+ # Show invalid properties with the reasons. Usually used together with valid?
85
+ # @return Array for valid properties with the reasons
86
+ def list_invalid_properties
87
+ invalid_properties = Array.new
88
+ invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ true
95
+ end
96
+
97
+ # Checks equality by comparing each attribute.
98
+ # @param [Object] Object to be compared
99
+ def ==(o)
100
+ return true if self.equal?(o)
101
+ self.class == o.class &&
102
+ asset_report_token == o.asset_report_token &&
103
+ asset_report_id == o.asset_report_id &&
104
+ request_id == o.request_id
105
+ end
106
+
107
+ # @see the `==` method
108
+ # @param [Object] Object to be compared
109
+ def eql?(o)
110
+ self == o
111
+ end
112
+
113
+ # Calculates hash code according to all attributes.
114
+ # @return [Integer] Hash code
115
+ def hash
116
+ [asset_report_token, asset_report_id, request_id].hash
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def self.build_from_hash(attributes)
123
+ new.build_from_hash(attributes)
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def build_from_hash(attributes)
130
+ return nil unless attributes.is_a?(Hash)
131
+ attributes = attributes.transform_keys(&:to_sym)
132
+ self.class.openapi_types.each_pair do |key, type|
133
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
134
+ self.send("#{key}=", nil)
135
+ elsif type =~ /\AArray<(.*)>/i
136
+ # check to ensure the input is an array given that the attribute
137
+ # is documented as an array but the input is not
138
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
139
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
140
+ end
141
+ elsif !attributes[self.class.attribute_map[key]].nil?
142
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
143
+ end
144
+ end
145
+
146
+ self
147
+ end
148
+
149
+ # Deserializes the data based on type
150
+ # @param string type Data type
151
+ # @param string value Value to be deserialized
152
+ # @return [Object] Deserialized data
153
+ def _deserialize(type, value)
154
+ case type.to_sym
155
+ when :Time
156
+ Time.parse(value)
157
+ when :Date
158
+ Date.parse(value)
159
+ when :String
160
+ value.to_s
161
+ when :Integer
162
+ value.to_i
163
+ when :Float
164
+ value.to_f
165
+ when :Boolean
166
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
167
+ true
168
+ else
169
+ false
170
+ end
171
+ when :Object
172
+ # generic object (usually a Hash), return directly
173
+ value
174
+ when /\AArray<(?<inner_type>.+)>\z/
175
+ inner_type = Regexp.last_match[:inner_type]
176
+ value.map { |v| _deserialize(inner_type, v) }
177
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
178
+ k_type = Regexp.last_match[:k_type]
179
+ v_type = Regexp.last_match[:v_type]
180
+ {}.tap do |hash|
181
+ value.each do |k, v|
182
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
183
+ end
184
+ end
185
+ else # model
186
+ # models (e.g. Pet) or oneOf
187
+ klass = FuseClient.const_get(type)
188
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
189
+ end
190
+ end
191
+
192
+ # Returns the string representation of the object
193
+ # @return [String] String presentation of the object
194
+ def to_s
195
+ to_hash.to_s
196
+ end
197
+
198
+ # to_body is an alias to to_hash (backward compatibility)
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_body
201
+ to_hash
202
+ end
203
+
204
+ # Returns the object in the form of hash
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_hash
207
+ hash = {}
208
+ self.class.attribute_map.each_pair do |attr, param|
209
+ value = self.send(attr)
210
+ if value.nil?
211
+ is_nullable = self.class.openapi_nullable.include?(attr)
212
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
213
+ end
214
+
215
+ hash[param] = _to_hash(value)
216
+ end
217
+ hash
218
+ end
219
+
220
+ # Outputs non-array value in the form of hash
221
+ # For object, use to_hash. Otherwise, just return the value
222
+ # @param [Object] value Any valid value
223
+ # @return [Hash] Returns the value in the form of hash
224
+ def _to_hash(value)
225
+ if value.is_a?(Array)
226
+ value.compact.map { |v| _to_hash(v) }
227
+ elsif value.is_a?(Hash)
228
+ {}.tap do |hash|
229
+ value.each { |k, v| hash[k] = _to_hash(v) }
230
+ end
231
+ elsif value.respond_to? :to_hash
232
+ value.to_hash
233
+ else
234
+ value
235
+ end
236
+ end
237
+
238
+ end
239
+
240
+ end