fuse_client 1.0.7 → 1.0.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (360) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +9 -9
  3. data/README.md +4 -1
  4. data/docs/AccountSubType.md +15 -0
  5. data/docs/AccountType.md +15 -0
  6. data/docs/AddSpendPowerTransactionRequest.md +22 -0
  7. data/docs/AddSpendPowerTransactionResponse.md +20 -0
  8. data/docs/AssetReport.md +26 -0
  9. data/docs/AssetReportAccountsInner.md +24 -0
  10. data/docs/{GetAssetReportResponseReportAccountsInnerBalances.md → AssetReportAccountsInnerBalance.md} +2 -2
  11. data/docs/{GetAssetReportResponseReportAccountsInnerHistoricalBalancesInner.md → AssetReportAccountsInnerHistoricalBalancesInner.md} +2 -2
  12. data/docs/{GetAssetReportResponse.md → AssetReportResponse.md} +3 -3
  13. data/docs/AssetReportTransaction.md +36 -0
  14. data/docs/CountryCode.md +15 -0
  15. data/docs/CreateAssetReportRequest.md +2 -4
  16. data/docs/CreateAssetReportResponse.md +2 -2
  17. data/docs/CreateLinkTokenRequest.md +6 -4
  18. data/docs/CreateLinkTokenRequestPlaid.md +1 -1
  19. data/docs/CreateLinkTokenRequestTeller.md +18 -0
  20. data/docs/CreateLinkTokenRequestTellerConfig.md +18 -0
  21. data/docs/CreateLinkTokenResponse.md +2 -2
  22. data/docs/CreateSessionRequest.md +11 -3
  23. data/docs/CreateSessionResponse.md +3 -3
  24. data/docs/CreateSpendPowerCustomizationResponse.md +20 -0
  25. data/docs/CreateSpendPowerRequest.md +22 -0
  26. data/docs/CreateSpendPowerResponse.md +20 -0
  27. data/docs/Currency.md +20 -0
  28. data/docs/DeleteFinancialConnectionResponse.md +22 -0
  29. data/docs/DeleteSpendPowerResponse.md +20 -0
  30. data/docs/Entity.md +1 -1
  31. data/docs/ExchangeFinancialConnectionsPublicTokenRequest.md +1 -1
  32. data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +3 -3
  33. data/docs/FinancialConnectionData.md +2 -2
  34. data/docs/FinancialConnectionDetails.md +32 -0
  35. data/docs/FinancialConnectionDetailsMx.md +20 -0
  36. data/docs/FinancialConnectionDetailsPlaid.md +20 -0
  37. data/docs/FinancialConnectionDetailsTeller.md +20 -0
  38. data/docs/FinancialConnectionsAccount.md +8 -8
  39. data/docs/FinancialConnectionsAccountBalance.md +5 -3
  40. data/docs/FinancialConnectionsAccountCachedBalance.md +24 -0
  41. data/docs/FinancialConnectionsAccountDetails.md +2 -2
  42. data/docs/FinancialConnectionsAccountLiability.md +8 -8
  43. data/docs/FinancialConnectionsHolding.md +8 -8
  44. data/docs/FinancialConnectionsInvestmentSecurity.md +17 -7
  45. data/docs/FinancialConnectionsInvestmentSecurityExchange.md +18 -0
  46. data/docs/FinancialConnectionsInvestmentSecurityType.md +15 -0
  47. data/docs/FinancialConnectionsInvestmentTransaction.md +24 -2
  48. data/docs/FinancialConnectionsOwner.md +4 -4
  49. data/docs/FinancialConnectionsOwnerEmailsInner.md +1 -1
  50. data/docs/FinancialConnectionsOwnerNamesInner.md +1 -1
  51. data/docs/FinancialConnectionsOwnerPhoneNumbersInner.md +1 -1
  52. data/docs/FinancialInstitution.md +3 -1
  53. data/docs/FuseApi.md +588 -118
  54. data/docs/FuseApiAggregatorError.md +28 -0
  55. data/docs/FuseApiError.md +7 -5
  56. data/docs/FuseApiErrorCode.md +15 -0
  57. data/docs/FuseApiErrorData.md +2 -2
  58. data/docs/FuseApiErrorType.md +15 -0
  59. data/docs/FuseApiWarningData.md +1 -1
  60. data/docs/GetAssetReportRequest.md +2 -0
  61. data/docs/GetEntityResponse.md +4 -2
  62. data/docs/GetFinancialConnectionResponse.md +20 -0
  63. data/docs/GetFinancialConnectionsAccountDetailsResponse.md +3 -3
  64. data/docs/GetFinancialConnectionsAccountStatementRequest.md +22 -0
  65. data/docs/GetFinancialConnectionsAccountStatementResponse.md +20 -0
  66. data/docs/GetFinancialConnectionsAccountsResponse.md +3 -3
  67. data/docs/GetFinancialConnectionsBalanceRequest.md +3 -1
  68. data/docs/GetFinancialConnectionsBalanceRequestOptions.md +18 -0
  69. data/docs/{GetFinancialConnectionsAccountBalanceResponse.md → GetFinancialConnectionsBalanceResponse.md} +4 -4
  70. data/docs/GetFinancialConnectionsOwnersResponse.md +1 -1
  71. data/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +3 -3
  72. data/docs/GetFinancialConnectionsTransactionsRequest.md +26 -0
  73. data/docs/GetFinancialConnectionsTransactionsResponse.md +22 -0
  74. data/docs/GetFinancialInstitutionResponse.md +2 -2
  75. data/docs/GetInvestmentHoldingsRequest.md +3 -3
  76. data/docs/GetInvestmentHoldingsRequestOptions.md +18 -0
  77. data/docs/GetInvestmentHoldingsResponse.md +3 -5
  78. data/docs/GetInvestmentTransactionsRequest.md +11 -1
  79. data/docs/GetInvestmentTransactionsRequestOptions.md +18 -0
  80. data/docs/GetInvestmentTransactionsResponse.md +5 -5
  81. data/docs/GetSpendPowerResponse.md +20 -0
  82. data/docs/MigrateFinancialConnectionsAggregatorConnectionData.md +22 -0
  83. data/docs/MigrateFinancialConnectionsAggregatorConnectionDataMx.md +20 -0
  84. data/docs/MigrateFinancialConnectionsAggregatorConnectionDataPlaid.md +20 -0
  85. data/docs/MigrateFinancialConnectionsAggregatorConnectionDataTeller.md +18 -0
  86. data/docs/MigrateFinancialConnectionsTokenRequest.md +24 -0
  87. data/docs/MigrateFinancialConnectionsTokenRequestEntity.md +18 -0
  88. data/docs/MigrateFinancialConnectionsTokenResponse.md +24 -0
  89. data/docs/RefreshAssetReportRequest.md +5 -5
  90. data/docs/RefreshAssetReportResponse.md +22 -0
  91. data/docs/SpendPower.md +30 -0
  92. data/docs/SpendPowerApi.md +122 -0
  93. data/docs/SpendPowerCustomization.md +22 -0
  94. data/docs/SyncTransactionsResponse.md +2 -2
  95. data/docs/Transaction.md +38 -0
  96. data/docs/{GetTransactionsResponseDataInnerMerchant.md → TransactionMerchant.md} +2 -2
  97. data/docs/UpdateSpendPowerCustomizationResponse.md +20 -0
  98. data/docs/WebhookEvent.md +34 -0
  99. data/docs/WebhookSource.md +15 -0
  100. data/docs/WebhookType.md +15 -0
  101. data/fuse_client.gemspec +1 -1
  102. data/lib/fuse_client/api/fuse_api.rb +489 -136
  103. data/lib/fuse_client/api/spend_power_api.rb +146 -0
  104. data/lib/fuse_client/api_client.rb +1 -1
  105. data/lib/fuse_client/api_error.rb +1 -1
  106. data/lib/fuse_client/configuration.rb +86 -18
  107. data/lib/fuse_client/models/account_subtype.rb +178 -0
  108. data/lib/fuse_client/models/account_type.rb +46 -0
  109. data/lib/fuse_client/models/{get_transactions_response_data_inner.rb → add_spend_power_transaction_request.rb} +56 -83
  110. data/lib/fuse_client/models/{get_transactions_response.rb → add_spend_power_transaction_response.rb} +22 -33
  111. data/lib/fuse_client/models/aggregator.rb +4 -2
  112. data/lib/fuse_client/models/{get_asset_report_response_report.rb → asset_report.rb} +15 -27
  113. data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner.rb → asset_report_accounts_inner.rb} +27 -26
  114. data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner_balances.rb → asset_report_accounts_inner_balance.rb} +4 -4
  115. data/lib/fuse_client/models/{get_asset_report_response_report_accounts_inner_historical_balances_inner.rb → asset_report_accounts_inner_historical_balances_inner.rb} +4 -4
  116. data/lib/fuse_client/models/{get_asset_report_response.rb → asset_report_response.rb} +5 -5
  117. data/lib/fuse_client/models/asset_report_transaction.rb +385 -0
  118. data/lib/fuse_client/models/country_code.rb +40 -0
  119. data/lib/fuse_client/models/create_asset_report_request.rb +11 -23
  120. data/lib/fuse_client/models/create_asset_report_response.rb +3 -3
  121. data/lib/fuse_client/models/create_entity_request.rb +1 -1
  122. data/lib/fuse_client/models/create_entity_response.rb +1 -1
  123. data/lib/fuse_client/models/create_link_token_request.rb +25 -16
  124. data/lib/fuse_client/models/create_link_token_request_mx.rb +1 -1
  125. data/lib/fuse_client/models/create_link_token_request_plaid.rb +2 -2
  126. data/lib/fuse_client/models/create_link_token_request_teller.rb +220 -0
  127. data/lib/fuse_client/models/create_link_token_request_teller_config.rb +254 -0
  128. data/lib/fuse_client/models/create_link_token_response.rb +11 -1
  129. data/lib/fuse_client/models/create_session_request.rb +75 -11
  130. data/lib/fuse_client/models/create_session_response.rb +16 -1
  131. data/lib/fuse_client/models/create_spend_power_customization_response.rb +240 -0
  132. data/lib/fuse_client/models/create_spend_power_request.rb +255 -0
  133. data/lib/fuse_client/models/create_spend_power_response.rb +240 -0
  134. data/lib/fuse_client/models/currency.rb +235 -0
  135. data/lib/fuse_client/models/delete_financial_connection_response.rb +255 -0
  136. data/lib/fuse_client/models/delete_spend_power_response.rb +239 -0
  137. data/lib/fuse_client/models/entity.rb +2 -2
  138. data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +6 -1
  139. data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +18 -3
  140. data/lib/fuse_client/models/financial_connection_data.rb +11 -1
  141. data/lib/fuse_client/models/financial_connection_details.rb +345 -0
  142. data/lib/fuse_client/models/financial_connection_details_mx.rb +241 -0
  143. data/lib/fuse_client/models/{get_transactions_request.rb → financial_connection_details_plaid.rb} +19 -23
  144. data/lib/fuse_client/models/financial_connection_details_teller.rb +241 -0
  145. data/lib/fuse_client/models/financial_connections_account.rb +59 -14
  146. data/lib/fuse_client/models/financial_connections_account_balance.rb +21 -6
  147. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +250 -0
  148. data/lib/fuse_client/models/financial_connections_account_details.rb +11 -1
  149. data/lib/fuse_client/models/financial_connections_account_details_ach.rb +1 -1
  150. data/lib/fuse_client/models/financial_connections_account_institution.rb +1 -1
  151. data/lib/fuse_client/models/financial_connections_account_liability.rb +59 -14
  152. data/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +1 -1
  153. data/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +1 -1
  154. data/lib/fuse_client/models/financial_connections_holding.rb +52 -23
  155. data/lib/fuse_client/models/financial_connections_investment_security.rb +108 -24
  156. data/lib/fuse_client/models/financial_connections_investment_security_exchange.rb +220 -0
  157. data/lib/fuse_client/models/financial_connections_investment_security_type.rb +64 -0
  158. data/lib/fuse_client/models/financial_connections_investment_transaction.rb +206 -10
  159. data/lib/fuse_client/models/financial_connections_owner.rb +21 -1
  160. data/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +1 -1
  161. data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +1 -1
  162. data/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +6 -1
  163. data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +6 -1
  164. data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +6 -1
  165. data/lib/fuse_client/models/financial_institution.rb +22 -5
  166. data/lib/fuse_client/models/financial_institution_logo.rb +1 -1
  167. data/lib/fuse_client/models/fuse_api_aggregator_error.rb +264 -0
  168. data/lib/fuse_client/models/fuse_api_error.rb +43 -4
  169. data/lib/fuse_client/models/fuse_api_error_code.rb +76 -0
  170. data/lib/fuse_client/models/fuse_api_error_data.rb +25 -3
  171. data/lib/fuse_client/models/fuse_api_error_type.rb +42 -0
  172. data/lib/fuse_client/models/fuse_api_warning.rb +1 -1
  173. data/lib/fuse_client/models/fuse_api_warning_data.rb +24 -2
  174. data/lib/fuse_client/models/fuse_api_warning_data_warnings_inner.rb +1 -1
  175. data/lib/fuse_client/models/get_asset_report_request.rb +17 -2
  176. data/lib/fuse_client/models/get_entity_response.rb +29 -2
  177. data/lib/fuse_client/models/get_financial_connection_response.rb +239 -0
  178. data/lib/fuse_client/models/get_financial_connections_account_details_request.rb +1 -1
  179. data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +16 -1
  180. data/lib/fuse_client/models/get_financial_connections_account_statement_request.rb +250 -0
  181. data/lib/fuse_client/models/get_financial_connections_account_statement_response.rb +240 -0
  182. data/lib/fuse_client/models/get_financial_connections_accounts_request.rb +1 -1
  183. data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +16 -1
  184. data/lib/fuse_client/models/get_financial_connections_balance_request.rb +14 -5
  185. data/lib/fuse_client/models/get_financial_connections_balance_request_options.rb +222 -0
  186. data/lib/fuse_client/models/{get_financial_connections_account_balance_response.rb → get_financial_connections_balance_response.rb} +14 -4
  187. data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
  188. data/lib/fuse_client/models/get_financial_connections_owners_response.rb +6 -1
  189. data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +16 -1
  190. data/lib/fuse_client/models/get_financial_connections_transactions_request.rb +334 -0
  191. data/lib/fuse_client/models/get_financial_connections_transactions_response.rb +256 -0
  192. data/lib/fuse_client/models/get_financial_institution_response.rb +11 -1
  193. data/lib/fuse_client/models/get_investment_holdings_request.rb +9 -10
  194. data/lib/fuse_client/models/get_investment_holdings_request_options.rb +222 -0
  195. data/lib/fuse_client/models/get_investment_holdings_response.rb +18 -14
  196. data/lib/fuse_client/models/get_investment_transactions_request.rb +95 -5
  197. data/lib/fuse_client/models/get_investment_transactions_request_options.rb +222 -0
  198. data/lib/fuse_client/models/get_investment_transactions_response.rb +25 -11
  199. data/lib/fuse_client/models/get_liabilities_request.rb +1 -1
  200. data/lib/fuse_client/models/get_liabilities_response.rb +1 -1
  201. data/lib/fuse_client/models/get_spend_power_response.rb +239 -0
  202. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data.rb +238 -0
  203. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx.rb +236 -0
  204. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid.rb +236 -0
  205. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_teller.rb +226 -0
  206. data/lib/fuse_client/models/migrate_financial_connections_token_request.rb +323 -0
  207. data/lib/fuse_client/models/{transaction_common_model.rb → migrate_financial_connections_token_request_entity.rb} +12 -13
  208. data/lib/fuse_client/models/migrate_financial_connections_token_response.rb +264 -0
  209. data/lib/fuse_client/models/product.rb +3 -3
  210. data/lib/fuse_client/models/refresh_asset_report_request.rb +32 -33
  211. data/lib/fuse_client/models/refresh_asset_report_response.rb +240 -0
  212. data/lib/fuse_client/models/{financial_connections_investment_transaction_data_inner.rb → spend_power.rb} +83 -58
  213. data/lib/fuse_client/models/{financial_connections_investment_account.rb → spend_power_customization.rb} +75 -74
  214. data/lib/fuse_client/models/sync_financial_connections_data_response.rb +1 -1
  215. data/lib/fuse_client/models/sync_transactions_request.rb +1 -1
  216. data/lib/fuse_client/models/sync_transactions_response.rb +3 -3
  217. data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
  218. data/lib/fuse_client/models/transaction.rb +412 -0
  219. data/lib/fuse_client/models/{get_transactions_response_data_inner_merchant.rb → transaction_merchant.rb} +4 -4
  220. data/lib/fuse_client/models/update_entity_request.rb +1 -1
  221. data/lib/fuse_client/models/update_entity_response.rb +1 -1
  222. data/lib/fuse_client/models/update_spend_power_customization_response.rb +240 -0
  223. data/lib/fuse_client/models/webhook_event.rb +353 -0
  224. data/lib/fuse_client/models/webhook_source.rb +43 -0
  225. data/lib/fuse_client/models/webhook_type.rb +43 -0
  226. data/lib/fuse_client/version.rb +2 -2
  227. data/lib/fuse_client.rb +57 -14
  228. data/spec/api/fuse_api_spec.rb +100 -36
  229. data/spec/api/spend_power_api_spec.rb +64 -0
  230. data/spec/api_client_spec.rb +3 -1
  231. data/spec/configuration_spec.rb +1 -1
  232. data/spec/models/account_subtype_spec.rb +28 -0
  233. data/spec/models/account_type_spec.rb +28 -0
  234. data/spec/models/add_spend_power_transaction_request_spec.rb +50 -0
  235. data/spec/models/add_spend_power_transaction_response_spec.rb +40 -0
  236. data/spec/models/aggregator_spec.rb +1 -1
  237. data/spec/models/{get_asset_report_response_report_accounts_inner_balances_spec.rb → asset_report_accounts_inner_balance_spec.rb} +7 -7
  238. data/spec/models/{get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb → asset_report_accounts_inner_historical_balances_inner_spec.rb} +7 -7
  239. data/spec/models/{get_transactions_response_spec.rb → asset_report_accounts_inner_spec.rb} +11 -11
  240. data/spec/models/{get_asset_report_response_spec.rb → asset_report_response_spec.rb} +7 -7
  241. data/spec/models/{get_asset_report_response_report_spec.rb → asset_report_spec.rb} +8 -14
  242. data/spec/models/asset_report_transaction_spec.rb +96 -0
  243. data/spec/models/country_code_spec.rb +28 -0
  244. data/spec/models/create_asset_report_request_spec.rb +1 -7
  245. data/spec/models/create_asset_report_response_spec.rb +1 -1
  246. data/spec/models/create_entity_request_spec.rb +1 -1
  247. data/spec/models/create_entity_response_spec.rb +1 -1
  248. data/spec/models/create_link_token_request_mx_spec.rb +1 -1
  249. data/spec/models/create_link_token_request_plaid_spec.rb +1 -1
  250. data/spec/models/create_link_token_request_spec.rb +10 -4
  251. data/spec/models/create_link_token_request_teller_config_spec.rb +38 -0
  252. data/spec/models/create_link_token_request_teller_spec.rb +34 -0
  253. data/spec/models/create_link_token_response_spec.rb +1 -1
  254. data/spec/models/create_session_request_spec.rb +25 -1
  255. data/spec/models/create_session_response_spec.rb +1 -1
  256. data/spec/models/create_spend_power_customization_response_spec.rb +40 -0
  257. data/spec/models/{get_transactions_request_spec.rb → create_spend_power_request_spec.rb} +9 -9
  258. data/spec/models/create_spend_power_response_spec.rb +40 -0
  259. data/spec/models/{get_transactions_response_data_inner_merchant_spec.rb → currency_spec.rb} +13 -7
  260. data/spec/models/delete_financial_connection_response_spec.rb +46 -0
  261. data/spec/models/delete_spend_power_response_spec.rb +40 -0
  262. data/spec/models/entity_spec.rb +1 -1
  263. data/spec/models/exchange_financial_connections_public_token_request_spec.rb +1 -1
  264. data/spec/models/exchange_financial_connections_public_token_response_spec.rb +1 -1
  265. data/spec/models/financial_connection_data_spec.rb +1 -1
  266. data/spec/models/financial_connection_details_mx_spec.rb +40 -0
  267. data/spec/models/financial_connection_details_plaid_spec.rb +40 -0
  268. data/spec/models/{financial_connections_investment_transaction_data_inner_spec.rb → financial_connection_details_spec.rb} +18 -14
  269. data/spec/models/financial_connection_details_teller_spec.rb +40 -0
  270. data/spec/models/financial_connections_account_balance_spec.rb +7 -1
  271. data/spec/models/{get_asset_report_response_report_accounts_inner_spec.rb → financial_connections_account_cached_balance_spec.rb} +11 -11
  272. data/spec/models/financial_connections_account_details_ach_spec.rb +1 -1
  273. data/spec/models/financial_connections_account_details_spec.rb +1 -1
  274. data/spec/models/financial_connections_account_institution_spec.rb +1 -1
  275. data/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +1 -1
  276. data/spec/models/financial_connections_account_liability_all_of_spec.rb +1 -1
  277. data/spec/models/financial_connections_account_liability_spec.rb +2 -2
  278. data/spec/models/financial_connections_account_spec.rb +2 -2
  279. data/spec/models/financial_connections_holding_spec.rb +4 -4
  280. data/spec/models/financial_connections_investment_security_exchange_spec.rb +34 -0
  281. data/spec/models/financial_connections_investment_security_spec.rb +34 -4
  282. data/spec/models/financial_connections_investment_security_type_spec.rb +28 -0
  283. data/spec/models/financial_connections_investment_transaction_spec.rb +72 -2
  284. data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +1 -1
  285. data/spec/models/financial_connections_owner_addresses_inner_spec.rb +1 -1
  286. data/spec/models/financial_connections_owner_emails_inner_spec.rb +1 -1
  287. data/spec/models/financial_connections_owner_names_inner_spec.rb +1 -1
  288. data/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +1 -1
  289. data/spec/models/financial_connections_owner_spec.rb +1 -1
  290. data/spec/models/financial_institution_logo_spec.rb +1 -1
  291. data/spec/models/financial_institution_spec.rb +7 -1
  292. data/spec/models/fuse_api_aggregator_error_spec.rb +64 -0
  293. data/spec/models/fuse_api_error_code_spec.rb +28 -0
  294. data/spec/models/fuse_api_error_data_spec.rb +1 -1
  295. data/spec/models/fuse_api_error_spec.rb +7 -1
  296. data/spec/models/fuse_api_error_type_spec.rb +28 -0
  297. data/spec/models/fuse_api_warning_data_spec.rb +1 -1
  298. data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +1 -1
  299. data/spec/models/fuse_api_warning_spec.rb +1 -1
  300. data/spec/models/get_asset_report_request_spec.rb +7 -1
  301. data/spec/models/get_entity_response_spec.rb +7 -1
  302. data/spec/models/get_financial_connection_response_spec.rb +40 -0
  303. data/spec/models/get_financial_connections_account_details_request_spec.rb +1 -1
  304. data/spec/models/get_financial_connections_account_details_response_spec.rb +1 -1
  305. data/spec/models/get_financial_connections_account_statement_request_spec.rb +46 -0
  306. data/spec/models/{get_financial_connections_account_balance_response_spec.rb → get_financial_connections_account_statement_response_spec.rb} +8 -8
  307. data/spec/models/get_financial_connections_accounts_request_spec.rb +1 -1
  308. data/spec/models/get_financial_connections_accounts_response_spec.rb +1 -1
  309. data/spec/models/get_financial_connections_balance_request_options_spec.rb +34 -0
  310. data/spec/models/get_financial_connections_balance_request_spec.rb +7 -1
  311. data/spec/models/get_financial_connections_balance_response_spec.rb +40 -0
  312. data/spec/models/get_financial_connections_owners_request_spec.rb +1 -1
  313. data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +1 -1
  314. data/spec/models/get_financial_connections_owners_response_spec.rb +1 -1
  315. data/spec/models/get_financial_connections_transactions_request_spec.rb +58 -0
  316. data/spec/models/get_financial_connections_transactions_response_spec.rb +46 -0
  317. data/spec/models/get_financial_institution_response_spec.rb +1 -1
  318. data/spec/models/get_investment_holdings_request_options_spec.rb +34 -0
  319. data/spec/models/get_investment_holdings_request_spec.rb +2 -2
  320. data/spec/models/get_investment_holdings_response_spec.rb +1 -7
  321. data/spec/models/get_investment_transactions_request_options_spec.rb +34 -0
  322. data/spec/models/get_investment_transactions_request_spec.rb +31 -1
  323. data/spec/models/get_investment_transactions_response_spec.rb +2 -2
  324. data/spec/models/get_liabilities_request_spec.rb +1 -1
  325. data/spec/models/get_liabilities_response_spec.rb +1 -1
  326. data/spec/models/get_spend_power_response_spec.rb +40 -0
  327. data/spec/models/migrate_financial_connections_aggregator_connection_data_mx_spec.rb +40 -0
  328. data/spec/models/migrate_financial_connections_aggregator_connection_data_plaid_spec.rb +40 -0
  329. data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +46 -0
  330. data/spec/models/migrate_financial_connections_aggregator_connection_data_teller_spec.rb +34 -0
  331. data/spec/models/migrate_financial_connections_token_request_entity_spec.rb +34 -0
  332. data/spec/models/migrate_financial_connections_token_request_spec.rb +56 -0
  333. data/spec/models/migrate_financial_connections_token_response_spec.rb +52 -0
  334. data/spec/models/product_spec.rb +1 -1
  335. data/spec/models/refresh_asset_report_request_spec.rb +3 -3
  336. data/spec/models/refresh_asset_report_response_spec.rb +46 -0
  337. data/spec/models/spend_power_customization_spec.rb +50 -0
  338. data/spec/models/{financial_connections_investment_account_spec.rb → spend_power_spec.rb} +14 -20
  339. data/spec/models/sync_financial_connections_data_response_spec.rb +1 -1
  340. data/spec/models/sync_transactions_request_spec.rb +1 -1
  341. data/spec/models/sync_transactions_response_removed_inner_spec.rb +1 -1
  342. data/spec/models/sync_transactions_response_spec.rb +1 -1
  343. data/spec/models/{transaction_common_model_spec.rb → transaction_merchant_spec.rb} +8 -8
  344. data/spec/models/transaction_spec.rb +106 -0
  345. data/spec/models/update_entity_request_spec.rb +1 -1
  346. data/spec/models/update_entity_response_spec.rb +1 -1
  347. data/spec/models/update_spend_power_customization_response_spec.rb +40 -0
  348. data/spec/models/{get_transactions_response_data_inner_spec.rb → webhook_event_spec.rb} +20 -22
  349. data/spec/models/webhook_source_spec.rb +28 -0
  350. data/spec/models/webhook_type_spec.rb +28 -0
  351. data/spec/spec_helper.rb +1 -1
  352. metadata +226 -54
  353. data/docs/FinancialConnectionsInvestmentAccount.md +0 -32
  354. data/docs/FinancialConnectionsInvestmentTransactionDataInner.md +0 -32
  355. data/docs/GetAssetReportResponseReport.md +0 -28
  356. data/docs/GetAssetReportResponseReportAccountsInner.md +0 -24
  357. data/docs/GetTransactionsRequest.md +0 -22
  358. data/docs/GetTransactionsResponse.md +0 -24
  359. data/docs/GetTransactionsResponseDataInner.md +0 -36
  360. data/docs/TransactionCommonModel.md +0 -18
@@ -0,0 +1,345 @@
1
+ =begin
2
+ #Fuse
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.5.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FuseClient
17
+ class FinancialConnectionDetails
18
+ # The fuse financial connection id.
19
+ attr_accessor :id
20
+
21
+ # Connection status of the current financial connection
22
+ attr_accessor :connection_status
23
+
24
+ # Last time the connection status was updated in ISO-8601 format.
25
+ attr_accessor :connection_status_updated_at
26
+
27
+ # Whether this is an oauth connection
28
+ attr_accessor :is_oauth
29
+
30
+ attr_accessor :aggregator
31
+
32
+ attr_accessor :plaid
33
+
34
+ attr_accessor :teller
35
+
36
+ attr_accessor :mx
37
+
38
+ class EnumAttributeValidator
39
+ attr_reader :datatype
40
+ attr_reader :allowable_values
41
+
42
+ def initialize(datatype, allowable_values)
43
+ @allowable_values = allowable_values.map do |value|
44
+ case datatype.to_s
45
+ when /Integer/i
46
+ value.to_i
47
+ when /Float/i
48
+ value.to_f
49
+ else
50
+ value
51
+ end
52
+ end
53
+ end
54
+
55
+ def valid?(value)
56
+ !value || allowable_values.include?(value)
57
+ end
58
+ end
59
+
60
+ # Attribute mapping from ruby-style variable name to JSON key.
61
+ def self.attribute_map
62
+ {
63
+ :'id' => :'id',
64
+ :'connection_status' => :'connection_status',
65
+ :'connection_status_updated_at' => :'connection_status_updated_at',
66
+ :'is_oauth' => :'is_oauth',
67
+ :'aggregator' => :'aggregator',
68
+ :'plaid' => :'plaid',
69
+ :'teller' => :'teller',
70
+ :'mx' => :'mx'
71
+ }
72
+ end
73
+
74
+ # Returns all the JSON keys this model knows about
75
+ def self.acceptable_attributes
76
+ attribute_map.values
77
+ end
78
+
79
+ # Attribute type mapping.
80
+ def self.openapi_types
81
+ {
82
+ :'id' => :'String',
83
+ :'connection_status' => :'String',
84
+ :'connection_status_updated_at' => :'String',
85
+ :'is_oauth' => :'Boolean',
86
+ :'aggregator' => :'Aggregator',
87
+ :'plaid' => :'FinancialConnectionDetailsPlaid',
88
+ :'teller' => :'FinancialConnectionDetailsTeller',
89
+ :'mx' => :'FinancialConnectionDetailsMx'
90
+ }
91
+ end
92
+
93
+ # List of attributes with nullable: true
94
+ def self.openapi_nullable
95
+ Set.new([
96
+ ])
97
+ end
98
+
99
+ # Initializes the object
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ def initialize(attributes = {})
102
+ if (!attributes.is_a?(Hash))
103
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinancialConnectionDetails` initialize method"
104
+ end
105
+
106
+ # check to see if the attribute exists and convert string to symbol for hash key
107
+ attributes = attributes.each_with_object({}) { |(k, v), h|
108
+ if (!self.class.attribute_map.key?(k.to_sym))
109
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinancialConnectionDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
110
+ end
111
+ h[k.to_sym] = v
112
+ }
113
+
114
+ if attributes.key?(:'id')
115
+ self.id = attributes[:'id']
116
+ end
117
+
118
+ if attributes.key?(:'connection_status')
119
+ self.connection_status = attributes[:'connection_status']
120
+ end
121
+
122
+ if attributes.key?(:'connection_status_updated_at')
123
+ self.connection_status_updated_at = attributes[:'connection_status_updated_at']
124
+ end
125
+
126
+ if attributes.key?(:'is_oauth')
127
+ self.is_oauth = attributes[:'is_oauth']
128
+ end
129
+
130
+ if attributes.key?(:'aggregator')
131
+ self.aggregator = attributes[:'aggregator']
132
+ end
133
+
134
+ if attributes.key?(:'plaid')
135
+ self.plaid = attributes[:'plaid']
136
+ end
137
+
138
+ if attributes.key?(:'teller')
139
+ self.teller = attributes[:'teller']
140
+ end
141
+
142
+ if attributes.key?(:'mx')
143
+ self.mx = attributes[:'mx']
144
+ end
145
+ end
146
+
147
+ # Show invalid properties with the reasons. Usually used together with valid?
148
+ # @return Array for valid properties with the reasons
149
+ def list_invalid_properties
150
+ invalid_properties = Array.new
151
+ if @id.nil?
152
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
153
+ end
154
+
155
+ if @connection_status.nil?
156
+ invalid_properties.push('invalid value for "connection_status", connection_status cannot be nil.')
157
+ end
158
+
159
+ if @connection_status_updated_at.nil?
160
+ invalid_properties.push('invalid value for "connection_status_updated_at", connection_status_updated_at cannot be nil.')
161
+ end
162
+
163
+ if @is_oauth.nil?
164
+ invalid_properties.push('invalid value for "is_oauth", is_oauth cannot be nil.')
165
+ end
166
+
167
+ if @aggregator.nil?
168
+ invalid_properties.push('invalid value for "aggregator", aggregator cannot be nil.')
169
+ end
170
+
171
+ invalid_properties
172
+ end
173
+
174
+ # Check to see if the all the properties in the model are valid
175
+ # @return true if the model is valid
176
+ def valid?
177
+ return false if @id.nil?
178
+ return false if @connection_status.nil?
179
+ connection_status_validator = EnumAttributeValidator.new('String', ["connected", "disconnected", "finished"])
180
+ return false unless connection_status_validator.valid?(@connection_status)
181
+ return false if @connection_status_updated_at.nil?
182
+ return false if @is_oauth.nil?
183
+ return false if @aggregator.nil?
184
+ true
185
+ end
186
+
187
+ # Custom attribute writer method checking allowed values (enum).
188
+ # @param [Object] connection_status Object to be assigned
189
+ def connection_status=(connection_status)
190
+ validator = EnumAttributeValidator.new('String', ["connected", "disconnected", "finished"])
191
+ unless validator.valid?(connection_status)
192
+ fail ArgumentError, "invalid value for \"connection_status\", must be one of #{validator.allowable_values}."
193
+ end
194
+ @connection_status = connection_status
195
+ end
196
+
197
+ # Checks equality by comparing each attribute.
198
+ # @param [Object] Object to be compared
199
+ def ==(o)
200
+ return true if self.equal?(o)
201
+ self.class == o.class &&
202
+ id == o.id &&
203
+ connection_status == o.connection_status &&
204
+ connection_status_updated_at == o.connection_status_updated_at &&
205
+ is_oauth == o.is_oauth &&
206
+ aggregator == o.aggregator &&
207
+ plaid == o.plaid &&
208
+ teller == o.teller &&
209
+ mx == o.mx
210
+ end
211
+
212
+ # @see the `==` method
213
+ # @param [Object] Object to be compared
214
+ def eql?(o)
215
+ self == o
216
+ end
217
+
218
+ # Calculates hash code according to all attributes.
219
+ # @return [Integer] Hash code
220
+ def hash
221
+ [id, connection_status, connection_status_updated_at, is_oauth, aggregator, plaid, teller, mx].hash
222
+ end
223
+
224
+ # Builds the object from hash
225
+ # @param [Hash] attributes Model attributes in the form of hash
226
+ # @return [Object] Returns the model itself
227
+ def self.build_from_hash(attributes)
228
+ new.build_from_hash(attributes)
229
+ end
230
+
231
+ # Builds the object from hash
232
+ # @param [Hash] attributes Model attributes in the form of hash
233
+ # @return [Object] Returns the model itself
234
+ def build_from_hash(attributes)
235
+ return nil unless attributes.is_a?(Hash)
236
+ attributes = attributes.transform_keys(&:to_sym)
237
+ self.class.openapi_types.each_pair do |key, type|
238
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
239
+ self.send("#{key}=", nil)
240
+ elsif type =~ /\AArray<(.*)>/i
241
+ # check to ensure the input is an array given that the attribute
242
+ # is documented as an array but the input is not
243
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
244
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
245
+ end
246
+ elsif !attributes[self.class.attribute_map[key]].nil?
247
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
248
+ end
249
+ end
250
+
251
+ self
252
+ end
253
+
254
+ # Deserializes the data based on type
255
+ # @param string type Data type
256
+ # @param string value Value to be deserialized
257
+ # @return [Object] Deserialized data
258
+ def _deserialize(type, value)
259
+ case type.to_sym
260
+ when :Time
261
+ Time.parse(value)
262
+ when :Date
263
+ Date.parse(value)
264
+ when :String
265
+ value.to_s
266
+ when :Integer
267
+ value.to_i
268
+ when :Float
269
+ value.to_f
270
+ when :Boolean
271
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
272
+ true
273
+ else
274
+ false
275
+ end
276
+ when :Object
277
+ # generic object (usually a Hash), return directly
278
+ value
279
+ when /\AArray<(?<inner_type>.+)>\z/
280
+ inner_type = Regexp.last_match[:inner_type]
281
+ value.map { |v| _deserialize(inner_type, v) }
282
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
283
+ k_type = Regexp.last_match[:k_type]
284
+ v_type = Regexp.last_match[:v_type]
285
+ {}.tap do |hash|
286
+ value.each do |k, v|
287
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
288
+ end
289
+ end
290
+ else # model
291
+ # models (e.g. Pet) or oneOf
292
+ klass = FuseClient.const_get(type)
293
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
294
+ end
295
+ end
296
+
297
+ # Returns the string representation of the object
298
+ # @return [String] String presentation of the object
299
+ def to_s
300
+ to_hash.to_s
301
+ end
302
+
303
+ # to_body is an alias to to_hash (backward compatibility)
304
+ # @return [Hash] Returns the object in the form of hash
305
+ def to_body
306
+ to_hash
307
+ end
308
+
309
+ # Returns the object in the form of hash
310
+ # @return [Hash] Returns the object in the form of hash
311
+ def to_hash
312
+ hash = {}
313
+ self.class.attribute_map.each_pair do |attr, param|
314
+ value = self.send(attr)
315
+ if value.nil?
316
+ is_nullable = self.class.openapi_nullable.include?(attr)
317
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
318
+ end
319
+
320
+ hash[param] = _to_hash(value)
321
+ end
322
+ hash
323
+ end
324
+
325
+ # Outputs non-array value in the form of hash
326
+ # For object, use to_hash. Otherwise, just return the value
327
+ # @param [Object] value Any valid value
328
+ # @return [Hash] Returns the value in the form of hash
329
+ def _to_hash(value)
330
+ if value.is_a?(Array)
331
+ value.compact.map { |v| _to_hash(v) }
332
+ elsif value.is_a?(Hash)
333
+ {}.tap do |hash|
334
+ value.each { |k, v| hash[k] = _to_hash(v) }
335
+ end
336
+ elsif value.respond_to? :to_hash
337
+ value.to_hash
338
+ else
339
+ value
340
+ end
341
+ end
342
+
343
+ end
344
+
345
+ end
@@ -0,0 +1,241 @@
1
+ =begin
2
+ #Fuse
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.5.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FuseClient
17
+ # Data needed to query data from MX
18
+ class FinancialConnectionDetailsMx
19
+ # User GUID for MX
20
+ attr_accessor :user_guid
21
+
22
+ # Member GUID for MX
23
+ attr_accessor :member_guid
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'user_guid' => :'user_guid',
29
+ :'member_guid' => :'member_guid'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'user_guid' => :'String',
42
+ :'member_guid' => :'String'
43
+ }
44
+ end
45
+
46
+ # List of attributes with nullable: true
47
+ def self.openapi_nullable
48
+ Set.new([
49
+ ])
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ if (!attributes.is_a?(Hash))
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinancialConnectionDetailsMx` initialize method"
57
+ end
58
+
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinancialConnectionDetailsMx`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'user_guid')
68
+ self.user_guid = attributes[:'user_guid']
69
+ end
70
+
71
+ if attributes.key?(:'member_guid')
72
+ self.member_guid = attributes[:'member_guid']
73
+ end
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properties with the reasons
78
+ def list_invalid_properties
79
+ invalid_properties = Array.new
80
+ if @user_guid.nil?
81
+ invalid_properties.push('invalid value for "user_guid", user_guid cannot be nil.')
82
+ end
83
+
84
+ if @member_guid.nil?
85
+ invalid_properties.push('invalid value for "member_guid", member_guid cannot be nil.')
86
+ end
87
+
88
+ invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ return false if @user_guid.nil?
95
+ return false if @member_guid.nil?
96
+ true
97
+ end
98
+
99
+ # Checks equality by comparing each attribute.
100
+ # @param [Object] Object to be compared
101
+ def ==(o)
102
+ return true if self.equal?(o)
103
+ self.class == o.class &&
104
+ user_guid == o.user_guid &&
105
+ member_guid == o.member_guid
106
+ end
107
+
108
+ # @see the `==` method
109
+ # @param [Object] Object to be compared
110
+ def eql?(o)
111
+ self == o
112
+ end
113
+
114
+ # Calculates hash code according to all attributes.
115
+ # @return [Integer] Hash code
116
+ def hash
117
+ [user_guid, member_guid].hash
118
+ end
119
+
120
+ # Builds the object from hash
121
+ # @param [Hash] attributes Model attributes in the form of hash
122
+ # @return [Object] Returns the model itself
123
+ def self.build_from_hash(attributes)
124
+ new.build_from_hash(attributes)
125
+ end
126
+
127
+ # Builds the object from hash
128
+ # @param [Hash] attributes Model attributes in the form of hash
129
+ # @return [Object] Returns the model itself
130
+ def build_from_hash(attributes)
131
+ return nil unless attributes.is_a?(Hash)
132
+ attributes = attributes.transform_keys(&:to_sym)
133
+ self.class.openapi_types.each_pair do |key, type|
134
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
135
+ self.send("#{key}=", nil)
136
+ elsif type =~ /\AArray<(.*)>/i
137
+ # check to ensure the input is an array given that the attribute
138
+ # is documented as an array but the input is not
139
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
140
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
141
+ end
142
+ elsif !attributes[self.class.attribute_map[key]].nil?
143
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
144
+ end
145
+ end
146
+
147
+ self
148
+ end
149
+
150
+ # Deserializes the data based on type
151
+ # @param string type Data type
152
+ # @param string value Value to be deserialized
153
+ # @return [Object] Deserialized data
154
+ def _deserialize(type, value)
155
+ case type.to_sym
156
+ when :Time
157
+ Time.parse(value)
158
+ when :Date
159
+ Date.parse(value)
160
+ when :String
161
+ value.to_s
162
+ when :Integer
163
+ value.to_i
164
+ when :Float
165
+ value.to_f
166
+ when :Boolean
167
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
168
+ true
169
+ else
170
+ false
171
+ end
172
+ when :Object
173
+ # generic object (usually a Hash), return directly
174
+ value
175
+ when /\AArray<(?<inner_type>.+)>\z/
176
+ inner_type = Regexp.last_match[:inner_type]
177
+ value.map { |v| _deserialize(inner_type, v) }
178
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
179
+ k_type = Regexp.last_match[:k_type]
180
+ v_type = Regexp.last_match[:v_type]
181
+ {}.tap do |hash|
182
+ value.each do |k, v|
183
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
184
+ end
185
+ end
186
+ else # model
187
+ # models (e.g. Pet) or oneOf
188
+ klass = FuseClient.const_get(type)
189
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
190
+ end
191
+ end
192
+
193
+ # Returns the string representation of the object
194
+ # @return [String] String presentation of the object
195
+ def to_s
196
+ to_hash.to_s
197
+ end
198
+
199
+ # to_body is an alias to to_hash (backward compatibility)
200
+ # @return [Hash] Returns the object in the form of hash
201
+ def to_body
202
+ to_hash
203
+ end
204
+
205
+ # Returns the object in the form of hash
206
+ # @return [Hash] Returns the object in the form of hash
207
+ def to_hash
208
+ hash = {}
209
+ self.class.attribute_map.each_pair do |attr, param|
210
+ value = self.send(attr)
211
+ if value.nil?
212
+ is_nullable = self.class.openapi_nullable.include?(attr)
213
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
214
+ end
215
+
216
+ hash[param] = _to_hash(value)
217
+ end
218
+ hash
219
+ end
220
+
221
+ # Outputs non-array value in the form of hash
222
+ # For object, use to_hash. Otherwise, just return the value
223
+ # @param [Object] value Any valid value
224
+ # @return [Hash] Returns the value in the form of hash
225
+ def _to_hash(value)
226
+ if value.is_a?(Array)
227
+ value.compact.map { |v| _to_hash(v) }
228
+ elsif value.is_a?(Hash)
229
+ {}.tap do |hash|
230
+ value.each { |k, v| hash[k] = _to_hash(v) }
231
+ end
232
+ elsif value.respond_to? :to_hash
233
+ value.to_hash
234
+ else
235
+ value
236
+ end
237
+ end
238
+
239
+ end
240
+
241
+ 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.3.0
9
+ OpenAPI Generator version: 6.5.0
10
10
 
11
11
  =end
12
12
 
@@ -14,22 +14,19 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class GetTransactionsRequest
18
- # Access token for authentication
17
+ # Data needed to query data from Plaid
18
+ class FinancialConnectionDetailsPlaid
19
+ # Access token for Plaid
19
20
  attr_accessor :access_token
20
21
 
21
- # Cursor for pagination
22
- attr_accessor :cursor
23
-
24
- # Number of items per page
25
- attr_accessor :count
22
+ # ID of the item associated with the access token in Plaid
23
+ attr_accessor :item_id
26
24
 
27
25
  # Attribute mapping from ruby-style variable name to JSON key.
28
26
  def self.attribute_map
29
27
  {
30
28
  :'access_token' => :'access_token',
31
- :'cursor' => :'cursor',
32
- :'count' => :'count'
29
+ :'item_id' => :'item_id'
33
30
  }
34
31
  end
35
32
 
@@ -42,8 +39,7 @@ module FuseClient
42
39
  def self.openapi_types
43
40
  {
44
41
  :'access_token' => :'String',
45
- :'cursor' => :'String',
46
- :'count' => :'Integer'
42
+ :'item_id' => :'String'
47
43
  }
48
44
  end
49
45
 
@@ -57,13 +53,13 @@ module FuseClient
57
53
  # @param [Hash] attributes Model attributes in the form of hash
58
54
  def initialize(attributes = {})
59
55
  if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::GetTransactionsRequest` initialize method"
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinancialConnectionDetailsPlaid` initialize method"
61
57
  end
62
58
 
63
59
  # check to see if the attribute exists and convert string to symbol for hash key
64
60
  attributes = attributes.each_with_object({}) { |(k, v), h|
65
61
  if (!self.class.attribute_map.key?(k.to_sym))
66
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::GetTransactionsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinancialConnectionDetailsPlaid`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
63
  end
68
64
  h[k.to_sym] = v
69
65
  }
@@ -72,12 +68,8 @@ module FuseClient
72
68
  self.access_token = attributes[:'access_token']
73
69
  end
74
70
 
75
- if attributes.key?(:'cursor')
76
- self.cursor = attributes[:'cursor']
77
- end
78
-
79
- if attributes.key?(:'count')
80
- self.count = attributes[:'count']
71
+ if attributes.key?(:'item_id')
72
+ self.item_id = attributes[:'item_id']
81
73
  end
82
74
  end
83
75
 
@@ -89,6 +81,10 @@ module FuseClient
89
81
  invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
90
82
  end
91
83
 
84
+ if @item_id.nil?
85
+ invalid_properties.push('invalid value for "item_id", item_id cannot be nil.')
86
+ end
87
+
92
88
  invalid_properties
93
89
  end
94
90
 
@@ -96,6 +92,7 @@ module FuseClient
96
92
  # @return true if the model is valid
97
93
  def valid?
98
94
  return false if @access_token.nil?
95
+ return false if @item_id.nil?
99
96
  true
100
97
  end
101
98
 
@@ -105,8 +102,7 @@ module FuseClient
105
102
  return true if self.equal?(o)
106
103
  self.class == o.class &&
107
104
  access_token == o.access_token &&
108
- cursor == o.cursor &&
109
- count == o.count
105
+ item_id == o.item_id
110
106
  end
111
107
 
112
108
  # @see the `==` method
@@ -118,7 +114,7 @@ module FuseClient
118
114
  # Calculates hash code according to all attributes.
119
115
  # @return [Integer] Hash code
120
116
  def hash
121
- [access_token, cursor, count].hash
117
+ [access_token, item_id].hash
122
118
  end
123
119
 
124
120
  # Builds the object from hash