fuse_client 1.0.33 → 1.0.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (443) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/README.md +7 -1
  4. data/docs/AddAccountEventsRequest.md +18 -0
  5. data/docs/AddAccountEventsRequestEventsInner.md +51 -0
  6. data/docs/{AddSpendPowerTransactionResponse.md → AddAccountEventsResponse.md} +2 -2
  7. data/docs/AssetReportTransaction.md +1 -1
  8. data/docs/CreateLinkTokenRequestTellerConfig.md +3 -1
  9. data/docs/CreateLinkTokenRequestTellerConfigAccountFilter.md +20 -0
  10. data/docs/CreateLinkTokenRequestTellerConfigAccountFilterCredit.md +49 -0
  11. data/docs/CreateLinkTokenRequestTellerConfigAccountFilterCreditOneOf.md +18 -0
  12. data/docs/CreateLinkTokenRequestTellerConfigAccountFilterDepository.md +49 -0
  13. data/docs/CreateLinkTokenRequestTellerConfigAccountFilterDepositoryOneOf.md +18 -0
  14. data/docs/CreateSessionRequest.md +1 -1
  15. data/docs/CreateSpendPowerCustomizationRequest.md +24 -0
  16. data/docs/CreateSpendPowerRequest.md +5 -5
  17. data/docs/CreateSpendPowerResponse.md +1 -1
  18. data/docs/DeleteSpendPowerResponse.md +2 -2
  19. data/docs/EnrichTransactionsRequest.md +18 -0
  20. data/docs/EnrichTransactionsResponse.md +18 -0
  21. data/docs/EnrichedTransaction.md +48 -0
  22. data/docs/EvalSpendPowerRequest.md +22 -0
  23. data/docs/EvalSpendPowerRequestEventsInner.md +20 -0
  24. data/docs/EvalSpendPowerResponse.md +24 -0
  25. data/docs/ExternalTransactionEvent.md +34 -0
  26. data/docs/ExternalTransactionEventStatus.md +15 -0
  27. data/docs/FinQLComparisonFeature.md +26 -0
  28. data/docs/FinQLFeature.md +61 -0
  29. data/docs/FinQLFeatureOneOf.md +18 -0
  30. data/docs/FinQLFeatureOneOf1.md +18 -0
  31. data/docs/FinQLFeatureOneOf2.md +18 -0
  32. data/docs/FinQLFeatureOneOf3.md +18 -0
  33. data/docs/FinQLFeatureOneOf4.md +18 -0
  34. data/docs/FinQLFeatureOneOf5.md +18 -0
  35. data/docs/FinQLFeatureOneOf6.md +18 -0
  36. data/docs/FinQLFeatureOneOf7.md +18 -0
  37. data/docs/FinQLFeatureRequest.md +15 -0
  38. data/docs/FinQLFrequencyFeature.md +20 -0
  39. data/docs/FinQLIndividualMerchantFeature.md +20 -0
  40. data/docs/FinQLInterestFeature.md +18 -0
  41. data/docs/FinQLMerchantCategoriesFeatureInner.md +20 -0
  42. data/docs/FinQLMerchantCategoriesFeatureInnerResultInner.md +20 -0
  43. data/docs/FinQLPromptRequest.md +22 -0
  44. data/docs/FinQLPromptResponse.md +20 -0
  45. data/docs/FinQLTimeBasedFeatureInner.md +20 -0
  46. data/docs/FinQLTopMerchantsFeatureInner.md +22 -0
  47. data/docs/FinanceScore.md +30 -0
  48. data/docs/FinancialConnectionDetails.md +7 -1
  49. data/docs/FinancialConnectionDetailsFlinks.md +18 -0
  50. data/docs/FinancialConnectionDetailsMono.md +18 -0
  51. data/docs/FinancialConnectionDetailsSnaptrade.md +22 -0
  52. data/docs/FinancialConnectionsAccount.md +4 -2
  53. data/docs/FinancialConnectionsAccountBalance.md +2 -2
  54. data/docs/FinancialConnectionsAccountCachedBalance.md +2 -2
  55. data/docs/FinancialConnectionsAccountDetails.md +3 -1
  56. data/docs/FinancialConnectionsAccountLiability.md +3 -1
  57. data/docs/FinancialConnectionsHolding.md +3 -3
  58. data/docs/FinancialConnectionsInvestmentSecurity.md +1 -1
  59. data/docs/FinancialConnectionsInvestmentTransaction.md +5 -3
  60. data/docs/FinancialConnectionsInvestmentTransactionSubtype.md +15 -0
  61. data/docs/FuseApi.md +272 -35
  62. data/docs/GetFinanceScoreResponse.md +20 -0
  63. data/docs/GetInvestmentTransactionsRequest.md +4 -4
  64. data/docs/GetSpendPowerCustomizationResponse.md +20 -0
  65. data/docs/InAppTransactionEvent.md +34 -0
  66. data/docs/InAppTransactionEventStatus.md +15 -0
  67. data/docs/Merchant.md +22 -0
  68. data/docs/MerchantLogo.md +18 -0
  69. data/docs/SpendPower.md +11 -7
  70. data/docs/SpendPowerApi.md +87 -44
  71. data/docs/SpendPowerCustomization.md +8 -4
  72. data/docs/SpendPowerTimeFrame.md +15 -0
  73. data/docs/Transaction.md +3 -1
  74. data/docs/TransactionCategory.md +20 -0
  75. data/docs/TransactionCategoryDetailed.md +15 -0
  76. data/docs/TransactionCategoryPrimary.md +15 -0
  77. data/docs/TransactionEventType.md +15 -0
  78. data/docs/TransactionToEnrich.md +26 -0
  79. data/docs/UpdateSpendPowerCustomizationRequest.md +24 -0
  80. data/docs/UpdatedBalanceEvent.md +26 -0
  81. data/fuse_client.gemspec +1 -1
  82. data/lib/fuse_client/api/fuse_api.rb +241 -32
  83. data/lib/fuse_client/api/spend_power_api.rb +79 -53
  84. data/lib/fuse_client/api_client.rb +1 -1
  85. data/lib/fuse_client/api_error.rb +1 -1
  86. data/lib/fuse_client/configuration.rb +11 -11
  87. data/lib/fuse_client/models/account_subtype.rb +1 -1
  88. data/lib/fuse_client/models/account_type.rb +1 -1
  89. data/lib/fuse_client/models/add_account_events_request.rb +254 -0
  90. data/lib/fuse_client/models/add_account_events_request_events_inner.rb +106 -0
  91. data/lib/fuse_client/models/{add_spend_power_transaction_response.rb → add_account_events_response.rb} +4 -4
  92. data/lib/fuse_client/models/aggregator.rb +3 -3
  93. data/lib/fuse_client/models/asset_report.rb +1 -1
  94. data/lib/fuse_client/models/asset_report_accounts_inner.rb +1 -1
  95. data/lib/fuse_client/models/asset_report_accounts_inner_balance.rb +1 -1
  96. data/lib/fuse_client/models/asset_report_accounts_inner_historical_balances_inner.rb +1 -1
  97. data/lib/fuse_client/models/asset_report_response.rb +1 -1
  98. data/lib/fuse_client/models/asset_report_transaction.rb +2 -2
  99. data/lib/fuse_client/models/country_code.rb +7 -2
  100. data/lib/fuse_client/models/create_asset_report_request.rb +1 -1
  101. data/lib/fuse_client/models/create_asset_report_response.rb +1 -1
  102. data/lib/fuse_client/models/create_entity_request.rb +1 -1
  103. data/lib/fuse_client/models/create_entity_response.rb +1 -1
  104. data/lib/fuse_client/models/create_link_token_request.rb +1 -1
  105. data/lib/fuse_client/models/create_link_token_request_mx.rb +1 -1
  106. data/lib/fuse_client/models/create_link_token_request_plaid.rb +1 -1
  107. data/lib/fuse_client/models/create_link_token_request_teller.rb +1 -1
  108. data/lib/fuse_client/models/create_link_token_request_teller_config.rb +14 -5
  109. data/lib/fuse_client/models/create_link_token_request_teller_config_account_filter.rb +229 -0
  110. data/lib/fuse_client/models/create_link_token_request_teller_config_account_filter_credit.rb +105 -0
  111. data/lib/fuse_client/models/create_link_token_request_teller_config_account_filter_credit_one_of.rb +243 -0
  112. data/lib/fuse_client/models/create_link_token_request_teller_config_account_filter_depository.rb +105 -0
  113. data/lib/fuse_client/models/create_link_token_request_teller_config_account_filter_depository_one_of.rb +243 -0
  114. data/lib/fuse_client/models/create_link_token_response.rb +1 -1
  115. data/lib/fuse_client/models/create_session_request.rb +2 -2
  116. data/lib/fuse_client/models/create_session_response.rb +1 -1
  117. data/lib/fuse_client/models/create_spend_power_customization_request.rb +357 -0
  118. data/lib/fuse_client/models/create_spend_power_customization_response.rb +1 -1
  119. data/lib/fuse_client/models/create_spend_power_request.rb +23 -23
  120. data/lib/fuse_client/models/create_spend_power_response.rb +2 -2
  121. data/lib/fuse_client/models/currency.rb +1 -1
  122. data/lib/fuse_client/models/delete_financial_connection_response.rb +1 -1
  123. data/lib/fuse_client/models/delete_spend_power_response.rb +12 -11
  124. data/lib/fuse_client/models/enrich_transactions_request.rb +226 -0
  125. data/lib/fuse_client/models/enrich_transactions_response.rb +222 -0
  126. data/lib/fuse_client/models/enriched_transaction.rb +407 -0
  127. data/lib/fuse_client/models/entity.rb +1 -1
  128. data/lib/fuse_client/models/eval_spend_power_request.rb +296 -0
  129. data/lib/fuse_client/models/eval_spend_power_request_events_inner.rb +239 -0
  130. data/lib/fuse_client/models/eval_spend_power_response.rb +250 -0
  131. data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +1 -1
  132. data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +1 -1
  133. data/lib/fuse_client/models/external_transaction_event.rb +370 -0
  134. data/lib/fuse_client/models/external_transaction_event_status.rb +40 -0
  135. data/lib/fuse_client/models/fin_ql_comparison_feature.rb +255 -0
  136. data/lib/fuse_client/models/fin_ql_feature.rb +111 -0
  137. data/lib/fuse_client/models/fin_ql_feature_one_of.rb +219 -0
  138. data/lib/fuse_client/models/fin_ql_feature_one_of1.rb +219 -0
  139. data/lib/fuse_client/models/fin_ql_feature_one_of2.rb +221 -0
  140. data/lib/fuse_client/models/fin_ql_feature_one_of3.rb +219 -0
  141. data/lib/fuse_client/models/fin_ql_feature_one_of4.rb +219 -0
  142. data/lib/fuse_client/models/fin_ql_feature_one_of5.rb +221 -0
  143. data/lib/fuse_client/models/fin_ql_feature_one_of6.rb +219 -0
  144. data/lib/fuse_client/models/fin_ql_feature_one_of7.rb +221 -0
  145. data/lib/fuse_client/models/fin_ql_feature_request.rb +46 -0
  146. data/lib/fuse_client/models/fin_ql_frequency_feature.rb +262 -0
  147. data/lib/fuse_client/models/fin_ql_individual_merchant_feature.rb +228 -0
  148. data/lib/fuse_client/models/fin_ql_interest_feature.rb +219 -0
  149. data/lib/fuse_client/models/fin_ql_merchant_categories_feature_inner.rb +230 -0
  150. data/lib/fuse_client/models/fin_ql_merchant_categories_feature_inner_result_inner.rb +228 -0
  151. data/lib/fuse_client/models/fin_ql_prompt_request.rb +276 -0
  152. data/lib/fuse_client/models/fin_ql_prompt_response.rb +234 -0
  153. data/lib/fuse_client/models/fin_ql_time_based_feature_inner.rb +228 -0
  154. data/lib/fuse_client/models/fin_ql_top_merchants_feature_inner.rb +237 -0
  155. data/lib/fuse_client/models/finance_score.rb +315 -0
  156. data/lib/fuse_client/models/financial_connection_data.rb +1 -1
  157. data/lib/fuse_client/models/financial_connection_details.rb +32 -5
  158. data/lib/fuse_client/models/financial_connection_details_flinks.rb +226 -0
  159. data/lib/fuse_client/models/financial_connection_details_mono.rb +226 -0
  160. data/lib/fuse_client/models/financial_connection_details_mx.rb +1 -1
  161. data/lib/fuse_client/models/financial_connection_details_plaid.rb +1 -1
  162. data/lib/fuse_client/models/financial_connection_details_snaptrade.rb +256 -0
  163. data/lib/fuse_client/models/financial_connection_details_teller.rb +1 -1
  164. data/lib/fuse_client/models/financial_connections_account.rb +16 -6
  165. data/lib/fuse_client/models/financial_connections_account_balance.rb +3 -3
  166. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +3 -3
  167. data/lib/fuse_client/models/financial_connections_account_details.rb +15 -5
  168. data/lib/fuse_client/models/financial_connections_account_details_ach.rb +1 -1
  169. data/lib/fuse_client/models/financial_connections_account_institution.rb +1 -1
  170. data/lib/fuse_client/models/financial_connections_account_liability.rb +13 -3
  171. data/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +1 -1
  172. data/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +1 -1
  173. data/lib/fuse_client/models/financial_connections_holding.rb +4 -4
  174. data/lib/fuse_client/models/financial_connections_investment_security.rb +2 -2
  175. data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +1 -1
  176. data/lib/fuse_client/models/financial_connections_investment_security_type.rb +1 -1
  177. data/lib/fuse_client/models/financial_connections_investment_transaction.rb +14 -5
  178. data/lib/fuse_client/models/financial_connections_investment_transaction_subtype.rb +87 -0
  179. data/lib/fuse_client/models/financial_connections_owner.rb +1 -1
  180. data/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +1 -1
  181. data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +1 -1
  182. data/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +1 -1
  183. data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +1 -1
  184. data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +1 -1
  185. data/lib/fuse_client/models/financial_institution.rb +1 -1
  186. data/lib/fuse_client/models/financial_institution_logo.rb +1 -1
  187. data/lib/fuse_client/models/fuse_api_aggregator_error.rb +1 -1
  188. data/lib/fuse_client/models/fuse_api_error.rb +1 -1
  189. data/lib/fuse_client/models/fuse_api_error_code.rb +7 -2
  190. data/lib/fuse_client/models/fuse_api_error_data.rb +1 -1
  191. data/lib/fuse_client/models/fuse_api_error_type.rb +1 -1
  192. data/lib/fuse_client/models/fuse_api_warning.rb +1 -1
  193. data/lib/fuse_client/models/fuse_api_warning_data.rb +1 -1
  194. data/lib/fuse_client/models/fuse_api_warning_data_warnings_inner.rb +1 -1
  195. data/lib/fuse_client/models/get_asset_report_request.rb +1 -1
  196. data/lib/fuse_client/models/get_entity_response.rb +1 -1
  197. data/lib/fuse_client/models/get_finance_score_response.rb +239 -0
  198. data/lib/fuse_client/models/get_financial_connection_response.rb +1 -1
  199. data/lib/fuse_client/models/get_financial_connections_account_details_request.rb +1 -1
  200. data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +1 -1
  201. data/lib/fuse_client/models/get_financial_connections_account_statement_request.rb +1 -1
  202. data/lib/fuse_client/models/get_financial_connections_account_statement_response.rb +1 -1
  203. data/lib/fuse_client/models/get_financial_connections_accounts_request.rb +1 -1
  204. data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +1 -1
  205. data/lib/fuse_client/models/get_financial_connections_balance_request.rb +1 -1
  206. data/lib/fuse_client/models/get_financial_connections_balance_request_options.rb +1 -1
  207. data/lib/fuse_client/models/get_financial_connections_balance_response.rb +1 -1
  208. data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
  209. data/lib/fuse_client/models/get_financial_connections_owners_response.rb +1 -1
  210. data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +1 -1
  211. data/lib/fuse_client/models/get_financial_connections_transactions_request.rb +1 -1
  212. data/lib/fuse_client/models/get_financial_connections_transactions_response.rb +1 -1
  213. data/lib/fuse_client/models/get_financial_institution_response.rb +1 -1
  214. data/lib/fuse_client/models/get_investment_holdings_request.rb +1 -1
  215. data/lib/fuse_client/models/get_investment_holdings_request_options.rb +1 -1
  216. data/lib/fuse_client/models/get_investment_holdings_response.rb +1 -1
  217. data/lib/fuse_client/models/get_investment_transactions_request.rb +38 -10
  218. data/lib/fuse_client/models/get_investment_transactions_request_options.rb +1 -1
  219. data/lib/fuse_client/models/get_investment_transactions_response.rb +1 -1
  220. data/lib/fuse_client/models/get_liabilities_request.rb +1 -1
  221. data/lib/fuse_client/models/get_liabilities_response.rb +1 -1
  222. data/lib/fuse_client/models/get_spend_power_customization_response.rb +239 -0
  223. data/lib/fuse_client/models/get_spend_power_response.rb +1 -1
  224. data/lib/fuse_client/models/in_app_transaction_event.rb +369 -0
  225. data/lib/fuse_client/models/in_app_transaction_event_status.rb +41 -0
  226. data/lib/fuse_client/models/merchant.rb +249 -0
  227. data/lib/fuse_client/models/merchant_logo.rb +220 -0
  228. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data.rb +1 -1
  229. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx.rb +1 -1
  230. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid.rb +1 -1
  231. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_teller.rb +1 -1
  232. data/lib/fuse_client/models/migrate_financial_connections_token_request.rb +1 -1
  233. data/lib/fuse_client/models/migrate_financial_connections_token_request_entity.rb +1 -1
  234. data/lib/fuse_client/models/migrate_financial_connections_token_response.rb +1 -1
  235. data/lib/fuse_client/models/product.rb +1 -1
  236. data/lib/fuse_client/models/refresh_asset_report_request.rb +1 -1
  237. data/lib/fuse_client/models/refresh_asset_report_response.rb +1 -1
  238. data/lib/fuse_client/models/spend_power.rb +51 -22
  239. data/lib/fuse_client/models/spend_power_customization.rb +91 -17
  240. data/lib/fuse_client/models/spend_power_time_frame.rb +41 -0
  241. data/lib/fuse_client/models/sync_financial_connections_data_response.rb +1 -1
  242. data/lib/fuse_client/models/sync_transactions_request.rb +1 -1
  243. data/lib/fuse_client/models/sync_transactions_response.rb +1 -1
  244. data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
  245. data/lib/fuse_client/models/transaction.rb +13 -3
  246. data/lib/fuse_client/models/transaction_category.rb +260 -0
  247. data/lib/fuse_client/models/transaction_category_detailed.rb +156 -0
  248. data/lib/fuse_client/models/transaction_category_primary.rb +59 -0
  249. data/lib/fuse_client/models/transaction_event_type.rb +65 -0
  250. data/lib/fuse_client/models/transaction_merchant.rb +1 -1
  251. data/lib/fuse_client/models/{add_spend_power_transaction_request.rb → transaction_to_enrich.rb} +48 -28
  252. data/lib/fuse_client/models/update_entity_request.rb +1 -1
  253. data/lib/fuse_client/models/update_entity_response.rb +1 -1
  254. data/lib/fuse_client/models/update_spend_power_customization_request.rb +325 -0
  255. data/lib/fuse_client/models/update_spend_power_customization_response.rb +1 -1
  256. data/lib/fuse_client/models/updated_balance_event.rb +308 -0
  257. data/lib/fuse_client/models/webhook_event.rb +1 -1
  258. data/lib/fuse_client/models/webhook_source.rb +3 -2
  259. data/lib/fuse_client/models/webhook_type.rb +1 -1
  260. data/lib/fuse_client/version.rb +2 -2
  261. data/lib/fuse_client.rb +57 -3
  262. data/spec/api/fuse_api_spec.rb +72 -34
  263. data/spec/api/spend_power_api_spec.rb +16 -19
  264. data/spec/api_client_spec.rb +1 -1
  265. data/spec/configuration_spec.rb +1 -1
  266. data/spec/models/account_subtype_spec.rb +1 -1
  267. data/spec/models/account_type_spec.rb +1 -1
  268. data/spec/models/add_account_events_request_events_inner_spec.rb +31 -0
  269. data/spec/models/add_account_events_request_spec.rb +34 -0
  270. data/spec/models/add_account_events_response_spec.rb +40 -0
  271. data/spec/models/aggregator_spec.rb +1 -1
  272. data/spec/models/asset_report_accounts_inner_balance_spec.rb +4 -4
  273. data/spec/models/asset_report_accounts_inner_historical_balances_inner_spec.rb +4 -4
  274. data/spec/models/asset_report_accounts_inner_spec.rb +5 -5
  275. data/spec/models/asset_report_response_spec.rb +3 -3
  276. data/spec/models/asset_report_spec.rb +6 -6
  277. data/spec/models/asset_report_transaction_spec.rb +11 -11
  278. data/spec/models/country_code_spec.rb +1 -1
  279. data/spec/models/create_asset_report_request_spec.rb +3 -3
  280. data/spec/models/create_asset_report_response_spec.rb +4 -4
  281. data/spec/models/create_entity_request_spec.rb +5 -5
  282. data/spec/models/create_entity_response_spec.rb +6 -6
  283. data/spec/models/create_link_token_request_mx_spec.rb +2 -2
  284. data/spec/models/create_link_token_request_plaid_spec.rb +2 -2
  285. data/spec/models/create_link_token_request_spec.rb +9 -9
  286. data/spec/models/create_link_token_request_teller_config_account_filter_credit_one_of_spec.rb +38 -0
  287. data/spec/models/create_link_token_request_teller_config_account_filter_credit_spec.rb +31 -0
  288. data/spec/models/create_link_token_request_teller_config_account_filter_depository_one_of_spec.rb +38 -0
  289. data/spec/models/create_link_token_request_teller_config_account_filter_depository_spec.rb +31 -0
  290. data/spec/models/create_link_token_request_teller_config_account_filter_spec.rb +40 -0
  291. data/spec/models/create_link_token_request_teller_config_spec.rb +8 -2
  292. data/spec/models/create_link_token_request_teller_spec.rb +2 -2
  293. data/spec/models/create_link_token_response_spec.rb +3 -3
  294. data/spec/models/create_session_request_spec.rb +7 -7
  295. data/spec/models/create_session_response_spec.rb +4 -4
  296. data/spec/models/create_spend_power_customization_request_spec.rb +52 -0
  297. data/spec/models/create_spend_power_customization_response_spec.rb +3 -3
  298. data/spec/models/create_spend_power_request_spec.rb +6 -6
  299. data/spec/models/create_spend_power_response_spec.rb +3 -3
  300. data/spec/models/currency_spec.rb +3 -3
  301. data/spec/models/delete_financial_connection_response_spec.rb +4 -4
  302. data/spec/models/delete_spend_power_response_spec.rb +4 -4
  303. data/spec/models/enrich_transactions_request_spec.rb +34 -0
  304. data/spec/models/enrich_transactions_response_spec.rb +34 -0
  305. data/spec/models/enriched_transaction_spec.rb +128 -0
  306. data/spec/models/entity_spec.rb +4 -4
  307. data/spec/models/eval_spend_power_request_events_inner_spec.rb +40 -0
  308. data/spec/models/eval_spend_power_request_spec.rb +46 -0
  309. data/spec/models/eval_spend_power_response_spec.rb +52 -0
  310. data/spec/models/exchange_financial_connections_public_token_request_spec.rb +2 -2
  311. data/spec/models/exchange_financial_connections_public_token_response_spec.rb +4 -4
  312. data/spec/models/external_transaction_event_spec.rb +86 -0
  313. data/spec/models/external_transaction_event_status_spec.rb +28 -0
  314. data/spec/models/fin_ql_comparison_feature_spec.rb +58 -0
  315. data/spec/models/fin_ql_feature_one_of1_spec.rb +34 -0
  316. data/spec/models/fin_ql_feature_one_of2_spec.rb +34 -0
  317. data/spec/models/fin_ql_feature_one_of3_spec.rb +34 -0
  318. data/spec/models/fin_ql_feature_one_of4_spec.rb +34 -0
  319. data/spec/models/fin_ql_feature_one_of5_spec.rb +34 -0
  320. data/spec/models/fin_ql_feature_one_of6_spec.rb +34 -0
  321. data/spec/models/fin_ql_feature_one_of7_spec.rb +34 -0
  322. data/spec/models/fin_ql_feature_one_of_spec.rb +34 -0
  323. data/spec/models/fin_ql_feature_request_spec.rb +28 -0
  324. data/spec/models/fin_ql_feature_spec.rb +31 -0
  325. data/spec/models/fin_ql_frequency_feature_spec.rb +44 -0
  326. data/spec/models/fin_ql_individual_merchant_feature_spec.rb +40 -0
  327. data/spec/models/fin_ql_interest_feature_spec.rb +34 -0
  328. data/spec/models/fin_ql_merchant_categories_feature_inner_result_inner_spec.rb +40 -0
  329. data/spec/models/fin_ql_merchant_categories_feature_inner_spec.rb +40 -0
  330. data/spec/models/fin_ql_prompt_request_spec.rb +46 -0
  331. data/spec/models/fin_ql_prompt_response_spec.rb +40 -0
  332. data/spec/models/fin_ql_time_based_feature_inner_spec.rb +40 -0
  333. data/spec/models/fin_ql_top_merchants_feature_inner_spec.rb +46 -0
  334. data/spec/models/finance_score_spec.rb +70 -0
  335. data/spec/models/financial_connection_data_spec.rb +3 -3
  336. data/spec/models/financial_connection_details_flinks_spec.rb +34 -0
  337. data/spec/models/financial_connection_details_mono_spec.rb +34 -0
  338. data/spec/models/financial_connection_details_mx_spec.rb +3 -3
  339. data/spec/models/financial_connection_details_plaid_spec.rb +3 -3
  340. data/spec/models/financial_connection_details_snaptrade_spec.rb +46 -0
  341. data/spec/models/financial_connection_details_spec.rb +27 -9
  342. data/spec/models/financial_connection_details_teller_spec.rb +3 -3
  343. data/spec/models/financial_connections_account_balance_spec.rb +6 -6
  344. data/spec/models/financial_connections_account_cached_balance_spec.rb +5 -5
  345. data/spec/models/financial_connections_account_details_ach_spec.rb +5 -5
  346. data/spec/models/financial_connections_account_details_spec.rb +9 -3
  347. data/spec/models/financial_connections_account_institution_spec.rb +2 -2
  348. data/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +3 -3
  349. data/spec/models/financial_connections_account_liability_all_of_spec.rb +8 -8
  350. data/spec/models/financial_connections_account_liability_spec.rb +22 -16
  351. data/spec/models/financial_connections_account_spec.rb +15 -9
  352. data/spec/models/financial_connections_holding_spec.rb +7 -7
  353. data/spec/models/financial_connections_investment_security_exchange_spec.rb +2 -2
  354. data/spec/models/financial_connections_investment_security_spec.rb +11 -11
  355. data/spec/models/financial_connections_investment_security_type_spec.rb +1 -1
  356. data/spec/models/financial_connections_investment_transaction_spec.rb +19 -13
  357. data/spec/models/financial_connections_investment_transaction_subtype_spec.rb +28 -0
  358. data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +6 -6
  359. data/spec/models/financial_connections_owner_addresses_inner_spec.rb +3 -3
  360. data/spec/models/financial_connections_owner_emails_inner_spec.rb +4 -4
  361. data/spec/models/financial_connections_owner_names_inner_spec.rb +3 -3
  362. data/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +4 -4
  363. data/spec/models/financial_connections_owner_spec.rb +5 -5
  364. data/spec/models/financial_institution_logo_spec.rb +4 -4
  365. data/spec/models/financial_institution_spec.rb +6 -6
  366. data/spec/models/fuse_api_aggregator_error_spec.rb +7 -7
  367. data/spec/models/fuse_api_error_code_spec.rb +1 -1
  368. data/spec/models/fuse_api_error_data_spec.rb +3 -3
  369. data/spec/models/fuse_api_error_spec.rb +8 -8
  370. data/spec/models/fuse_api_error_type_spec.rb +1 -1
  371. data/spec/models/fuse_api_warning_data_spec.rb +3 -3
  372. data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +6 -6
  373. data/spec/models/fuse_api_warning_spec.rb +7 -7
  374. data/spec/models/get_asset_report_request_spec.rb +3 -3
  375. data/spec/models/get_entity_response_spec.rb +7 -7
  376. data/spec/models/get_finance_score_response_spec.rb +40 -0
  377. data/spec/models/get_financial_connection_response_spec.rb +3 -3
  378. data/spec/models/get_financial_connections_account_details_request_spec.rb +2 -2
  379. data/spec/models/get_financial_connections_account_details_response_spec.rb +4 -4
  380. data/spec/models/get_financial_connections_account_statement_request_spec.rb +4 -4
  381. data/spec/models/get_financial_connections_account_statement_response_spec.rb +3 -3
  382. data/spec/models/get_financial_connections_accounts_request_spec.rb +2 -2
  383. data/spec/models/get_financial_connections_accounts_response_spec.rb +4 -4
  384. data/spec/models/get_financial_connections_balance_request_options_spec.rb +2 -2
  385. data/spec/models/get_financial_connections_balance_request_spec.rb +3 -3
  386. data/spec/models/get_financial_connections_balance_response_spec.rb +3 -3
  387. data/spec/models/get_financial_connections_owners_request_spec.rb +2 -2
  388. data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +4 -4
  389. data/spec/models/get_financial_connections_owners_response_spec.rb +2 -2
  390. data/spec/models/get_financial_connections_transactions_request_spec.rb +6 -6
  391. data/spec/models/get_financial_connections_transactions_response_spec.rb +4 -4
  392. data/spec/models/get_financial_institution_response_spec.rb +3 -3
  393. data/spec/models/get_investment_holdings_request_options_spec.rb +2 -2
  394. data/spec/models/get_investment_holdings_request_spec.rb +3 -3
  395. data/spec/models/get_investment_holdings_response_spec.rb +4 -4
  396. data/spec/models/get_investment_transactions_request_options_spec.rb +2 -2
  397. data/spec/models/get_investment_transactions_request_spec.rb +7 -7
  398. data/spec/models/get_investment_transactions_response_spec.rb +5 -5
  399. data/spec/models/get_liabilities_request_spec.rb +2 -2
  400. data/spec/models/get_liabilities_response_spec.rb +3 -3
  401. data/spec/models/get_spend_power_customization_response_spec.rb +40 -0
  402. data/spec/models/get_spend_power_response_spec.rb +3 -3
  403. data/spec/models/in_app_transaction_event_spec.rb +86 -0
  404. data/spec/models/in_app_transaction_event_status_spec.rb +28 -0
  405. data/spec/models/merchant_logo_spec.rb +34 -0
  406. data/spec/models/merchant_spec.rb +46 -0
  407. data/spec/models/migrate_financial_connections_aggregator_connection_data_mx_spec.rb +3 -3
  408. data/spec/models/migrate_financial_connections_aggregator_connection_data_plaid_spec.rb +3 -3
  409. data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +4 -4
  410. data/spec/models/migrate_financial_connections_aggregator_connection_data_teller_spec.rb +2 -2
  411. data/spec/models/migrate_financial_connections_token_request_entity_spec.rb +2 -2
  412. data/spec/models/migrate_financial_connections_token_request_spec.rb +5 -5
  413. data/spec/models/migrate_financial_connections_token_response_spec.rb +5 -5
  414. data/spec/models/product_spec.rb +1 -1
  415. data/spec/models/refresh_asset_report_request_spec.rb +4 -4
  416. data/spec/models/refresh_asset_report_response_spec.rb +4 -4
  417. data/spec/models/spend_power_customization_spec.rb +16 -8
  418. data/spec/models/spend_power_spec.rb +21 -9
  419. data/spec/models/spend_power_time_frame_spec.rb +28 -0
  420. data/spec/models/sync_financial_connections_data_response_spec.rb +3 -3
  421. data/spec/models/sync_transactions_request_spec.rb +4 -4
  422. data/spec/models/sync_transactions_response_removed_inner_spec.rb +2 -2
  423. data/spec/models/sync_transactions_response_spec.rb +7 -7
  424. data/spec/models/transaction_category_detailed_spec.rb +28 -0
  425. data/spec/models/transaction_category_primary_spec.rb +28 -0
  426. data/spec/models/transaction_category_spec.rb +40 -0
  427. data/spec/models/transaction_event_type_spec.rb +28 -0
  428. data/spec/models/transaction_merchant_spec.rb +2 -2
  429. data/spec/models/transaction_spec.rb +18 -12
  430. data/spec/models/transaction_to_enrich_spec.rb +62 -0
  431. data/spec/models/update_entity_request_spec.rb +4 -4
  432. data/spec/models/update_entity_response_spec.rb +6 -6
  433. data/spec/models/update_spend_power_customization_request_spec.rb +52 -0
  434. data/spec/models/update_spend_power_customization_response_spec.rb +3 -3
  435. data/spec/models/updated_balance_event_spec.rb +62 -0
  436. data/spec/models/webhook_event_spec.rb +10 -10
  437. data/spec/models/webhook_source_spec.rb +1 -1
  438. data/spec/models/webhook_type_spec.rb +1 -1
  439. data/spec/spec_helper.rb +1 -1
  440. metadata +226 -10
  441. data/docs/AddSpendPowerTransactionRequest.md +0 -22
  442. data/spec/models/add_spend_power_transaction_request_spec.rb +0 -50
  443. data/spec/models/add_spend_power_transaction_response_spec.rb +0 -40
@@ -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
 
@@ -18,10 +18,10 @@ module FuseClient
18
18
  # Remote Account Id of the transaction, ie Plaid Account Id
19
19
  attr_accessor :remote_account_id
20
20
 
21
- # Amount in cents after factoring in pending balances. For accounts with credit features, the available funds generally equal the credit limit. Some institutions may not provide an available balance calculation. If this is the case, Fuse will return a null value for the available balance. To ensure you have the most accurate information, we recommend obtaining the current balance by using 'balance.available || balance.current'.
21
+ # Amount in cents after factoring in pending balances. The format of this value is a double. For accounts with credit features, the available funds generally equal the credit limit. Some institutions may not provide an available balance calculation. If this is the case, Fuse will return a null value for the available balance. To ensure you have the most accurate information, we recommend obtaining the current balance by using 'balance.available || balance.current'.
22
22
  attr_accessor :available
23
23
 
24
- # Amount in cents without factoring in pending balances
24
+ # Amount in cents without factoring in pending balances. The format of this value is a double.
25
25
  attr_accessor :current
26
26
 
27
27
  # The ISO-4217 currency code of the balance.
@@ -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
 
@@ -15,10 +15,10 @@ require 'time'
15
15
 
16
16
  module FuseClient
17
17
  class FinancialConnectionsAccountCachedBalance
18
- # The amount of funds available to be withdrawn from the account, as determined by the financial institution Available balance may be cached and is not guaranteed to be up-to-date in realtime unless the value was returned by /financial_connections/balances. For accounts with credit features, the available funds generally equal the credit limit. Some institutions may not provide an available balance calculation. If this is the case, Fuse will return a null value for the available balance. To ensure you have the most accurate information, we recommend obtaining the current balance by using 'balance.available || balance.current'.
18
+ # The amount of funds available, in cents, to be withdrawn from the account, as determined by the financial institution. The format of this value is a double. Available balance may be cached and is not guaranteed to be up-to-date in realtime unless the value was returned by /financial_connections/balances. For accounts with credit features, the available funds generally equal the credit limit. Some institutions may not provide an available balance calculation. If this is the case, Fuse will return a null value for the available balance. To ensure you have the most accurate information, we recommend obtaining the current balance by using 'balance.available || balance.current'.
19
19
  attr_accessor :available
20
20
 
21
- # Amount without factoring in pending balances
21
+ # Amount without factoring in pending balances, in cents. The format of this value is a double.
22
22
  attr_accessor :current
23
23
 
24
24
  # The ISO-4217 currency code of the balance.