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,220 @@
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
+ class SyncFinancialConnectionsDataResponse
18
+ # Response message
19
+ attr_accessor :message
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'message' => :'message'
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
+ :'message' => :'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::SyncFinancialConnectionsDataResponse` 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::SyncFinancialConnectionsDataResponse`. 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?(:'message')
62
+ self.message = attributes[:'message']
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
+ invalid_properties
71
+ end
72
+
73
+ # Check to see if the all the properties in the model are valid
74
+ # @return true if the model is valid
75
+ def valid?
76
+ true
77
+ end
78
+
79
+ # Checks equality by comparing each attribute.
80
+ # @param [Object] Object to be compared
81
+ def ==(o)
82
+ return true if self.equal?(o)
83
+ self.class == o.class &&
84
+ message == o.message
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Integer] Hash code
95
+ def hash
96
+ [message].hash
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def self.build_from_hash(attributes)
103
+ new.build_from_hash(attributes)
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ attributes = attributes.transform_keys(&:to_sym)
112
+ self.class.openapi_types.each_pair do |key, type|
113
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
114
+ self.send("#{key}=", nil)
115
+ elsif type =~ /\AArray<(.*)>/i
116
+ # check to ensure the input is an array given that the attribute
117
+ # is documented as an array but the input is not
118
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
119
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
120
+ end
121
+ elsif !attributes[self.class.attribute_map[key]].nil?
122
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
123
+ end
124
+ end
125
+
126
+ self
127
+ end
128
+
129
+ # Deserializes the data based on type
130
+ # @param string type Data type
131
+ # @param string value Value to be deserialized
132
+ # @return [Object] Deserialized data
133
+ def _deserialize(type, value)
134
+ case type.to_sym
135
+ when :Time
136
+ Time.parse(value)
137
+ when :Date
138
+ Date.parse(value)
139
+ when :String
140
+ value.to_s
141
+ when :Integer
142
+ value.to_i
143
+ when :Float
144
+ value.to_f
145
+ when :Boolean
146
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
147
+ true
148
+ else
149
+ false
150
+ end
151
+ when :Object
152
+ # generic object (usually a Hash), return directly
153
+ value
154
+ when /\AArray<(?<inner_type>.+)>\z/
155
+ inner_type = Regexp.last_match[:inner_type]
156
+ value.map { |v| _deserialize(inner_type, v) }
157
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
158
+ k_type = Regexp.last_match[:k_type]
159
+ v_type = Regexp.last_match[:v_type]
160
+ {}.tap do |hash|
161
+ value.each do |k, v|
162
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
163
+ end
164
+ end
165
+ else # model
166
+ # models (e.g. Pet) or oneOf
167
+ klass = FuseClient.const_get(type)
168
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
169
+ end
170
+ end
171
+
172
+ # Returns the string representation of the object
173
+ # @return [String] String presentation of the object
174
+ def to_s
175
+ to_hash.to_s
176
+ end
177
+
178
+ # to_body is an alias to to_hash (backward compatibility)
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_body
181
+ to_hash
182
+ end
183
+
184
+ # Returns the object in the form of hash
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_hash
187
+ hash = {}
188
+ self.class.attribute_map.each_pair do |attr, param|
189
+ value = self.send(attr)
190
+ if value.nil?
191
+ is_nullable = self.class.openapi_nullable.include?(attr)
192
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
193
+ end
194
+
195
+ hash[param] = _to_hash(value)
196
+ end
197
+ hash
198
+ end
199
+
200
+ # Outputs non-array value in the form of hash
201
+ # For object, use to_hash. Otherwise, just return the value
202
+ # @param [Object] value Any valid value
203
+ # @return [Hash] Returns the value in the form of hash
204
+ def _to_hash(value)
205
+ if value.is_a?(Array)
206
+ value.compact.map { |v| _to_hash(v) }
207
+ elsif value.is_a?(Hash)
208
+ {}.tap do |hash|
209
+ value.each { |k, v| hash[k] = _to_hash(v) }
210
+ end
211
+ elsif value.respond_to? :to_hash
212
+ value.to_hash
213
+ else
214
+ value
215
+ end
216
+ end
217
+
218
+ end
219
+
220
+ end
@@ -0,0 +1,245 @@
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
+ class SyncTransactionsRequest
18
+ # The access token of the financial institution connection
19
+ attr_accessor :access_token
20
+
21
+ # The cursor value represents the last update requested. Providing it will cause the response to only return changes after this update. If omitted, the entire history of updates will be returned, starting with the first-added transactions on the item.
22
+ attr_accessor :cursor
23
+
24
+ # The number of transaction updates to fetch.
25
+ attr_accessor :count
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'access_token' => :'access_token',
31
+ :'cursor' => :'cursor',
32
+ :'count' => :'count'
33
+ }
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'access_token' => :'String',
45
+ :'cursor' => :'String',
46
+ :'count' => :'Integer'
47
+ }
48
+ end
49
+
50
+ # List of attributes with nullable: true
51
+ def self.openapi_nullable
52
+ Set.new([
53
+ ])
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FuseClient::SyncTransactionsRequest` initialize method"
61
+ end
62
+
63
+ # check to see if the attribute exists and convert string to symbol for hash key
64
+ attributes = attributes.each_with_object({}) { |(k, v), h|
65
+ if (!self.class.attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FuseClient::SyncTransactionsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
+ end
68
+ h[k.to_sym] = v
69
+ }
70
+
71
+ if attributes.key?(:'access_token')
72
+ self.access_token = attributes[:'access_token']
73
+ end
74
+
75
+ if attributes.key?(:'cursor')
76
+ self.cursor = attributes[:'cursor']
77
+ end
78
+
79
+ if attributes.key?(:'count')
80
+ self.count = attributes[:'count']
81
+ end
82
+ end
83
+
84
+ # Show invalid properties with the reasons. Usually used together with valid?
85
+ # @return Array for valid properties with the reasons
86
+ def list_invalid_properties
87
+ invalid_properties = Array.new
88
+ if @access_token.nil?
89
+ invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
90
+ end
91
+
92
+ invalid_properties
93
+ end
94
+
95
+ # Check to see if the all the properties in the model are valid
96
+ # @return true if the model is valid
97
+ def valid?
98
+ return false if @access_token.nil?
99
+ true
100
+ end
101
+
102
+ # Checks equality by comparing each attribute.
103
+ # @param [Object] Object to be compared
104
+ def ==(o)
105
+ return true if self.equal?(o)
106
+ self.class == o.class &&
107
+ access_token == o.access_token &&
108
+ cursor == o.cursor &&
109
+ count == o.count
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(o)
115
+ self == o
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Integer] Hash code
120
+ def hash
121
+ [access_token, cursor, count].hash
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 self.build_from_hash(attributes)
128
+ new.build_from_hash(attributes)
129
+ end
130
+
131
+ # Builds the object from hash
132
+ # @param [Hash] attributes Model attributes in the form of hash
133
+ # @return [Object] Returns the model itself
134
+ def build_from_hash(attributes)
135
+ return nil unless attributes.is_a?(Hash)
136
+ attributes = attributes.transform_keys(&:to_sym)
137
+ self.class.openapi_types.each_pair do |key, type|
138
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
139
+ self.send("#{key}=", nil)
140
+ elsif type =~ /\AArray<(.*)>/i
141
+ # check to ensure the input is an array given that the attribute
142
+ # is documented as an array but the input is not
143
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
144
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
145
+ end
146
+ elsif !attributes[self.class.attribute_map[key]].nil?
147
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
148
+ end
149
+ end
150
+
151
+ self
152
+ end
153
+
154
+ # Deserializes the data based on type
155
+ # @param string type Data type
156
+ # @param string value Value to be deserialized
157
+ # @return [Object] Deserialized data
158
+ def _deserialize(type, value)
159
+ case type.to_sym
160
+ when :Time
161
+ Time.parse(value)
162
+ when :Date
163
+ Date.parse(value)
164
+ when :String
165
+ value.to_s
166
+ when :Integer
167
+ value.to_i
168
+ when :Float
169
+ value.to_f
170
+ when :Boolean
171
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
172
+ true
173
+ else
174
+ false
175
+ end
176
+ when :Object
177
+ # generic object (usually a Hash), return directly
178
+ value
179
+ when /\AArray<(?<inner_type>.+)>\z/
180
+ inner_type = Regexp.last_match[:inner_type]
181
+ value.map { |v| _deserialize(inner_type, v) }
182
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
183
+ k_type = Regexp.last_match[:k_type]
184
+ v_type = Regexp.last_match[:v_type]
185
+ {}.tap do |hash|
186
+ value.each do |k, v|
187
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
188
+ end
189
+ end
190
+ else # model
191
+ # models (e.g. Pet) or oneOf
192
+ klass = FuseClient.const_get(type)
193
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
194
+ end
195
+ end
196
+
197
+ # Returns the string representation of the object
198
+ # @return [String] String presentation of the object
199
+ def to_s
200
+ to_hash.to_s
201
+ end
202
+
203
+ # to_body is an alias to to_hash (backward compatibility)
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_body
206
+ to_hash
207
+ end
208
+
209
+ # Returns the object in the form of hash
210
+ # @return [Hash] Returns the object in the form of hash
211
+ def to_hash
212
+ hash = {}
213
+ self.class.attribute_map.each_pair do |attr, param|
214
+ value = self.send(attr)
215
+ if value.nil?
216
+ is_nullable = self.class.openapi_nullable.include?(attr)
217
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
218
+ end
219
+
220
+ hash[param] = _to_hash(value)
221
+ end
222
+ hash
223
+ end
224
+
225
+ # Outputs non-array value in the form of hash
226
+ # For object, use to_hash. Otherwise, just return the value
227
+ # @param [Object] value Any valid value
228
+ # @return [Hash] Returns the value in the form of hash
229
+ def _to_hash(value)
230
+ if value.is_a?(Array)
231
+ value.compact.map { |v| _to_hash(v) }
232
+ elsif value.is_a?(Hash)
233
+ {}.tap do |hash|
234
+ value.each { |k, v| hash[k] = _to_hash(v) }
235
+ end
236
+ elsif value.respond_to? :to_hash
237
+ value.to_hash
238
+ else
239
+ value
240
+ end
241
+ end
242
+
243
+ end
244
+
245
+ end