moneykit 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/moneykit/api/access_token_api.rb +9 -9
  4. data/lib/moneykit/api/account_numbers_api.rb +6 -6
  5. data/lib/moneykit/api/accounts_api.rb +15 -15
  6. data/lib/moneykit/api/identity_api.rb +6 -6
  7. data/lib/moneykit/api/institutions_api.rb +7 -7
  8. data/lib/moneykit/api/link_session_api.rb +7 -7
  9. data/lib/moneykit/api/links_api.rb +76 -13
  10. data/lib/moneykit/api/products_api.rb +6 -6
  11. data/lib/moneykit/api/transactions_api.rb +28 -28
  12. data/lib/moneykit/api/users_api.rb +14 -14
  13. data/lib/moneykit/api/webhooks_api.rb +97 -0
  14. data/lib/moneykit/api_client.rb +40 -36
  15. data/lib/moneykit/api_error.rb +1 -1
  16. data/lib/moneykit/configuration.rb +20 -30
  17. data/lib/moneykit/models/account.rb +27 -54
  18. data/lib/moneykit/models/account_balances.rb +18 -27
  19. data/lib/moneykit/models/account_group.rb +23 -26
  20. data/lib/moneykit/models/account_identity.rb +34 -59
  21. data/lib/moneykit/models/account_numbers.rb +75 -51
  22. data/lib/moneykit/models/account_numbers_link_product.rb +18 -28
  23. data/lib/moneykit/models/account_numbers_product_settings.rb +16 -21
  24. data/lib/moneykit/models/account_with_account_numbers.rb +29 -56
  25. data/lib/moneykit/models/accounts_link_product.rb +17 -25
  26. data/lib/moneykit/models/ach_number.rb +19 -26
  27. data/lib/moneykit/models/address.rb +17 -28
  28. data/lib/moneykit/models/api_error_auth_expired_access_token_response.rb +17 -24
  29. data/lib/moneykit/models/api_error_auth_unauthorized_response.rb +18 -25
  30. data/lib/moneykit/models/api_error_rate_limit_exceeded_response.rb +17 -24
  31. data/lib/moneykit/models/bacs_number.rb +18 -25
  32. data/lib/moneykit/models/basic_account_details.rb +20 -29
  33. data/lib/moneykit/models/country.rb +1 -1
  34. data/lib/moneykit/models/create_link_session_request.rb +48 -45
  35. data/lib/moneykit/models/create_link_session_response.rb +17 -24
  36. data/lib/moneykit/models/currency.rb +1 -1
  37. data/lib/moneykit/models/cursor_pagination.rb +17 -24
  38. data/lib/moneykit/models/customer_app.rb +18 -25
  39. data/lib/moneykit/models/eft_number.rb +19 -26
  40. data/lib/moneykit/models/email.rb +17 -22
  41. data/lib/moneykit/models/exchange_token_request.rb +17 -24
  42. data/lib/moneykit/models/exchange_token_response.rb +19 -26
  43. data/lib/moneykit/models/generate_access_token_response.rb +19 -26
  44. data/lib/moneykit/models/get_account_numbers_response.rb +23 -26
  45. data/lib/moneykit/models/get_account_response.rb +19 -26
  46. data/lib/moneykit/models/get_accounts_response.rb +25 -31
  47. data/lib/moneykit/models/get_institutions_response.rb +25 -31
  48. data/lib/moneykit/models/get_transactions_response.rb +34 -39
  49. data/lib/moneykit/models/get_user_accounts_response.rb +24 -32
  50. data/lib/moneykit/models/get_user_links_response.rb +24 -32
  51. data/lib/moneykit/models/get_user_transactions_response.rb +32 -34
  52. data/lib/moneykit/models/http_validation_error.rb +24 -28
  53. data/lib/moneykit/models/identity_link_product.rb +18 -28
  54. data/lib/moneykit/models/identity_product_settings.rb +16 -21
  55. data/lib/moneykit/models/identity_response.rb +24 -30
  56. data/lib/moneykit/models/institution.rb +29 -38
  57. data/lib/moneykit/models/institution_error_not_found_response.rb +17 -24
  58. data/lib/moneykit/models/international_number.rb +18 -25
  59. data/lib/moneykit/models/introspect_client_response.rb +22 -29
  60. data/lib/moneykit/models/jwk_set.rb +23 -26
  61. data/lib/moneykit/models/link_common.rb +25 -39
  62. data/lib/moneykit/models/link_error_bad_config_response.rb +269 -0
  63. data/lib/moneykit/models/link_error_bad_state_response.rb +19 -28
  64. data/lib/moneykit/models/link_error_deleted_response.rb +17 -24
  65. data/lib/moneykit/models/link_error_forbidden_action_response.rb +18 -25
  66. data/lib/moneykit/models/link_error_not_found_response.rb +17 -24
  67. data/lib/moneykit/models/link_error_unauthorized_access_response.rb +17 -24
  68. data/lib/moneykit/models/link_permission_scope.rb +1 -1
  69. data/lib/moneykit/models/link_permissions.rb +23 -33
  70. data/lib/moneykit/models/link_products.rb +16 -21
  71. data/lib/moneykit/models/link_response.rb +26 -39
  72. data/lib/moneykit/models/link_session_customer_user.rb +20 -28
  73. data/lib/moneykit/models/link_session_customer_user_email.rb +18 -25
  74. data/lib/moneykit/models/link_session_customer_user_phone.rb +18 -26
  75. data/lib/moneykit/models/link_session_error_forbidden_config_response.rb +18 -25
  76. data/lib/moneykit/models/link_session_error_invalid_token_exchange.rb +18 -25
  77. data/lib/moneykit/models/link_session_setting_overrides.rb +19 -43
  78. data/lib/moneykit/models/link_state.rb +1 -1
  79. data/lib/moneykit/models/link_state_changed_webhook.rb +28 -31
  80. data/lib/moneykit/models/money_link_features.rb +27 -32
  81. data/lib/moneykit/models/owner.rb +42 -42
  82. data/lib/moneykit/models/phone_number.rb +18 -25
  83. data/lib/moneykit/models/phone_number_type.rb +1 -1
  84. data/lib/moneykit/models/product.rb +1 -1
  85. data/lib/moneykit/models/products_settings.rb +19 -24
  86. data/lib/moneykit/models/provider.rb +4 -2
  87. data/lib/moneykit/models/public_link_error.rb +43 -0
  88. data/lib/moneykit/models/refresh_products_request.rb +23 -34
  89. data/lib/moneykit/models/requested_link_permission.rb +19 -26
  90. data/lib/moneykit/models/response401_disconnect_links_id_delete.rb +75 -269
  91. data/lib/moneykit/models/response401_exchange_token_link_session_exchange_token_post.rb +74 -267
  92. data/lib/moneykit/models/response401_get_account_links_id_accounts_account_id_get.rb +75 -269
  93. data/lib/moneykit/models/response401_get_account_numbers_links_id_accounts_numbers_get.rb +75 -269
  94. data/lib/moneykit/models/response401_get_accounts_links_id_accounts_get.rb +75 -269
  95. data/lib/moneykit/models/response401_get_identities_links_id_identity_get.rb +75 -269
  96. data/lib/moneykit/models/response401_get_institution_institutions_institution_id_get.rb +74 -267
  97. data/lib/moneykit/models/response401_get_institutions_institutions_get.rb +74 -267
  98. data/lib/moneykit/models/response401_get_link_links_id_get.rb +75 -269
  99. data/lib/moneykit/models/response401_get_transactions_diff_links_id_transactions_sync_get.rb +75 -269
  100. data/lib/moneykit/models/response401_get_transactions_links_id_transactions_get.rb +75 -269
  101. data/lib/moneykit/models/response401_get_user_accounts_users_id_accounts_get.rb +74 -267
  102. data/lib/moneykit/models/response401_get_user_links_users_id_links_get.rb +74 -267
  103. data/lib/moneykit/models/response401_get_user_transactions_users_id_transactions_get.rb +74 -267
  104. data/lib/moneykit/models/response401_get_well_known_jwks_well_known_jwks_json_get.rb +74 -267
  105. data/lib/moneykit/models/response401_instrospect_client_auth_introspect_get.rb +74 -267
  106. data/lib/moneykit/models/response401_refresh_products_links_id_products_post.rb +75 -269
  107. data/lib/moneykit/models/response401_reset_login_links_id_reset_post.rb +102 -0
  108. data/lib/moneykit/models/response401_trigger_test_link_webhook_event_webhooks_test_link_id_post.rb +102 -0
  109. data/lib/moneykit/models/response401_update_link_links_id_patch.rb +75 -269
  110. data/lib/moneykit/models/transaction.rb +35 -35
  111. data/lib/moneykit/models/transaction_diff.rb +36 -37
  112. data/lib/moneykit/models/transaction_sync_response.rb +23 -30
  113. data/lib/moneykit/models/transaction_type.rb +1 -1
  114. data/lib/moneykit/models/transaction_type_filter.rb +1 -1
  115. data/lib/moneykit/models/transactions_link_product.rb +18 -28
  116. data/lib/moneykit/models/transactions_product_settings.rb +16 -21
  117. data/lib/moneykit/models/update_link_request.rb +21 -28
  118. data/lib/moneykit/models/validation_error.rb +25 -28
  119. data/lib/moneykit/models/validation_error_location_inner.rb +101 -0
  120. data/lib/moneykit/models/webhook_link_test_event.rb +40 -0
  121. data/lib/moneykit/models/webhook_test_link_request.rb +252 -0
  122. data/lib/moneykit/models/webhook_test_link_response.rb +220 -0
  123. data/lib/moneykit/version.rb +2 -2
  124. data/lib/moneykit.rb +10 -29
  125. data/lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb +684 -679
  126. data/lib/plaid_compatible/money_kit_plaid_compatible/api_client.rb +330 -330
  127. data/lib/plaid_compatible/money_kit_plaid_compatible/api_error.rb +33 -33
  128. data/lib/plaid_compatible/money_kit_plaid_compatible/configuration.rb +245 -245
  129. data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_balance.rb +198 -198
  130. data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_base.rb +213 -213
  131. data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_identity.rb +223 -223
  132. data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_subtype.rb +89 -89
  133. data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_type.rb +22 -22
  134. data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_request.rb +198 -198
  135. data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_request_options.rb +175 -175
  136. data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_response.rb +194 -194
  137. data/lib/plaid_compatible/money_kit_plaid_compatible/models/address.rb +183 -183
  138. data/lib/plaid_compatible/money_kit_plaid_compatible/models/address_data.rb +209 -209
  139. data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_numbers.rb +211 -209
  140. data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_request.rb +198 -198
  141. data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_request_options.rb +175 -175
  142. data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_response.rb +200 -200
  143. data/lib/plaid_compatible/money_kit_plaid_compatible/models/country_code.rb +19 -19
  144. data/lib/plaid_compatible/money_kit_plaid_compatible/models/email.rb +184 -184
  145. data/lib/plaid_compatible/money_kit_plaid_compatible/models/http_validation_error.rb +171 -171
  146. data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_request.rb +198 -198
  147. data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_request_options.rb +175 -175
  148. data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_response.rb +194 -194
  149. data/lib/plaid_compatible/money_kit_plaid_compatible/models/institution.rb +216 -214
  150. data/lib/plaid_compatible/money_kit_plaid_compatible/models/institutions_get_by_id_request.rb +202 -202
  151. data/lib/plaid_compatible/money_kit_plaid_compatible/models/institutions_get_by_id_response.rb +183 -183
  152. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item.rb +246 -245
  153. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_error_webhook.rb +208 -208
  154. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_get_request.rb +192 -192
  155. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_get_response.rb +189 -189
  156. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_public_token_exchange_request.rb +192 -192
  157. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_public_token_exchange_response.rb +193 -193
  158. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_remove_request.rb +192 -192
  159. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_remove_response.rb +175 -175
  160. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_investments.rb +182 -182
  161. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_last_webhook.rb +182 -182
  162. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_nullable.rb +183 -183
  163. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_transactions.rb +182 -182
  164. data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_request.rb +268 -266
  165. data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_request_user.rb +212 -212
  166. data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_response.rb +193 -193
  167. data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_ach.rb +202 -202
  168. data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_bacs.rb +193 -193
  169. data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_eft.rb +202 -202
  170. data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_international.rb +193 -193
  171. data/lib/plaid_compatible/money_kit_plaid_compatible/models/owner.rb +211 -209
  172. data/lib/plaid_compatible/money_kit_plaid_compatible/models/personal_finance_category.rb +184 -184
  173. data/lib/plaid_compatible/money_kit_plaid_compatible/models/phone_number.rb +193 -193
  174. data/lib/plaid_compatible/money_kit_plaid_compatible/models/plaid_error.rb +247 -245
  175. data/lib/plaid_compatible/money_kit_plaid_compatible/models/plaid_error_type.rb +30 -30
  176. data/lib/plaid_compatible/money_kit_plaid_compatible/models/products.rb +20 -20
  177. data/lib/plaid_compatible/money_kit_plaid_compatible/models/removed_transaction.rb +174 -174
  178. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transaction.rb +283 -283
  179. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_request.rb +217 -217
  180. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_request_options.rb +211 -211
  181. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_response.rb +217 -217
  182. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_refresh_request.rb +192 -192
  183. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_refresh_response.rb +175 -175
  184. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_request.rb +215 -215
  185. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_request_options.rb +184 -184
  186. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_response.rb +228 -228
  187. data/lib/plaid_compatible/money_kit_plaid_compatible/models/validation_error.rb +187 -187
  188. data/lib/plaid_compatible/money_kit_plaid_compatible/models/webhook_environment_values.rb +19 -19
  189. data/lib/plaid_compatible/money_kit_plaid_compatible/version.rb +1 -1
  190. data/lib/plaid_compatible/money_kit_plaid_compatible.rb +13 -13
  191. data/moneykit.gemspec +2 -1
  192. metadata +14 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23e5b665ed78c9b8dc6d7bcadbaf2efef339d0f19c36030931866b7cb98ae4c3
4
- data.tar.gz: 654c9b3b6fd290afbf32096a2fa7b1d3415b47516929d6cdd878c9e0711b640f
3
+ metadata.gz: 3869a58667e0ec2eba963138eb49878faa33e1bb61c3b933eea0aabcc75811a7
4
+ data.tar.gz: 39f7e63d8554775723fe1573b1e15dca5717ea6058f3d17c84dba0f7e135a66b
5
5
  SHA512:
6
- metadata.gz: cfc7f5b309a01dcdbb2ab7082d7d6a735d75592fbe98c136039c69547a2165bd2ff7018304e87f46943ce0c9778ed345f2114310e0faa8c0dc3c3051a1e0996e
7
- data.tar.gz: 3964f7ef92ad78281e87efe06e76a799e85b3fecff58bd83c15a320a6aa0996a814b2949003ba58f3b0fbeb0873474420fa7c771aa8a23fde4f91706ed6b8389
6
+ metadata.gz: a079482190f946530983c63591752e9d9939e63deae9e8e26193922780584408ea3ab50d5c0048e53044641ac43cd06df3019886280b61ce76bb21a559af2480
7
+ data.tar.gz: fd15e518266ab34918a79c828ae3ac6d8ce9e24adc61094ccc611b7ca0e11f70614342a6588b68f0a491f92ccfbf6c28900da671edddfef688ae421e1fc29648
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # MoneyKit
1
+ # MoneyKit (ALPHA RELEASE)
2
2
 
3
3
  MoneyKit - the Ruby gem for the MoneyKit API
4
4
 
@@ -66,7 +66,7 @@ end
66
66
 
67
67
  api_instance = MoneyKit::AccessTokenApi.new
68
68
  opts = {
69
- moneykit_version: { ... }, # SupportedVersion |
69
+ moneykit_version: 'moneykit_version_example', # String |
70
70
  grant_type: 'grant_type_example', # String | Token grant type. Only `client_credentials` supported.
71
71
  scope: 'scope_example', # String | Actions to be allowed for this token, given as one or more strings separated by spaces. If omitted, all actions allowed for your application will be granted to this token.
72
72
  client_id: 'client_id_example', # String | Your application's MoneyKit client ID.
@@ -5,7 +5,7 @@
5
5
  # The version of the OpenAPI document: 0.1.0
6
6
  #
7
7
  # Generated by: https://openapi-generator.tech
8
- # OpenAPI Generator version: 6.5.0
8
+ # OpenAPI Generator version: 7.1.0
9
9
  #
10
10
 
11
11
  require 'cgi'
@@ -21,7 +21,7 @@ module MoneyKit
21
21
  # /auth/token
22
22
  # Create a new short-lived access token by validating your `client_id` and `client_secret`. The `access_token` is to be forwarded with all subsequent requests as `Authorization: Bearer {access_token}` HTTP header. When the token expires you must regenerate your `access_token`. The `client_id` and `client_secret` can be supplied as POST body parameters, or as a HTTP basic auth header.
23
23
  # @param [Hash] opts the optional parameters
24
- # @option opts [SupportedVersion] :moneykit_version
24
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
25
25
  # @option opts [String] :grant_type Token grant type. Only `client_credentials` supported.
26
26
  # @option opts [String] :scope Actions to be allowed for this token, given as one or more strings separated by spaces. If omitted, all actions allowed for your application will be granted to this token. (default to '')
27
27
  # @option opts [String] :client_id Your application's MoneyKit client ID.
@@ -35,7 +35,7 @@ module MoneyKit
35
35
  # /auth/token
36
36
  # Create a new short-lived access token by validating your `client_id` and `client_secret`. The `access_token` is to be forwarded with all subsequent requests as `Authorization: Bearer {access_token}` HTTP header. When the token expires you must regenerate your `access_token`. The `client_id` and `client_secret` can be supplied as POST body parameters, or as a HTTP basic auth header.
37
37
  # @param [Hash] opts the optional parameters
38
- # @option opts [SupportedVersion] :moneykit_version
38
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
39
39
  # @option opts [String] :grant_type Token grant type. Only `client_credentials` supported.
40
40
  # @option opts [String] :scope Actions to be allowed for this token, given as one or more strings separated by spaces. If omitted, all actions allowed for your application will be granted to this token. (default to '')
41
41
  # @option opts [String] :client_id Your application's MoneyKit client ID.
@@ -102,7 +102,7 @@ module MoneyKit
102
102
  # JSON Web Key Set
103
103
  # The JSON Web Key Set (JWKS) is a set of keys containing the public keys used to verify webhook JSON Web Tokens (JWT) issued by MoneyKit webhooks.
104
104
  # @param [Hash] opts the optional parameters
105
- # @option opts [SupportedVersion] :moneykit_version
105
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
106
106
  # @return [JWKSet]
107
107
  def get_well_known_jwks(opts = {})
108
108
  data, _status_code, _headers = get_well_known_jwks_with_http_info(opts)
@@ -112,7 +112,7 @@ module MoneyKit
112
112
  # JSON Web Key Set
113
113
  # The JSON Web Key Set (JWKS) is a set of keys containing the public keys used to verify webhook JSON Web Tokens (JWT) issued by MoneyKit webhooks.
114
114
  # @param [Hash] opts the optional parameters
115
- # @option opts [SupportedVersion] :moneykit_version
115
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
116
116
  # @return [Array<(JWKSet, Integer, Hash)>] JWKSet data, response status code and response headers
117
117
  def get_well_known_jwks_with_http_info(opts = {})
118
118
  if @api_client.config.debugging
@@ -140,7 +140,7 @@ module MoneyKit
140
140
  return_type = opts[:debug_return_type] || 'JWKSet'
141
141
 
142
142
  # auth_names
143
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
143
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
144
144
 
145
145
  new_options = opts.merge(
146
146
  operation: :"AccessTokenApi.get_well_known_jwks",
@@ -162,7 +162,7 @@ module MoneyKit
162
162
  # /auth/introspect
163
163
  # Get details about the client and application associated with your `access_token`.
164
164
  # @param [Hash] opts the optional parameters
165
- # @option opts [SupportedVersion] :moneykit_version
165
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
166
166
  # @return [IntrospectClientResponse]
167
167
  def instrospect_client(opts = {})
168
168
  data, _status_code, _headers = instrospect_client_with_http_info(opts)
@@ -172,7 +172,7 @@ module MoneyKit
172
172
  # /auth/introspect
173
173
  # Get details about the client and application associated with your &#x60;access_token&#x60;.
174
174
  # @param [Hash] opts the optional parameters
175
- # @option opts [SupportedVersion] :moneykit_version
175
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
176
176
  # @return [Array<(IntrospectClientResponse, Integer, Hash)>] IntrospectClientResponse data, response status code and response headers
177
177
  def instrospect_client_with_http_info(opts = {})
178
178
  if @api_client.config.debugging
@@ -200,7 +200,7 @@ module MoneyKit
200
200
  return_type = opts[:debug_return_type] || 'IntrospectClientResponse'
201
201
 
202
202
  # auth_names
203
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
203
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
204
204
 
205
205
  new_options = opts.merge(
206
206
  operation: :"AccessTokenApi.instrospect_client",
@@ -5,7 +5,7 @@
5
5
  # The version of the OpenAPI document: 0.1.0
6
6
  #
7
7
  # Generated by: https://openapi-generator.tech
8
- # OpenAPI Generator version: 6.5.0
8
+ # OpenAPI Generator version: 7.1.0
9
9
  #
10
10
 
11
11
  require 'cgi'
@@ -19,10 +19,10 @@ module MoneyKit
19
19
  end
20
20
 
21
21
  # /links/{id}/accounts/numbers
22
- # Returns a list of open, permissioned accounts associated with a <a href=#tag/Links>link</a>, including full account and routing numbers for appropriate accounts (such as checking and savings accounts).
22
+ # Returns a list of open, permissioned accounts associated with a <a href=#tag/Links>link</a>, including full account and routing numbers for appropriate accounts (such as checking and savings accounts). <p>**Note** that this endpoint does **not** trigger a fetch of account numbers from the institution; it merely returns account numbers that have already been fetched, either because `prefetch` was requested when the link was created, or because of an on-demand update. **To force a check for new/updated account numbers, you must use the <a href=#operation/refresh_products>/products</a> endpoint.** <p>If you have requested prefetch or an on-demand update, you should check the `refreshed_at` date for this product in the returned response, and compare that against the previous `refreshed_at` date, which you can get from any previous response for this or any other account or link request. If the refreshed_at date has not increased, then updated data is not yet available.
23
23
  # @param id [String] The unique ID for this link.
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [SupportedVersion] :moneykit_version
25
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
26
26
  # @return [GetAccountNumbersResponse]
27
27
  def get_account_numbers(id, opts = {})
28
28
  data, _status_code, _headers = get_account_numbers_with_http_info(id, opts)
@@ -30,10 +30,10 @@ module MoneyKit
30
30
  end
31
31
 
32
32
  # /links/{id}/accounts/numbers
33
- # Returns a list of open, permissioned accounts associated with a &lt;a href&#x3D;#tag/Links&gt;link&lt;/a&gt;, including full account and routing numbers for appropriate accounts (such as checking and savings accounts).
33
+ # Returns a list of open, permissioned accounts associated with a &lt;a href&#x3D;#tag/Links&gt;link&lt;/a&gt;, including full account and routing numbers for appropriate accounts (such as checking and savings accounts). &lt;p&gt;**Note** that this endpoint does **not** trigger a fetch of account numbers from the institution; it merely returns account numbers that have already been fetched, either because &#x60;prefetch&#x60; was requested when the link was created, or because of an on-demand update. **To force a check for new/updated account numbers, you must use the &lt;a href&#x3D;#operation/refresh_products&gt;/products&lt;/a&gt; endpoint.** &lt;p&gt;If you have requested prefetch or an on-demand update, you should check the &#x60;refreshed_at&#x60; date for this product in the returned response, and compare that against the previous &#x60;refreshed_at&#x60; date, which you can get from any previous response for this or any other account or link request. If the refreshed_at date has not increased, then updated data is not yet available.
34
34
  # @param id [String] The unique ID for this link.
35
35
  # @param [Hash] opts the optional parameters
36
- # @option opts [SupportedVersion] :moneykit_version
36
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
37
37
  # @return [Array<(GetAccountNumbersResponse, Integer, Hash)>] GetAccountNumbersResponse data, response status code and response headers
38
38
  def get_account_numbers_with_http_info(id, opts = {})
39
39
  if @api_client.config.debugging
@@ -66,7 +66,7 @@ module MoneyKit
66
66
  return_type = opts[:debug_return_type] || 'GetAccountNumbersResponse'
67
67
 
68
68
  # auth_names
69
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
69
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
70
70
 
71
71
  new_options = opts.merge(
72
72
  operation: :"AccountNumbersApi.get_account_numbers",
@@ -5,7 +5,7 @@
5
5
  # The version of the OpenAPI document: 0.1.0
6
6
  #
7
7
  # Generated by: https://openapi-generator.tech
8
- # OpenAPI Generator version: 6.5.0
8
+ # OpenAPI Generator version: 7.1.0
9
9
  #
10
10
 
11
11
  require 'cgi'
@@ -23,7 +23,7 @@ module MoneyKit
23
23
  # @param id [String] The unique ID for this link.
24
24
  # @param account_id [String] The account ID to fetch.
25
25
  # @param [Hash] opts the optional parameters
26
- # @option opts [SupportedVersion] :moneykit_version
26
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
27
27
  # @return [GetAccountResponse]
28
28
  def get_account(id, account_id, opts = {})
29
29
  data, _status_code, _headers = get_account_with_http_info(id, account_id, opts)
@@ -35,7 +35,7 @@ module MoneyKit
35
35
  # @param id [String] The unique ID for this link.
36
36
  # @param account_id [String] The account ID to fetch.
37
37
  # @param [Hash] opts the optional parameters
38
- # @option opts [SupportedVersion] :moneykit_version
38
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
39
39
  # @return [Array<(GetAccountResponse, Integer, Hash)>] GetAccountResponse data, response status code and response headers
40
40
  def get_account_with_http_info(id, account_id, opts = {})
41
41
  @api_client.config.logger.debug 'Calling API: AccountsApi.get_account ...' if @api_client.config.debugging
@@ -72,7 +72,7 @@ module MoneyKit
72
72
  return_type = opts[:debug_return_type] || 'GetAccountResponse'
73
73
 
74
74
  # auth_names
75
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
75
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
76
76
 
77
77
  new_options = opts.merge(
78
78
  operation: :"AccountsApi.get_account",
@@ -92,10 +92,10 @@ module MoneyKit
92
92
  end
93
93
 
94
94
  # /links/{id}/accounts/numbers
95
- # Returns a list of open, permissioned accounts associated with a <a href=#tag/Links>link</a>, including full account and routing numbers for appropriate accounts (such as checking and savings accounts).
95
+ # Returns a list of open, permissioned accounts associated with a <a href=#tag/Links>link</a>, including full account and routing numbers for appropriate accounts (such as checking and savings accounts). <p>**Note** that this endpoint does **not** trigger a fetch of account numbers from the institution; it merely returns account numbers that have already been fetched, either because `prefetch` was requested when the link was created, or because of an on-demand update. **To force a check for new/updated account numbers, you must use the <a href=#operation/refresh_products>/products</a> endpoint.** <p>If you have requested prefetch or an on-demand update, you should check the `refreshed_at` date for this product in the returned response, and compare that against the previous `refreshed_at` date, which you can get from any previous response for this or any other account or link request. If the refreshed_at date has not increased, then updated data is not yet available.
96
96
  # @param id [String] The unique ID for this link.
97
97
  # @param [Hash] opts the optional parameters
98
- # @option opts [SupportedVersion] :moneykit_version
98
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
99
99
  # @return [GetAccountNumbersResponse]
100
100
  def get_account_numbers(id, opts = {})
101
101
  data, _status_code, _headers = get_account_numbers_with_http_info(id, opts)
@@ -103,10 +103,10 @@ module MoneyKit
103
103
  end
104
104
 
105
105
  # /links/{id}/accounts/numbers
106
- # Returns a list of open, permissioned accounts associated with a &lt;a href&#x3D;#tag/Links&gt;link&lt;/a&gt;, including full account and routing numbers for appropriate accounts (such as checking and savings accounts).
106
+ # Returns a list of open, permissioned accounts associated with a &lt;a href&#x3D;#tag/Links&gt;link&lt;/a&gt;, including full account and routing numbers for appropriate accounts (such as checking and savings accounts). &lt;p&gt;**Note** that this endpoint does **not** trigger a fetch of account numbers from the institution; it merely returns account numbers that have already been fetched, either because &#x60;prefetch&#x60; was requested when the link was created, or because of an on-demand update. **To force a check for new/updated account numbers, you must use the &lt;a href&#x3D;#operation/refresh_products&gt;/products&lt;/a&gt; endpoint.** &lt;p&gt;If you have requested prefetch or an on-demand update, you should check the &#x60;refreshed_at&#x60; date for this product in the returned response, and compare that against the previous &#x60;refreshed_at&#x60; date, which you can get from any previous response for this or any other account or link request. If the refreshed_at date has not increased, then updated data is not yet available.
107
107
  # @param id [String] The unique ID for this link.
108
108
  # @param [Hash] opts the optional parameters
109
- # @option opts [SupportedVersion] :moneykit_version
109
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
110
110
  # @return [Array<(GetAccountNumbersResponse, Integer, Hash)>] GetAccountNumbersResponse data, response status code and response headers
111
111
  def get_account_numbers_with_http_info(id, opts = {})
112
112
  @api_client.config.logger.debug 'Calling API: AccountsApi.get_account_numbers ...' if @api_client.config.debugging
@@ -137,7 +137,7 @@ module MoneyKit
137
137
  return_type = opts[:debug_return_type] || 'GetAccountNumbersResponse'
138
138
 
139
139
  # auth_names
140
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
140
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
141
141
 
142
142
  new_options = opts.merge(
143
143
  operation: :"AccountsApi.get_account_numbers",
@@ -161,7 +161,7 @@ module MoneyKit
161
161
  # @param id [String] The unique ID for this link.
162
162
  # @param [Hash] opts the optional parameters
163
163
  # @option opts [Array<String>] :account_ids An optional list of account IDs to filter the results.
164
- # @option opts [SupportedVersion] :moneykit_version
164
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
165
165
  # @return [GetAccountsResponse]
166
166
  def get_accounts(id, opts = {})
167
167
  data, _status_code, _headers = get_accounts_with_http_info(id, opts)
@@ -173,7 +173,7 @@ module MoneyKit
173
173
  # @param id [String] The unique ID for this link.
174
174
  # @param [Hash] opts the optional parameters
175
175
  # @option opts [Array<String>] :account_ids An optional list of account IDs to filter the results.
176
- # @option opts [SupportedVersion] :moneykit_version
176
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
177
177
  # @return [Array<(GetAccountsResponse, Integer, Hash)>] GetAccountsResponse data, response status code and response headers
178
178
  def get_accounts_with_http_info(id, opts = {})
179
179
  @api_client.config.logger.debug 'Calling API: AccountsApi.get_accounts ...' if @api_client.config.debugging
@@ -208,7 +208,7 @@ module MoneyKit
208
208
  return_type = opts[:debug_return_type] || 'GetAccountsResponse'
209
209
 
210
210
  # auth_names
211
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
211
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
212
212
 
213
213
  new_options = opts.merge(
214
214
  operation: :"AccountsApi.get_accounts",
@@ -233,7 +233,7 @@ module MoneyKit
233
233
  # @param [Hash] opts the optional parameters
234
234
  # @option opts [Array<String>] :account_id If present, filters results to accounts matching the given IDs.
235
235
  # @option opts [Array<String>] :institution_id If present, filters results to accounts at institutions matching the given IDs.
236
- # @option opts [SupportedVersion] :moneykit_version
236
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
237
237
  # @return [GetUserAccountsResponse]
238
238
  def get_user_accounts(id, opts = {})
239
239
  data, _status_code, _headers = get_user_accounts_with_http_info(id, opts)
@@ -246,7 +246,7 @@ module MoneyKit
246
246
  # @param [Hash] opts the optional parameters
247
247
  # @option opts [Array<String>] :account_id If present, filters results to accounts matching the given IDs.
248
248
  # @option opts [Array<String>] :institution_id If present, filters results to accounts at institutions matching the given IDs.
249
- # @option opts [SupportedVersion] :moneykit_version
249
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
250
250
  # @return [Array<(GetUserAccountsResponse, Integer, Hash)>] GetUserAccountsResponse data, response status code and response headers
251
251
  def get_user_accounts_with_http_info(id, opts = {})
252
252
  @api_client.config.logger.debug 'Calling API: AccountsApi.get_user_accounts ...' if @api_client.config.debugging
@@ -285,7 +285,7 @@ module MoneyKit
285
285
  return_type = opts[:debug_return_type] || 'GetUserAccountsResponse'
286
286
 
287
287
  # auth_names
288
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
288
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
289
289
 
290
290
  new_options = opts.merge(
291
291
  operation: :"AccountsApi.get_user_accounts",
@@ -5,7 +5,7 @@
5
5
  # The version of the OpenAPI document: 0.1.0
6
6
  #
7
7
  # Generated by: https://openapi-generator.tech
8
- # OpenAPI Generator version: 6.5.0
8
+ # OpenAPI Generator version: 7.1.0
9
9
  #
10
10
 
11
11
  require 'cgi'
@@ -19,11 +19,11 @@ module MoneyKit
19
19
  end
20
20
 
21
21
  # /links/{id}/identity
22
- # Returns account owner information from the institution, including names, emails, phone numbers, and addresses, for all permissioned accounts associated with a <a href=#tag/Links>link</a>. <p>Some fields may be empty, if not provided by the institution.
22
+ # Returns account owner information from the institution, including names, emails, phone numbers, and addresses, for all permissioned accounts associated with a <a href=#tag/Links>link</a>. <p>Some fields may be empty, if not provided by the institution. <p>**Note** that this endpoint does **not** trigger a fetch of owner information from the institution; it merely returns owner information that has already been fetched, either because `prefetch` was requested when the link was created, or because of an on-demand update. **To force a check for new/updated owner information, you must use the <a href=#operation/refresh_products>/products</a> endpoint.** <p>If you have requested prefetch or an on-demand update, you should check the `refreshed_at` date for this product in the returned response, and compare that against the previous `refreshed_at` date, which you can get from any previous response for this or any other account or link request. If the refreshed_at date has not increased, then updated data is not yet available.
23
23
  # @param id [String] The unique ID for this link.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Array<String>] :account_ids An optional list of account IDs to filter the results.
26
- # @option opts [SupportedVersion] :moneykit_version
26
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
27
27
  # @return [IdentityResponse]
28
28
  def get_identities(id, opts = {})
29
29
  data, _status_code, _headers = get_identities_with_http_info(id, opts)
@@ -31,11 +31,11 @@ module MoneyKit
31
31
  end
32
32
 
33
33
  # /links/{id}/identity
34
- # Returns account owner information from the institution, including names, emails, phone numbers, and addresses, for all permissioned accounts associated with a &lt;a href&#x3D;#tag/Links&gt;link&lt;/a&gt;. &lt;p&gt;Some fields may be empty, if not provided by the institution.
34
+ # Returns account owner information from the institution, including names, emails, phone numbers, and addresses, for all permissioned accounts associated with a &lt;a href&#x3D;#tag/Links&gt;link&lt;/a&gt;. &lt;p&gt;Some fields may be empty, if not provided by the institution. &lt;p&gt;**Note** that this endpoint does **not** trigger a fetch of owner information from the institution; it merely returns owner information that has already been fetched, either because &#x60;prefetch&#x60; was requested when the link was created, or because of an on-demand update. **To force a check for new/updated owner information, you must use the &lt;a href&#x3D;#operation/refresh_products&gt;/products&lt;/a&gt; endpoint.** &lt;p&gt;If you have requested prefetch or an on-demand update, you should check the &#x60;refreshed_at&#x60; date for this product in the returned response, and compare that against the previous &#x60;refreshed_at&#x60; date, which you can get from any previous response for this or any other account or link request. If the refreshed_at date has not increased, then updated data is not yet available.
35
35
  # @param id [String] The unique ID for this link.
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @option opts [Array<String>] :account_ids An optional list of account IDs to filter the results.
38
- # @option opts [SupportedVersion] :moneykit_version
38
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
39
39
  # @return [Array<(IdentityResponse, Integer, Hash)>] IdentityResponse data, response status code and response headers
40
40
  def get_identities_with_http_info(id, opts = {})
41
41
  @api_client.config.logger.debug 'Calling API: IdentityApi.get_identities ...' if @api_client.config.debugging
@@ -70,7 +70,7 @@ module MoneyKit
70
70
  return_type = opts[:debug_return_type] || 'IdentityResponse'
71
71
 
72
72
  # auth_names
73
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
73
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
74
74
 
75
75
  new_options = opts.merge(
76
76
  operation: :"IdentityApi.get_identities",
@@ -5,7 +5,7 @@
5
5
  # The version of the OpenAPI document: 0.1.0
6
6
  #
7
7
  # Generated by: https://openapi-generator.tech
8
- # OpenAPI Generator version: 6.5.0
8
+ # OpenAPI Generator version: 7.1.0
9
9
  #
10
10
 
11
11
  require 'cgi'
@@ -22,7 +22,7 @@ module MoneyKit
22
22
  # Fetches details about a single institution.
23
23
  # @param institution_id [String] The institution ID to fetch.
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [SupportedVersion] :moneykit_version
25
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
26
26
  # @return [Institution]
27
27
  def get_institution(institution_id, opts = {})
28
28
  data, _status_code, _headers = get_institution_with_http_info(institution_id, opts)
@@ -33,7 +33,7 @@ module MoneyKit
33
33
  # Fetches details about a single institution.
34
34
  # @param institution_id [String] The institution ID to fetch.
35
35
  # @param [Hash] opts the optional parameters
36
- # @option opts [SupportedVersion] :moneykit_version
36
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
37
37
  # @return [Array<(Institution, Integer, Hash)>] Institution data, response status code and response headers
38
38
  def get_institution_with_http_info(institution_id, opts = {})
39
39
  @api_client.config.logger.debug 'Calling API: InstitutionsApi.get_institution ...' if @api_client.config.debugging
@@ -66,7 +66,7 @@ module MoneyKit
66
66
  return_type = opts[:debug_return_type] || 'Institution'
67
67
 
68
68
  # auth_names
69
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
69
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
70
70
 
71
71
  new_options = opts.merge(
72
72
  operation: :"InstitutionsApi.get_institution",
@@ -92,7 +92,7 @@ module MoneyKit
92
92
  # @option opts [Boolean] :featured If true, returns only featured institutions. (default to false)
93
93
  # @option opts [String] :cursor Cursor to fetch the next set of institutions. (You get this value from the previous call to &#x60;/institutions&#x60;.)
94
94
  # @option opts [Integer] :limit A limit on the number of institutions to be returned. (default to 50)
95
- # @option opts [SupportedVersion] :moneykit_version
95
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
96
96
  # @return [GetInstitutionsResponse]
97
97
  def get_institutions(opts = {})
98
98
  data, _status_code, _headers = get_institutions_with_http_info(opts)
@@ -106,7 +106,7 @@ module MoneyKit
106
106
  # @option opts [Boolean] :featured If true, returns only featured institutions. (default to false)
107
107
  # @option opts [String] :cursor Cursor to fetch the next set of institutions. (You get this value from the previous call to &#x60;/institutions&#x60;.)
108
108
  # @option opts [Integer] :limit A limit on the number of institutions to be returned. (default to 50)
109
- # @option opts [SupportedVersion] :moneykit_version
109
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
110
110
  # @return [Array<(GetInstitutionsResponse, Integer, Hash)>] GetInstitutionsResponse data, response status code and response headers
111
111
  def get_institutions_with_http_info(opts = {})
112
112
  if @api_client.config.debugging
@@ -148,7 +148,7 @@ module MoneyKit
148
148
  return_type = opts[:debug_return_type] || 'GetInstitutionsResponse'
149
149
 
150
150
  # auth_names
151
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
151
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
152
152
 
153
153
  new_options = opts.merge(
154
154
  operation: :"InstitutionsApi.get_institutions",
@@ -5,7 +5,7 @@
5
5
  # The version of the OpenAPI document: 0.1.0
6
6
  #
7
7
  # Generated by: https://openapi-generator.tech
8
- # OpenAPI Generator version: 6.5.0
8
+ # OpenAPI Generator version: 7.1.0
9
9
  #
10
10
 
11
11
  require 'cgi'
@@ -22,7 +22,7 @@ module MoneyKit
22
22
  # This endpoint is to be called by your back end, to establish a new link session for creating a link to your end user's institution.
23
23
  # @param create_link_session_request [CreateLinkSessionRequest]
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [SupportedVersion] :moneykit_version
25
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
26
26
  # @return [CreateLinkSessionResponse]
27
27
  def create_link_session(create_link_session_request, opts = {})
28
28
  data, _status_code, _headers = create_link_session_with_http_info(create_link_session_request, opts)
@@ -33,7 +33,7 @@ module MoneyKit
33
33
  # This endpoint is to be called by your back end, to establish a new link session for creating a link to your end user&#39;s institution.
34
34
  # @param create_link_session_request [CreateLinkSessionRequest]
35
35
  # @param [Hash] opts the optional parameters
36
- # @option opts [SupportedVersion] :moneykit_version
36
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
37
37
  # @return [Array<(CreateLinkSessionResponse, Integer, Hash)>] CreateLinkSessionResponse data, response status code and response headers
38
38
  def create_link_session_with_http_info(create_link_session_request, opts = {})
39
39
  if @api_client.config.debugging
@@ -70,7 +70,7 @@ module MoneyKit
70
70
  return_type = opts[:debug_return_type] || 'CreateLinkSessionResponse'
71
71
 
72
72
  # auth_names
73
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
73
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
74
74
 
75
75
  new_options = opts.merge(
76
76
  operation: :"LinkSessionApi.create_link_session",
@@ -93,7 +93,7 @@ module MoneyKit
93
93
  # After the end user has successfully completed the linking process, your back end calls this endpoint to exchange the token received by your front end for a`link_id` that can be used to access the link's data.
94
94
  # @param exchange_token_request [ExchangeTokenRequest]
95
95
  # @param [Hash] opts the optional parameters
96
- # @option opts [SupportedVersion] :moneykit_version
96
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
97
97
  # @return [ExchangeTokenResponse]
98
98
  def exchange_token(exchange_token_request, opts = {})
99
99
  data, _status_code, _headers = exchange_token_with_http_info(exchange_token_request, opts)
@@ -104,7 +104,7 @@ module MoneyKit
104
104
  # After the end user has successfully completed the linking process, your back end calls this endpoint to exchange the token received by your front end for a&#x60;link_id&#x60; that can be used to access the link&#39;s data.
105
105
  # @param exchange_token_request [ExchangeTokenRequest]
106
106
  # @param [Hash] opts the optional parameters
107
- # @option opts [SupportedVersion] :moneykit_version
107
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
108
108
  # @return [Array<(ExchangeTokenResponse, Integer, Hash)>] ExchangeTokenResponse data, response status code and response headers
109
109
  def exchange_token_with_http_info(exchange_token_request, opts = {})
110
110
  @api_client.config.logger.debug 'Calling API: LinkSessionApi.exchange_token ...' if @api_client.config.debugging
@@ -139,7 +139,7 @@ module MoneyKit
139
139
  return_type = opts[:debug_return_type] || 'ExchangeTokenResponse'
140
140
 
141
141
  # auth_names
142
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
142
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
143
143
 
144
144
  new_options = opts.merge(
145
145
  operation: :"LinkSessionApi.exchange_token",
@@ -5,7 +5,7 @@
5
5
  # The version of the OpenAPI document: 0.1.0
6
6
  #
7
7
  # Generated by: https://openapi-generator.tech
8
- # OpenAPI Generator version: 6.5.0
8
+ # OpenAPI Generator version: 7.1.0
9
9
  #
10
10
 
11
11
  require 'cgi'
@@ -22,7 +22,7 @@ module MoneyKit
22
22
  # Deletes this link and disables its access token. <p>After deletion, the link id and access token are no longer valid and cannot be used to access any data that was associated with it.
23
23
  # @param id [String] The unique ID for this link.
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [SupportedVersion] :moneykit_version
25
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
26
26
  # @return [nil]
27
27
  def disconnect(id, opts = {})
28
28
  disconnect_with_http_info(id, opts)
@@ -33,7 +33,7 @@ module MoneyKit
33
33
  # Deletes this link and disables its access token. &lt;p&gt;After deletion, the link id and access token are no longer valid and cannot be used to access any data that was associated with it.
34
34
  # @param id [String] The unique ID for this link.
35
35
  # @param [Hash] opts the optional parameters
36
- # @option opts [SupportedVersion] :moneykit_version
36
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
37
37
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
38
38
  def disconnect_with_http_info(id, opts = {})
39
39
  @api_client.config.logger.debug 'Calling API: LinksApi.disconnect ...' if @api_client.config.debugging
@@ -64,7 +64,7 @@ module MoneyKit
64
64
  return_type = opts[:debug_return_type]
65
65
 
66
66
  # auth_names
67
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
67
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
68
68
 
69
69
  new_options = opts.merge(
70
70
  operation: :"LinksApi.disconnect",
@@ -87,7 +87,7 @@ module MoneyKit
87
87
  # Fetches details about a link.
88
88
  # @param id [String] The unique ID for this link.
89
89
  # @param [Hash] opts the optional parameters
90
- # @option opts [SupportedVersion] :moneykit_version
90
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
91
91
  # @return [LinkResponse]
92
92
  def get_link(id, opts = {})
93
93
  data, _status_code, _headers = get_link_with_http_info(id, opts)
@@ -98,7 +98,7 @@ module MoneyKit
98
98
  # Fetches details about a link.
99
99
  # @param id [String] The unique ID for this link.
100
100
  # @param [Hash] opts the optional parameters
101
- # @option opts [SupportedVersion] :moneykit_version
101
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
102
102
  # @return [Array<(LinkResponse, Integer, Hash)>] LinkResponse data, response status code and response headers
103
103
  def get_link_with_http_info(id, opts = {})
104
104
  @api_client.config.logger.debug 'Calling API: LinksApi.get_link ...' if @api_client.config.debugging
@@ -129,7 +129,7 @@ module MoneyKit
129
129
  return_type = opts[:debug_return_type] || 'LinkResponse'
130
130
 
131
131
  # auth_names
132
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
132
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
133
133
 
134
134
  new_options = opts.merge(
135
135
  operation: :"LinksApi.get_link",
@@ -152,7 +152,7 @@ module MoneyKit
152
152
  # Fetches all links belonging to a <a href=#operation/get_user_accounts>user</a>.
153
153
  # @param id [String] The unique ID for this user. This is the same ID provided in the call to &lt;a href&#x3D;#operation/create_link_session&gt;/link-session&lt;/a&gt; to create any link for this user.
154
154
  # @param [Hash] opts the optional parameters
155
- # @option opts [SupportedVersion] :moneykit_version
155
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
156
156
  # @return [GetUserLinksResponse]
157
157
  def get_user_links(id, opts = {})
158
158
  data, _status_code, _headers = get_user_links_with_http_info(id, opts)
@@ -163,7 +163,7 @@ module MoneyKit
163
163
  # Fetches all links belonging to a &lt;a href&#x3D;#operation/get_user_accounts&gt;user&lt;/a&gt;.
164
164
  # @param id [String] The unique ID for this user. This is the same ID provided in the call to &lt;a href&#x3D;#operation/create_link_session&gt;/link-session&lt;/a&gt; to create any link for this user.
165
165
  # @param [Hash] opts the optional parameters
166
- # @option opts [SupportedVersion] :moneykit_version
166
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
167
167
  # @return [Array<(GetUserLinksResponse, Integer, Hash)>] GetUserLinksResponse data, response status code and response headers
168
168
  def get_user_links_with_http_info(id, opts = {})
169
169
  @api_client.config.logger.debug 'Calling API: LinksApi.get_user_links ...' if @api_client.config.debugging
@@ -194,7 +194,7 @@ module MoneyKit
194
194
  return_type = opts[:debug_return_type] || 'GetUserLinksResponse'
195
195
 
196
196
  # auth_names
197
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
197
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
198
198
 
199
199
  new_options = opts.merge(
200
200
  operation: :"LinksApi.get_user_links",
@@ -213,12 +213,75 @@ module MoneyKit
213
213
  [data, status_code, headers]
214
214
  end
215
215
 
216
+ # Force a \"relink required\" state on a link (Test only).
217
+ # @param id [String] The unique ID for this link.
218
+ # @param [Hash] opts the optional parameters
219
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
220
+ # @return [LinkResponse]
221
+ def reset_login(id, opts = {})
222
+ data, _status_code, _headers = reset_login_with_http_info(id, opts)
223
+ data
224
+ end
225
+
226
+ # Force a \&quot;relink required\&quot; state on a link (Test only).
227
+ # @param id [String] The unique ID for this link.
228
+ # @param [Hash] opts the optional parameters
229
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
230
+ # @return [Array<(LinkResponse, Integer, Hash)>] LinkResponse data, response status code and response headers
231
+ def reset_login_with_http_info(id, opts = {})
232
+ @api_client.config.logger.debug 'Calling API: LinksApi.reset_login ...' if @api_client.config.debugging
233
+ # verify the required parameter 'id' is set
234
+ if @api_client.config.client_side_validation && id.nil?
235
+ raise ArgumentError, "Missing the required parameter 'id' when calling LinksApi.reset_login"
236
+ end
237
+
238
+ # resource path
239
+ local_var_path = '/links/{id}/reset'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
240
+
241
+ # query parameters
242
+ query_params = opts[:query_params] || {}
243
+
244
+ # header parameters
245
+ header_params = opts[:header_params] || {}
246
+ # HTTP header 'Accept' (if needed)
247
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
248
+ header_params[:'moneykit-version'] = opts[:moneykit_version] unless opts[:moneykit_version].nil?
249
+
250
+ # form parameters
251
+ form_params = opts[:form_params] || {}
252
+
253
+ # http body (model)
254
+ post_body = opts[:debug_body]
255
+
256
+ # return_type
257
+ return_type = opts[:debug_return_type] || 'LinkResponse'
258
+
259
+ # auth_names
260
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
261
+
262
+ new_options = opts.merge(
263
+ operation: :"LinksApi.reset_login",
264
+ header_params: header_params,
265
+ query_params: query_params,
266
+ form_params: form_params,
267
+ body: post_body,
268
+ auth_names: auth_names,
269
+ return_type: return_type
270
+ )
271
+
272
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
273
+ if @api_client.config.debugging
274
+ @api_client.config.logger.debug "API called: LinksApi#reset_login\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
275
+ end
276
+ [data, status_code, headers]
277
+ end
278
+
216
279
  # /links/{id}
217
280
  # Updates the link configuration.
218
281
  # @param id [String] The unique ID for this link.
219
282
  # @param update_link_request [UpdateLinkRequest]
220
283
  # @param [Hash] opts the optional parameters
221
- # @option opts [SupportedVersion] :moneykit_version
284
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
222
285
  # @return [LinkResponse]
223
286
  def update_link(id, update_link_request, opts = {})
224
287
  data, _status_code, _headers = update_link_with_http_info(id, update_link_request, opts)
@@ -230,7 +293,7 @@ module MoneyKit
230
293
  # @param id [String] The unique ID for this link.
231
294
  # @param update_link_request [UpdateLinkRequest]
232
295
  # @param [Hash] opts the optional parameters
233
- # @option opts [SupportedVersion] :moneykit_version
296
+ # @option opts [String] :moneykit_version (default to '2023-02-18')
234
297
  # @return [Array<(LinkResponse, Integer, Hash)>] LinkResponse data, response status code and response headers
235
298
  def update_link_with_http_info(id, update_link_request, opts = {})
236
299
  @api_client.config.logger.debug 'Calling API: LinksApi.update_link ...' if @api_client.config.debugging
@@ -268,7 +331,7 @@ module MoneyKit
268
331
  return_type = opts[:debug_return_type] || 'LinkResponse'
269
332
 
270
333
  # auth_names
271
- auth_names = opts[:debug_auth_names] || %w[clientId OAuth2ClientCredentials clientSecret]
334
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
272
335
 
273
336
  new_options = opts.merge(
274
337
  operation: :"LinksApi.update_link",