fuse_client 1.0.34 → 1.0.35

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 (413) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/README.md +1 -0
  4. data/docs/CreateLinkTokenRequestTellerConfig.md +3 -1
  5. data/docs/CreateLinkTokenRequestTellerConfigAccountFilter.md +20 -0
  6. data/docs/CreateLinkTokenRequestTellerConfigAccountFilterCredit.md +49 -0
  7. data/docs/CreateLinkTokenRequestTellerConfigAccountFilterCreditOneOf.md +18 -0
  8. data/docs/CreateLinkTokenRequestTellerConfigAccountFilterDepository.md +49 -0
  9. data/docs/CreateLinkTokenRequestTellerConfigAccountFilterDepositoryOneOf.md +18 -0
  10. data/docs/CreateSpendPowerCustomizationRequest.md +3 -1
  11. data/docs/EnrichedTransaction.md +3 -1
  12. data/docs/EvalSpendPowerResponse.md +8 -4
  13. data/docs/ExternalTransactionEvent.md +7 -9
  14. data/docs/FinQLComparisonFeature.md +26 -0
  15. data/docs/FinQLFeature.md +61 -0
  16. data/docs/FinQLFeatureOneOf.md +18 -0
  17. data/docs/FinQLFeatureOneOf1.md +18 -0
  18. data/docs/FinQLFeatureOneOf2.md +18 -0
  19. data/docs/FinQLFeatureOneOf3.md +18 -0
  20. data/docs/FinQLFeatureOneOf4.md +18 -0
  21. data/docs/FinQLFeatureOneOf5.md +18 -0
  22. data/docs/FinQLFeatureOneOf6.md +18 -0
  23. data/docs/FinQLFeatureOneOf7.md +18 -0
  24. data/docs/FinQLFeatureRequest.md +15 -0
  25. data/docs/FinQLFrequencyFeature.md +20 -0
  26. data/docs/FinQLIndividualMerchantFeature.md +20 -0
  27. data/docs/FinQLInterestFeature.md +18 -0
  28. data/docs/FinQLMerchantCategoriesFeatureInner.md +20 -0
  29. data/docs/FinQLMerchantCategoriesFeatureInnerResultInner.md +20 -0
  30. data/docs/FinQLPromptRequest.md +22 -0
  31. data/docs/FinQLPromptResponse.md +20 -0
  32. data/docs/FinQLTimeBasedFeatureInner.md +20 -0
  33. data/docs/FinQLTopMerchantsFeatureInner.md +22 -0
  34. data/docs/FinanceScore.md +30 -0
  35. data/docs/FinancialConnectionDetails.md +7 -1
  36. data/docs/FinancialConnectionDetailsFlinks.md +18 -0
  37. data/docs/FinancialConnectionDetailsMono.md +18 -0
  38. data/docs/FinancialConnectionDetailsSnaptrade.md +22 -0
  39. data/docs/FinancialConnectionsAccount.md +4 -2
  40. data/docs/FinancialConnectionsAccountDetails.md +3 -1
  41. data/docs/FinancialConnectionsAccountLiability.md +3 -1
  42. data/docs/FuseApi.md +81 -2
  43. data/docs/GetFinanceScoreResponse.md +1 -1
  44. data/docs/InAppTransactionEvent.md +7 -7
  45. data/docs/Merchant.md +22 -0
  46. data/docs/{EnrichedTransactionLogo.md → MerchantLogo.md} +2 -2
  47. data/docs/SpendPower.md +5 -1
  48. data/docs/SpendPowerCustomization.md +5 -3
  49. data/docs/Transaction.md +2 -0
  50. data/docs/TransactionToEnrich.md +1 -1
  51. data/docs/UpdateSpendPowerCustomizationRequest.md +3 -1
  52. data/docs/UpdatedBalanceEvent.md +5 -5
  53. data/fuse_client.gemspec +1 -1
  54. data/lib/fuse_client/api/fuse_api.rb +65 -1
  55. data/lib/fuse_client/api/spend_power_api.rb +1 -1
  56. data/lib/fuse_client/api_client.rb +1 -1
  57. data/lib/fuse_client/api_error.rb +1 -1
  58. data/lib/fuse_client/configuration.rb +11 -11
  59. data/lib/fuse_client/models/account_subtype.rb +1 -1
  60. data/lib/fuse_client/models/account_type.rb +1 -1
  61. data/lib/fuse_client/models/add_account_events_request.rb +1 -1
  62. data/lib/fuse_client/models/add_account_events_request_events_inner.rb +1 -1
  63. data/lib/fuse_client/models/add_account_events_response.rb +1 -1
  64. data/lib/fuse_client/models/aggregator.rb +3 -3
  65. data/lib/fuse_client/models/asset_report.rb +1 -1
  66. data/lib/fuse_client/models/asset_report_accounts_inner.rb +1 -1
  67. data/lib/fuse_client/models/asset_report_accounts_inner_balance.rb +1 -1
  68. data/lib/fuse_client/models/asset_report_accounts_inner_historical_balances_inner.rb +1 -1
  69. data/lib/fuse_client/models/asset_report_response.rb +1 -1
  70. data/lib/fuse_client/models/asset_report_transaction.rb +1 -1
  71. data/lib/fuse_client/models/country_code.rb +6 -2
  72. data/lib/fuse_client/models/create_asset_report_request.rb +1 -1
  73. data/lib/fuse_client/models/create_asset_report_response.rb +1 -1
  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 +1 -1
  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 +1 -1
  79. data/lib/fuse_client/models/create_link_token_request_teller.rb +1 -1
  80. data/lib/fuse_client/models/create_link_token_request_teller_config.rb +14 -5
  81. data/lib/fuse_client/models/create_link_token_request_teller_config_account_filter.rb +229 -0
  82. data/lib/fuse_client/models/create_link_token_request_teller_config_account_filter_credit.rb +105 -0
  83. data/lib/fuse_client/models/create_link_token_request_teller_config_account_filter_credit_one_of.rb +243 -0
  84. data/lib/fuse_client/models/create_link_token_request_teller_config_account_filter_depository.rb +105 -0
  85. data/lib/fuse_client/models/create_link_token_request_teller_config_account_filter_depository_one_of.rb +243 -0
  86. data/lib/fuse_client/models/create_link_token_response.rb +1 -1
  87. data/lib/fuse_client/models/create_session_request.rb +1 -1
  88. data/lib/fuse_client/models/create_session_response.rb +1 -1
  89. data/lib/fuse_client/models/create_spend_power_customization_request.rb +48 -5
  90. data/lib/fuse_client/models/create_spend_power_customization_response.rb +1 -1
  91. data/lib/fuse_client/models/create_spend_power_request.rb +1 -1
  92. data/lib/fuse_client/models/create_spend_power_response.rb +1 -1
  93. data/lib/fuse_client/models/currency.rb +1 -1
  94. data/lib/fuse_client/models/delete_financial_connection_response.rb +1 -1
  95. data/lib/fuse_client/models/delete_spend_power_response.rb +1 -1
  96. data/lib/fuse_client/models/enrich_transactions_request.rb +1 -1
  97. data/lib/fuse_client/models/enrich_transactions_response.rb +1 -1
  98. data/lib/fuse_client/models/enriched_transaction.rb +13 -3
  99. data/lib/fuse_client/models/entity.rb +1 -1
  100. data/lib/fuse_client/models/eval_spend_power_request.rb +1 -1
  101. data/lib/fuse_client/models/eval_spend_power_request_events_inner.rb +1 -1
  102. data/lib/fuse_client/models/eval_spend_power_response.rb +36 -16
  103. data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +1 -1
  104. data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +1 -1
  105. data/lib/fuse_client/models/external_transaction_event.rb +34 -48
  106. data/lib/fuse_client/models/external_transaction_event_status.rb +1 -1
  107. data/lib/fuse_client/models/fin_ql_comparison_feature.rb +255 -0
  108. data/lib/fuse_client/models/fin_ql_feature.rb +111 -0
  109. data/lib/fuse_client/models/fin_ql_feature_one_of.rb +219 -0
  110. data/lib/fuse_client/models/fin_ql_feature_one_of1.rb +219 -0
  111. data/lib/fuse_client/models/fin_ql_feature_one_of2.rb +221 -0
  112. data/lib/fuse_client/models/fin_ql_feature_one_of3.rb +219 -0
  113. data/lib/fuse_client/models/fin_ql_feature_one_of4.rb +219 -0
  114. data/lib/fuse_client/models/fin_ql_feature_one_of5.rb +221 -0
  115. data/lib/fuse_client/models/fin_ql_feature_one_of6.rb +219 -0
  116. data/lib/fuse_client/models/fin_ql_feature_one_of7.rb +221 -0
  117. data/lib/fuse_client/models/fin_ql_feature_request.rb +46 -0
  118. data/lib/fuse_client/models/fin_ql_frequency_feature.rb +262 -0
  119. data/lib/fuse_client/models/fin_ql_individual_merchant_feature.rb +228 -0
  120. data/lib/fuse_client/models/fin_ql_interest_feature.rb +219 -0
  121. data/lib/fuse_client/models/fin_ql_merchant_categories_feature_inner.rb +230 -0
  122. data/lib/fuse_client/models/fin_ql_merchant_categories_feature_inner_result_inner.rb +228 -0
  123. data/lib/fuse_client/models/fin_ql_prompt_request.rb +276 -0
  124. data/lib/fuse_client/models/fin_ql_prompt_response.rb +234 -0
  125. data/lib/fuse_client/models/fin_ql_time_based_feature_inner.rb +228 -0
  126. data/lib/fuse_client/models/fin_ql_top_merchants_feature_inner.rb +237 -0
  127. data/lib/fuse_client/models/finance_score.rb +315 -0
  128. data/lib/fuse_client/models/financial_connection_data.rb +1 -1
  129. data/lib/fuse_client/models/financial_connection_details.rb +32 -5
  130. data/lib/fuse_client/models/financial_connection_details_flinks.rb +226 -0
  131. data/lib/fuse_client/models/financial_connection_details_mono.rb +226 -0
  132. data/lib/fuse_client/models/financial_connection_details_mx.rb +1 -1
  133. data/lib/fuse_client/models/financial_connection_details_plaid.rb +1 -1
  134. data/lib/fuse_client/models/financial_connection_details_snaptrade.rb +256 -0
  135. data/lib/fuse_client/models/financial_connection_details_teller.rb +1 -1
  136. data/lib/fuse_client/models/financial_connections_account.rb +16 -6
  137. data/lib/fuse_client/models/financial_connections_account_balance.rb +1 -1
  138. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +1 -1
  139. data/lib/fuse_client/models/financial_connections_account_details.rb +15 -5
  140. data/lib/fuse_client/models/financial_connections_account_details_ach.rb +1 -1
  141. data/lib/fuse_client/models/financial_connections_account_institution.rb +1 -1
  142. data/lib/fuse_client/models/financial_connections_account_liability.rb +13 -3
  143. data/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +1 -1
  144. data/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +1 -1
  145. data/lib/fuse_client/models/financial_connections_holding.rb +1 -1
  146. data/lib/fuse_client/models/financial_connections_investment_security.rb +1 -1
  147. data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +1 -1
  148. data/lib/fuse_client/models/financial_connections_investment_security_type.rb +1 -1
  149. data/lib/fuse_client/models/financial_connections_investment_transaction.rb +1 -1
  150. data/lib/fuse_client/models/financial_connections_investment_transaction_subtype.rb +1 -1
  151. data/lib/fuse_client/models/financial_connections_owner.rb +1 -1
  152. data/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +1 -1
  153. data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +1 -1
  154. data/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +1 -1
  155. data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +1 -1
  156. data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +1 -1
  157. data/lib/fuse_client/models/financial_institution.rb +1 -1
  158. data/lib/fuse_client/models/financial_institution_logo.rb +1 -1
  159. data/lib/fuse_client/models/fuse_api_aggregator_error.rb +1 -1
  160. data/lib/fuse_client/models/fuse_api_error.rb +1 -1
  161. data/lib/fuse_client/models/fuse_api_error_code.rb +5 -2
  162. data/lib/fuse_client/models/fuse_api_error_data.rb +1 -1
  163. data/lib/fuse_client/models/fuse_api_error_type.rb +1 -1
  164. data/lib/fuse_client/models/fuse_api_warning.rb +1 -1
  165. data/lib/fuse_client/models/fuse_api_warning_data.rb +1 -1
  166. data/lib/fuse_client/models/fuse_api_warning_data_warnings_inner.rb +1 -1
  167. data/lib/fuse_client/models/get_asset_report_request.rb +1 -1
  168. data/lib/fuse_client/models/get_entity_response.rb +1 -1
  169. data/lib/fuse_client/models/get_finance_score_response.rb +2 -3
  170. data/lib/fuse_client/models/get_financial_connection_response.rb +1 -1
  171. data/lib/fuse_client/models/get_financial_connections_account_details_request.rb +1 -1
  172. data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +1 -1
  173. data/lib/fuse_client/models/get_financial_connections_account_statement_request.rb +1 -1
  174. data/lib/fuse_client/models/get_financial_connections_account_statement_response.rb +1 -1
  175. data/lib/fuse_client/models/get_financial_connections_accounts_request.rb +1 -1
  176. data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +1 -1
  177. data/lib/fuse_client/models/get_financial_connections_balance_request.rb +1 -1
  178. data/lib/fuse_client/models/get_financial_connections_balance_request_options.rb +1 -1
  179. data/lib/fuse_client/models/get_financial_connections_balance_response.rb +1 -1
  180. data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
  181. data/lib/fuse_client/models/get_financial_connections_owners_response.rb +1 -1
  182. data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +1 -1
  183. data/lib/fuse_client/models/get_financial_connections_transactions_request.rb +1 -1
  184. data/lib/fuse_client/models/get_financial_connections_transactions_response.rb +1 -1
  185. data/lib/fuse_client/models/get_financial_institution_response.rb +1 -1
  186. data/lib/fuse_client/models/get_investment_holdings_request.rb +1 -1
  187. data/lib/fuse_client/models/get_investment_holdings_request_options.rb +1 -1
  188. data/lib/fuse_client/models/get_investment_holdings_response.rb +1 -1
  189. data/lib/fuse_client/models/get_investment_transactions_request.rb +1 -1
  190. data/lib/fuse_client/models/get_investment_transactions_request_options.rb +1 -1
  191. data/lib/fuse_client/models/get_investment_transactions_response.rb +1 -1
  192. data/lib/fuse_client/models/get_liabilities_request.rb +1 -1
  193. data/lib/fuse_client/models/get_liabilities_response.rb +1 -1
  194. data/lib/fuse_client/models/get_spend_power_customization_response.rb +1 -1
  195. data/lib/fuse_client/models/get_spend_power_response.rb +1 -1
  196. data/lib/fuse_client/models/in_app_transaction_event.rb +36 -31
  197. data/lib/fuse_client/models/in_app_transaction_event_status.rb +1 -1
  198. data/lib/fuse_client/models/merchant.rb +249 -0
  199. data/lib/fuse_client/models/{enriched_transaction_logo.rb → merchant_logo.rb} +4 -4
  200. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data.rb +1 -1
  201. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx.rb +1 -1
  202. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid.rb +1 -1
  203. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_teller.rb +1 -1
  204. data/lib/fuse_client/models/migrate_financial_connections_token_request.rb +1 -1
  205. data/lib/fuse_client/models/migrate_financial_connections_token_request_entity.rb +1 -1
  206. data/lib/fuse_client/models/migrate_financial_connections_token_response.rb +1 -1
  207. data/lib/fuse_client/models/product.rb +1 -1
  208. data/lib/fuse_client/models/refresh_asset_report_request.rb +1 -1
  209. data/lib/fuse_client/models/refresh_asset_report_response.rb +1 -1
  210. data/lib/fuse_client/models/spend_power.rb +34 -5
  211. data/lib/fuse_client/models/spend_power_customization.rb +40 -6
  212. data/lib/fuse_client/models/spend_power_time_frame.rb +1 -1
  213. data/lib/fuse_client/models/sync_financial_connections_data_response.rb +1 -1
  214. data/lib/fuse_client/models/sync_transactions_request.rb +1 -1
  215. data/lib/fuse_client/models/sync_transactions_response.rb +1 -1
  216. data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
  217. data/lib/fuse_client/models/transaction.rb +12 -2
  218. data/lib/fuse_client/models/transaction_category.rb +1 -1
  219. data/lib/fuse_client/models/transaction_category_detailed.rb +23 -2
  220. data/lib/fuse_client/models/transaction_category_primary.rb +1 -1
  221. data/lib/fuse_client/models/transaction_event_type.rb +1 -1
  222. data/lib/fuse_client/models/transaction_merchant.rb +1 -1
  223. data/lib/fuse_client/models/transaction_to_enrich.rb +2 -2
  224. data/lib/fuse_client/models/update_entity_request.rb +1 -1
  225. data/lib/fuse_client/models/update_entity_response.rb +1 -1
  226. data/lib/fuse_client/models/update_spend_power_customization_request.rb +39 -5
  227. data/lib/fuse_client/models/update_spend_power_customization_response.rb +1 -1
  228. data/lib/fuse_client/models/updated_balance_event.rb +25 -25
  229. data/lib/fuse_client/models/webhook_event.rb +1 -1
  230. data/lib/fuse_client/models/webhook_source.rb +3 -2
  231. data/lib/fuse_client/models/webhook_type.rb +1 -1
  232. data/lib/fuse_client/version.rb +2 -2
  233. data/lib/fuse_client.rb +32 -2
  234. data/spec/api/fuse_api_spec.rb +41 -29
  235. data/spec/api/spend_power_api_spec.rb +3 -3
  236. data/spec/api_client_spec.rb +1 -1
  237. data/spec/configuration_spec.rb +1 -1
  238. data/spec/models/account_subtype_spec.rb +1 -1
  239. data/spec/models/account_type_spec.rb +1 -1
  240. data/spec/models/add_account_events_request_events_inner_spec.rb +1 -1
  241. data/spec/models/add_account_events_request_spec.rb +2 -2
  242. data/spec/models/add_account_events_response_spec.rb +3 -3
  243. data/spec/models/aggregator_spec.rb +1 -1
  244. data/spec/models/asset_report_accounts_inner_balance_spec.rb +4 -4
  245. data/spec/models/asset_report_accounts_inner_historical_balances_inner_spec.rb +4 -4
  246. data/spec/models/asset_report_accounts_inner_spec.rb +5 -5
  247. data/spec/models/asset_report_response_spec.rb +3 -3
  248. data/spec/models/asset_report_spec.rb +6 -6
  249. data/spec/models/asset_report_transaction_spec.rb +11 -11
  250. data/spec/models/country_code_spec.rb +1 -1
  251. data/spec/models/create_asset_report_request_spec.rb +3 -3
  252. data/spec/models/create_asset_report_response_spec.rb +4 -4
  253. data/spec/models/create_entity_request_spec.rb +5 -5
  254. data/spec/models/create_entity_response_spec.rb +6 -6
  255. data/spec/models/create_link_token_request_mx_spec.rb +2 -2
  256. data/spec/models/create_link_token_request_plaid_spec.rb +2 -2
  257. data/spec/models/create_link_token_request_spec.rb +9 -9
  258. data/spec/models/create_link_token_request_teller_config_account_filter_credit_one_of_spec.rb +38 -0
  259. data/spec/models/create_link_token_request_teller_config_account_filter_credit_spec.rb +31 -0
  260. data/spec/models/create_link_token_request_teller_config_account_filter_depository_one_of_spec.rb +38 -0
  261. data/spec/models/create_link_token_request_teller_config_account_filter_depository_spec.rb +31 -0
  262. data/spec/models/create_link_token_request_teller_config_account_filter_spec.rb +40 -0
  263. data/spec/models/create_link_token_request_teller_config_spec.rb +8 -2
  264. data/spec/models/create_link_token_request_teller_spec.rb +2 -2
  265. data/spec/models/create_link_token_response_spec.rb +3 -3
  266. data/spec/models/create_session_request_spec.rb +7 -7
  267. data/spec/models/create_session_response_spec.rb +4 -4
  268. data/spec/models/create_spend_power_customization_request_spec.rb +10 -4
  269. data/spec/models/create_spend_power_customization_response_spec.rb +3 -3
  270. data/spec/models/create_spend_power_request_spec.rb +4 -4
  271. data/spec/models/create_spend_power_response_spec.rb +3 -3
  272. data/spec/models/currency_spec.rb +3 -3
  273. data/spec/models/delete_financial_connection_response_spec.rb +4 -4
  274. data/spec/models/delete_spend_power_response_spec.rb +3 -3
  275. data/spec/models/enrich_transactions_request_spec.rb +2 -2
  276. data/spec/models/enrich_transactions_response_spec.rb +2 -2
  277. data/spec/models/enriched_transaction_spec.rb +22 -16
  278. data/spec/models/entity_spec.rb +4 -4
  279. data/spec/models/eval_spend_power_request_events_inner_spec.rb +3 -3
  280. data/spec/models/eval_spend_power_request_spec.rb +4 -4
  281. data/spec/models/eval_spend_power_response_spec.rb +17 -5
  282. data/spec/models/exchange_financial_connections_public_token_request_spec.rb +2 -2
  283. data/spec/models/exchange_financial_connections_public_token_response_spec.rb +4 -4
  284. data/spec/models/external_transaction_event_spec.rb +14 -20
  285. data/spec/models/external_transaction_event_status_spec.rb +1 -1
  286. data/spec/models/fin_ql_comparison_feature_spec.rb +58 -0
  287. data/spec/models/fin_ql_feature_one_of1_spec.rb +34 -0
  288. data/spec/models/fin_ql_feature_one_of2_spec.rb +34 -0
  289. data/spec/models/fin_ql_feature_one_of3_spec.rb +34 -0
  290. data/spec/models/fin_ql_feature_one_of4_spec.rb +34 -0
  291. data/spec/models/fin_ql_feature_one_of5_spec.rb +34 -0
  292. data/spec/models/fin_ql_feature_one_of6_spec.rb +34 -0
  293. data/spec/models/fin_ql_feature_one_of7_spec.rb +34 -0
  294. data/spec/models/fin_ql_feature_one_of_spec.rb +34 -0
  295. data/spec/models/fin_ql_feature_request_spec.rb +28 -0
  296. data/spec/models/fin_ql_feature_spec.rb +31 -0
  297. data/spec/models/fin_ql_frequency_feature_spec.rb +44 -0
  298. data/spec/models/fin_ql_individual_merchant_feature_spec.rb +40 -0
  299. data/spec/models/fin_ql_interest_feature_spec.rb +34 -0
  300. data/spec/models/fin_ql_merchant_categories_feature_inner_result_inner_spec.rb +40 -0
  301. data/spec/models/fin_ql_merchant_categories_feature_inner_spec.rb +40 -0
  302. data/spec/models/fin_ql_prompt_request_spec.rb +46 -0
  303. data/spec/models/fin_ql_prompt_response_spec.rb +40 -0
  304. data/spec/models/fin_ql_time_based_feature_inner_spec.rb +40 -0
  305. data/spec/models/fin_ql_top_merchants_feature_inner_spec.rb +46 -0
  306. data/spec/models/finance_score_spec.rb +70 -0
  307. data/spec/models/financial_connection_data_spec.rb +3 -3
  308. data/spec/models/financial_connection_details_flinks_spec.rb +34 -0
  309. data/spec/models/financial_connection_details_mono_spec.rb +34 -0
  310. data/spec/models/financial_connection_details_mx_spec.rb +3 -3
  311. data/spec/models/financial_connection_details_plaid_spec.rb +3 -3
  312. data/spec/models/financial_connection_details_snaptrade_spec.rb +46 -0
  313. data/spec/models/financial_connection_details_spec.rb +27 -9
  314. data/spec/models/financial_connection_details_teller_spec.rb +3 -3
  315. data/spec/models/financial_connections_account_balance_spec.rb +6 -6
  316. data/spec/models/financial_connections_account_cached_balance_spec.rb +5 -5
  317. data/spec/models/financial_connections_account_details_ach_spec.rb +5 -5
  318. data/spec/models/financial_connections_account_details_spec.rb +9 -3
  319. data/spec/models/financial_connections_account_institution_spec.rb +2 -2
  320. data/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +3 -3
  321. data/spec/models/financial_connections_account_liability_all_of_spec.rb +8 -8
  322. data/spec/models/financial_connections_account_liability_spec.rb +22 -16
  323. data/spec/models/financial_connections_account_spec.rb +15 -9
  324. data/spec/models/financial_connections_holding_spec.rb +7 -7
  325. data/spec/models/financial_connections_investment_security_exchange_spec.rb +2 -2
  326. data/spec/models/financial_connections_investment_security_spec.rb +11 -11
  327. data/spec/models/financial_connections_investment_security_type_spec.rb +1 -1
  328. data/spec/models/financial_connections_investment_transaction_spec.rb +14 -14
  329. data/spec/models/financial_connections_investment_transaction_subtype_spec.rb +1 -1
  330. data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +6 -6
  331. data/spec/models/financial_connections_owner_addresses_inner_spec.rb +3 -3
  332. data/spec/models/financial_connections_owner_emails_inner_spec.rb +4 -4
  333. data/spec/models/financial_connections_owner_names_inner_spec.rb +3 -3
  334. data/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +4 -4
  335. data/spec/models/financial_connections_owner_spec.rb +5 -5
  336. data/spec/models/financial_institution_logo_spec.rb +4 -4
  337. data/spec/models/financial_institution_spec.rb +6 -6
  338. data/spec/models/fuse_api_aggregator_error_spec.rb +7 -7
  339. data/spec/models/fuse_api_error_code_spec.rb +1 -1
  340. data/spec/models/fuse_api_error_data_spec.rb +3 -3
  341. data/spec/models/fuse_api_error_spec.rb +8 -8
  342. data/spec/models/fuse_api_error_type_spec.rb +1 -1
  343. data/spec/models/fuse_api_warning_data_spec.rb +3 -3
  344. data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +6 -6
  345. data/spec/models/fuse_api_warning_spec.rb +7 -7
  346. data/spec/models/get_asset_report_request_spec.rb +3 -3
  347. data/spec/models/get_entity_response_spec.rb +7 -7
  348. data/spec/models/get_finance_score_response_spec.rb +3 -3
  349. data/spec/models/get_financial_connection_response_spec.rb +3 -3
  350. data/spec/models/get_financial_connections_account_details_request_spec.rb +2 -2
  351. data/spec/models/get_financial_connections_account_details_response_spec.rb +4 -4
  352. data/spec/models/get_financial_connections_account_statement_request_spec.rb +4 -4
  353. data/spec/models/get_financial_connections_account_statement_response_spec.rb +3 -3
  354. data/spec/models/get_financial_connections_accounts_request_spec.rb +2 -2
  355. data/spec/models/get_financial_connections_accounts_response_spec.rb +4 -4
  356. data/spec/models/get_financial_connections_balance_request_options_spec.rb +2 -2
  357. data/spec/models/get_financial_connections_balance_request_spec.rb +3 -3
  358. data/spec/models/get_financial_connections_balance_response_spec.rb +3 -3
  359. data/spec/models/get_financial_connections_owners_request_spec.rb +2 -2
  360. data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +4 -4
  361. data/spec/models/get_financial_connections_owners_response_spec.rb +2 -2
  362. data/spec/models/get_financial_connections_transactions_request_spec.rb +6 -6
  363. data/spec/models/get_financial_connections_transactions_response_spec.rb +4 -4
  364. data/spec/models/get_financial_institution_response_spec.rb +3 -3
  365. data/spec/models/get_investment_holdings_request_options_spec.rb +2 -2
  366. data/spec/models/get_investment_holdings_request_spec.rb +3 -3
  367. data/spec/models/get_investment_holdings_response_spec.rb +4 -4
  368. data/spec/models/get_investment_transactions_request_options_spec.rb +2 -2
  369. data/spec/models/get_investment_transactions_request_spec.rb +7 -7
  370. data/spec/models/get_investment_transactions_response_spec.rb +5 -5
  371. data/spec/models/get_liabilities_request_spec.rb +2 -2
  372. data/spec/models/get_liabilities_response_spec.rb +3 -3
  373. data/spec/models/get_spend_power_customization_response_spec.rb +3 -3
  374. data/spec/models/get_spend_power_response_spec.rb +3 -3
  375. data/spec/models/in_app_transaction_event_spec.rb +16 -16
  376. data/spec/models/in_app_transaction_event_status_spec.rb +1 -1
  377. data/spec/models/merchant_logo_spec.rb +34 -0
  378. data/spec/models/merchant_spec.rb +46 -0
  379. data/spec/models/migrate_financial_connections_aggregator_connection_data_mx_spec.rb +3 -3
  380. data/spec/models/migrate_financial_connections_aggregator_connection_data_plaid_spec.rb +3 -3
  381. data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +4 -4
  382. data/spec/models/migrate_financial_connections_aggregator_connection_data_teller_spec.rb +2 -2
  383. data/spec/models/migrate_financial_connections_token_request_entity_spec.rb +2 -2
  384. data/spec/models/migrate_financial_connections_token_request_spec.rb +5 -5
  385. data/spec/models/migrate_financial_connections_token_response_spec.rb +5 -5
  386. data/spec/models/product_spec.rb +1 -1
  387. data/spec/models/refresh_asset_report_request_spec.rb +4 -4
  388. data/spec/models/refresh_asset_report_response_spec.rb +4 -4
  389. data/spec/models/spend_power_customization_spec.rb +11 -5
  390. data/spec/models/spend_power_spec.rb +20 -8
  391. data/spec/models/spend_power_time_frame_spec.rb +1 -1
  392. data/spec/models/sync_financial_connections_data_response_spec.rb +3 -3
  393. data/spec/models/sync_transactions_request_spec.rb +4 -4
  394. data/spec/models/sync_transactions_response_removed_inner_spec.rb +2 -2
  395. data/spec/models/sync_transactions_response_spec.rb +7 -7
  396. data/spec/models/transaction_category_detailed_spec.rb +1 -1
  397. data/spec/models/transaction_category_primary_spec.rb +1 -1
  398. data/spec/models/transaction_category_spec.rb +3 -3
  399. data/spec/models/transaction_event_type_spec.rb +1 -1
  400. data/spec/models/transaction_merchant_spec.rb +2 -2
  401. data/spec/models/transaction_spec.rb +18 -12
  402. data/spec/models/transaction_to_enrich_spec.rb +6 -6
  403. data/spec/models/update_entity_request_spec.rb +4 -4
  404. data/spec/models/update_entity_response_spec.rb +6 -6
  405. data/spec/models/update_spend_power_customization_request_spec.rb +10 -4
  406. data/spec/models/update_spend_power_customization_response_spec.rb +3 -3
  407. data/spec/models/updated_balance_event_spec.rb +10 -10
  408. data/spec/models/webhook_event_spec.rb +10 -10
  409. data/spec/models/webhook_source_spec.rb +1 -1
  410. data/spec/models/webhook_type_spec.rb +1 -1
  411. data/spec/spec_helper.rb +1 -1
  412. metadata +126 -6
  413. data/spec/models/enriched_transaction_logo_spec.rb +0 -34
@@ -0,0 +1,226 @@
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.6.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FuseClient
17
+ # Data needed to query data from Mono
18
+ class FinancialConnectionDetailsMono
19
+ # Account Id for Mono
20
+ attr_accessor :account_id
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'account_id' => :'account_id'
26
+ }
27
+ end
28
+
29
+ # Returns all the JSON keys this model knows about
30
+ def self.acceptable_attributes
31
+ attribute_map.values
32
+ end
33
+
34
+ # Attribute type mapping.
35
+ def self.openapi_types
36
+ {
37
+ :'account_id' => :'String'
38
+ }
39
+ end
40
+
41
+ # List of attributes with nullable: true
42
+ def self.openapi_nullable
43
+ Set.new([
44
+ ])
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ if (!attributes.is_a?(Hash))
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinancialConnectionDetailsMono` initialize method"
52
+ end
53
+
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinancialConnectionDetailsMono`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ end
59
+ h[k.to_sym] = v
60
+ }
61
+
62
+ if attributes.key?(:'account_id')
63
+ self.account_id = attributes[:'account_id']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ if @account_id.nil?
72
+ invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
73
+ end
74
+
75
+ invalid_properties
76
+ end
77
+
78
+ # Check to see if the all the properties in the model are valid
79
+ # @return true if the model is valid
80
+ def valid?
81
+ return false if @account_id.nil?
82
+ true
83
+ end
84
+
85
+ # Checks equality by comparing each attribute.
86
+ # @param [Object] Object to be compared
87
+ def ==(o)
88
+ return true if self.equal?(o)
89
+ self.class == o.class &&
90
+ account_id == o.account_id
91
+ end
92
+
93
+ # @see the `==` method
94
+ # @param [Object] Object to be compared
95
+ def eql?(o)
96
+ self == o
97
+ end
98
+
99
+ # Calculates hash code according to all attributes.
100
+ # @return [Integer] Hash code
101
+ def hash
102
+ [account_id].hash
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def self.build_from_hash(attributes)
109
+ new.build_from_hash(attributes)
110
+ end
111
+
112
+ # Builds the object from hash
113
+ # @param [Hash] attributes Model attributes in the form of hash
114
+ # @return [Object] Returns the model itself
115
+ def build_from_hash(attributes)
116
+ return nil unless attributes.is_a?(Hash)
117
+ attributes = attributes.transform_keys(&:to_sym)
118
+ self.class.openapi_types.each_pair do |key, type|
119
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
120
+ self.send("#{key}=", nil)
121
+ elsif type =~ /\AArray<(.*)>/i
122
+ # check to ensure the input is an array given that the attribute
123
+ # is documented as an array but the input is not
124
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
125
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
126
+ end
127
+ elsif !attributes[self.class.attribute_map[key]].nil?
128
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
+ end
130
+ end
131
+
132
+ self
133
+ end
134
+
135
+ # Deserializes the data based on type
136
+ # @param string type Data type
137
+ # @param string value Value to be deserialized
138
+ # @return [Object] Deserialized data
139
+ def _deserialize(type, value)
140
+ case type.to_sym
141
+ when :Time
142
+ Time.parse(value)
143
+ when :Date
144
+ Date.parse(value)
145
+ when :String
146
+ value.to_s
147
+ when :Integer
148
+ value.to_i
149
+ when :Float
150
+ value.to_f
151
+ when :Boolean
152
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
153
+ true
154
+ else
155
+ false
156
+ end
157
+ when :Object
158
+ # generic object (usually a Hash), return directly
159
+ value
160
+ when /\AArray<(?<inner_type>.+)>\z/
161
+ inner_type = Regexp.last_match[:inner_type]
162
+ value.map { |v| _deserialize(inner_type, v) }
163
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
164
+ k_type = Regexp.last_match[:k_type]
165
+ v_type = Regexp.last_match[:v_type]
166
+ {}.tap do |hash|
167
+ value.each do |k, v|
168
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
169
+ end
170
+ end
171
+ else # model
172
+ # models (e.g. Pet) or oneOf
173
+ klass = FuseClient.const_get(type)
174
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
175
+ end
176
+ end
177
+
178
+ # Returns the string representation of the object
179
+ # @return [String] String presentation of the object
180
+ def to_s
181
+ to_hash.to_s
182
+ end
183
+
184
+ # to_body is an alias to to_hash (backward compatibility)
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_body
187
+ to_hash
188
+ end
189
+
190
+ # Returns the object in the form of hash
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_hash
193
+ hash = {}
194
+ self.class.attribute_map.each_pair do |attr, param|
195
+ value = self.send(attr)
196
+ if value.nil?
197
+ is_nullable = self.class.openapi_nullable.include?(attr)
198
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
199
+ end
200
+
201
+ hash[param] = _to_hash(value)
202
+ end
203
+ hash
204
+ end
205
+
206
+ # Outputs non-array value in the form of hash
207
+ # For object, use to_hash. Otherwise, just return the value
208
+ # @param [Object] value Any valid value
209
+ # @return [Hash] Returns the value in the form of hash
210
+ def _to_hash(value)
211
+ if value.is_a?(Array)
212
+ value.compact.map { |v| _to_hash(v) }
213
+ elsif value.is_a?(Hash)
214
+ {}.tap do |hash|
215
+ value.each { |k, v| hash[k] = _to_hash(v) }
216
+ end
217
+ elsif value.respond_to? :to_hash
218
+ value.to_hash
219
+ else
220
+ value
221
+ end
222
+ end
223
+
224
+ end
225
+
226
+ end
@@ -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.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12
 
@@ -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.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12
 
@@ -0,0 +1,256 @@
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.6.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FuseClient
17
+ # Data needed to query data from SnapTrade
18
+ class FinancialConnectionDetailsSnaptrade
19
+ # Brokerage Authorization Id for SnapTrade
20
+ attr_accessor :brokerage_authorization_id
21
+
22
+ # User id for SnapTrade
23
+ attr_accessor :user_id
24
+
25
+ # User secret for SnapTrade
26
+ attr_accessor :user_secret
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'brokerage_authorization_id' => :'brokerage_authorization_id',
32
+ :'user_id' => :'user_id',
33
+ :'user_secret' => :'user_secret'
34
+ }
35
+ end
36
+
37
+ # Returns all the JSON keys this model knows about
38
+ def self.acceptable_attributes
39
+ attribute_map.values
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.openapi_types
44
+ {
45
+ :'brokerage_authorization_id' => :'String',
46
+ :'user_id' => :'String',
47
+ :'user_secret' => :'String'
48
+ }
49
+ end
50
+
51
+ # List of attributes with nullable: true
52
+ def self.openapi_nullable
53
+ Set.new([
54
+ ])
55
+ end
56
+
57
+ # Initializes the object
58
+ # @param [Hash] attributes Model attributes in the form of hash
59
+ def initialize(attributes = {})
60
+ if (!attributes.is_a?(Hash))
61
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinancialConnectionDetailsSnaptrade` initialize method"
62
+ end
63
+
64
+ # check to see if the attribute exists and convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!self.class.attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinancialConnectionDetailsSnaptrade`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
+ end
69
+ h[k.to_sym] = v
70
+ }
71
+
72
+ if attributes.key?(:'brokerage_authorization_id')
73
+ self.brokerage_authorization_id = attributes[:'brokerage_authorization_id']
74
+ end
75
+
76
+ if attributes.key?(:'user_id')
77
+ self.user_id = attributes[:'user_id']
78
+ end
79
+
80
+ if attributes.key?(:'user_secret')
81
+ self.user_secret = attributes[:'user_secret']
82
+ end
83
+ end
84
+
85
+ # Show invalid properties with the reasons. Usually used together with valid?
86
+ # @return Array for valid properties with the reasons
87
+ def list_invalid_properties
88
+ invalid_properties = Array.new
89
+ if @brokerage_authorization_id.nil?
90
+ invalid_properties.push('invalid value for "brokerage_authorization_id", brokerage_authorization_id cannot be nil.')
91
+ end
92
+
93
+ if @user_id.nil?
94
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
95
+ end
96
+
97
+ if @user_secret.nil?
98
+ invalid_properties.push('invalid value for "user_secret", user_secret cannot be nil.')
99
+ end
100
+
101
+ invalid_properties
102
+ end
103
+
104
+ # Check to see if the all the properties in the model are valid
105
+ # @return true if the model is valid
106
+ def valid?
107
+ return false if @brokerage_authorization_id.nil?
108
+ return false if @user_id.nil?
109
+ return false if @user_secret.nil?
110
+ true
111
+ end
112
+
113
+ # Checks equality by comparing each attribute.
114
+ # @param [Object] Object to be compared
115
+ def ==(o)
116
+ return true if self.equal?(o)
117
+ self.class == o.class &&
118
+ brokerage_authorization_id == o.brokerage_authorization_id &&
119
+ user_id == o.user_id &&
120
+ user_secret == o.user_secret
121
+ end
122
+
123
+ # @see the `==` method
124
+ # @param [Object] Object to be compared
125
+ def eql?(o)
126
+ self == o
127
+ end
128
+
129
+ # Calculates hash code according to all attributes.
130
+ # @return [Integer] Hash code
131
+ def hash
132
+ [brokerage_authorization_id, user_id, user_secret].hash
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def self.build_from_hash(attributes)
139
+ new.build_from_hash(attributes)
140
+ end
141
+
142
+ # Builds the object from hash
143
+ # @param [Hash] attributes Model attributes in the form of hash
144
+ # @return [Object] Returns the model itself
145
+ def build_from_hash(attributes)
146
+ return nil unless attributes.is_a?(Hash)
147
+ attributes = attributes.transform_keys(&:to_sym)
148
+ self.class.openapi_types.each_pair do |key, type|
149
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
150
+ self.send("#{key}=", nil)
151
+ elsif type =~ /\AArray<(.*)>/i
152
+ # check to ensure the input is an array given that the attribute
153
+ # is documented as an array but the input is not
154
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
155
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
156
+ end
157
+ elsif !attributes[self.class.attribute_map[key]].nil?
158
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
159
+ end
160
+ end
161
+
162
+ self
163
+ end
164
+
165
+ # Deserializes the data based on type
166
+ # @param string type Data type
167
+ # @param string value Value to be deserialized
168
+ # @return [Object] Deserialized data
169
+ def _deserialize(type, value)
170
+ case type.to_sym
171
+ when :Time
172
+ Time.parse(value)
173
+ when :Date
174
+ Date.parse(value)
175
+ when :String
176
+ value.to_s
177
+ when :Integer
178
+ value.to_i
179
+ when :Float
180
+ value.to_f
181
+ when :Boolean
182
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
183
+ true
184
+ else
185
+ false
186
+ end
187
+ when :Object
188
+ # generic object (usually a Hash), return directly
189
+ value
190
+ when /\AArray<(?<inner_type>.+)>\z/
191
+ inner_type = Regexp.last_match[:inner_type]
192
+ value.map { |v| _deserialize(inner_type, v) }
193
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
194
+ k_type = Regexp.last_match[:k_type]
195
+ v_type = Regexp.last_match[:v_type]
196
+ {}.tap do |hash|
197
+ value.each do |k, v|
198
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
199
+ end
200
+ end
201
+ else # model
202
+ # models (e.g. Pet) or oneOf
203
+ klass = FuseClient.const_get(type)
204
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
205
+ end
206
+ end
207
+
208
+ # Returns the string representation of the object
209
+ # @return [String] String presentation of the object
210
+ def to_s
211
+ to_hash.to_s
212
+ end
213
+
214
+ # to_body is an alias to to_hash (backward compatibility)
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_body
217
+ to_hash
218
+ end
219
+
220
+ # Returns the object in the form of hash
221
+ # @return [Hash] Returns the object in the form of hash
222
+ def to_hash
223
+ hash = {}
224
+ self.class.attribute_map.each_pair do |attr, param|
225
+ value = self.send(attr)
226
+ if value.nil?
227
+ is_nullable = self.class.openapi_nullable.include?(attr)
228
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
229
+ end
230
+
231
+ hash[param] = _to_hash(value)
232
+ end
233
+ hash
234
+ end
235
+
236
+ # Outputs non-array value in the form of hash
237
+ # For object, use to_hash. Otherwise, just return the value
238
+ # @param [Object] value Any valid value
239
+ # @return [Hash] Returns the value in the form of hash
240
+ def _to_hash(value)
241
+ if value.is_a?(Array)
242
+ value.compact.map { |v| _to_hash(v) }
243
+ elsif value.is_a?(Hash)
244
+ {}.tap do |hash|
245
+ value.each { |k, v| hash[k] = _to_hash(v) }
246
+ end
247
+ elsif value.respond_to? :to_hash
248
+ value.to_hash
249
+ else
250
+ value
251
+ end
252
+ end
253
+
254
+ end
255
+
256
+ end
@@ -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.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12
 
@@ -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.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,7 @@ module FuseClient
18
18
  # Remote Id of the account, ie Plaid or Teller account id
19
19
  attr_accessor :remote_id
20
20
 
21
- # Uniquely identifies this account across all accounts associated with your organization. See more information here: https://letsfuse.readme.io/docs/duplicate-accounts
21
+ # Uniquely identifies this account across all accounts for a single financial connection. Used for reconnection deduplication. See more information here: https://letsfuse.readme.io/docs/duplicate-accounts
22
22
  attr_accessor :fingerprint
23
23
 
24
24
  attr_accessor :institution
@@ -35,6 +35,8 @@ module FuseClient
35
35
 
36
36
  attr_accessor :balance
37
37
 
38
+ attr_accessor :remote_data
39
+
38
40
  class EnumAttributeValidator
39
41
  attr_reader :datatype
40
42
  attr_reader :allowable_values
@@ -67,7 +69,8 @@ module FuseClient
67
69
  :'name' => :'name',
68
70
  :'type' => :'type',
69
71
  :'subtype' => :'subtype',
70
- :'balance' => :'balance'
72
+ :'balance' => :'balance',
73
+ :'remote_data' => :'remote_data'
71
74
  }
72
75
  end
73
76
 
@@ -86,13 +89,15 @@ module FuseClient
86
89
  :'name' => :'String',
87
90
  :'type' => :'AccountType',
88
91
  :'subtype' => :'AccountSubtype',
89
- :'balance' => :'FinancialConnectionsAccountCachedBalance'
92
+ :'balance' => :'FinancialConnectionsAccountCachedBalance',
93
+ :'remote_data' => :'Object'
90
94
  }
91
95
  end
92
96
 
93
97
  # List of attributes with nullable: true
94
98
  def self.openapi_nullable
95
99
  Set.new([
100
+ :'remote_data'
96
101
  ])
97
102
  end
98
103
 
@@ -142,6 +147,10 @@ module FuseClient
142
147
  if attributes.key?(:'balance')
143
148
  self.balance = attributes[:'balance']
144
149
  end
150
+
151
+ if attributes.key?(:'remote_data')
152
+ self.remote_data = attributes[:'remote_data']
153
+ end
145
154
  end
146
155
 
147
156
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -194,7 +203,8 @@ module FuseClient
194
203
  name == o.name &&
195
204
  type == o.type &&
196
205
  subtype == o.subtype &&
197
- balance == o.balance
206
+ balance == o.balance &&
207
+ remote_data == o.remote_data
198
208
  end
199
209
 
200
210
  # @see the `==` method
@@ -206,7 +216,7 @@ module FuseClient
206
216
  # Calculates hash code according to all attributes.
207
217
  # @return [Integer] Hash code
208
218
  def hash
209
- [remote_id, fingerprint, institution, mask, name, type, subtype, balance].hash
219
+ [remote_id, fingerprint, institution, mask, name, type, subtype, balance, remote_data].hash
210
220
  end
211
221
 
212
222
  # Builds the object from hash
@@ -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.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12
 
@@ -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.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12
 
@@ -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.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12
 
@@ -20,11 +20,14 @@ module FuseClient
20
20
 
21
21
  attr_accessor :ach
22
22
 
23
+ attr_accessor :remote_data
24
+
23
25
  # Attribute mapping from ruby-style variable name to JSON key.
24
26
  def self.attribute_map
25
27
  {
26
28
  :'remote_id' => :'remote_id',
27
- :'ach' => :'ach'
29
+ :'ach' => :'ach',
30
+ :'remote_data' => :'remote_data'
28
31
  }
29
32
  end
30
33
 
@@ -37,13 +40,15 @@ module FuseClient
37
40
  def self.openapi_types
38
41
  {
39
42
  :'remote_id' => :'String',
40
- :'ach' => :'FinancialConnectionsAccountDetailsAch'
43
+ :'ach' => :'FinancialConnectionsAccountDetailsAch',
44
+ :'remote_data' => :'Object'
41
45
  }
42
46
  end
43
47
 
44
48
  # List of attributes with nullable: true
45
49
  def self.openapi_nullable
46
50
  Set.new([
51
+ :'remote_data'
47
52
  ])
48
53
  end
49
54
 
@@ -69,6 +74,10 @@ module FuseClient
69
74
  if attributes.key?(:'ach')
70
75
  self.ach = attributes[:'ach']
71
76
  end
77
+
78
+ if attributes.key?(:'remote_data')
79
+ self.remote_data = attributes[:'remote_data']
80
+ end
72
81
  end
73
82
 
74
83
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -100,7 +109,8 @@ module FuseClient
100
109
  return true if self.equal?(o)
101
110
  self.class == o.class &&
102
111
  remote_id == o.remote_id &&
103
- ach == o.ach
112
+ ach == o.ach &&
113
+ remote_data == o.remote_data
104
114
  end
105
115
 
106
116
  # @see the `==` method
@@ -112,7 +122,7 @@ module FuseClient
112
122
  # Calculates hash code according to all attributes.
113
123
  # @return [Integer] Hash code
114
124
  def hash
115
- [remote_id, ach].hash
125
+ [remote_id, ach, remote_data].hash
116
126
  end
117
127
 
118
128
  # Builds the object from hash
@@ -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.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12
 
@@ -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.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12