fuse_client 0.3.1 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. checksums.yaml +4 -4
  2. data/{fuse-ruby-openapi/Gemfile → Gemfile} +0 -0
  3. data/Gemfile.lock +70 -0
  4. data/LICENSE +21 -0
  5. data/README.md +1 -0
  6. data/{fuse-ruby-openapi/Rakefile → Rakefile} +0 -0
  7. data/docs/Aggregator.md +15 -0
  8. data/{fuse-ruby-openapi/docs → docs}/CreateAssetReportRequest.md +3 -1
  9. data/{fuse-ruby-openapi/docs → docs}/CreateAssetReportResponse.md +0 -0
  10. data/docs/CreateEntityRequest.md +24 -0
  11. data/docs/CreateEntityResponse.md +24 -0
  12. data/{fuse-ruby-openapi/docs → docs}/CreateLinkTokenRequest.md +5 -5
  13. data/{fuse-ruby-openapi/docs → docs}/CreateLinkTokenRequestMx.md +1 -1
  14. data/docs/CreateLinkTokenRequestPlaid.md +18 -0
  15. data/{fuse-ruby-openapi/docs → docs}/CreateLinkTokenResponse.md +0 -0
  16. data/docs/CreateSessionRequest.md +20 -0
  17. data/{fuse-ruby-openapi/docs → docs}/CreateSessionResponse.md +0 -0
  18. data/{fuse-ruby-openapi/docs → docs}/ExchangeFinancialConnectionsPublicTokenRequest.md +0 -0
  19. data/{fuse-ruby-openapi/docs → docs}/ExchangeFinancialConnectionsPublicTokenResponse.md +0 -0
  20. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccount.md +0 -0
  21. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccountBalance.md +0 -0
  22. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccountDetails.md +1 -3
  23. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccountDetailsAch.md +0 -0
  24. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccountInstitution.md +0 -0
  25. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccountLiability.md +0 -0
  26. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccountLiabilityAllOf.md +0 -0
  27. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsAccountLiabilityAllOfAprs.md +0 -0
  28. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsHolding.md +2 -0
  29. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsInvestmentAccount.md +0 -0
  30. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsInvestmentSecurity.md +0 -0
  31. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsInvestmentTransaction.md +0 -0
  32. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsInvestmentTransactionDataInner.md +0 -0
  33. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsOwner.md +0 -0
  34. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsOwnerAddressesInner.md +0 -0
  35. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsOwnerAddressesInnerData.md +0 -0
  36. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsOwnerEmailsInner.md +0 -0
  37. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsOwnerNamesInner.md +0 -0
  38. data/{fuse-ruby-openapi/docs → docs}/FinancialConnectionsOwnerPhoneNumbersInner.md +0 -0
  39. data/{fuse-ruby-openapi/docs → docs}/FuseApi.md +307 -1
  40. data/{fuse-ruby-openapi/docs → docs}/FuseApiError.md +0 -0
  41. data/{fuse-ruby-openapi/docs → docs}/FuseApiErrorData.md +0 -0
  42. data/{fuse-ruby-openapi/docs → docs}/FuseApiWarning.md +0 -0
  43. data/{fuse-ruby-openapi/docs → docs}/FuseApiWarningData.md +0 -0
  44. data/{fuse-ruby-openapi/docs → docs}/GetAssetReportRequest.md +0 -0
  45. data/{fuse-ruby-openapi/docs → docs}/GetAssetReportResponse.md +0 -0
  46. data/{fuse-ruby-openapi/docs → docs}/GetAssetReportResponseReport.md +0 -0
  47. data/{fuse-ruby-openapi/docs → docs}/GetAssetReportResponseReportAccountsInner.md +0 -0
  48. data/{fuse-ruby-openapi/docs → docs}/GetAssetReportResponseReportAccountsInnerBalances.md +0 -0
  49. data/{fuse-ruby-openapi/docs → docs}/GetAssetReportResponseReportAccountsInnerHistoricalBalancesInner.md +0 -0
  50. data/docs/GetEntityResponse.md +24 -0
  51. data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsAccountBalanceResponse.md +0 -0
  52. data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsAccountDetailsRequest.md +0 -0
  53. data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsAccountDetailsResponse.md +0 -0
  54. data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsAccountsRequest.md +0 -0
  55. data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsAccountsResponse.md +0 -0
  56. data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsBalanceRequest.md +0 -0
  57. data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsOwnersRequest.md +0 -0
  58. data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsOwnersResponse.md +0 -0
  59. data/{fuse-ruby-openapi/docs → docs}/GetFinancialConnectionsOwnersResponseAccountsInner.md +0 -0
  60. data/{fuse-ruby-openapi/docs → docs}/GetInvestmentHoldingsRequest.md +3 -1
  61. data/{fuse-ruby-openapi/docs → docs}/GetInvestmentHoldingsResponse.md +1 -3
  62. data/{fuse-ruby-openapi/docs → docs}/GetInvestmentTransactionsRequest.md +0 -0
  63. data/{fuse-ruby-openapi/docs → docs}/GetInvestmentTransactionsResponse.md +1 -3
  64. data/{fuse-ruby-openapi/docs → docs}/GetLiabilitiesRequest.md +0 -0
  65. data/{fuse-ruby-openapi/docs → docs}/GetLiabilitiesResponse.md +1 -3
  66. data/{fuse-ruby-openapi/docs → docs}/GetTransactionsRequest.md +0 -0
  67. data/{fuse-ruby-openapi/docs → docs}/GetTransactionsResponse.md +0 -0
  68. data/{fuse-ruby-openapi/docs → docs}/GetTransactionsResponseDataInner.md +1 -3
  69. data/{fuse-ruby-openapi/docs → docs}/GetTransactionsResponseDataInnerMerchant.md +0 -0
  70. data/docs/Product.md +15 -0
  71. data/docs/RefreshAssetReportRequest.md +22 -0
  72. data/{fuse-ruby-openapi/docs → docs}/SyncFinancialConnectionsDataResponse.md +0 -0
  73. data/{fuse-ruby-openapi/docs → docs}/SyncTransactionsRequest.md +0 -0
  74. data/{fuse-ruby-openapi/docs → docs}/SyncTransactionsResponse.md +0 -0
  75. data/{fuse-ruby-openapi/docs → docs}/SyncTransactionsResponseRemovedInner.md +0 -0
  76. data/{fuse-ruby-openapi/docs → docs}/TransactionCommonModel.md +0 -0
  77. data/docs/UpdateEntityRequest.md +22 -0
  78. data/docs/UpdateEntityResponse.md +24 -0
  79. data/{fuse-ruby-openapi/fuse_client.gemspec → fuse_client.gemspec} +0 -0
  80. data/{fuse-ruby-openapi/git_push.sh → git_push.sh} +0 -0
  81. data/{fuse-ruby-openapi/lib → lib}/fuse_client/api/fuse_api.rb +261 -0
  82. data/{fuse-ruby-openapi/lib → lib}/fuse_client/api_client.rb +0 -0
  83. data/{fuse-ruby-openapi/lib → lib}/fuse_client/api_error.rb +0 -0
  84. data/{fuse-ruby-openapi/lib → lib}/fuse_client/configuration.rb +2 -2
  85. data/lib/fuse_client/models/aggregator.rb +42 -0
  86. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_asset_report_request.rb +16 -4
  87. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_asset_report_response.rb +0 -0
  88. data/lib/fuse_client/models/create_entity_request.rb +268 -0
  89. data/lib/fuse_client/models/create_entity_response.rb +268 -0
  90. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_link_token_request.rb +21 -20
  91. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_link_token_request_mx.rb +1 -1
  92. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_link_token_request_plaid.rb +3 -2
  93. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_link_token_response.rb +0 -0
  94. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_session_request.rb +36 -39
  95. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/create_session_response.rb +0 -0
  96. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/exchange_financial_connections_public_token_request.rb +0 -0
  97. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/exchange_financial_connections_public_token_response.rb +0 -0
  98. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account.rb +0 -0
  99. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account_balance.rb +0 -0
  100. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account_details.rb +4 -14
  101. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account_details_ach.rb +0 -0
  102. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account_institution.rb +0 -0
  103. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account_liability.rb +0 -0
  104. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account_liability_all_of.rb +0 -0
  105. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_account_liability_all_of_aprs.rb +0 -0
  106. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_holding.rb +11 -1
  107. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_investment_account.rb +0 -0
  108. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_investment_security.rb +0 -0
  109. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_investment_transaction.rb +0 -0
  110. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_investment_transaction_data_inner.rb +0 -0
  111. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_owner.rb +0 -0
  112. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_owner_addresses_inner.rb +0 -0
  113. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_owner_addresses_inner_data.rb +0 -0
  114. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_owner_emails_inner.rb +0 -0
  115. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_owner_names_inner.rb +0 -0
  116. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/financial_connections_owner_phone_numbers_inner.rb +0 -0
  117. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/fuse_api_error.rb +0 -0
  118. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/fuse_api_error_data.rb +0 -0
  119. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/fuse_api_warning.rb +0 -0
  120. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/fuse_api_warning_data.rb +0 -0
  121. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_asset_report_request.rb +0 -0
  122. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_asset_report_response.rb +0 -0
  123. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_asset_report_response_report.rb +0 -0
  124. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_asset_report_response_report_accounts_inner.rb +0 -0
  125. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_asset_report_response_report_accounts_inner_balances.rb +0 -0
  126. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_asset_report_response_report_accounts_inner_historical_balances_inner.rb +0 -0
  127. data/lib/fuse_client/models/get_entity_response.rb +268 -0
  128. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_account_balance_response.rb +0 -0
  129. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_account_details_request.rb +0 -0
  130. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_account_details_response.rb +0 -0
  131. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_accounts_request.rb +0 -0
  132. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_accounts_response.rb +0 -0
  133. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_balance_request.rb +0 -0
  134. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_owners_request.rb +0 -0
  135. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_owners_response.rb +0 -0
  136. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_financial_connections_owners_response_accounts_inner.rb +0 -0
  137. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_investment_holdings_request.rb +14 -4
  138. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_investment_holdings_response.rb +4 -14
  139. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_investment_transactions_request.rb +0 -0
  140. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_investment_transactions_response.rb +4 -14
  141. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_liabilities_request.rb +0 -0
  142. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_liabilities_response.rb +4 -14
  143. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_transactions_request.rb +0 -0
  144. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_transactions_response.rb +0 -0
  145. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_transactions_response_data_inner.rb +4 -14
  146. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/get_transactions_response_data_inner_merchant.rb +0 -0
  147. data/lib/fuse_client/models/product.rb +44 -0
  148. data/lib/fuse_client/models/refresh_asset_report_request.rb +275 -0
  149. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/sync_financial_connections_data_response.rb +0 -0
  150. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/sync_transactions_request.rb +0 -0
  151. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/sync_transactions_response.rb +0 -0
  152. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/sync_transactions_response_removed_inner.rb +0 -0
  153. data/{fuse-ruby-openapi/lib → lib}/fuse_client/models/transaction_common_model.rb +0 -0
  154. data/{fuse-ruby-openapi/lib/fuse_client/models/create_session_request_plaid.rb → lib/fuse_client/models/update_entity_request.rb} +41 -21
  155. data/lib/fuse_client/models/update_entity_response.rb +268 -0
  156. data/{fuse-ruby-openapi/lib → lib}/fuse_client/version.rb +1 -1
  157. data/{fuse-ruby-openapi/lib → lib}/fuse_client.rb +8 -3
  158. data/{fuse-ruby-openapi/spec → spec}/api/fuse_api_spec.rb +45 -0
  159. data/{fuse-ruby-openapi/spec → spec}/api_client_spec.rb +0 -0
  160. data/{fuse-ruby-openapi/spec → spec}/configuration_spec.rb +3 -3
  161. data/spec/models/aggregator_spec.rb +28 -0
  162. data/{fuse-ruby-openapi/spec → spec}/models/create_asset_report_request_spec.rb +6 -0
  163. data/{fuse-ruby-openapi/spec → spec}/models/create_asset_report_response_spec.rb +0 -0
  164. data/{fuse-ruby-openapi/spec/models/create_session_request_mx_spec.rb → spec/models/create_entity_request_spec.rb} +10 -10
  165. data/spec/models/create_entity_response_spec.rb +52 -0
  166. data/{fuse-ruby-openapi/spec → spec}/models/create_link_token_request_mx_spec.rb +0 -0
  167. data/{fuse-ruby-openapi/spec → spec}/models/create_link_token_request_plaid_spec.rb +0 -0
  168. data/{fuse-ruby-openapi/spec → spec}/models/create_link_token_request_spec.rb +5 -5
  169. data/{fuse-ruby-openapi/spec → spec}/models/create_link_token_response_spec.rb +0 -0
  170. data/{fuse-ruby-openapi/spec → spec}/models/create_session_request_spec.rb +1 -11
  171. data/{fuse-ruby-openapi/spec → spec}/models/create_session_response_spec.rb +0 -0
  172. data/{fuse-ruby-openapi/spec → spec}/models/exchange_financial_connections_public_token_request_spec.rb +0 -0
  173. data/{fuse-ruby-openapi/spec → spec}/models/exchange_financial_connections_public_token_response_spec.rb +0 -0
  174. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_balance_spec.rb +0 -0
  175. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_details_ach_spec.rb +0 -0
  176. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_details_spec.rb +0 -6
  177. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_institution_spec.rb +0 -0
  178. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_liability_all_of_aprs_spec.rb +0 -0
  179. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_liability_all_of_spec.rb +0 -0
  180. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_liability_spec.rb +0 -0
  181. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_account_spec.rb +0 -0
  182. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_holding_spec.rb +6 -0
  183. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_investment_account_spec.rb +0 -0
  184. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_investment_security_spec.rb +0 -0
  185. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_investment_transaction_data_inner_spec.rb +0 -0
  186. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_investment_transaction_spec.rb +0 -0
  187. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_owner_addresses_inner_data_spec.rb +0 -0
  188. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_owner_addresses_inner_spec.rb +0 -0
  189. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_owner_emails_inner_spec.rb +0 -0
  190. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_owner_names_inner_spec.rb +0 -0
  191. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_owner_phone_numbers_inner_spec.rb +0 -0
  192. data/{fuse-ruby-openapi/spec → spec}/models/financial_connections_owner_spec.rb +0 -0
  193. data/{fuse-ruby-openapi/spec → spec}/models/fuse_api_error_data_spec.rb +0 -0
  194. data/{fuse-ruby-openapi/spec → spec}/models/fuse_api_error_spec.rb +0 -0
  195. data/{fuse-ruby-openapi/spec → spec}/models/fuse_api_warning_data_spec.rb +0 -0
  196. data/{fuse-ruby-openapi/spec → spec}/models/fuse_api_warning_spec.rb +0 -0
  197. data/{fuse-ruby-openapi/spec → spec}/models/get_asset_report_request_spec.rb +0 -0
  198. data/{fuse-ruby-openapi/spec → spec}/models/get_asset_report_response_report_accounts_inner_balances_spec.rb +0 -0
  199. data/{fuse-ruby-openapi/spec → spec}/models/get_asset_report_response_report_accounts_inner_historical_balances_inner_spec.rb +0 -0
  200. data/{fuse-ruby-openapi/spec → spec}/models/get_asset_report_response_report_accounts_inner_spec.rb +0 -0
  201. data/{fuse-ruby-openapi/spec → spec}/models/get_asset_report_response_report_spec.rb +0 -0
  202. data/{fuse-ruby-openapi/spec → spec}/models/get_asset_report_response_spec.rb +0 -0
  203. data/spec/models/get_entity_response_spec.rb +52 -0
  204. data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_account_balance_response_spec.rb +0 -0
  205. data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_account_details_request_spec.rb +0 -0
  206. data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_account_details_response_spec.rb +0 -0
  207. data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_accounts_request_spec.rb +0 -0
  208. data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_accounts_response_spec.rb +0 -0
  209. data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_balance_request_spec.rb +0 -0
  210. data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_owners_request_spec.rb +0 -0
  211. data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_owners_response_accounts_inner_spec.rb +0 -0
  212. data/{fuse-ruby-openapi/spec → spec}/models/get_financial_connections_owners_response_spec.rb +0 -0
  213. data/{fuse-ruby-openapi/spec → spec}/models/get_investment_holdings_request_spec.rb +6 -0
  214. data/{fuse-ruby-openapi/spec → spec}/models/get_investment_holdings_response_spec.rb +0 -6
  215. data/{fuse-ruby-openapi/spec → spec}/models/get_investment_transactions_request_spec.rb +0 -0
  216. data/{fuse-ruby-openapi/spec → spec}/models/get_investment_transactions_response_spec.rb +0 -6
  217. data/{fuse-ruby-openapi/spec → spec}/models/get_liabilities_request_spec.rb +0 -0
  218. data/{fuse-ruby-openapi/spec → spec}/models/get_liabilities_response_spec.rb +0 -6
  219. data/{fuse-ruby-openapi/spec → spec}/models/get_transactions_request_spec.rb +0 -0
  220. data/{fuse-ruby-openapi/spec → spec}/models/get_transactions_response_data_inner_merchant_spec.rb +0 -0
  221. data/{fuse-ruby-openapi/spec → spec}/models/get_transactions_response_data_inner_spec.rb +0 -6
  222. data/{fuse-ruby-openapi/spec → spec}/models/get_transactions_response_spec.rb +0 -0
  223. data/spec/models/product_spec.rb +28 -0
  224. data/spec/models/refresh_asset_report_request_spec.rb +46 -0
  225. data/{fuse-ruby-openapi/spec → spec}/models/sync_financial_connections_data_response_spec.rb +0 -0
  226. data/{fuse-ruby-openapi/spec → spec}/models/sync_transactions_request_spec.rb +0 -0
  227. data/{fuse-ruby-openapi/spec → spec}/models/sync_transactions_response_removed_inner_spec.rb +0 -0
  228. data/{fuse-ruby-openapi/spec → spec}/models/sync_transactions_response_spec.rb +0 -0
  229. data/{fuse-ruby-openapi/spec → spec}/models/transaction_common_model_spec.rb +0 -0
  230. data/spec/models/update_entity_request_spec.rb +46 -0
  231. data/spec/models/update_entity_response_spec.rb +52 -0
  232. data/{fuse-ruby-openapi/spec → spec}/spec_helper.rb +0 -0
  233. metadata +309 -228
  234. data/2023-01-25.json +0 -1736
  235. data/fuse-ruby-openapi/.gitignore +0 -39
  236. data/fuse-ruby-openapi/.gitlab-ci.yml +0 -26
  237. data/fuse-ruby-openapi/.openapi-generator/FILES +0 -220
  238. data/fuse-ruby-openapi/.openapi-generator/VERSION +0 -1
  239. data/fuse-ruby-openapi/.openapi-generator-ignore +0 -23
  240. data/fuse-ruby-openapi/.rspec +0 -2
  241. data/fuse-ruby-openapi/.rubocop.yml +0 -148
  242. data/fuse-ruby-openapi/.travis.yml +0 -14
  243. data/fuse-ruby-openapi/README.md +0 -258
  244. data/fuse-ruby-openapi/docs/CreateLinkTokenRequestPlaid.md +0 -18
  245. data/fuse-ruby-openapi/docs/CreateLinkTokenRequestPlaidConfig.md +0 -18
  246. data/fuse-ruby-openapi/docs/CreateSessionRequest.md +0 -22
  247. data/fuse-ruby-openapi/docs/CreateSessionRequestMx.md +0 -24
  248. data/fuse-ruby-openapi/docs/CreateSessionRequestPlaid.md +0 -18
  249. data/fuse-ruby-openapi/lib/fuse_client/models/create_link_token_request_plaid_config.rb +0 -225
  250. data/fuse-ruby-openapi/lib/fuse_client/models/create_session_request_mx.rb +0 -247
  251. data/fuse-ruby-openapi/spec/models/create_link_token_request_plaid_config_spec.rb +0 -34
  252. data/fuse-ruby-openapi/spec/models/create_session_request_plaid_spec.rb +0 -34
  253. data/fuse_client-0.3.0.gem +0 -0
  254. data/generate-fuse-openapi-spec.js +0 -136
@@ -1,258 +0,0 @@
1
- # fuse_client
2
-
3
- FuseClient - the Ruby gem for the Fuse
4
-
5
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
-
7
- This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
-
9
- - API version: 1.0.0
10
- - Package version: 0.3.0
11
- - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
-
13
- ## Installation
14
-
15
- ### Build a gem
16
-
17
- To build the Ruby code into a gem:
18
-
19
- ```shell
20
- gem build fuse_client.gemspec
21
- ```
22
-
23
- Then either install the gem locally:
24
-
25
- ```shell
26
- gem install ./fuse_client-0.3.0.gem
27
- ```
28
-
29
- (for development, run `gem install --dev ./fuse_client-0.3.0.gem` to install the development dependencies)
30
-
31
- or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
-
33
- Finally add this to the Gemfile:
34
-
35
- gem 'fuse_client', '~> 0.3.0'
36
-
37
- ### Install from Git
38
-
39
- If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
40
-
41
- gem 'fuse_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
42
-
43
- ### Include the Ruby code directly
44
-
45
- Include the Ruby code directly using `-I` as follows:
46
-
47
- ```shell
48
- ruby -Ilib script.rb
49
- ```
50
-
51
- ## Getting Started
52
-
53
- Please follow the [installation](#installation) procedure and then run the following code:
54
-
55
- ```ruby
56
- # Load the gem
57
- require 'fuse_client'
58
-
59
- # Setup authorization
60
- FuseClient.configure do |config|
61
- # Configure API key authorization: fuseApiKey
62
- config.api_key['fuseApiKey'] = 'YOUR API KEY'
63
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
64
- # config.api_key_prefix['fuseApiKey'] = 'Bearer'
65
-
66
- # Configure API key authorization: fuseClientId
67
- config.api_key['fuseClientId'] = 'YOUR API KEY'
68
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
69
- # config.api_key_prefix['fuseClientId'] = 'Bearer'
70
- end
71
-
72
- api_instance = FuseClient::FuseApi.new
73
- opts = {
74
- create_asset_report_request: FuseClient::CreateAssetReportRequest.new({access_token: 'access_token_example', days_requested: 3.56}) # CreateAssetReportRequest |
75
- }
76
-
77
- begin
78
- result = api_instance.create_asset_report(opts)
79
- p result
80
- rescue FuseClient::ApiError => e
81
- puts "Exception when calling FuseApi->create_asset_report: #{e}"
82
- end
83
-
84
- ```
85
-
86
- ## Documentation for API Endpoints
87
-
88
- All URIs are relative to *https://yz9sph5c42.execute-api.us-east-1.amazonaws.com*
89
-
90
- Class | Method | HTTP request | Description
91
- ------------ | ------------- | ------------- | -------------
92
- *FuseClient::FuseApi* | [**create_asset_report**](docs/FuseApi.md#create_asset_report) | **POST** /v1/asset_report/create |
93
- *FuseClient::FuseApi* | [**create_link_token**](docs/FuseApi.md#create_link_token) | **POST** /v1/link/token |
94
- *FuseClient::FuseApi* | [**create_session**](docs/FuseApi.md#create_session) | **POST** /v1/session |
95
- *FuseClient::FuseApi* | [**exchange_public_token**](docs/FuseApi.md#exchange_public_token) | **POST** /v1/financial_connections/public_token/exchange |
96
- *FuseClient::FuseApi* | [**get_asset_report**](docs/FuseApi.md#get_asset_report) | **POST** /v1/asset_report |
97
- *FuseClient::FuseApi* | [**get_financial_connections_account_details**](docs/FuseApi.md#get_financial_connections_account_details) | **POST** /v1/financial_connections/accounts/details | Get account details
98
- *FuseClient::FuseApi* | [**get_financial_connections_accounts**](docs/FuseApi.md#get_financial_connections_accounts) | **POST** /v1/financial_connections/accounts | Get accounts
99
- *FuseClient::FuseApi* | [**get_financial_connections_balances**](docs/FuseApi.md#get_financial_connections_balances) | **POST** /v1/financial_connections/balances | Get balances
100
- *FuseClient::FuseApi* | [**get_financial_connections_owners**](docs/FuseApi.md#get_financial_connections_owners) | **POST** /v1/financial_connections/owners | Get account owners
101
- *FuseClient::FuseApi* | [**get_financial_connections_transactions**](docs/FuseApi.md#get_financial_connections_transactions) | **POST** /v1/financial_connections/transactions | Get transactions
102
- *FuseClient::FuseApi* | [**get_investment_holdings**](docs/FuseApi.md#get_investment_holdings) | **POST** /v1/financial_connections/investments/holdings | Get investment holdings
103
- *FuseClient::FuseApi* | [**get_investment_transactions**](docs/FuseApi.md#get_investment_transactions) | **POST** /v1/financial_connections/investments/transactions | Get investment holdings
104
- *FuseClient::FuseApi* | [**sync_financial_connections_data**](docs/FuseApi.md#sync_financial_connections_data) | **POST** /v1/financial_connections/sync | Sync financial connections data
105
- *FuseClient::FuseApi* | [**sync_financial_connections_transactions**](docs/FuseApi.md#sync_financial_connections_transactions) | **POST** /v1/financial_connections/transactions/sync | Sync transactions
106
- *FuseClient::FuseApi* | [**v1_financial_connections_liabilities_post**](docs/FuseApi.md#v1_financial_connections_liabilities_post) | **POST** /v1/financial_connections/liabilities | Get liabilities
107
-
108
-
109
- ## Documentation for Models
110
-
111
- - [FuseClient::CreateAssetReportRequest](docs/CreateAssetReportRequest.md)
112
- - [FuseClient::CreateAssetReportResponse](docs/CreateAssetReportResponse.md)
113
- - [FuseClient::CreateLinkTokenRequest](docs/CreateLinkTokenRequest.md)
114
- - [FuseClient::CreateLinkTokenRequestMx](docs/CreateLinkTokenRequestMx.md)
115
- - [FuseClient::CreateLinkTokenRequestPlaid](docs/CreateLinkTokenRequestPlaid.md)
116
- - [FuseClient::CreateLinkTokenRequestPlaidConfig](docs/CreateLinkTokenRequestPlaidConfig.md)
117
- - [FuseClient::CreateLinkTokenResponse](docs/CreateLinkTokenResponse.md)
118
- - [FuseClient::CreateSessionRequest](docs/CreateSessionRequest.md)
119
- - [FuseClient::CreateSessionRequestMx](docs/CreateSessionRequestMx.md)
120
- - [FuseClient::CreateSessionRequestPlaid](docs/CreateSessionRequestPlaid.md)
121
- - [FuseClient::CreateSessionResponse](docs/CreateSessionResponse.md)
122
- - [FuseClient::ExchangeFinancialConnectionsPublicTokenRequest](docs/ExchangeFinancialConnectionsPublicTokenRequest.md)
123
- - [FuseClient::ExchangeFinancialConnectionsPublicTokenResponse](docs/ExchangeFinancialConnectionsPublicTokenResponse.md)
124
- - [FuseClient::FinancialConnectionsAccount](docs/FinancialConnectionsAccount.md)
125
- - [FuseClient::FinancialConnectionsAccountBalance](docs/FinancialConnectionsAccountBalance.md)
126
- - [FuseClient::FinancialConnectionsAccountDetails](docs/FinancialConnectionsAccountDetails.md)
127
- - [FuseClient::FinancialConnectionsAccountDetailsAch](docs/FinancialConnectionsAccountDetailsAch.md)
128
- - [FuseClient::FinancialConnectionsAccountInstitution](docs/FinancialConnectionsAccountInstitution.md)
129
- - [FuseClient::FinancialConnectionsAccountLiability](docs/FinancialConnectionsAccountLiability.md)
130
- - [FuseClient::FinancialConnectionsAccountLiabilityAllOf](docs/FinancialConnectionsAccountLiabilityAllOf.md)
131
- - [FuseClient::FinancialConnectionsAccountLiabilityAllOfAprs](docs/FinancialConnectionsAccountLiabilityAllOfAprs.md)
132
- - [FuseClient::FinancialConnectionsHolding](docs/FinancialConnectionsHolding.md)
133
- - [FuseClient::FinancialConnectionsInvestmentAccount](docs/FinancialConnectionsInvestmentAccount.md)
134
- - [FuseClient::FinancialConnectionsInvestmentSecurity](docs/FinancialConnectionsInvestmentSecurity.md)
135
- - [FuseClient::FinancialConnectionsInvestmentTransaction](docs/FinancialConnectionsInvestmentTransaction.md)
136
- - [FuseClient::FinancialConnectionsInvestmentTransactionDataInner](docs/FinancialConnectionsInvestmentTransactionDataInner.md)
137
- - [FuseClient::FinancialConnectionsOwner](docs/FinancialConnectionsOwner.md)
138
- - [FuseClient::FinancialConnectionsOwnerAddressesInner](docs/FinancialConnectionsOwnerAddressesInner.md)
139
- - [FuseClient::FinancialConnectionsOwnerAddressesInnerData](docs/FinancialConnectionsOwnerAddressesInnerData.md)
140
- - [FuseClient::FinancialConnectionsOwnerEmailsInner](docs/FinancialConnectionsOwnerEmailsInner.md)
141
- - [FuseClient::FinancialConnectionsOwnerNamesInner](docs/FinancialConnectionsOwnerNamesInner.md)
142
- - [FuseClient::FinancialConnectionsOwnerPhoneNumbersInner](docs/FinancialConnectionsOwnerPhoneNumbersInner.md)
143
- - [FuseClient::FuseApiError](docs/FuseApiError.md)
144
- - [FuseClient::FuseApiErrorData](docs/FuseApiErrorData.md)
145
- - [FuseClient::FuseApiWarning](docs/FuseApiWarning.md)
146
- - [FuseClient::FuseApiWarningData](docs/FuseApiWarningData.md)
147
- - [FuseClient::GetAssetReportRequest](docs/GetAssetReportRequest.md)
148
- - [FuseClient::GetAssetReportResponse](docs/GetAssetReportResponse.md)
149
- - [FuseClient::GetAssetReportResponseReport](docs/GetAssetReportResponseReport.md)
150
- - [FuseClient::GetAssetReportResponseReportAccountsInner](docs/GetAssetReportResponseReportAccountsInner.md)
151
- - [FuseClient::GetAssetReportResponseReportAccountsInnerBalances](docs/GetAssetReportResponseReportAccountsInnerBalances.md)
152
- - [FuseClient::GetAssetReportResponseReportAccountsInnerHistoricalBalancesInner](docs/GetAssetReportResponseReportAccountsInnerHistoricalBalancesInner.md)
153
- - [FuseClient::GetFinancialConnectionsAccountBalanceResponse](docs/GetFinancialConnectionsAccountBalanceResponse.md)
154
- - [FuseClient::GetFinancialConnectionsAccountDetailsRequest](docs/GetFinancialConnectionsAccountDetailsRequest.md)
155
- - [FuseClient::GetFinancialConnectionsAccountDetailsResponse](docs/GetFinancialConnectionsAccountDetailsResponse.md)
156
- - [FuseClient::GetFinancialConnectionsAccountsRequest](docs/GetFinancialConnectionsAccountsRequest.md)
157
- - [FuseClient::GetFinancialConnectionsAccountsResponse](docs/GetFinancialConnectionsAccountsResponse.md)
158
- - [FuseClient::GetFinancialConnectionsBalanceRequest](docs/GetFinancialConnectionsBalanceRequest.md)
159
- - [FuseClient::GetFinancialConnectionsOwnersRequest](docs/GetFinancialConnectionsOwnersRequest.md)
160
- - [FuseClient::GetFinancialConnectionsOwnersResponse](docs/GetFinancialConnectionsOwnersResponse.md)
161
- - [FuseClient::GetFinancialConnectionsOwnersResponseAccountsInner](docs/GetFinancialConnectionsOwnersResponseAccountsInner.md)
162
- - [FuseClient::GetInvestmentHoldingsRequest](docs/GetInvestmentHoldingsRequest.md)
163
- - [FuseClient::GetInvestmentHoldingsResponse](docs/GetInvestmentHoldingsResponse.md)
164
- - [FuseClient::GetInvestmentTransactionsRequest](docs/GetInvestmentTransactionsRequest.md)
165
- - [FuseClient::GetInvestmentTransactionsResponse](docs/GetInvestmentTransactionsResponse.md)
166
- - [FuseClient::GetLiabilitiesRequest](docs/GetLiabilitiesRequest.md)
167
- - [FuseClient::GetLiabilitiesResponse](docs/GetLiabilitiesResponse.md)
168
- - [FuseClient::GetTransactionsRequest](docs/GetTransactionsRequest.md)
169
- - [FuseClient::GetTransactionsResponse](docs/GetTransactionsResponse.md)
170
- - [FuseClient::GetTransactionsResponseDataInner](docs/GetTransactionsResponseDataInner.md)
171
- - [FuseClient::GetTransactionsResponseDataInnerMerchant](docs/GetTransactionsResponseDataInnerMerchant.md)
172
- - [FuseClient::SyncFinancialConnectionsDataResponse](docs/SyncFinancialConnectionsDataResponse.md)
173
- - [FuseClient::SyncTransactionsRequest](docs/SyncTransactionsRequest.md)
174
- - [FuseClient::SyncTransactionsResponse](docs/SyncTransactionsResponse.md)
175
- - [FuseClient::SyncTransactionsResponseRemovedInner](docs/SyncTransactionsResponseRemovedInner.md)
176
- - [FuseClient::TransactionCommonModel](docs/TransactionCommonModel.md)
177
-
178
-
179
- ## Documentation for Authorization
180
-
181
-
182
- ### fuseApiKey
183
-
184
-
185
- - **Type**: API key
186
- - **API key parameter name**: Fuse-Api-Key
187
- - **Location**: HTTP header
188
-
189
- ### fuseClientId
190
-
191
-
192
- - **Type**: API key
193
- - **API key parameter name**: Fuse-Client-Id
194
- - **Location**: HTTP header
195
-
196
- ### mxApiKey
197
-
198
-
199
- - **Type**: API key
200
- - **API key parameter name**: Mx-Api-Key
201
- - **Location**: HTTP header
202
-
203
- ### mxClientId
204
-
205
-
206
- - **Type**: API key
207
- - **API key parameter name**: Mx-Client-Id
208
- - **Location**: HTTP header
209
-
210
- ### plaidClientId
211
-
212
-
213
- - **Type**: API key
214
- - **API key parameter name**: Plaid-Client-Id
215
- - **Location**: HTTP header
216
-
217
- ### plaidSecret
218
-
219
-
220
- - **Type**: API key
221
- - **API key parameter name**: Plaid-Secret
222
- - **Location**: HTTP header
223
-
224
- ### tellerApplicationId
225
-
226
-
227
- - **Type**: API key
228
- - **API key parameter name**: Teller-Application-Id
229
- - **Location**: HTTP header
230
-
231
- ### tellerCertificate
232
-
233
-
234
- - **Type**: API key
235
- - **API key parameter name**: Teller-Certificate
236
- - **Location**: HTTP header
237
-
238
- ### tellerPrivateKey
239
-
240
-
241
- - **Type**: API key
242
- - **API key parameter name**: Teller-Private-Key
243
- - **Location**: HTTP header
244
-
245
- ### tellerSigningSecret
246
-
247
-
248
- - **Type**: API key
249
- - **API key parameter name**: Teller-Signing-Secret
250
- - **Location**: HTTP header
251
-
252
- ### tellerTokenSigningKey
253
-
254
-
255
- - **Type**: API key
256
- - **API key parameter name**: Teller-Token-Signing-Key
257
- - **Location**: HTTP header
258
-
@@ -1,18 +0,0 @@
1
- # FuseClient::CreateLinkTokenRequestPlaid
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **config** | [**CreateLinkTokenRequestPlaidConfig**](CreateLinkTokenRequestPlaidConfig.md) | | [optional] |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'fuse_client'
13
-
14
- instance = FuseClient::CreateLinkTokenRequestPlaid.new(
15
- config: null
16
- )
17
- ```
18
-
@@ -1,18 +0,0 @@
1
- # FuseClient::CreateLinkTokenRequestPlaidConfig
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **client_name** | **String** | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'fuse_client'
13
-
14
- instance = FuseClient::CreateLinkTokenRequestPlaidConfig.new(
15
- client_name: null
16
- )
17
- ```
18
-
@@ -1,22 +0,0 @@
1
- # FuseClient::CreateSessionRequest
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **supported_financial_institution_aggregators** | **Array<String>** | | [optional] |
8
- | **mx** | [**CreateSessionRequestMx**](CreateSessionRequestMx.md) | | [optional] |
9
- | **plaid** | [**CreateSessionRequestPlaid**](CreateSessionRequestPlaid.md) | | [optional] |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'fuse_client'
15
-
16
- instance = FuseClient::CreateSessionRequest.new(
17
- supported_financial_institution_aggregators: null,
18
- mx: null,
19
- plaid: null
20
- )
21
- ```
22
-
@@ -1,24 +0,0 @@
1
- # FuseClient::CreateSessionRequestMx
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **supports_account_identification** | **Boolean** | | [optional] |
8
- | **supports_account_statement** | **Boolean** | | [optional] |
9
- | **supports_account_verification** | **Boolean** | | [optional] |
10
- | **supports_transaction_history** | **Boolean** | | [optional] |
11
-
12
- ## Example
13
-
14
- ```ruby
15
- require 'fuse_client'
16
-
17
- instance = FuseClient::CreateSessionRequestMx.new(
18
- supports_account_identification: null,
19
- supports_account_statement: null,
20
- supports_account_verification: null,
21
- supports_transaction_history: null
22
- )
23
- ```
24
-
@@ -1,18 +0,0 @@
1
- # FuseClient::CreateSessionRequestPlaid
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **products** | **Array<String>** | For a comprehensive list of supported plaid products, see https://plaid.com/docs/api/tokens/#link-token-create-request-products | [optional] |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'fuse_client'
13
-
14
- instance = FuseClient::CreateSessionRequestPlaid.new(
15
- products: null
16
- )
17
- ```
18
-
@@ -1,225 +0,0 @@
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
- # Follows the same schema as Plaid's Link Token Create Schema(https://plaid.com/docs/api/tokens/#linktokencreate). This parameter takes a stringified version of the config. 'products', 'client_id', 'secret', 'client_user_id', 'webhook', 'institution_data' and 'country_codes' (only US supported right now) will be set by Fuse and override any values you set.
18
- class CreateLinkTokenRequestPlaidConfig
19
- attr_accessor :client_name
20
-
21
- # Attribute mapping from ruby-style variable name to JSON key.
22
- def self.attribute_map
23
- {
24
- :'client_name' => :'client_name'
25
- }
26
- end
27
-
28
- # Returns all the JSON keys this model knows about
29
- def self.acceptable_attributes
30
- attribute_map.values
31
- end
32
-
33
- # Attribute type mapping.
34
- def self.openapi_types
35
- {
36
- :'client_name' => :'String'
37
- }
38
- end
39
-
40
- # List of attributes with nullable: true
41
- def self.openapi_nullable
42
- Set.new([
43
- ])
44
- end
45
-
46
- # Initializes the object
47
- # @param [Hash] attributes Model attributes in the form of hash
48
- def initialize(attributes = {})
49
- if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::CreateLinkTokenRequestPlaidConfig` initialize method"
51
- end
52
-
53
- # check to see if the attribute exists and convert string to symbol for hash key
54
- attributes = attributes.each_with_object({}) { |(k, v), h|
55
- if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::CreateLinkTokenRequestPlaidConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
- end
58
- h[k.to_sym] = v
59
- }
60
-
61
- if attributes.key?(:'client_name')
62
- self.client_name = attributes[:'client_name']
63
- end
64
- end
65
-
66
- # Show invalid properties with the reasons. Usually used together with valid?
67
- # @return Array for valid properties with the reasons
68
- def list_invalid_properties
69
- invalid_properties = Array.new
70
- if @client_name.nil?
71
- invalid_properties.push('invalid value for "client_name", client_name cannot be nil.')
72
- end
73
-
74
- invalid_properties
75
- end
76
-
77
- # Check to see if the all the properties in the model are valid
78
- # @return true if the model is valid
79
- def valid?
80
- return false if @client_name.nil?
81
- true
82
- end
83
-
84
- # Checks equality by comparing each attribute.
85
- # @param [Object] Object to be compared
86
- def ==(o)
87
- return true if self.equal?(o)
88
- self.class == o.class &&
89
- client_name == o.client_name
90
- end
91
-
92
- # @see the `==` method
93
- # @param [Object] Object to be compared
94
- def eql?(o)
95
- self == o
96
- end
97
-
98
- # Calculates hash code according to all attributes.
99
- # @return [Integer] Hash code
100
- def hash
101
- [client_name].hash
102
- end
103
-
104
- # Builds the object from hash
105
- # @param [Hash] attributes Model attributes in the form of hash
106
- # @return [Object] Returns the model itself
107
- def self.build_from_hash(attributes)
108
- new.build_from_hash(attributes)
109
- end
110
-
111
- # Builds the object from hash
112
- # @param [Hash] attributes Model attributes in the form of hash
113
- # @return [Object] Returns the model itself
114
- def build_from_hash(attributes)
115
- return nil unless attributes.is_a?(Hash)
116
- attributes = attributes.transform_keys(&:to_sym)
117
- self.class.openapi_types.each_pair do |key, type|
118
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
119
- self.send("#{key}=", nil)
120
- elsif type =~ /\AArray<(.*)>/i
121
- # check to ensure the input is an array given that the attribute
122
- # is documented as an array but the input is not
123
- if attributes[self.class.attribute_map[key]].is_a?(Array)
124
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
125
- end
126
- elsif !attributes[self.class.attribute_map[key]].nil?
127
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
128
- end
129
- end
130
-
131
- self
132
- end
133
-
134
- # Deserializes the data based on type
135
- # @param string type Data type
136
- # @param string value Value to be deserialized
137
- # @return [Object] Deserialized data
138
- def _deserialize(type, value)
139
- case type.to_sym
140
- when :Time
141
- Time.parse(value)
142
- when :Date
143
- Date.parse(value)
144
- when :String
145
- value.to_s
146
- when :Integer
147
- value.to_i
148
- when :Float
149
- value.to_f
150
- when :Boolean
151
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
152
- true
153
- else
154
- false
155
- end
156
- when :Object
157
- # generic object (usually a Hash), return directly
158
- value
159
- when /\AArray<(?<inner_type>.+)>\z/
160
- inner_type = Regexp.last_match[:inner_type]
161
- value.map { |v| _deserialize(inner_type, v) }
162
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
163
- k_type = Regexp.last_match[:k_type]
164
- v_type = Regexp.last_match[:v_type]
165
- {}.tap do |hash|
166
- value.each do |k, v|
167
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
168
- end
169
- end
170
- else # model
171
- # models (e.g. Pet) or oneOf
172
- klass = FuseClient.const_get(type)
173
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
174
- end
175
- end
176
-
177
- # Returns the string representation of the object
178
- # @return [String] String presentation of the object
179
- def to_s
180
- to_hash.to_s
181
- end
182
-
183
- # to_body is an alias to to_hash (backward compatibility)
184
- # @return [Hash] Returns the object in the form of hash
185
- def to_body
186
- to_hash
187
- end
188
-
189
- # Returns the object in the form of hash
190
- # @return [Hash] Returns the object in the form of hash
191
- def to_hash
192
- hash = {}
193
- self.class.attribute_map.each_pair do |attr, param|
194
- value = self.send(attr)
195
- if value.nil?
196
- is_nullable = self.class.openapi_nullable.include?(attr)
197
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
198
- end
199
-
200
- hash[param] = _to_hash(value)
201
- end
202
- hash
203
- end
204
-
205
- # Outputs non-array value in the form of hash
206
- # For object, use to_hash. Otherwise, just return the value
207
- # @param [Object] value Any valid value
208
- # @return [Hash] Returns the value in the form of hash
209
- def _to_hash(value)
210
- if value.is_a?(Array)
211
- value.compact.map { |v| _to_hash(v) }
212
- elsif value.is_a?(Hash)
213
- {}.tap do |hash|
214
- value.each { |k, v| hash[k] = _to_hash(v) }
215
- end
216
- elsif value.respond_to? :to_hash
217
- value.to_hash
218
- else
219
- value
220
- end
221
- end
222
-
223
- end
224
-
225
- end