fuse_client 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (226) hide show
  1. checksums.yaml +7 -0
  2. data/2023-01-25.json +1736 -0
  3. data/fuse-ruby-openapi/.gitignore +39 -0
  4. data/fuse-ruby-openapi/.gitlab-ci.yml +26 -0
  5. data/fuse-ruby-openapi/.openapi-generator/FILES +220 -0
  6. data/fuse-ruby-openapi/.openapi-generator/VERSION +1 -0
  7. data/fuse-ruby-openapi/.openapi-generator-ignore +23 -0
  8. data/fuse-ruby-openapi/.rspec +2 -0
  9. data/fuse-ruby-openapi/.rubocop.yml +148 -0
  10. data/fuse-ruby-openapi/.travis.yml +14 -0
  11. data/fuse-ruby-openapi/Gemfile +9 -0
  12. data/fuse-ruby-openapi/README.md +258 -0
  13. data/fuse-ruby-openapi/Rakefile +10 -0
  14. data/fuse-ruby-openapi/docs/CreateAssetReportRequest.md +20 -0
  15. data/fuse-ruby-openapi/docs/CreateAssetReportResponse.md +20 -0
  16. data/fuse-ruby-openapi/docs/CreateLinkTokenRequest.md +28 -0
  17. data/fuse-ruby-openapi/docs/CreateLinkTokenRequestMx.md +18 -0
  18. data/fuse-ruby-openapi/docs/CreateLinkTokenRequestPlaid.md +18 -0
  19. data/fuse-ruby-openapi/docs/CreateLinkTokenRequestPlaidConfig.md +18 -0
  20. data/fuse-ruby-openapi/docs/CreateLinkTokenResponse.md +20 -0
  21. data/fuse-ruby-openapi/docs/CreateSessionRequest.md +22 -0
  22. data/fuse-ruby-openapi/docs/CreateSessionRequestMx.md +24 -0
  23. data/fuse-ruby-openapi/docs/CreateSessionRequestPlaid.md +18 -0
  24. data/fuse-ruby-openapi/docs/CreateSessionResponse.md +22 -0
  25. data/fuse-ruby-openapi/docs/ExchangeFinancialConnectionsPublicTokenRequest.md +18 -0
  26. data/fuse-ruby-openapi/docs/ExchangeFinancialConnectionsPublicTokenResponse.md +22 -0
  27. data/fuse-ruby-openapi/docs/FinancialConnectionsAccount.md +32 -0
  28. data/fuse-ruby-openapi/docs/FinancialConnectionsAccountBalance.md +24 -0
  29. data/fuse-ruby-openapi/docs/FinancialConnectionsAccountDetails.md +22 -0
  30. data/fuse-ruby-openapi/docs/FinancialConnectionsAccountDetailsAch.md +24 -0
  31. data/fuse-ruby-openapi/docs/FinancialConnectionsAccountInstitution.md +18 -0
  32. data/fuse-ruby-openapi/docs/FinancialConnectionsAccountLiability.md +46 -0
  33. data/fuse-ruby-openapi/docs/FinancialConnectionsAccountLiabilityAllOf.md +30 -0
  34. data/fuse-ruby-openapi/docs/FinancialConnectionsAccountLiabilityAllOfAprs.md +20 -0
  35. data/fuse-ruby-openapi/docs/FinancialConnectionsHolding.md +26 -0
  36. data/fuse-ruby-openapi/docs/FinancialConnectionsInvestmentAccount.md +32 -0
  37. data/fuse-ruby-openapi/docs/FinancialConnectionsInvestmentSecurity.md +26 -0
  38. data/fuse-ruby-openapi/docs/FinancialConnectionsInvestmentTransaction.md +18 -0
  39. data/fuse-ruby-openapi/docs/FinancialConnectionsInvestmentTransactionDataInner.md +32 -0
  40. data/fuse-ruby-openapi/docs/FinancialConnectionsOwner.md +24 -0
  41. data/fuse-ruby-openapi/docs/FinancialConnectionsOwnerAddressesInner.md +20 -0
  42. data/fuse-ruby-openapi/docs/FinancialConnectionsOwnerAddressesInnerData.md +26 -0
  43. data/fuse-ruby-openapi/docs/FinancialConnectionsOwnerEmailsInner.md +22 -0
  44. data/fuse-ruby-openapi/docs/FinancialConnectionsOwnerNamesInner.md +20 -0
  45. data/fuse-ruby-openapi/docs/FinancialConnectionsOwnerPhoneNumbersInner.md +22 -0
  46. data/fuse-ruby-openapi/docs/FuseApi.md +1154 -0
  47. data/fuse-ruby-openapi/docs/FuseApiError.md +28 -0
  48. data/fuse-ruby-openapi/docs/FuseApiErrorData.md +20 -0
  49. data/fuse-ruby-openapi/docs/FuseApiWarning.md +28 -0
  50. data/fuse-ruby-openapi/docs/FuseApiWarningData.md +20 -0
  51. data/fuse-ruby-openapi/docs/GetAssetReportRequest.md +18 -0
  52. data/fuse-ruby-openapi/docs/GetAssetReportResponse.md +18 -0
  53. data/fuse-ruby-openapi/docs/GetAssetReportResponseReport.md +28 -0
  54. data/fuse-ruby-openapi/docs/GetAssetReportResponseReportAccountsInner.md +24 -0
  55. data/fuse-ruby-openapi/docs/GetAssetReportResponseReportAccountsInnerBalances.md +22 -0
  56. data/fuse-ruby-openapi/docs/GetAssetReportResponseReportAccountsInnerHistoricalBalancesInner.md +22 -0
  57. data/fuse-ruby-openapi/docs/GetFinancialConnectionsAccountBalanceResponse.md +18 -0
  58. data/fuse-ruby-openapi/docs/GetFinancialConnectionsAccountDetailsRequest.md +18 -0
  59. data/fuse-ruby-openapi/docs/GetFinancialConnectionsAccountDetailsResponse.md +18 -0
  60. data/fuse-ruby-openapi/docs/GetFinancialConnectionsAccountsRequest.md +18 -0
  61. data/fuse-ruby-openapi/docs/GetFinancialConnectionsAccountsResponse.md +18 -0
  62. data/fuse-ruby-openapi/docs/GetFinancialConnectionsBalanceRequest.md +18 -0
  63. data/fuse-ruby-openapi/docs/GetFinancialConnectionsOwnersRequest.md +18 -0
  64. data/fuse-ruby-openapi/docs/GetFinancialConnectionsOwnersResponse.md +18 -0
  65. data/fuse-ruby-openapi/docs/GetFinancialConnectionsOwnersResponseAccountsInner.md +20 -0
  66. data/fuse-ruby-openapi/docs/GetInvestmentHoldingsRequest.md +18 -0
  67. data/fuse-ruby-openapi/docs/GetInvestmentHoldingsResponse.md +24 -0
  68. data/fuse-ruby-openapi/docs/GetInvestmentTransactionsRequest.md +18 -0
  69. data/fuse-ruby-openapi/docs/GetInvestmentTransactionsResponse.md +24 -0
  70. data/fuse-ruby-openapi/docs/GetLiabilitiesRequest.md +18 -0
  71. data/fuse-ruby-openapi/docs/GetLiabilitiesResponse.md +20 -0
  72. data/fuse-ruby-openapi/docs/GetTransactionsRequest.md +22 -0
  73. data/fuse-ruby-openapi/docs/GetTransactionsResponse.md +22 -0
  74. data/fuse-ruby-openapi/docs/GetTransactionsResponseDataInner.md +38 -0
  75. data/fuse-ruby-openapi/docs/GetTransactionsResponseDataInnerMerchant.md +18 -0
  76. data/fuse-ruby-openapi/docs/SyncFinancialConnectionsDataResponse.md +18 -0
  77. data/fuse-ruby-openapi/docs/SyncTransactionsRequest.md +22 -0
  78. data/fuse-ruby-openapi/docs/SyncTransactionsResponse.md +26 -0
  79. data/fuse-ruby-openapi/docs/SyncTransactionsResponseRemovedInner.md +18 -0
  80. data/fuse-ruby-openapi/docs/TransactionCommonModel.md +18 -0
  81. data/fuse-ruby-openapi/fuse_client.gemspec +38 -0
  82. data/fuse-ruby-openapi/git_push.sh +57 -0
  83. data/fuse-ruby-openapi/lib/fuse_client/api/fuse_api.rb +994 -0
  84. data/fuse-ruby-openapi/lib/fuse_client/api_client.rb +392 -0
  85. data/fuse-ruby-openapi/lib/fuse_client/api_error.rb +57 -0
  86. data/fuse-ruby-openapi/lib/fuse_client/configuration.rb +349 -0
  87. data/fuse-ruby-openapi/lib/fuse_client/models/create_asset_report_request.rb +268 -0
  88. data/fuse-ruby-openapi/lib/fuse_client/models/create_asset_report_response.rb +230 -0
  89. data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_request.rb +277 -0
  90. data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_request_mx.rb +221 -0
  91. data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_request_plaid.rb +220 -0
  92. data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_request_plaid_config.rb +225 -0
  93. data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_response.rb +230 -0
  94. data/fuse-ruby-openapi/lib/fuse_client/models/create_session_request.rb +266 -0
  95. data/fuse-ruby-openapi/lib/fuse_client/models/create_session_request_mx.rb +247 -0
  96. data/fuse-ruby-openapi/lib/fuse_client/models/create_session_request_plaid.rb +238 -0
  97. data/fuse-ruby-openapi/lib/fuse_client/models/create_session_response.rb +240 -0
  98. data/fuse-ruby-openapi/lib/fuse_client/models/exchange_financial_connections_public_token_request.rb +220 -0
  99. data/fuse-ruby-openapi/lib/fuse_client/models/exchange_financial_connections_public_token_response.rb +240 -0
  100. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account.rb +288 -0
  101. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_balance.rb +250 -0
  102. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_details.rb +239 -0
  103. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_details_ach.rb +250 -0
  104. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_institution.rb +219 -0
  105. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_liability.rb +368 -0
  106. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_liability_all_of.rb +282 -0
  107. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +230 -0
  108. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_holding.rb +260 -0
  109. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_investment_account.rb +288 -0
  110. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_investment_security.rb +260 -0
  111. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_investment_transaction.rb +221 -0
  112. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_investment_transaction_data_inner.rb +290 -0
  113. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner.rb +255 -0
  114. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner_addresses_inner.rb +229 -0
  115. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +260 -0
  116. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner_emails_inner.rb +274 -0
  117. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner_names_inner.rb +230 -0
  118. data/fuse-ruby-openapi/lib/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +274 -0
  119. data/fuse-ruby-openapi/lib/fuse_client/models/fuse_api_error.rb +298 -0
  120. data/fuse-ruby-openapi/lib/fuse_client/models/fuse_api_error_data.rb +230 -0
  121. data/fuse-ruby-openapi/lib/fuse_client/models/fuse_api_warning.rb +298 -0
  122. data/fuse-ruby-openapi/lib/fuse_client/models/fuse_api_warning_data.rb +230 -0
  123. data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_request.rb +225 -0
  124. data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_response.rb +219 -0
  125. data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_response_report.rb +275 -0
  126. data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_response_report_accounts_inner.rb +252 -0
  127. data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_balances.rb +240 -0
  128. data/fuse-ruby-openapi/lib/fuse_client/models/get_asset_report_response_report_accounts_inner_historical_balances_inner.rb +240 -0
  129. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_account_balance_response.rb +221 -0
  130. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_account_details_request.rb +225 -0
  131. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_account_details_response.rb +221 -0
  132. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_accounts_request.rb +225 -0
  133. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_accounts_response.rb +221 -0
  134. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_balance_request.rb +225 -0
  135. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_owners_request.rb +225 -0
  136. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_owners_response.rb +221 -0
  137. data/fuse-ruby-openapi/lib/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +231 -0
  138. data/fuse-ruby-openapi/lib/fuse_client/models/get_investment_holdings_request.rb +225 -0
  139. data/fuse-ruby-openapi/lib/fuse_client/models/get_investment_holdings_response.rb +253 -0
  140. data/fuse-ruby-openapi/lib/fuse_client/models/get_investment_transactions_request.rb +225 -0
  141. data/fuse-ruby-openapi/lib/fuse_client/models/get_investment_transactions_response.rb +253 -0
  142. data/fuse-ruby-openapi/lib/fuse_client/models/get_liabilities_request.rb +225 -0
  143. data/fuse-ruby-openapi/lib/fuse_client/models/get_liabilities_response.rb +231 -0
  144. data/fuse-ruby-openapi/lib/fuse_client/models/get_transactions_request.rb +245 -0
  145. data/fuse-ruby-openapi/lib/fuse_client/models/get_transactions_response.rb +241 -0
  146. data/fuse-ruby-openapi/lib/fuse_client/models/get_transactions_response_data_inner.rb +321 -0
  147. data/fuse-ruby-openapi/lib/fuse_client/models/get_transactions_response_data_inner_merchant.rb +220 -0
  148. data/fuse-ruby-openapi/lib/fuse_client/models/sync_financial_connections_data_response.rb +220 -0
  149. data/fuse-ruby-openapi/lib/fuse_client/models/sync_transactions_request.rb +245 -0
  150. data/fuse-ruby-openapi/lib/fuse_client/models/sync_transactions_response.rb +266 -0
  151. data/fuse-ruby-openapi/lib/fuse_client/models/sync_transactions_response_removed_inner.rb +219 -0
  152. data/fuse-ruby-openapi/lib/fuse_client/models/transaction_common_model.rb +221 -0
  153. data/fuse-ruby-openapi/lib/fuse_client/version.rb +15 -0
  154. data/fuse-ruby-openapi/lib/fuse_client.rb +106 -0
  155. data/fuse-ruby-openapi/spec/api/fuse_api_spec.rb +201 -0
  156. data/fuse-ruby-openapi/spec/api_client_spec.rb +226 -0
  157. data/fuse-ruby-openapi/spec/configuration_spec.rb +42 -0
  158. data/fuse-ruby-openapi/spec/models/create_asset_report_request_spec.rb +40 -0
  159. data/fuse-ruby-openapi/spec/models/create_asset_report_response_spec.rb +40 -0
  160. data/fuse-ruby-openapi/spec/models/create_link_token_request_mx_spec.rb +34 -0
  161. data/fuse-ruby-openapi/spec/models/create_link_token_request_plaid_config_spec.rb +34 -0
  162. data/fuse-ruby-openapi/spec/models/create_link_token_request_plaid_spec.rb +34 -0
  163. data/fuse-ruby-openapi/spec/models/create_link_token_request_spec.rb +64 -0
  164. data/fuse-ruby-openapi/spec/models/create_link_token_response_spec.rb +40 -0
  165. data/fuse-ruby-openapi/spec/models/create_session_request_mx_spec.rb +52 -0
  166. data/fuse-ruby-openapi/spec/models/create_session_request_plaid_spec.rb +34 -0
  167. data/fuse-ruby-openapi/spec/models/create_session_request_spec.rb +50 -0
  168. data/fuse-ruby-openapi/spec/models/create_session_response_spec.rb +46 -0
  169. data/fuse-ruby-openapi/spec/models/exchange_financial_connections_public_token_request_spec.rb +34 -0
  170. data/fuse-ruby-openapi/spec/models/exchange_financial_connections_public_token_response_spec.rb +46 -0
  171. data/fuse-ruby-openapi/spec/models/financial_connections_account_balance_spec.rb +52 -0
  172. data/fuse-ruby-openapi/spec/models/financial_connections_account_details_ach_spec.rb +52 -0
  173. data/fuse-ruby-openapi/spec/models/financial_connections_account_details_spec.rb +46 -0
  174. data/fuse-ruby-openapi/spec/models/financial_connections_account_institution_spec.rb +34 -0
  175. data/fuse-ruby-openapi/spec/models/financial_connections_account_liability_all_of_aprs_spec.rb +40 -0
  176. data/fuse-ruby-openapi/spec/models/financial_connections_account_liability_all_of_spec.rb +70 -0
  177. data/fuse-ruby-openapi/spec/models/financial_connections_account_liability_spec.rb +118 -0
  178. data/fuse-ruby-openapi/spec/models/financial_connections_account_spec.rb +76 -0
  179. data/fuse-ruby-openapi/spec/models/financial_connections_holding_spec.rb +58 -0
  180. data/fuse-ruby-openapi/spec/models/financial_connections_investment_account_spec.rb +76 -0
  181. data/fuse-ruby-openapi/spec/models/financial_connections_investment_security_spec.rb +58 -0
  182. data/fuse-ruby-openapi/spec/models/financial_connections_investment_transaction_data_inner_spec.rb +76 -0
  183. data/fuse-ruby-openapi/spec/models/financial_connections_investment_transaction_spec.rb +34 -0
  184. data/fuse-ruby-openapi/spec/models/financial_connections_owner_addresses_inner_data_spec.rb +58 -0
  185. data/fuse-ruby-openapi/spec/models/financial_connections_owner_addresses_inner_spec.rb +40 -0
  186. data/fuse-ruby-openapi/spec/models/financial_connections_owner_emails_inner_spec.rb +50 -0
  187. data/fuse-ruby-openapi/spec/models/financial_connections_owner_names_inner_spec.rb +40 -0
  188. data/fuse-ruby-openapi/spec/models/financial_connections_owner_phone_numbers_inner_spec.rb +50 -0
  189. data/fuse-ruby-openapi/spec/models/financial_connections_owner_spec.rb +52 -0
  190. data/fuse-ruby-openapi/spec/models/fuse_api_error_data_spec.rb +40 -0
  191. data/fuse-ruby-openapi/spec/models/fuse_api_error_spec.rb +68 -0
  192. data/fuse-ruby-openapi/spec/models/fuse_api_warning_data_spec.rb +40 -0
  193. data/fuse-ruby-openapi/spec/models/fuse_api_warning_spec.rb +68 -0
  194. data/fuse-ruby-openapi/spec/models/get_asset_report_request_spec.rb +34 -0
  195. data/fuse-ruby-openapi/spec/models/get_asset_report_response_report_accounts_inner_balances_spec.rb +46 -0
  196. data/fuse-ruby-openapi/spec/models/get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb +46 -0
  197. data/fuse-ruby-openapi/spec/models/get_asset_report_response_report_accounts_inner_spec.rb +52 -0
  198. data/fuse-ruby-openapi/spec/models/get_asset_report_response_report_spec.rb +64 -0
  199. data/fuse-ruby-openapi/spec/models/get_asset_report_response_spec.rb +34 -0
  200. data/fuse-ruby-openapi/spec/models/get_financial_connections_account_balance_response_spec.rb +34 -0
  201. data/fuse-ruby-openapi/spec/models/get_financial_connections_account_details_request_spec.rb +34 -0
  202. data/fuse-ruby-openapi/spec/models/get_financial_connections_account_details_response_spec.rb +34 -0
  203. data/fuse-ruby-openapi/spec/models/get_financial_connections_accounts_request_spec.rb +34 -0
  204. data/fuse-ruby-openapi/spec/models/get_financial_connections_accounts_response_spec.rb +34 -0
  205. data/fuse-ruby-openapi/spec/models/get_financial_connections_balance_request_spec.rb +34 -0
  206. data/fuse-ruby-openapi/spec/models/get_financial_connections_owners_request_spec.rb +34 -0
  207. data/fuse-ruby-openapi/spec/models/get_financial_connections_owners_response_accounts_inner_spec.rb +40 -0
  208. data/fuse-ruby-openapi/spec/models/get_financial_connections_owners_response_spec.rb +34 -0
  209. data/fuse-ruby-openapi/spec/models/get_investment_holdings_request_spec.rb +34 -0
  210. data/fuse-ruby-openapi/spec/models/get_investment_holdings_response_spec.rb +52 -0
  211. data/fuse-ruby-openapi/spec/models/get_investment_transactions_request_spec.rb +34 -0
  212. data/fuse-ruby-openapi/spec/models/get_investment_transactions_response_spec.rb +52 -0
  213. data/fuse-ruby-openapi/spec/models/get_liabilities_request_spec.rb +34 -0
  214. data/fuse-ruby-openapi/spec/models/get_liabilities_response_spec.rb +40 -0
  215. data/fuse-ruby-openapi/spec/models/get_transactions_request_spec.rb +46 -0
  216. data/fuse-ruby-openapi/spec/models/get_transactions_response_data_inner_merchant_spec.rb +34 -0
  217. data/fuse-ruby-openapi/spec/models/get_transactions_response_data_inner_spec.rb +94 -0
  218. data/fuse-ruby-openapi/spec/models/get_transactions_response_spec.rb +46 -0
  219. data/fuse-ruby-openapi/spec/models/sync_financial_connections_data_response_spec.rb +34 -0
  220. data/fuse-ruby-openapi/spec/models/sync_transactions_request_spec.rb +46 -0
  221. data/fuse-ruby-openapi/spec/models/sync_transactions_response_removed_inner_spec.rb +34 -0
  222. data/fuse-ruby-openapi/spec/models/sync_transactions_response_spec.rb +58 -0
  223. data/fuse-ruby-openapi/spec/models/transaction_common_model_spec.rb +34 -0
  224. data/fuse-ruby-openapi/spec/spec_helper.rb +111 -0
  225. data/generate-fuse-openapi-spec.js +136 -0
  226. metadata +307 -0
@@ -0,0 +1,247 @@
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.2.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FuseClient
17
+ # This can be left empty even if MX is in the list of supported_financial_institution_aggregators, although we would recommend having a look at what each field means to see if you want to override the default value of 'false'. These fields are described here(https://docs.mx.com/api#core_resources_institutions_list_institutions). An object specifying information about the MX configuration to use for deciding which MX supported financial institutions to display.
18
+ class CreateSessionRequestMx
19
+ attr_accessor :supports_account_identification
20
+
21
+ attr_accessor :supports_account_statement
22
+
23
+ attr_accessor :supports_account_verification
24
+
25
+ attr_accessor :supports_transaction_history
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'supports_account_identification' => :'supports_account_identification',
31
+ :'supports_account_statement' => :'supports_account_statement',
32
+ :'supports_account_verification' => :'supports_account_verification',
33
+ :'supports_transaction_history' => :'supports_transaction_history'
34
+ }
35
+ end
36
+
37
+ # Returns all the JSON keys this model knows about
38
+ def self.acceptable_attributes
39
+ attribute_map.values
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.openapi_types
44
+ {
45
+ :'supports_account_identification' => :'Boolean',
46
+ :'supports_account_statement' => :'Boolean',
47
+ :'supports_account_verification' => :'Boolean',
48
+ :'supports_transaction_history' => :'Boolean'
49
+ }
50
+ end
51
+
52
+ # List of attributes with nullable: true
53
+ def self.openapi_nullable
54
+ Set.new([
55
+ ])
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ if (!attributes.is_a?(Hash))
62
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::CreateSessionRequestMx` initialize method"
63
+ end
64
+
65
+ # check to see if the attribute exists and convert string to symbol for hash key
66
+ attributes = attributes.each_with_object({}) { |(k, v), h|
67
+ if (!self.class.attribute_map.key?(k.to_sym))
68
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::CreateSessionRequestMx`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
69
+ end
70
+ h[k.to_sym] = v
71
+ }
72
+
73
+ if attributes.key?(:'supports_account_identification')
74
+ self.supports_account_identification = attributes[:'supports_account_identification']
75
+ end
76
+
77
+ if attributes.key?(:'supports_account_statement')
78
+ self.supports_account_statement = attributes[:'supports_account_statement']
79
+ end
80
+
81
+ if attributes.key?(:'supports_account_verification')
82
+ self.supports_account_verification = attributes[:'supports_account_verification']
83
+ end
84
+
85
+ if attributes.key?(:'supports_transaction_history')
86
+ self.supports_transaction_history = attributes[:'supports_transaction_history']
87
+ end
88
+ end
89
+
90
+ # Show invalid properties with the reasons. Usually used together with valid?
91
+ # @return Array for valid properties with the reasons
92
+ def list_invalid_properties
93
+ invalid_properties = Array.new
94
+ invalid_properties
95
+ end
96
+
97
+ # Check to see if the all the properties in the model are valid
98
+ # @return true if the model is valid
99
+ def valid?
100
+ true
101
+ end
102
+
103
+ # Checks equality by comparing each attribute.
104
+ # @param [Object] Object to be compared
105
+ def ==(o)
106
+ return true if self.equal?(o)
107
+ self.class == o.class &&
108
+ supports_account_identification == o.supports_account_identification &&
109
+ supports_account_statement == o.supports_account_statement &&
110
+ supports_account_verification == o.supports_account_verification &&
111
+ supports_transaction_history == o.supports_transaction_history
112
+ end
113
+
114
+ # @see the `==` method
115
+ # @param [Object] Object to be compared
116
+ def eql?(o)
117
+ self == o
118
+ end
119
+
120
+ # Calculates hash code according to all attributes.
121
+ # @return [Integer] Hash code
122
+ def hash
123
+ [supports_account_identification, supports_account_statement, supports_account_verification, supports_transaction_history].hash
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def self.build_from_hash(attributes)
130
+ new.build_from_hash(attributes)
131
+ end
132
+
133
+ # Builds the object from hash
134
+ # @param [Hash] attributes Model attributes in the form of hash
135
+ # @return [Object] Returns the model itself
136
+ def build_from_hash(attributes)
137
+ return nil unless attributes.is_a?(Hash)
138
+ attributes = attributes.transform_keys(&:to_sym)
139
+ self.class.openapi_types.each_pair do |key, type|
140
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
141
+ self.send("#{key}=", nil)
142
+ elsif type =~ /\AArray<(.*)>/i
143
+ # check to ensure the input is an array given that the attribute
144
+ # is documented as an array but the input is not
145
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
146
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
147
+ end
148
+ elsif !attributes[self.class.attribute_map[key]].nil?
149
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
150
+ end
151
+ end
152
+
153
+ self
154
+ end
155
+
156
+ # Deserializes the data based on type
157
+ # @param string type Data type
158
+ # @param string value Value to be deserialized
159
+ # @return [Object] Deserialized data
160
+ def _deserialize(type, value)
161
+ case type.to_sym
162
+ when :Time
163
+ Time.parse(value)
164
+ when :Date
165
+ Date.parse(value)
166
+ when :String
167
+ value.to_s
168
+ when :Integer
169
+ value.to_i
170
+ when :Float
171
+ value.to_f
172
+ when :Boolean
173
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
174
+ true
175
+ else
176
+ false
177
+ end
178
+ when :Object
179
+ # generic object (usually a Hash), return directly
180
+ value
181
+ when /\AArray<(?<inner_type>.+)>\z/
182
+ inner_type = Regexp.last_match[:inner_type]
183
+ value.map { |v| _deserialize(inner_type, v) }
184
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
185
+ k_type = Regexp.last_match[:k_type]
186
+ v_type = Regexp.last_match[:v_type]
187
+ {}.tap do |hash|
188
+ value.each do |k, v|
189
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
190
+ end
191
+ end
192
+ else # model
193
+ # models (e.g. Pet) or oneOf
194
+ klass = FuseClient.const_get(type)
195
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
196
+ end
197
+ end
198
+
199
+ # Returns the string representation of the object
200
+ # @return [String] String presentation of the object
201
+ def to_s
202
+ to_hash.to_s
203
+ end
204
+
205
+ # to_body is an alias to to_hash (backward compatibility)
206
+ # @return [Hash] Returns the object in the form of hash
207
+ def to_body
208
+ to_hash
209
+ end
210
+
211
+ # Returns the object in the form of hash
212
+ # @return [Hash] Returns the object in the form of hash
213
+ def to_hash
214
+ hash = {}
215
+ self.class.attribute_map.each_pair do |attr, param|
216
+ value = self.send(attr)
217
+ if value.nil?
218
+ is_nullable = self.class.openapi_nullable.include?(attr)
219
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
220
+ end
221
+
222
+ hash[param] = _to_hash(value)
223
+ end
224
+ hash
225
+ end
226
+
227
+ # Outputs non-array value in the form of hash
228
+ # For object, use to_hash. Otherwise, just return the value
229
+ # @param [Object] value Any valid value
230
+ # @return [Hash] Returns the value in the form of hash
231
+ def _to_hash(value)
232
+ if value.is_a?(Array)
233
+ value.compact.map { |v| _to_hash(v) }
234
+ elsif value.is_a?(Hash)
235
+ {}.tap do |hash|
236
+ value.each { |k, v| hash[k] = _to_hash(v) }
237
+ end
238
+ elsif value.respond_to? :to_hash
239
+ value.to_hash
240
+ else
241
+ value
242
+ end
243
+ end
244
+
245
+ end
246
+
247
+ end
@@ -0,0 +1,238 @@
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.2.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FuseClient
17
+ # This field is REQUIRED if PLAID is in the list of supported_financial_institution_aggregators. An object specifying information about the Plaid configuration to use for deciding which Plaid supported financial institutions to display.
18
+ class CreateSessionRequestPlaid
19
+ # For a comprehensive list of supported plaid products, see https://plaid.com/docs/api/tokens/#link-token-create-request-products
20
+ attr_accessor :products
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'products' => :'products'
26
+ }
27
+ end
28
+
29
+ # Returns all the JSON keys this model knows about
30
+ def self.acceptable_attributes
31
+ attribute_map.values
32
+ end
33
+
34
+ # Attribute type mapping.
35
+ def self.openapi_types
36
+ {
37
+ :'products' => :'Array<String>'
38
+ }
39
+ end
40
+
41
+ # List of attributes with nullable: true
42
+ def self.openapi_nullable
43
+ Set.new([
44
+ ])
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ if (!attributes.is_a?(Hash))
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::CreateSessionRequestPlaid` initialize method"
52
+ end
53
+
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::CreateSessionRequestPlaid`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ end
59
+ h[k.to_sym] = v
60
+ }
61
+
62
+ if attributes.key?(:'products')
63
+ if (value = attributes[:'products']).is_a?(Array)
64
+ self.products = value
65
+ end
66
+ end
67
+ end
68
+
69
+ # Show invalid properties with the reasons. Usually used together with valid?
70
+ # @return Array for valid properties with the reasons
71
+ def list_invalid_properties
72
+ invalid_properties = Array.new
73
+ if !@products.nil? && @products.length < 1
74
+ invalid_properties.push('invalid value for "products", number of items must be greater than or equal to 1.')
75
+ end
76
+
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ return false if !@products.nil? && @products.length < 1
84
+ true
85
+ end
86
+
87
+ # Custom attribute writer method with validation
88
+ # @param [Object] products Value to be assigned
89
+ def products=(products)
90
+ if !products.nil? && products.length < 1
91
+ fail ArgumentError, 'invalid value for "products", number of items must be greater than or equal to 1.'
92
+ end
93
+
94
+ @products = products
95
+ end
96
+
97
+ # Checks equality by comparing each attribute.
98
+ # @param [Object] Object to be compared
99
+ def ==(o)
100
+ return true if self.equal?(o)
101
+ self.class == o.class &&
102
+ products == o.products
103
+ end
104
+
105
+ # @see the `==` method
106
+ # @param [Object] Object to be compared
107
+ def eql?(o)
108
+ self == o
109
+ end
110
+
111
+ # Calculates hash code according to all attributes.
112
+ # @return [Integer] Hash code
113
+ def hash
114
+ [products].hash
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def self.build_from_hash(attributes)
121
+ new.build_from_hash(attributes)
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ attributes = attributes.transform_keys(&:to_sym)
130
+ self.class.openapi_types.each_pair do |key, type|
131
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
132
+ self.send("#{key}=", nil)
133
+ elsif type =~ /\AArray<(.*)>/i
134
+ # check to ensure the input is an array given that the attribute
135
+ # is documented as an array but the input is not
136
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
137
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
138
+ end
139
+ elsif !attributes[self.class.attribute_map[key]].nil?
140
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
141
+ end
142
+ end
143
+
144
+ self
145
+ end
146
+
147
+ # Deserializes the data based on type
148
+ # @param string type Data type
149
+ # @param string value Value to be deserialized
150
+ # @return [Object] Deserialized data
151
+ def _deserialize(type, value)
152
+ case type.to_sym
153
+ when :Time
154
+ Time.parse(value)
155
+ when :Date
156
+ Date.parse(value)
157
+ when :String
158
+ value.to_s
159
+ when :Integer
160
+ value.to_i
161
+ when :Float
162
+ value.to_f
163
+ when :Boolean
164
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
165
+ true
166
+ else
167
+ false
168
+ end
169
+ when :Object
170
+ # generic object (usually a Hash), return directly
171
+ value
172
+ when /\AArray<(?<inner_type>.+)>\z/
173
+ inner_type = Regexp.last_match[:inner_type]
174
+ value.map { |v| _deserialize(inner_type, v) }
175
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
176
+ k_type = Regexp.last_match[:k_type]
177
+ v_type = Regexp.last_match[:v_type]
178
+ {}.tap do |hash|
179
+ value.each do |k, v|
180
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
181
+ end
182
+ end
183
+ else # model
184
+ # models (e.g. Pet) or oneOf
185
+ klass = FuseClient.const_get(type)
186
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
187
+ end
188
+ end
189
+
190
+ # Returns the string representation of the object
191
+ # @return [String] String presentation of the object
192
+ def to_s
193
+ to_hash.to_s
194
+ end
195
+
196
+ # to_body is an alias to to_hash (backward compatibility)
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_body
199
+ to_hash
200
+ end
201
+
202
+ # Returns the object in the form of hash
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_hash
205
+ hash = {}
206
+ self.class.attribute_map.each_pair do |attr, param|
207
+ value = self.send(attr)
208
+ if value.nil?
209
+ is_nullable = self.class.openapi_nullable.include?(attr)
210
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
211
+ end
212
+
213
+ hash[param] = _to_hash(value)
214
+ end
215
+ hash
216
+ end
217
+
218
+ # Outputs non-array value in the form of hash
219
+ # For object, use to_hash. Otherwise, just return the value
220
+ # @param [Object] value Any valid value
221
+ # @return [Hash] Returns the value in the form of hash
222
+ def _to_hash(value)
223
+ if value.is_a?(Array)
224
+ value.compact.map { |v| _to_hash(v) }
225
+ elsif value.is_a?(Hash)
226
+ {}.tap do |hash|
227
+ value.each { |k, v| hash[k] = _to_hash(v) }
228
+ end
229
+ elsif value.respond_to? :to_hash
230
+ value.to_hash
231
+ else
232
+ value
233
+ end
234
+ end
235
+
236
+ end
237
+
238
+ end