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
@@ -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
 
@@ -14,10 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class GetTransactionsResponseDataInner
18
- # Fuse Id of the transaction
19
- attr_accessor :id
20
-
17
+ class Transaction
21
18
  # Remote Id of the transaction, ie Plaid or Teller Id
22
19
  attr_accessor :remote_id
23
20
 
@@ -27,7 +24,7 @@ module FuseClient
27
24
  # Amount in cents associated with the transaction
28
25
  attr_accessor :amount
29
26
 
30
- # Date of the transaction
27
+ # Date of the transaction (YYYY-MM-DD)
31
28
  attr_accessor :date
32
29
 
33
30
  # Description of the transaction
@@ -38,16 +35,42 @@ module FuseClient
38
35
 
39
36
  attr_accessor :merchant
40
37
 
41
- # The status of the transaction. This will be either POSTED or PENDING.
38
+ # The status of the transaction. This will be either posted or pending.
42
39
  attr_accessor :status
43
40
 
44
41
  # Type of the transaction, ie adjustment
45
42
  attr_accessor :type
46
43
 
44
+ # The ISO-4217 currency code of the transaction
45
+ attr_accessor :iso_currency_code
46
+
47
+ attr_accessor :remote_data
48
+
49
+ class EnumAttributeValidator
50
+ attr_reader :datatype
51
+ attr_reader :allowable_values
52
+
53
+ def initialize(datatype, allowable_values)
54
+ @allowable_values = allowable_values.map do |value|
55
+ case datatype.to_s
56
+ when /Integer/i
57
+ value.to_i
58
+ when /Float/i
59
+ value.to_f
60
+ else
61
+ value
62
+ end
63
+ end
64
+ end
65
+
66
+ def valid?(value)
67
+ !value || allowable_values.include?(value)
68
+ end
69
+ end
70
+
47
71
  # Attribute mapping from ruby-style variable name to JSON key.
48
72
  def self.attribute_map
49
73
  {
50
- :'id' => :'id',
51
74
  :'remote_id' => :'remote_id',
52
75
  :'remote_account_id' => :'remote_account_id',
53
76
  :'amount' => :'amount',
@@ -56,7 +79,9 @@ module FuseClient
56
79
  :'category' => :'category',
57
80
  :'merchant' => :'merchant',
58
81
  :'status' => :'status',
59
- :'type' => :'type'
82
+ :'type' => :'type',
83
+ :'iso_currency_code' => :'iso_currency_code',
84
+ :'remote_data' => :'remote_data'
60
85
  }
61
86
  end
62
87
 
@@ -68,22 +93,24 @@ module FuseClient
68
93
  # Attribute type mapping.
69
94
  def self.openapi_types
70
95
  {
71
- :'id' => :'String',
72
96
  :'remote_id' => :'String',
73
97
  :'remote_account_id' => :'String',
74
98
  :'amount' => :'Float',
75
99
  :'date' => :'String',
76
100
  :'description' => :'String',
77
101
  :'category' => :'Array<String>',
78
- :'merchant' => :'GetTransactionsResponseDataInnerMerchant',
102
+ :'merchant' => :'TransactionMerchant',
79
103
  :'status' => :'String',
80
- :'type' => :'String'
104
+ :'type' => :'String',
105
+ :'iso_currency_code' => :'String',
106
+ :'remote_data' => :'Object'
81
107
  }
82
108
  end
83
109
 
84
110
  # List of attributes with nullable: true
85
111
  def self.openapi_nullable
86
112
  Set.new([
113
+ :'remote_data'
87
114
  ])
88
115
  end
89
116
 
@@ -91,21 +118,17 @@ module FuseClient
91
118
  # @param [Hash] attributes Model attributes in the form of hash
92
119
  def initialize(attributes = {})
93
120
  if (!attributes.is_a?(Hash))
94
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::GetTransactionsResponseDataInner` initialize method"
121
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::Transaction` initialize method"
95
122
  end
96
123
 
97
124
  # check to see if the attribute exists and convert string to symbol for hash key
98
125
  attributes = attributes.each_with_object({}) { |(k, v), h|
99
126
  if (!self.class.attribute_map.key?(k.to_sym))
100
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::GetTransactionsResponseDataInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
127
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::Transaction`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
101
128
  end
102
129
  h[k.to_sym] = v
103
130
  }
104
131
 
105
- if attributes.key?(:'id')
106
- self.id = attributes[:'id']
107
- end
108
-
109
132
  if attributes.key?(:'remote_id')
110
133
  self.remote_id = attributes[:'remote_id']
111
134
  end
@@ -143,27 +166,91 @@ module FuseClient
143
166
  if attributes.key?(:'type')
144
167
  self.type = attributes[:'type']
145
168
  end
169
+
170
+ if attributes.key?(:'iso_currency_code')
171
+ self.iso_currency_code = attributes[:'iso_currency_code']
172
+ end
173
+
174
+ if attributes.key?(:'remote_data')
175
+ self.remote_data = attributes[:'remote_data']
176
+ end
146
177
  end
147
178
 
148
179
  # Show invalid properties with the reasons. Usually used together with valid?
149
180
  # @return Array for valid properties with the reasons
150
181
  def list_invalid_properties
151
182
  invalid_properties = Array.new
183
+ if @remote_id.nil?
184
+ invalid_properties.push('invalid value for "remote_id", remote_id cannot be nil.')
185
+ end
186
+
187
+ if @remote_account_id.nil?
188
+ invalid_properties.push('invalid value for "remote_account_id", remote_account_id cannot be nil.')
189
+ end
190
+
191
+ if @amount.nil?
192
+ invalid_properties.push('invalid value for "amount", amount cannot be nil.')
193
+ end
194
+
195
+ if @date.nil?
196
+ invalid_properties.push('invalid value for "date", date cannot be nil.')
197
+ end
198
+
199
+ if @description.nil?
200
+ invalid_properties.push('invalid value for "description", description cannot be nil.')
201
+ end
202
+
203
+ if @category.nil?
204
+ invalid_properties.push('invalid value for "category", category cannot be nil.')
205
+ end
206
+
207
+ if @merchant.nil?
208
+ invalid_properties.push('invalid value for "merchant", merchant cannot be nil.')
209
+ end
210
+
211
+ if @status.nil?
212
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
213
+ end
214
+
215
+ if @type.nil?
216
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
217
+ end
218
+
152
219
  invalid_properties
153
220
  end
154
221
 
155
222
  # Check to see if the all the properties in the model are valid
156
223
  # @return true if the model is valid
157
224
  def valid?
225
+ return false if @remote_id.nil?
226
+ return false if @remote_account_id.nil?
227
+ return false if @amount.nil?
228
+ return false if @date.nil?
229
+ return false if @description.nil?
230
+ return false if @category.nil?
231
+ return false if @merchant.nil?
232
+ return false if @status.nil?
233
+ status_validator = EnumAttributeValidator.new('String', ["pending", "posted"])
234
+ return false unless status_validator.valid?(@status)
235
+ return false if @type.nil?
158
236
  true
159
237
  end
160
238
 
239
+ # Custom attribute writer method checking allowed values (enum).
240
+ # @param [Object] status Object to be assigned
241
+ def status=(status)
242
+ validator = EnumAttributeValidator.new('String', ["pending", "posted"])
243
+ unless validator.valid?(status)
244
+ fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
245
+ end
246
+ @status = status
247
+ end
248
+
161
249
  # Checks equality by comparing each attribute.
162
250
  # @param [Object] Object to be compared
163
251
  def ==(o)
164
252
  return true if self.equal?(o)
165
253
  self.class == o.class &&
166
- id == o.id &&
167
254
  remote_id == o.remote_id &&
168
255
  remote_account_id == o.remote_account_id &&
169
256
  amount == o.amount &&
@@ -172,7 +259,9 @@ module FuseClient
172
259
  category == o.category &&
173
260
  merchant == o.merchant &&
174
261
  status == o.status &&
175
- type == o.type
262
+ type == o.type &&
263
+ iso_currency_code == o.iso_currency_code &&
264
+ remote_data == o.remote_data
176
265
  end
177
266
 
178
267
  # @see the `==` method
@@ -184,7 +273,7 @@ module FuseClient
184
273
  # Calculates hash code according to all attributes.
185
274
  # @return [Integer] Hash code
186
275
  def hash
187
- [id, remote_id, remote_account_id, amount, date, description, category, merchant, status, type].hash
276
+ [remote_id, remote_account_id, amount, date, description, category, merchant, status, type, iso_currency_code, remote_data].hash
188
277
  end
189
278
 
190
279
  # 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.3.0
9
+ OpenAPI Generator version: 6.4.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class GetTransactionsResponseDataInnerMerchant
17
+ class TransactionMerchant
18
18
  # Merchant name
19
19
  attr_accessor :name
20
20
 
@@ -47,13 +47,13 @@ module FuseClient
47
47
  # @param [Hash] attributes Model attributes in the form of hash
48
48
  def initialize(attributes = {})
49
49
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::GetTransactionsResponseDataInnerMerchant` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::TransactionMerchant` initialize method"
51
51
  end
52
52
 
53
53
  # check to see if the attribute exists and convert string to symbol for hash key
54
54
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
55
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::GetTransactionsResponseDataInnerMerchant`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::TransactionMerchant`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
57
  end
58
58
  h[k.to_sym] = v
59
59
  }
@@ -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
 
@@ -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
 
@@ -26,13 +26,17 @@ module FuseClient
26
26
 
27
27
  attr_accessor :institution_ids
28
28
 
29
+ # An identifier that is exclusive to the request and can serve as a means for investigating and resolving issues.
30
+ attr_accessor :request_id
31
+
29
32
  # Attribute mapping from ruby-style variable name to JSON key.
30
33
  def self.attribute_map
31
34
  {
32
35
  :'id' => :'id',
33
36
  :'email' => :'email',
34
37
  :'aggregators' => :'aggregators',
35
- :'institution_ids' => :'institution_ids'
38
+ :'institution_ids' => :'institution_ids',
39
+ :'request_id' => :'request_id'
36
40
  }
37
41
  end
38
42
 
@@ -47,7 +51,8 @@ module FuseClient
47
51
  :'id' => :'String',
48
52
  :'email' => :'String',
49
53
  :'aggregators' => :'Array<Aggregator>',
50
- :'institution_ids' => :'Array<String>'
54
+ :'institution_ids' => :'Array<String>',
55
+ :'request_id' => :'String'
51
56
  }
52
57
  end
53
58
 
@@ -91,6 +96,10 @@ module FuseClient
91
96
  self.institution_ids = value
92
97
  end
93
98
  end
99
+
100
+ if attributes.key?(:'request_id')
101
+ self.request_id = attributes[:'request_id']
102
+ end
94
103
  end
95
104
 
96
105
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -129,7 +138,8 @@ module FuseClient
129
138
  id == o.id &&
130
139
  email == o.email &&
131
140
  aggregators == o.aggregators &&
132
- institution_ids == o.institution_ids
141
+ institution_ids == o.institution_ids &&
142
+ request_id == o.request_id
133
143
  end
134
144
 
135
145
  # @see the `==` method
@@ -141,7 +151,7 @@ module FuseClient
141
151
  # Calculates hash code according to all attributes.
142
152
  # @return [Integer] Hash code
143
153
  def hash
144
- [id, email, aggregators, institution_ids].hash
154
+ [id, email, aggregators, institution_ids, request_id].hash
145
155
  end
146
156
 
147
157
  # 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.3.0
9
+ OpenAPI Generator version: 6.4.0
10
10
 
11
11
  =end
12
12
 
@@ -14,42 +14,52 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FuseClient
17
- class FinancialConnectionsInvestmentTransactionDataInner
18
- # Fuse Id of the investment transaction
19
- attr_accessor :id
17
+ class WebhookEvent
18
+ attr_accessor :type
20
19
 
21
- # The remote ID of the Investment transaction
22
- attr_accessor :remote_investment_transaction_id
20
+ # Financial connection id associated with the webhook
21
+ attr_accessor :financial_connection_id
23
22
 
24
- # Remote Account Id of the transaction, ie Plaid Account Id
25
- attr_accessor :remote_account_id
23
+ attr_accessor :environment
26
24
 
27
- # The complete value of the transaction. Positive values when cash is debited, e.g. purchases of stock; negative values when cash is credited, e.g. sales of stock.
28
- attr_accessor :amount
25
+ attr_accessor :source
29
26
 
30
- # The number of units of the security involved in this transaction. Positive for buy transactions; negative for sell transactions.
31
- attr_accessor :quantity
27
+ # Aggregator verification data needed to verify the webhook
28
+ attr_accessor :verification_token
32
29
 
33
- # The institution’s description of the transaction.
34
- attr_accessor :name
30
+ attr_accessor :remote_data
35
31
 
36
- # Type of the transaction, ie buy, sell
37
- attr_accessor :type
32
+ class EnumAttributeValidator
33
+ attr_reader :datatype
34
+ attr_reader :allowable_values
38
35
 
39
- # Date of the transaction
40
- attr_accessor :date
36
+ def initialize(datatype, allowable_values)
37
+ @allowable_values = allowable_values.map do |value|
38
+ case datatype.to_s
39
+ when /Integer/i
40
+ value.to_i
41
+ when /Float/i
42
+ value.to_f
43
+ else
44
+ value
45
+ end
46
+ end
47
+ end
48
+
49
+ def valid?(value)
50
+ !value || allowable_values.include?(value)
51
+ end
52
+ end
41
53
 
42
54
  # Attribute mapping from ruby-style variable name to JSON key.
43
55
  def self.attribute_map
44
56
  {
45
- :'id' => :'id',
46
- :'remote_investment_transaction_id' => :'remote_investment_transaction_id',
47
- :'remote_account_id' => :'remote_account_id',
48
- :'amount' => :'amount',
49
- :'quantity' => :'quantity',
50
- :'name' => :'name',
51
57
  :'type' => :'type',
52
- :'date' => :'date'
58
+ :'financial_connection_id' => :'financial_connection_id',
59
+ :'environment' => :'environment',
60
+ :'source' => :'source',
61
+ :'verification_token' => :'verification_token',
62
+ :'remote_data' => :'remote_data'
53
63
  }
54
64
  end
55
65
 
@@ -61,20 +71,19 @@ module FuseClient
61
71
  # Attribute type mapping.
62
72
  def self.openapi_types
63
73
  {
64
- :'id' => :'String',
65
- :'remote_investment_transaction_id' => :'String',
66
- :'remote_account_id' => :'String',
67
- :'amount' => :'Float',
68
- :'quantity' => :'String',
69
- :'name' => :'String',
70
- :'type' => :'String',
71
- :'date' => :'String'
74
+ :'type' => :'WebhookType',
75
+ :'financial_connection_id' => :'String',
76
+ :'environment' => :'String',
77
+ :'source' => :'WebhookSource',
78
+ :'verification_token' => :'String',
79
+ :'remote_data' => :'Object'
72
80
  }
73
81
  end
74
82
 
75
83
  # List of attributes with nullable: true
76
84
  def self.openapi_nullable
77
85
  Set.new([
86
+ :'remote_data'
78
87
  ])
79
88
  end
80
89
 
@@ -82,47 +91,39 @@ module FuseClient
82
91
  # @param [Hash] attributes Model attributes in the form of hash
83
92
  def initialize(attributes = {})
84
93
  if (!attributes.is_a?(Hash))
85
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::FinancialConnectionsInvestmentTransactionDataInner` initialize method"
94
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::WebhookEvent` initialize method"
86
95
  end
87
96
 
88
97
  # check to see if the attribute exists and convert string to symbol for hash key
89
98
  attributes = attributes.each_with_object({}) { |(k, v), h|
90
99
  if (!self.class.attribute_map.key?(k.to_sym))
91
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::FinancialConnectionsInvestmentTransactionDataInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
100
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::WebhookEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
92
101
  end
93
102
  h[k.to_sym] = v
94
103
  }
95
104
 
96
- if attributes.key?(:'id')
97
- self.id = attributes[:'id']
98
- end
99
-
100
- if attributes.key?(:'remote_investment_transaction_id')
101
- self.remote_investment_transaction_id = attributes[:'remote_investment_transaction_id']
105
+ if attributes.key?(:'type')
106
+ self.type = attributes[:'type']
102
107
  end
103
108
 
104
- if attributes.key?(:'remote_account_id')
105
- self.remote_account_id = attributes[:'remote_account_id']
109
+ if attributes.key?(:'financial_connection_id')
110
+ self.financial_connection_id = attributes[:'financial_connection_id']
106
111
  end
107
112
 
108
- if attributes.key?(:'amount')
109
- self.amount = attributes[:'amount']
113
+ if attributes.key?(:'environment')
114
+ self.environment = attributes[:'environment']
110
115
  end
111
116
 
112
- if attributes.key?(:'quantity')
113
- self.quantity = attributes[:'quantity']
117
+ if attributes.key?(:'source')
118
+ self.source = attributes[:'source']
114
119
  end
115
120
 
116
- if attributes.key?(:'name')
117
- self.name = attributes[:'name']
121
+ if attributes.key?(:'verification_token')
122
+ self.verification_token = attributes[:'verification_token']
118
123
  end
119
124
 
120
- if attributes.key?(:'type')
121
- self.type = attributes[:'type']
122
- end
123
-
124
- if attributes.key?(:'date')
125
- self.date = attributes[:'date']
125
+ if attributes.key?(:'remote_data')
126
+ self.remote_data = attributes[:'remote_data']
126
127
  end
127
128
  end
128
129
 
@@ -130,28 +131,58 @@ module FuseClient
130
131
  # @return Array for valid properties with the reasons
131
132
  def list_invalid_properties
132
133
  invalid_properties = Array.new
134
+ if @type.nil?
135
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
136
+ end
137
+
138
+ if @financial_connection_id.nil?
139
+ invalid_properties.push('invalid value for "financial_connection_id", financial_connection_id cannot be nil.')
140
+ end
141
+
142
+ if @environment.nil?
143
+ invalid_properties.push('invalid value for "environment", environment cannot be nil.')
144
+ end
145
+
146
+ if @source.nil?
147
+ invalid_properties.push('invalid value for "source", source cannot be nil.')
148
+ end
149
+
133
150
  invalid_properties
134
151
  end
135
152
 
136
153
  # Check to see if the all the properties in the model are valid
137
154
  # @return true if the model is valid
138
155
  def valid?
156
+ return false if @type.nil?
157
+ return false if @financial_connection_id.nil?
158
+ return false if @environment.nil?
159
+ environment_validator = EnumAttributeValidator.new('String', ["sandbox", "production"])
160
+ return false unless environment_validator.valid?(@environment)
161
+ return false if @source.nil?
139
162
  true
140
163
  end
141
164
 
165
+ # Custom attribute writer method checking allowed values (enum).
166
+ # @param [Object] environment Object to be assigned
167
+ def environment=(environment)
168
+ validator = EnumAttributeValidator.new('String', ["sandbox", "production"])
169
+ unless validator.valid?(environment)
170
+ fail ArgumentError, "invalid value for \"environment\", must be one of #{validator.allowable_values}."
171
+ end
172
+ @environment = environment
173
+ end
174
+
142
175
  # Checks equality by comparing each attribute.
143
176
  # @param [Object] Object to be compared
144
177
  def ==(o)
145
178
  return true if self.equal?(o)
146
179
  self.class == o.class &&
147
- id == o.id &&
148
- remote_investment_transaction_id == o.remote_investment_transaction_id &&
149
- remote_account_id == o.remote_account_id &&
150
- amount == o.amount &&
151
- quantity == o.quantity &&
152
- name == o.name &&
153
180
  type == o.type &&
154
- date == o.date
181
+ financial_connection_id == o.financial_connection_id &&
182
+ environment == o.environment &&
183
+ source == o.source &&
184
+ verification_token == o.verification_token &&
185
+ remote_data == o.remote_data
155
186
  end
156
187
 
157
188
  # @see the `==` method
@@ -163,7 +194,7 @@ module FuseClient
163
194
  # Calculates hash code according to all attributes.
164
195
  # @return [Integer] Hash code
165
196
  def hash
166
- [id, remote_investment_transaction_id, remote_account_id, amount, quantity, name, type, date].hash
197
+ [type, financial_connection_id, environment, source, verification_token, remote_data].hash
167
198
  end
168
199
 
169
200
  # Builds the object from hash
@@ -0,0 +1,43 @@
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 WebhookSource
18
+ PLAID = "plaid".freeze
19
+ TELLER = "teller".freeze
20
+ MX = "mx".freeze
21
+ FUSE = "fuse".freeze
22
+ SNAPTRADE = "snaptrade".freeze
23
+
24
+ def self.all_vars
25
+ @all_vars ||= [PLAID, TELLER, MX, FUSE, SNAPTRADE].freeze
26
+ end
27
+
28
+ # Builds the enum from string
29
+ # @param [String] The enum value in the form of the string
30
+ # @return [String] The enum value
31
+ def self.build_from_hash(value)
32
+ new.build_from_hash(value)
33
+ end
34
+
35
+ # Builds the enum from string
36
+ # @param [String] The enum value in the form of the string
37
+ # @return [String] The enum value
38
+ def build_from_hash(value)
39
+ return value if WebhookSource.all_vars.include?(value)
40
+ raise "Invalid ENUM value #{value} for class #WebhookSource"
41
+ end
42
+ end
43
+ end