fuse_client 1.0.6 → 1.0.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (285) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -5
  3. data/README.md +82 -1
  4. data/docs/AccountSubType.md +15 -0
  5. data/docs/AccountType.md +15 -0
  6. data/docs/CountryCode.md +15 -0
  7. data/docs/CreateAssetReportResponse.md +3 -1
  8. data/docs/CreateEntityResponse.md +3 -1
  9. data/docs/CreateLinkTokenRequest.md +0 -2
  10. data/docs/CreateLinkTokenResponse.md +2 -2
  11. data/docs/CreateSessionRequest.md +9 -1
  12. data/docs/CreateSessionResponse.md +3 -3
  13. data/docs/Currency.md +20 -0
  14. data/docs/DeleteFinancialConnectionResponse.md +22 -0
  15. data/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +3 -3
  16. data/docs/FinancialConnectionData.md +2 -2
  17. data/docs/FinancialConnectionDetails.md +32 -0
  18. data/docs/FinancialConnectionDetailsMx.md +20 -0
  19. data/docs/FinancialConnectionDetailsPlaid.md +20 -0
  20. data/docs/FinancialConnectionDetailsTeller.md +20 -0
  21. data/docs/FinancialConnectionsAccount.md +8 -8
  22. data/docs/FinancialConnectionsAccountBalance.md +5 -3
  23. data/docs/FinancialConnectionsAccountCachedBalance.md +24 -0
  24. data/docs/FinancialConnectionsAccountDetails.md +2 -2
  25. data/docs/FinancialConnectionsAccountLiability.md +8 -8
  26. data/docs/FinancialConnectionsHolding.md +8 -8
  27. data/docs/FinancialConnectionsInvestmentSecurity.md +17 -7
  28. data/docs/FinancialConnectionsInvestmentSecurityExchange.md +18 -0
  29. data/docs/FinancialConnectionsInvestmentTransaction.md +22 -2
  30. data/docs/FinancialConnectionsOwner.md +4 -4
  31. data/docs/FinancialConnectionsOwnerEmailsInner.md +1 -1
  32. data/docs/FinancialConnectionsOwnerNamesInner.md +1 -1
  33. data/docs/FinancialConnectionsOwnerPhoneNumbersInner.md +1 -1
  34. data/docs/FinancialInstitution.md +3 -1
  35. data/docs/FuseApi.md +189 -185
  36. data/docs/FuseApiErrorData.md +1 -1
  37. data/docs/FuseApiWarningData.md +1 -1
  38. data/docs/GetAssetReportResponse.md +3 -1
  39. data/docs/GetEntityResponse.md +6 -2
  40. data/docs/GetFinancialConnectionResponse.md +20 -0
  41. data/docs/GetFinancialConnectionsAccountDetailsResponse.md +5 -3
  42. data/docs/GetFinancialConnectionsAccountsResponse.md +5 -3
  43. data/docs/GetFinancialConnectionsBalanceRequest.md +3 -1
  44. data/docs/GetFinancialConnectionsBalanceRequestOptions.md +18 -0
  45. data/docs/GetFinancialConnectionsBalanceResponse.md +20 -0
  46. data/docs/GetFinancialConnectionsOwnersResponse.md +1 -1
  47. data/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +5 -3
  48. data/docs/GetFinancialConnectionsTransactionsRequest.md +26 -0
  49. data/docs/GetFinancialConnectionsTransactionsResponse.md +22 -0
  50. data/docs/GetFinancialInstitutionResponse.md +4 -2
  51. data/docs/GetInvestmentHoldingsRequest.md +3 -3
  52. data/docs/GetInvestmentHoldingsRequestOptions.md +18 -0
  53. data/docs/GetInvestmentHoldingsResponse.md +4 -4
  54. data/docs/GetInvestmentTransactionsRequest.md +11 -1
  55. data/docs/GetInvestmentTransactionsRequestOptions.md +18 -0
  56. data/docs/GetInvestmentTransactionsResponse.md +4 -4
  57. data/docs/GetLiabilitiesResponse.md +3 -1
  58. data/docs/MigrateFinancialConnectionsAggregatorConnectionData.md +20 -0
  59. data/docs/MigrateFinancialConnectionsAggregatorConnectionDataMx.md +20 -0
  60. data/docs/MigrateFinancialConnectionsAggregatorConnectionDataPlaid.md +18 -0
  61. data/docs/MigrateFinancialConnectionsTokenRequest.md +24 -0
  62. data/docs/MigrateFinancialConnectionsTokenRequestEntity.md +18 -0
  63. data/docs/MigrateFinancialConnectionsTokenResponse.md +24 -0
  64. data/docs/SyncFinancialConnectionsDataResponse.md +3 -1
  65. data/docs/SyncTransactionsResponse.md +5 -3
  66. data/docs/{GetTransactionsResponseDataInner.md → Transaction.md} +16 -14
  67. data/docs/{GetTransactionsResponseDataInnerMerchant.md → TransactionMerchant.md} +2 -2
  68. data/docs/UpdateEntityResponse.md +3 -1
  69. data/docs/WebhookEvent.md +28 -0
  70. data/docs/WebhookSource.md +15 -0
  71. data/docs/WebhookType.md +15 -0
  72. data/fuse_client.gemspec +1 -1
  73. data/lib/fuse_client/api/fuse_api.rb +181 -197
  74. data/lib/fuse_client/api_client.rb +1 -1
  75. data/lib/fuse_client/api_error.rb +1 -1
  76. data/lib/fuse_client/configuration.rb +39 -18
  77. data/lib/fuse_client/models/account_subtype.rb +178 -0
  78. data/lib/fuse_client/models/account_type.rb +45 -0
  79. data/lib/fuse_client/models/aggregator.rb +3 -3
  80. data/lib/fuse_client/models/country_code.rb +40 -0
  81. data/lib/fuse_client/models/create_asset_report_request.rb +1 -1
  82. data/lib/fuse_client/models/create_asset_report_response.rb +15 -5
  83. data/lib/fuse_client/models/create_entity_request.rb +1 -1
  84. data/lib/fuse_client/models/create_entity_response.rb +15 -5
  85. data/lib/fuse_client/models/create_link_token_request.rb +2 -12
  86. data/lib/fuse_client/models/create_link_token_request_mx.rb +1 -1
  87. data/lib/fuse_client/models/create_link_token_request_plaid.rb +1 -1
  88. data/lib/fuse_client/models/create_link_token_response.rb +12 -2
  89. data/lib/fuse_client/models/create_session_request.rb +46 -5
  90. data/lib/fuse_client/models/create_session_response.rb +17 -2
  91. data/lib/fuse_client/models/{get_transactions_response.rb → currency.rb} +24 -30
  92. data/lib/fuse_client/models/delete_financial_connection_response.rb +255 -0
  93. data/lib/fuse_client/models/entity.rb +1 -1
  94. data/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +1 -1
  95. data/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +17 -2
  96. data/lib/fuse_client/models/financial_connection_data.rb +11 -1
  97. data/lib/fuse_client/models/financial_connection_details.rb +345 -0
  98. data/lib/fuse_client/models/financial_connection_details_mx.rb +241 -0
  99. data/lib/fuse_client/models/{get_transactions_request.rb → financial_connection_details_plaid.rb} +19 -23
  100. data/lib/fuse_client/models/financial_connection_details_teller.rb +241 -0
  101. data/lib/fuse_client/models/financial_connections_account.rb +59 -14
  102. data/lib/fuse_client/models/financial_connections_account_balance.rb +21 -6
  103. data/lib/fuse_client/models/financial_connections_account_cached_balance.rb +250 -0
  104. data/lib/fuse_client/models/financial_connections_account_details.rb +11 -1
  105. data/lib/fuse_client/models/financial_connections_account_details_ach.rb +1 -1
  106. data/lib/fuse_client/models/financial_connections_account_institution.rb +1 -1
  107. data/lib/fuse_client/models/financial_connections_account_liability.rb +59 -14
  108. data/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +1 -1
  109. data/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +1 -1
  110. data/lib/fuse_client/models/financial_connections_holding.rb +52 -23
  111. data/lib/fuse_client/models/financial_connections_investment_security.rb +92 -24
  112. data/lib/fuse_client/models/{transaction_common_model.rb → financial_connections_investment_security_exchange.rb} +12 -13
  113. data/lib/fuse_client/models/financial_connections_investment_transaction.rb +158 -10
  114. data/lib/fuse_client/models/financial_connections_owner.rb +21 -1
  115. data/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +1 -1
  116. data/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +1 -1
  117. data/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +6 -1
  118. data/lib/fuse_client/models/financial_connections_owner_names_inner.rb +6 -1
  119. data/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +6 -1
  120. data/lib/fuse_client/models/financial_institution.rb +22 -5
  121. data/lib/fuse_client/models/financial_institution_logo.rb +1 -1
  122. data/lib/fuse_client/models/fuse_api_error.rb +25 -1
  123. data/lib/fuse_client/models/fuse_api_error_data.rb +24 -2
  124. data/lib/fuse_client/models/fuse_api_warning.rb +1 -1
  125. data/lib/fuse_client/models/fuse_api_warning_data.rb +24 -2
  126. data/lib/fuse_client/models/fuse_api_warning_data_warnings_inner.rb +1 -1
  127. data/lib/fuse_client/models/get_asset_report_request.rb +1 -1
  128. data/lib/fuse_client/models/get_asset_report_response.rb +15 -5
  129. data/lib/fuse_client/models/get_asset_report_response_report.rb +1 -1
  130. data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner.rb +1 -1
  131. data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_balances.rb +1 -1
  132. data/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_historical_balances_inner.rb +1 -1
  133. data/lib/fuse_client/models/get_entity_response.rb +42 -5
  134. data/lib/fuse_client/models/get_financial_connection_response.rb +239 -0
  135. data/lib/fuse_client/models/get_financial_connections_account_details_request.rb +1 -1
  136. data/lib/fuse_client/models/get_financial_connections_account_details_response.rb +30 -5
  137. data/lib/fuse_client/models/get_financial_connections_accounts_request.rb +1 -1
  138. data/lib/fuse_client/models/get_financial_connections_accounts_response.rb +30 -5
  139. data/lib/fuse_client/models/get_financial_connections_balance_request.rb +14 -5
  140. data/lib/fuse_client/models/get_financial_connections_balance_request_options.rb +222 -0
  141. data/lib/fuse_client/models/get_financial_connections_balance_response.rb +241 -0
  142. data/lib/fuse_client/models/get_financial_connections_owners_request.rb +1 -1
  143. data/lib/fuse_client/models/get_financial_connections_owners_response.rb +6 -1
  144. data/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +30 -5
  145. data/lib/fuse_client/models/get_financial_connections_transactions_request.rb +334 -0
  146. data/lib/fuse_client/models/get_financial_connections_transactions_response.rb +256 -0
  147. data/lib/fuse_client/models/get_financial_institution_response.rb +25 -5
  148. data/lib/fuse_client/models/get_investment_holdings_request.rb +9 -10
  149. data/lib/fuse_client/models/get_investment_holdings_request_options.rb +222 -0
  150. data/lib/fuse_client/models/get_investment_holdings_response.rb +25 -11
  151. data/lib/fuse_client/models/get_investment_transactions_request.rb +95 -5
  152. data/lib/fuse_client/models/get_investment_transactions_request_options.rb +222 -0
  153. data/lib/fuse_client/models/get_investment_transactions_response.rb +25 -11
  154. data/lib/fuse_client/models/get_liabilities_request.rb +1 -1
  155. data/lib/fuse_client/models/get_liabilities_response.rb +15 -5
  156. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data.rb +229 -0
  157. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_mx.rb +236 -0
  158. data/lib/fuse_client/models/migrate_financial_connections_aggregator_connection_data_plaid.rb +226 -0
  159. data/lib/fuse_client/models/{financial_connections_investment_account.rb → migrate_financial_connections_token_request.rb} +86 -70
  160. data/lib/fuse_client/models/{get_financial_connections_account_balance_response.rb → migrate_financial_connections_token_request_entity.rb} +12 -13
  161. data/lib/fuse_client/models/migrate_financial_connections_token_response.rb +264 -0
  162. data/lib/fuse_client/models/product.rb +3 -3
  163. data/lib/fuse_client/models/refresh_asset_report_request.rb +1 -1
  164. data/lib/fuse_client/models/sync_financial_connections_data_response.rb +15 -5
  165. data/lib/fuse_client/models/sync_transactions_request.rb +1 -1
  166. data/lib/fuse_client/models/sync_transactions_response.rb +17 -7
  167. data/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +1 -1
  168. data/lib/fuse_client/models/{get_transactions_response_data_inner.rb → transaction.rb} +110 -21
  169. data/lib/fuse_client/models/{get_transactions_response_data_inner_merchant.rb → transaction_merchant.rb} +4 -4
  170. data/lib/fuse_client/models/update_entity_request.rb +1 -1
  171. data/lib/fuse_client/models/update_entity_response.rb +15 -5
  172. data/lib/fuse_client/models/{financial_connections_investment_transaction_data_inner.rb → webhook_event.rb} +94 -63
  173. data/lib/fuse_client/models/webhook_source.rb +43 -0
  174. data/lib/fuse_client/models/webhook_type.rb +42 -0
  175. data/lib/fuse_client/version.rb +2 -2
  176. data/lib/fuse_client.rb +30 -9
  177. data/spec/api/fuse_api_spec.rb +40 -39
  178. data/spec/api_client_spec.rb +3 -1
  179. data/spec/configuration_spec.rb +1 -1
  180. data/spec/models/account_subtype_spec.rb +28 -0
  181. data/spec/models/account_type_spec.rb +28 -0
  182. data/spec/models/aggregator_spec.rb +1 -1
  183. data/spec/models/country_code_spec.rb +28 -0
  184. data/spec/models/create_asset_report_request_spec.rb +1 -1
  185. data/spec/models/create_asset_report_response_spec.rb +7 -1
  186. data/spec/models/create_entity_request_spec.rb +1 -1
  187. data/spec/models/create_entity_response_spec.rb +7 -1
  188. data/spec/models/create_link_token_request_mx_spec.rb +1 -1
  189. data/spec/models/create_link_token_request_plaid_spec.rb +1 -1
  190. data/spec/models/create_link_token_request_spec.rb +1 -7
  191. data/spec/models/create_link_token_response_spec.rb +1 -1
  192. data/spec/models/create_session_request_spec.rb +25 -1
  193. data/spec/models/create_session_response_spec.rb +1 -1
  194. data/spec/models/{get_transactions_response_data_inner_merchant_spec.rb → currency_spec.rb} +13 -7
  195. data/spec/models/{get_transactions_request_spec.rb → delete_financial_connection_response_spec.rb} +10 -10
  196. data/spec/models/entity_spec.rb +1 -1
  197. data/spec/models/exchange_financial_connections_public_token_request_spec.rb +1 -1
  198. data/spec/models/exchange_financial_connections_public_token_response_spec.rb +1 -1
  199. data/spec/models/financial_connection_data_spec.rb +1 -1
  200. data/spec/models/financial_connection_details_mx_spec.rb +40 -0
  201. data/spec/models/financial_connection_details_plaid_spec.rb +40 -0
  202. data/spec/models/{financial_connections_investment_transaction_data_inner_spec.rb → financial_connection_details_spec.rb} +18 -14
  203. data/spec/models/financial_connection_details_teller_spec.rb +40 -0
  204. data/spec/models/financial_connections_account_balance_spec.rb +7 -1
  205. data/spec/models/financial_connections_account_cached_balance_spec.rb +52 -0
  206. data/spec/models/financial_connections_account_details_ach_spec.rb +1 -1
  207. data/spec/models/financial_connections_account_details_spec.rb +1 -1
  208. data/spec/models/financial_connections_account_institution_spec.rb +1 -1
  209. data/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +1 -1
  210. data/spec/models/financial_connections_account_liability_all_of_spec.rb +1 -1
  211. data/spec/models/financial_connections_account_liability_spec.rb +2 -2
  212. data/spec/models/financial_connections_account_spec.rb +2 -2
  213. data/spec/models/financial_connections_holding_spec.rb +4 -4
  214. data/spec/models/financial_connections_investment_security_exchange_spec.rb +34 -0
  215. data/spec/models/financial_connections_investment_security_spec.rb +34 -4
  216. data/spec/models/financial_connections_investment_transaction_spec.rb +62 -2
  217. data/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +1 -1
  218. data/spec/models/financial_connections_owner_addresses_inner_spec.rb +1 -1
  219. data/spec/models/financial_connections_owner_emails_inner_spec.rb +1 -1
  220. data/spec/models/financial_connections_owner_names_inner_spec.rb +1 -1
  221. data/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +1 -1
  222. data/spec/models/financial_connections_owner_spec.rb +1 -1
  223. data/spec/models/financial_institution_logo_spec.rb +1 -1
  224. data/spec/models/financial_institution_spec.rb +7 -1
  225. data/spec/models/fuse_api_error_data_spec.rb +1 -1
  226. data/spec/models/fuse_api_error_spec.rb +9 -1
  227. data/spec/models/fuse_api_warning_data_spec.rb +1 -1
  228. data/spec/models/fuse_api_warning_data_warnings_inner_spec.rb +1 -1
  229. data/spec/models/fuse_api_warning_spec.rb +1 -1
  230. data/spec/models/get_asset_report_request_spec.rb +1 -1
  231. data/spec/models/get_asset_report_response_report_accounts_inner_balances_spec.rb +1 -1
  232. data/spec/models/get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb +1 -1
  233. data/spec/models/get_asset_report_response_report_accounts_inner_spec.rb +1 -1
  234. data/spec/models/get_asset_report_response_report_spec.rb +1 -1
  235. data/spec/models/get_asset_report_response_spec.rb +7 -1
  236. data/spec/models/get_entity_response_spec.rb +13 -1
  237. data/spec/models/get_financial_connection_response_spec.rb +40 -0
  238. data/spec/models/get_financial_connections_account_details_request_spec.rb +1 -1
  239. data/spec/models/get_financial_connections_account_details_response_spec.rb +7 -1
  240. data/spec/models/get_financial_connections_accounts_request_spec.rb +1 -1
  241. data/spec/models/get_financial_connections_accounts_response_spec.rb +7 -1
  242. data/spec/models/{get_financial_connections_account_balance_response_spec.rb → get_financial_connections_balance_request_options_spec.rb} +8 -8
  243. data/spec/models/get_financial_connections_balance_request_spec.rb +7 -1
  244. data/spec/models/get_financial_connections_balance_response_spec.rb +40 -0
  245. data/spec/models/get_financial_connections_owners_request_spec.rb +1 -1
  246. data/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +7 -1
  247. data/spec/models/get_financial_connections_owners_response_spec.rb +1 -1
  248. data/spec/models/get_financial_connections_transactions_request_spec.rb +58 -0
  249. data/spec/models/{get_transactions_response_spec.rb → get_financial_connections_transactions_response_spec.rb} +10 -10
  250. data/spec/models/get_financial_institution_response_spec.rb +7 -1
  251. data/spec/models/get_investment_holdings_request_options_spec.rb +34 -0
  252. data/spec/models/get_investment_holdings_request_spec.rb +2 -2
  253. data/spec/models/get_investment_holdings_response_spec.rb +2 -2
  254. data/spec/models/get_investment_transactions_request_options_spec.rb +34 -0
  255. data/spec/models/get_investment_transactions_request_spec.rb +31 -1
  256. data/spec/models/get_investment_transactions_response_spec.rb +2 -2
  257. data/spec/models/get_liabilities_request_spec.rb +1 -1
  258. data/spec/models/get_liabilities_response_spec.rb +7 -1
  259. data/spec/models/migrate_financial_connections_aggregator_connection_data_mx_spec.rb +40 -0
  260. data/spec/models/migrate_financial_connections_aggregator_connection_data_plaid_spec.rb +34 -0
  261. data/spec/models/migrate_financial_connections_aggregator_connection_data_spec.rb +40 -0
  262. data/spec/models/migrate_financial_connections_token_request_entity_spec.rb +34 -0
  263. data/spec/models/migrate_financial_connections_token_request_spec.rb +56 -0
  264. data/spec/models/migrate_financial_connections_token_response_spec.rb +52 -0
  265. data/spec/models/product_spec.rb +1 -1
  266. data/spec/models/refresh_asset_report_request_spec.rb +1 -1
  267. data/spec/models/sync_financial_connections_data_response_spec.rb +7 -1
  268. data/spec/models/sync_transactions_request_spec.rb +1 -1
  269. data/spec/models/sync_transactions_response_removed_inner_spec.rb +1 -1
  270. data/spec/models/sync_transactions_response_spec.rb +7 -1
  271. data/spec/models/{transaction_common_model_spec.rb → transaction_merchant_spec.rb} +8 -8
  272. data/spec/models/{get_transactions_response_data_inner_spec.rb → transaction_spec.rb} +23 -13
  273. data/spec/models/update_entity_request_spec.rb +1 -1
  274. data/spec/models/update_entity_response_spec.rb +7 -1
  275. data/spec/models/{financial_connections_investment_account_spec.rb → webhook_event_spec.rb} +17 -25
  276. data/spec/models/webhook_source_spec.rb +28 -0
  277. data/spec/models/webhook_type_spec.rb +28 -0
  278. data/spec/spec_helper.rb +1 -1
  279. metadata +118 -34
  280. data/docs/FinancialConnectionsInvestmentAccount.md +0 -32
  281. data/docs/FinancialConnectionsInvestmentTransactionDataInner.md +0 -32
  282. data/docs/GetFinancialConnectionsAccountBalanceResponse.md +0 -18
  283. data/docs/GetTransactionsRequest.md +0 -22
  284. data/docs/GetTransactionsResponse.md +0 -22
  285. data/docs/TransactionCommonModel.md +0 -18
@@ -0,0 +1,334 @@
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.4.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FuseClient
17
+ class GetFinancialConnectionsTransactionsRequest
18
+ # Access token for authentication.
19
+ attr_accessor :access_token
20
+
21
+ # The earliest date for which data should be returned. Dates should be formatted as YYYY-MM-DD.
22
+ attr_accessor :start_date
23
+
24
+ # The latest date for which data should be returned. Dates should be formatted as YYYY-MM-DD.
25
+ attr_accessor :end_date
26
+
27
+ # Specify current page.
28
+ attr_accessor :page
29
+
30
+ # Number of items per page.
31
+ attr_accessor :records_per_page
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ def self.attribute_map
35
+ {
36
+ :'access_token' => :'access_token',
37
+ :'start_date' => :'start_date',
38
+ :'end_date' => :'end_date',
39
+ :'page' => :'page',
40
+ :'records_per_page' => :'records_per_page'
41
+ }
42
+ end
43
+
44
+ # Returns all the JSON keys this model knows about
45
+ def self.acceptable_attributes
46
+ attribute_map.values
47
+ end
48
+
49
+ # Attribute type mapping.
50
+ def self.openapi_types
51
+ {
52
+ :'access_token' => :'String',
53
+ :'start_date' => :'String',
54
+ :'end_date' => :'String',
55
+ :'page' => :'Integer',
56
+ :'records_per_page' => :'Integer'
57
+ }
58
+ end
59
+
60
+ # List of attributes with nullable: true
61
+ def self.openapi_nullable
62
+ Set.new([
63
+ ])
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::GetFinancialConnectionsTransactionsRequest` initialize method"
71
+ end
72
+
73
+ # check to see if the attribute exists and convert string to symbol for hash key
74
+ attributes = attributes.each_with_object({}) { |(k, v), h|
75
+ if (!self.class.attribute_map.key?(k.to_sym))
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::GetFinancialConnectionsTransactionsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
77
+ end
78
+ h[k.to_sym] = v
79
+ }
80
+
81
+ if attributes.key?(:'access_token')
82
+ self.access_token = attributes[:'access_token']
83
+ end
84
+
85
+ if attributes.key?(:'start_date')
86
+ self.start_date = attributes[:'start_date']
87
+ end
88
+
89
+ if attributes.key?(:'end_date')
90
+ self.end_date = attributes[:'end_date']
91
+ end
92
+
93
+ if attributes.key?(:'page')
94
+ self.page = attributes[:'page']
95
+ end
96
+
97
+ if attributes.key?(:'records_per_page')
98
+ self.records_per_page = attributes[:'records_per_page']
99
+ else
100
+ self.records_per_page = 25
101
+ end
102
+ end
103
+
104
+ # Show invalid properties with the reasons. Usually used together with valid?
105
+ # @return Array for valid properties with the reasons
106
+ def list_invalid_properties
107
+ invalid_properties = Array.new
108
+ if @access_token.nil?
109
+ invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
110
+ end
111
+
112
+ if @start_date.nil?
113
+ invalid_properties.push('invalid value for "start_date", start_date cannot be nil.')
114
+ end
115
+
116
+ if @end_date.nil?
117
+ invalid_properties.push('invalid value for "end_date", end_date cannot be nil.')
118
+ end
119
+
120
+ if @page.nil?
121
+ invalid_properties.push('invalid value for "page", page cannot be nil.')
122
+ end
123
+
124
+ if @page < 1
125
+ invalid_properties.push('invalid value for "page", must be greater than or equal to 1.')
126
+ end
127
+
128
+ if @records_per_page.nil?
129
+ invalid_properties.push('invalid value for "records_per_page", records_per_page cannot be nil.')
130
+ end
131
+
132
+ if @records_per_page > 100
133
+ invalid_properties.push('invalid value for "records_per_page", must be smaller than or equal to 100.')
134
+ end
135
+
136
+ if @records_per_page < 10
137
+ invalid_properties.push('invalid value for "records_per_page", must be greater than or equal to 10.')
138
+ end
139
+
140
+ invalid_properties
141
+ end
142
+
143
+ # Check to see if the all the properties in the model are valid
144
+ # @return true if the model is valid
145
+ def valid?
146
+ return false if @access_token.nil?
147
+ return false if @start_date.nil?
148
+ return false if @end_date.nil?
149
+ return false if @page.nil?
150
+ return false if @page < 1
151
+ return false if @records_per_page.nil?
152
+ return false if @records_per_page > 100
153
+ return false if @records_per_page < 10
154
+ true
155
+ end
156
+
157
+ # Custom attribute writer method with validation
158
+ # @param [Object] page Value to be assigned
159
+ def page=(page)
160
+ if page.nil?
161
+ fail ArgumentError, 'page cannot be nil'
162
+ end
163
+
164
+ if page < 1
165
+ fail ArgumentError, 'invalid value for "page", must be greater than or equal to 1.'
166
+ end
167
+
168
+ @page = page
169
+ end
170
+
171
+ # Custom attribute writer method with validation
172
+ # @param [Object] records_per_page Value to be assigned
173
+ def records_per_page=(records_per_page)
174
+ if records_per_page.nil?
175
+ fail ArgumentError, 'records_per_page cannot be nil'
176
+ end
177
+
178
+ if records_per_page > 100
179
+ fail ArgumentError, 'invalid value for "records_per_page", must be smaller than or equal to 100.'
180
+ end
181
+
182
+ if records_per_page < 10
183
+ fail ArgumentError, 'invalid value for "records_per_page", must be greater than or equal to 10.'
184
+ end
185
+
186
+ @records_per_page = records_per_page
187
+ end
188
+
189
+ # Checks equality by comparing each attribute.
190
+ # @param [Object] Object to be compared
191
+ def ==(o)
192
+ return true if self.equal?(o)
193
+ self.class == o.class &&
194
+ access_token == o.access_token &&
195
+ start_date == o.start_date &&
196
+ end_date == o.end_date &&
197
+ page == o.page &&
198
+ records_per_page == o.records_per_page
199
+ end
200
+
201
+ # @see the `==` method
202
+ # @param [Object] Object to be compared
203
+ def eql?(o)
204
+ self == o
205
+ end
206
+
207
+ # Calculates hash code according to all attributes.
208
+ # @return [Integer] Hash code
209
+ def hash
210
+ [access_token, start_date, end_date, page, records_per_page].hash
211
+ end
212
+
213
+ # Builds the object from hash
214
+ # @param [Hash] attributes Model attributes in the form of hash
215
+ # @return [Object] Returns the model itself
216
+ def self.build_from_hash(attributes)
217
+ new.build_from_hash(attributes)
218
+ end
219
+
220
+ # Builds the object from hash
221
+ # @param [Hash] attributes Model attributes in the form of hash
222
+ # @return [Object] Returns the model itself
223
+ def build_from_hash(attributes)
224
+ return nil unless attributes.is_a?(Hash)
225
+ attributes = attributes.transform_keys(&:to_sym)
226
+ self.class.openapi_types.each_pair do |key, type|
227
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
228
+ self.send("#{key}=", nil)
229
+ elsif type =~ /\AArray<(.*)>/i
230
+ # check to ensure the input is an array given that the attribute
231
+ # is documented as an array but the input is not
232
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
233
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
234
+ end
235
+ elsif !attributes[self.class.attribute_map[key]].nil?
236
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
237
+ end
238
+ end
239
+
240
+ self
241
+ end
242
+
243
+ # Deserializes the data based on type
244
+ # @param string type Data type
245
+ # @param string value Value to be deserialized
246
+ # @return [Object] Deserialized data
247
+ def _deserialize(type, value)
248
+ case type.to_sym
249
+ when :Time
250
+ Time.parse(value)
251
+ when :Date
252
+ Date.parse(value)
253
+ when :String
254
+ value.to_s
255
+ when :Integer
256
+ value.to_i
257
+ when :Float
258
+ value.to_f
259
+ when :Boolean
260
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
261
+ true
262
+ else
263
+ false
264
+ end
265
+ when :Object
266
+ # generic object (usually a Hash), return directly
267
+ value
268
+ when /\AArray<(?<inner_type>.+)>\z/
269
+ inner_type = Regexp.last_match[:inner_type]
270
+ value.map { |v| _deserialize(inner_type, v) }
271
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
272
+ k_type = Regexp.last_match[:k_type]
273
+ v_type = Regexp.last_match[:v_type]
274
+ {}.tap do |hash|
275
+ value.each do |k, v|
276
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
277
+ end
278
+ end
279
+ else # model
280
+ # models (e.g. Pet) or oneOf
281
+ klass = FuseClient.const_get(type)
282
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
283
+ end
284
+ end
285
+
286
+ # Returns the string representation of the object
287
+ # @return [String] String presentation of the object
288
+ def to_s
289
+ to_hash.to_s
290
+ end
291
+
292
+ # to_body is an alias to to_hash (backward compatibility)
293
+ # @return [Hash] Returns the object in the form of hash
294
+ def to_body
295
+ to_hash
296
+ end
297
+
298
+ # Returns the object in the form of hash
299
+ # @return [Hash] Returns the object in the form of hash
300
+ def to_hash
301
+ hash = {}
302
+ self.class.attribute_map.each_pair do |attr, param|
303
+ value = self.send(attr)
304
+ if value.nil?
305
+ is_nullable = self.class.openapi_nullable.include?(attr)
306
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
307
+ end
308
+
309
+ hash[param] = _to_hash(value)
310
+ end
311
+ hash
312
+ end
313
+
314
+ # Outputs non-array value in the form of hash
315
+ # For object, use to_hash. Otherwise, just return the value
316
+ # @param [Object] value Any valid value
317
+ # @return [Hash] Returns the value in the form of hash
318
+ def _to_hash(value)
319
+ if value.is_a?(Array)
320
+ value.compact.map { |v| _to_hash(v) }
321
+ elsif value.is_a?(Hash)
322
+ {}.tap do |hash|
323
+ value.each { |k, v| hash[k] = _to_hash(v) }
324
+ end
325
+ elsif value.respond_to? :to_hash
326
+ value.to_hash
327
+ else
328
+ value
329
+ end
330
+ end
331
+
332
+ end
333
+
334
+ end
@@ -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.4.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FuseClient
17
+ class GetFinancialConnectionsTransactionsResponse
18
+ attr_accessor :transactions
19
+
20
+ # The total number of transactions available within the date range specified. If total_transactions is larger than the size of the transactions array, more transactions are available and can be fetched
21
+ attr_accessor :total_transactions
22
+
23
+ # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
24
+ attr_accessor :request_id
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'transactions' => :'transactions',
30
+ :'total_transactions' => :'total_transactions',
31
+ :'request_id' => :'request_id'
32
+ }
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'transactions' => :'Array<Transaction>',
44
+ :'total_transactions' => :'Float',
45
+ :'request_id' => :'String'
46
+ }
47
+ end
48
+
49
+ # List of attributes with nullable: true
50
+ def self.openapi_nullable
51
+ Set.new([
52
+ ])
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ if (!attributes.is_a?(Hash))
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::GetFinancialConnectionsTransactionsResponse` initialize method"
60
+ end
61
+
62
+ # check to see if the attribute exists and convert string to symbol for hash key
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!self.class.attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::GetFinancialConnectionsTransactionsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'transactions')
71
+ if (value = attributes[:'transactions']).is_a?(Array)
72
+ self.transactions = value
73
+ end
74
+ end
75
+
76
+ if attributes.key?(:'total_transactions')
77
+ self.total_transactions = attributes[:'total_transactions']
78
+ end
79
+
80
+ if attributes.key?(:'request_id')
81
+ self.request_id = attributes[:'request_id']
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 @transactions.nil?
90
+ invalid_properties.push('invalid value for "transactions", transactions cannot be nil.')
91
+ end
92
+
93
+ if @total_transactions.nil?
94
+ invalid_properties.push('invalid value for "total_transactions", total_transactions cannot be nil.')
95
+ end
96
+
97
+ if @request_id.nil?
98
+ invalid_properties.push('invalid value for "request_id", request_id 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 @transactions.nil?
108
+ return false if @total_transactions.nil?
109
+ return false if @request_id.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
+ transactions == o.transactions &&
119
+ total_transactions == o.total_transactions &&
120
+ request_id == o.request_id
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
+ [transactions, total_transactions, request_id].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.3.0
9
+ OpenAPI Generator version: 6.4.0
10
10
 
11
11
  =end
12
12
 
@@ -17,10 +17,14 @@ module FuseClient
17
17
  class GetFinancialInstitutionResponse
18
18
  attr_accessor :financial_institution
19
19
 
20
+ # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
21
+ attr_accessor :request_id
22
+
20
23
  # Attribute mapping from ruby-style variable name to JSON key.
21
24
  def self.attribute_map
22
25
  {
23
- :'financial_institution' => :'financial_institution'
26
+ :'financial_institution' => :'financial_institution',
27
+ :'request_id' => :'request_id'
24
28
  }
25
29
  end
26
30
 
@@ -32,7 +36,8 @@ module FuseClient
32
36
  # Attribute type mapping.
33
37
  def self.openapi_types
34
38
  {
35
- :'financial_institution' => :'FinancialInstitution'
39
+ :'financial_institution' => :'FinancialInstitution',
40
+ :'request_id' => :'String'
36
41
  }
37
42
  end
38
43
 
@@ -60,18 +65,32 @@ module FuseClient
60
65
  if attributes.key?(:'financial_institution')
61
66
  self.financial_institution = attributes[:'financial_institution']
62
67
  end
68
+
69
+ if attributes.key?(:'request_id')
70
+ self.request_id = attributes[:'request_id']
71
+ end
63
72
  end
64
73
 
65
74
  # Show invalid properties with the reasons. Usually used together with valid?
66
75
  # @return Array for valid properties with the reasons
67
76
  def list_invalid_properties
68
77
  invalid_properties = Array.new
78
+ if @financial_institution.nil?
79
+ invalid_properties.push('invalid value for "financial_institution", financial_institution cannot be nil.')
80
+ end
81
+
82
+ if @request_id.nil?
83
+ invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
84
+ end
85
+
69
86
  invalid_properties
70
87
  end
71
88
 
72
89
  # Check to see if the all the properties in the model are valid
73
90
  # @return true if the model is valid
74
91
  def valid?
92
+ return false if @financial_institution.nil?
93
+ return false if @request_id.nil?
75
94
  true
76
95
  end
77
96
 
@@ -80,7 +99,8 @@ module FuseClient
80
99
  def ==(o)
81
100
  return true if self.equal?(o)
82
101
  self.class == o.class &&
83
- financial_institution == o.financial_institution
102
+ financial_institution == o.financial_institution &&
103
+ request_id == o.request_id
84
104
  end
85
105
 
86
106
  # @see the `==` method
@@ -92,7 +112,7 @@ module FuseClient
92
112
  # Calculates hash code according to all attributes.
93
113
  # @return [Integer] Hash code
94
114
  def hash
95
- [financial_institution].hash
115
+ [financial_institution, request_id].hash
96
116
  end
97
117
 
98
118
  # Builds the object from hash