moneykit 0.0.2 → 0.0.5
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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/moneykit/api/access_token_api.rb +53 -55
- data/lib/moneykit/api/account_numbers_api.rb +26 -26
- data/lib/moneykit/api/accounts_api.rb +88 -82
- data/lib/moneykit/api/identity_api.rb +31 -30
- data/lib/moneykit/api/institutions_api.rb +50 -48
- data/lib/moneykit/api/link_session_api.rb +47 -50
- data/lib/moneykit/api/links_api.rb +137 -81
- data/lib/moneykit/api/products_api.rb +33 -35
- data/lib/moneykit/api/transactions_api.rb +126 -101
- data/lib/moneykit/api/users_api.rb +100 -83
- data/lib/moneykit/api/webhooks_api.rb +97 -0
- data/lib/moneykit/api_client.rb +100 -103
- data/lib/moneykit/api_error.rb +14 -16
- data/lib/moneykit/configuration.rb +52 -65
- data/lib/moneykit/models/account.rb +69 -112
- data/lib/moneykit/models/account_balances.rb +64 -78
- data/lib/moneykit/models/account_group.rb +58 -61
- data/lib/moneykit/models/account_identity.rb +79 -124
- data/lib/moneykit/models/account_numbers.rb +96 -71
- data/lib/moneykit/models/account_numbers_link_product.rb +57 -69
- data/lib/moneykit/models/account_numbers_product_settings.rb +59 -63
- data/lib/moneykit/models/account_type.rb +23 -23
- data/lib/moneykit/models/account_with_account_numbers.rb +76 -124
- data/lib/moneykit/models/accounts_link_product.rb +53 -61
- data/lib/moneykit/models/ach_number.rb +57 -65
- data/lib/moneykit/models/address.rb +70 -90
- data/lib/moneykit/models/api_error_auth_expired_access_token_response.rb +72 -78
- data/lib/moneykit/models/api_error_auth_unauthorized_response.rb +69 -78
- data/lib/moneykit/models/api_error_rate_limit_exceeded_response.rb +72 -78
- data/lib/moneykit/models/app.rb +46 -50
- data/lib/moneykit/models/bacs_number.rb +53 -61
- data/lib/moneykit/models/balances.rb +58 -64
- data/lib/moneykit/models/basic_account_details.rb +62 -77
- data/lib/moneykit/models/country.rb +13 -14
- data/lib/moneykit/models/create_link_session_request.rb +109 -119
- data/lib/moneykit/models/create_link_session_response.rb +48 -52
- data/lib/moneykit/models/currency.rb +193 -193
- data/lib/moneykit/models/cursor.rb +40 -39
- data/lib/moneykit/models/cursor_pagination.rb +49 -54
- data/lib/moneykit/models/cursors.rb +40 -39
- data/lib/moneykit/models/customer_app.rb +54 -64
- data/lib/moneykit/models/customer_user.rb +59 -69
- data/lib/moneykit/models/eft_number.rb +56 -67
- data/lib/moneykit/models/email.rb +56 -63
- data/lib/moneykit/models/email1.rb +50 -53
- data/lib/moneykit/models/exchange_token_request.rb +48 -52
- data/lib/moneykit/models/exchange_token_response.rb +54 -64
- data/lib/moneykit/models/generate_access_token_response.rb +59 -73
- data/lib/moneykit/models/get_account_numbers_response.rb +58 -66
- data/lib/moneykit/models/get_account_response.rb +55 -67
- data/lib/moneykit/models/get_accounts_response.rb +58 -67
- data/lib/moneykit/models/get_institutions_response.rb +58 -67
- data/lib/moneykit/models/get_transactions_response.rb +81 -105
- data/lib/moneykit/models/get_user_accounts_response.rb +50 -58
- data/lib/moneykit/models/get_user_links_response.rb +50 -58
- data/lib/moneykit/models/get_user_transactions_response.rb +75 -95
- data/lib/moneykit/models/http_validation_error.rb +77 -84
- data/lib/moneykit/models/identity.rb +49 -49
- data/lib/moneykit/models/identity_link_product.rb +57 -69
- data/lib/moneykit/models/identity_product_settings.rb +59 -63
- data/lib/moneykit/models/identity_response.rb +58 -67
- data/lib/moneykit/models/institution.rb +85 -113
- data/lib/moneykit/models/institution_error_not_found_response.rb +72 -80
- data/lib/moneykit/models/institution_styling_response.rb +77 -93
- data/lib/moneykit/models/international_number.rb +54 -64
- data/lib/moneykit/models/introspect_client_response.rb +70 -89
- data/lib/moneykit/models/jwk_set.rb +51 -55
- data/lib/moneykit/models/link.rb +78 -100
- data/lib/moneykit/models/link1.rb +78 -100
- data/lib/moneykit/models/link2.rb +78 -100
- data/lib/moneykit/models/link3.rb +78 -100
- data/lib/moneykit/models/link4.rb +78 -100
- data/lib/moneykit/models/link_common.rb +82 -117
- data/lib/moneykit/models/link_error.rb +19 -19
- data/lib/moneykit/models/link_error_bad_config_response.rb +269 -0
- data/lib/moneykit/models/link_error_bad_state_response.rb +71 -88
- data/lib/moneykit/models/link_error_deleted_response.rb +72 -80
- data/lib/moneykit/models/link_error_forbidden_action_response.rb +69 -78
- data/lib/moneykit/models/link_error_not_found_response.rb +72 -80
- data/lib/moneykit/models/link_error_unauthorized_access_response.rb +72 -80
- data/lib/moneykit/models/link_permission_scope.rb +14 -15
- data/lib/moneykit/models/link_permissions.rb +52 -62
- data/lib/moneykit/models/link_products.rb +62 -78
- data/lib/moneykit/models/link_response.rb +95 -136
- data/lib/moneykit/models/link_session_customer_user.rb +65 -83
- data/lib/moneykit/models/link_session_customer_user_email.rb +59 -68
- data/lib/moneykit/models/link_session_customer_user_phone.rb +67 -82
- data/lib/moneykit/models/link_session_error_forbidden_config_response.rb +69 -78
- data/lib/moneykit/models/link_session_error_invalid_token_exchange.rb +69 -78
- data/lib/moneykit/models/link_session_setting_overrides.rb +64 -99
- data/lib/moneykit/models/link_state.rb +15 -16
- data/lib/moneykit/models/link_state_changed_webhook.rb +121 -148
- data/lib/moneykit/models/location_inner.rb +41 -46
- data/lib/moneykit/models/money_kit_env.rb +12 -13
- data/lib/moneykit/models/money_link_features.rb +62 -66
- data/lib/moneykit/models/moneylink_features.rb +50 -49
- data/lib/moneykit/models/numbers.rb +60 -73
- data/lib/moneykit/models/owner.rb +76 -89
- data/lib/moneykit/models/phone.rb +60 -68
- data/lib/moneykit/models/phone_number.rb +63 -74
- data/lib/moneykit/models/phone_number_type.rb +14 -15
- data/lib/moneykit/models/product.rb +14 -15
- data/lib/moneykit/models/products.rb +52 -64
- data/lib/moneykit/models/products1.rb +48 -56
- data/lib/moneykit/models/products_settings.rb +58 -70
- data/lib/moneykit/models/provider.rb +18 -17
- data/lib/moneykit/models/public_link_error.rb +43 -0
- data/lib/moneykit/models/refresh_products_request.rb +52 -65
- data/lib/moneykit/models/requested_link_permission.rb +60 -75
- data/lib/moneykit/models/response401_disconnect_links_id_delete.rb +83 -283
- data/lib/moneykit/models/response401_exchange_token_link_session_exchange_token_post.rb +82 -281
- data/lib/moneykit/models/response401_get_account_links_id_accounts_account_id_get.rb +83 -283
- data/lib/moneykit/models/response401_get_account_numbers_links_id_accounts_numbers_get.rb +83 -283
- data/lib/moneykit/models/response401_get_accounts_links_id_accounts_get.rb +83 -283
- data/lib/moneykit/models/response401_get_identities_links_id_identity_get.rb +83 -283
- data/lib/moneykit/models/response401_get_institution_institutions_institution_id_get.rb +82 -281
- data/lib/moneykit/models/response401_get_institution_styling_institutions_institution_id_styling_get.rb +66 -72
- data/lib/moneykit/models/response401_get_institutions_institutions_get.rb +82 -281
- data/lib/moneykit/models/response401_get_link_links_id_get.rb +83 -283
- data/lib/moneykit/models/response401_get_transactions_diff_links_id_transactions_sync_get.rb +83 -283
- data/lib/moneykit/models/response401_get_transactions_links_id_transactions_get.rb +83 -283
- data/lib/moneykit/models/response401_get_user_accounts_users_id_accounts_get.rb +82 -281
- data/lib/moneykit/models/response401_get_user_links_users_id_links_get.rb +82 -281
- data/lib/moneykit/models/response401_get_user_transactions_users_id_transactions_get.rb +82 -281
- data/lib/moneykit/models/response401_get_well_known_jwks_well_known_jwks_json_get.rb +82 -281
- data/lib/moneykit/models/response401_instrospect_client_auth_introspect_get.rb +82 -281
- data/lib/moneykit/models/response401_refresh_products_links_id_products_post.rb +83 -283
- data/lib/moneykit/models/response401_reset_login_links_id_reset_post.rb +102 -0
- data/lib/moneykit/models/response401_trigger_test_link_webhook_event_webhooks_test_link_id_post.rb +102 -0
- data/lib/moneykit/models/response401_update_link_links_id_patch.rb +83 -283
- data/lib/moneykit/models/settings.rb +61 -73
- data/lib/moneykit/models/supported_version.rb +11 -12
- data/lib/moneykit/models/transaction.rb +104 -131
- data/lib/moneykit/models/transaction_diff.rb +69 -78
- data/lib/moneykit/models/transaction_sync_response.rb +65 -87
- data/lib/moneykit/models/transaction_type.rb +12 -13
- data/lib/moneykit/models/transaction_type_filter.rb +12 -13
- data/lib/moneykit/models/transactions.rb +58 -57
- data/lib/moneykit/models/transactions1.rb +55 -63
- data/lib/moneykit/models/transactions_link_product.rb +57 -69
- data/lib/moneykit/models/transactions_product_settings.rb +67 -71
- data/lib/moneykit/models/update_link_request.rb +63 -69
- data/lib/moneykit/models/user_accounts_out.rb +40 -40
- data/lib/moneykit/models/user_links_out.rb +40 -40
- data/lib/moneykit/models/user_transactions_paged_response.rb +40 -40
- data/lib/moneykit/models/validation_error.rb +63 -77
- data/lib/moneykit/models/validation_error_location_inner.rb +101 -0
- data/lib/moneykit/models/webhook_link_test_event.rb +40 -0
- data/lib/moneykit/models/webhook_test_link_request.rb +252 -0
- data/lib/moneykit/models/webhook_test_link_response.rb +220 -0
- data/lib/moneykit/version.rb +10 -12
- data/lib/moneykit.rb +18 -39
- data/lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb +738 -737
- data/lib/plaid_compatible/money_kit_plaid_compatible/api_client.rb +339 -340
- data/lib/plaid_compatible/money_kit_plaid_compatible/api_error.rb +47 -47
- data/lib/plaid_compatible/money_kit_plaid_compatible/configuration.rb +258 -260
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_balance.rb +210 -212
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_base.rb +221 -237
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_identity.rb +231 -252
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_subtype.rb +100 -101
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_type.rb +35 -36
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_request.rb +209 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_request_options.rb +188 -185
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_response.rb +205 -210
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/address.rb +195 -193
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/address_data.rb +222 -226
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_numbers.rb +218 -226
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_request.rb +209 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_request_options.rb +188 -185
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_response.rb +211 -222
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/country_code.rb +32 -33
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/email.rb +197 -198
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/http_validation_error.rb +183 -181
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_request.rb +209 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_request_options.rb +188 -185
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_response.rb +205 -210
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/institution.rb +228 -232
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/institutions_get_by_id_request.rb +216 -217
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/institutions_get_by_id_response.rb +195 -196
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item.rb +251 -261
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_error_webhook.rb +217 -229
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_get_request.rb +205 -205
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_get_response.rb +201 -205
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_public_token_exchange_request.rb +205 -205
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_public_token_exchange_response.rb +206 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_remove_request.rb +205 -205
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_remove_response.rb +188 -185
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_investments.rb +195 -193
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_last_webhook.rb +195 -193
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_nullable.rb +194 -198
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_transactions.rb +195 -193
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_request.rb +272 -291
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_request_user.rb +225 -225
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_response.rb +206 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_ach.rb +215 -221
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_bacs.rb +206 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_eft.rb +215 -224
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_international.rb +206 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/owner.rb +218 -226
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/personal_finance_category.rb +197 -198
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/phone_number.rb +206 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/plaid_error.rb +253 -266
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/plaid_error_type.rb +43 -44
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/products.rb +33 -34
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/removed_transaction.rb +187 -183
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transaction.rb +288 -315
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_request.rb +225 -235
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_request_options.rb +222 -224
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_response.rb +225 -236
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_refresh_request.rb +205 -205
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_refresh_response.rb +188 -185
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_request.rb +223 -229
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_request_options.rb +197 -193
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_response.rb +235 -252
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/validation_error.rb +198 -207
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/webhook_environment_values.rb +32 -33
- data/lib/plaid_compatible/money_kit_plaid_compatible/version.rb +14 -14
- data/lib/plaid_compatible/money_kit_plaid_compatible.rb +24 -24
- data/moneykit.gemspec +22 -25
- metadata +14 -5
@@ -1,14 +1,12 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=end
|
1
|
+
# #MoneyKit API
|
2
|
+
#
|
3
|
+
# No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
#
|
5
|
+
# The version of the OpenAPI document: 0.1.0
|
6
|
+
#
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# OpenAPI Generator version: 7.1.0
|
9
|
+
#
|
12
10
|
|
13
11
|
require 'cgi'
|
14
12
|
|
@@ -19,12 +17,13 @@ module MoneyKit
|
|
19
17
|
def initialize(api_client = ApiClient.default)
|
20
18
|
@api_client = api_client
|
21
19
|
end
|
20
|
+
|
22
21
|
# /links/{id}/accounts/{account_id}
|
23
22
|
# Fetches a single account associated with a <a href=#tag/Links>link</a>.
|
24
23
|
# @param id [String] The unique ID for this link.
|
25
24
|
# @param account_id [String] The account ID to fetch.
|
26
25
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @option opts [
|
26
|
+
# @option opts [String] :moneykit_version (default to '2023-02-18')
|
28
27
|
# @return [GetAccountResponse]
|
29
28
|
def get_account(id, account_id, opts = {})
|
30
29
|
data, _status_code, _headers = get_account_with_http_info(id, account_id, opts)
|
@@ -36,22 +35,23 @@ module MoneyKit
|
|
36
35
|
# @param id [String] The unique ID for this link.
|
37
36
|
# @param account_id [String] The account ID to fetch.
|
38
37
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [
|
38
|
+
# @option opts [String] :moneykit_version (default to '2023-02-18')
|
40
39
|
# @return [Array<(GetAccountResponse, Integer, Hash)>] GetAccountResponse data, response status code and response headers
|
41
40
|
def get_account_with_http_info(id, account_id, opts = {})
|
42
|
-
if @api_client.config.debugging
|
43
|
-
@api_client.config.logger.debug 'Calling API: AccountsApi.get_account ...'
|
44
|
-
end
|
41
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.get_account ...' if @api_client.config.debugging
|
45
42
|
# verify the required parameter 'id' is set
|
46
43
|
if @api_client.config.client_side_validation && id.nil?
|
47
|
-
|
44
|
+
raise ArgumentError, "Missing the required parameter 'id' when calling AccountsApi.get_account"
|
48
45
|
end
|
49
46
|
# verify the required parameter 'account_id' is set
|
50
47
|
if @api_client.config.client_side_validation && account_id.nil?
|
51
|
-
|
48
|
+
raise ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_account"
|
52
49
|
end
|
50
|
+
|
53
51
|
# resource path
|
54
|
-
local_var_path = '/links/{id}/accounts/{account_id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub(
|
52
|
+
local_var_path = '/links/{id}/accounts/{account_id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub(
|
53
|
+
'{' + 'account_id' + '}', CGI.escape(account_id.to_s)
|
54
|
+
)
|
55
55
|
|
56
56
|
# query parameters
|
57
57
|
query_params = opts[:query_params] || {}
|
@@ -60,7 +60,7 @@ module MoneyKit
|
|
60
60
|
header_params = opts[:header_params] || {}
|
61
61
|
# HTTP header 'Accept' (if needed)
|
62
62
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
63
|
-
header_params[:'moneykit-version'] = opts[:
|
63
|
+
header_params[:'moneykit-version'] = opts[:moneykit_version] unless opts[:moneykit_version].nil?
|
64
64
|
|
65
65
|
# form parameters
|
66
66
|
form_params = opts[:form_params] || {}
|
@@ -72,30 +72,30 @@ module MoneyKit
|
|
72
72
|
return_type = opts[:debug_return_type] || 'GetAccountResponse'
|
73
73
|
|
74
74
|
# auth_names
|
75
|
-
auth_names = opts[:debug_auth_names] || ['
|
75
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
|
76
76
|
|
77
77
|
new_options = opts.merge(
|
78
|
-
:
|
79
|
-
:
|
80
|
-
:
|
81
|
-
:
|
82
|
-
:
|
83
|
-
:
|
84
|
-
:
|
78
|
+
operation: :"AccountsApi.get_account",
|
79
|
+
header_params: header_params,
|
80
|
+
query_params: query_params,
|
81
|
+
form_params: form_params,
|
82
|
+
body: post_body,
|
83
|
+
auth_names: auth_names,
|
84
|
+
return_type: return_type
|
85
85
|
)
|
86
86
|
|
87
87
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
88
88
|
if @api_client.config.debugging
|
89
89
|
@api_client.config.logger.debug "API called: AccountsApi#get_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
90
|
end
|
91
|
-
|
91
|
+
[data, status_code, headers]
|
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 [
|
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,19 +103,18 @@ module MoneyKit
|
|
103
103
|
end
|
104
104
|
|
105
105
|
# /links/{id}/accounts/numbers
|
106
|
-
# 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).
|
106
|
+
# 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.
|
107
107
|
# @param id [String] The unique ID for this link.
|
108
108
|
# @param [Hash] opts the optional parameters
|
109
|
-
# @option opts [
|
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
|
-
if @api_client.config.debugging
|
113
|
-
@api_client.config.logger.debug 'Calling API: AccountsApi.get_account_numbers ...'
|
114
|
-
end
|
112
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.get_account_numbers ...' if @api_client.config.debugging
|
115
113
|
# verify the required parameter 'id' is set
|
116
114
|
if @api_client.config.client_side_validation && id.nil?
|
117
|
-
|
115
|
+
raise ArgumentError, "Missing the required parameter 'id' when calling AccountsApi.get_account_numbers"
|
118
116
|
end
|
117
|
+
|
119
118
|
# resource path
|
120
119
|
local_var_path = '/links/{id}/accounts/numbers'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
121
120
|
|
@@ -126,7 +125,7 @@ module MoneyKit
|
|
126
125
|
header_params = opts[:header_params] || {}
|
127
126
|
# HTTP header 'Accept' (if needed)
|
128
127
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
129
|
-
header_params[:'moneykit-version'] = opts[:
|
128
|
+
header_params[:'moneykit-version'] = opts[:moneykit_version] unless opts[:moneykit_version].nil?
|
130
129
|
|
131
130
|
# form parameters
|
132
131
|
form_params = opts[:form_params] || {}
|
@@ -138,23 +137,23 @@ module MoneyKit
|
|
138
137
|
return_type = opts[:debug_return_type] || 'GetAccountNumbersResponse'
|
139
138
|
|
140
139
|
# auth_names
|
141
|
-
auth_names = opts[:debug_auth_names] || ['
|
140
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
|
142
141
|
|
143
142
|
new_options = opts.merge(
|
144
|
-
:
|
145
|
-
:
|
146
|
-
:
|
147
|
-
:
|
148
|
-
:
|
149
|
-
:
|
150
|
-
:
|
143
|
+
operation: :"AccountsApi.get_account_numbers",
|
144
|
+
header_params: header_params,
|
145
|
+
query_params: query_params,
|
146
|
+
form_params: form_params,
|
147
|
+
body: post_body,
|
148
|
+
auth_names: auth_names,
|
149
|
+
return_type: return_type
|
151
150
|
)
|
152
151
|
|
153
152
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
154
153
|
if @api_client.config.debugging
|
155
154
|
@api_client.config.logger.debug "API called: AccountsApi#get_account_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
156
155
|
end
|
157
|
-
|
156
|
+
[data, status_code, headers]
|
158
157
|
end
|
159
158
|
|
160
159
|
# /links/{id}/accounts
|
@@ -162,7 +161,7 @@ module MoneyKit
|
|
162
161
|
# @param id [String] The unique ID for this link.
|
163
162
|
# @param [Hash] opts the optional parameters
|
164
163
|
# @option opts [Array<String>] :account_ids An optional list of account IDs to filter the results.
|
165
|
-
# @option opts [
|
164
|
+
# @option opts [String] :moneykit_version (default to '2023-02-18')
|
166
165
|
# @return [GetAccountsResponse]
|
167
166
|
def get_accounts(id, opts = {})
|
168
167
|
data, _status_code, _headers = get_accounts_with_http_info(id, opts)
|
@@ -174,28 +173,30 @@ module MoneyKit
|
|
174
173
|
# @param id [String] The unique ID for this link.
|
175
174
|
# @param [Hash] opts the optional parameters
|
176
175
|
# @option opts [Array<String>] :account_ids An optional list of account IDs to filter the results.
|
177
|
-
# @option opts [
|
176
|
+
# @option opts [String] :moneykit_version (default to '2023-02-18')
|
178
177
|
# @return [Array<(GetAccountsResponse, Integer, Hash)>] GetAccountsResponse data, response status code and response headers
|
179
178
|
def get_accounts_with_http_info(id, opts = {})
|
180
|
-
if @api_client.config.debugging
|
181
|
-
@api_client.config.logger.debug 'Calling API: AccountsApi.get_accounts ...'
|
182
|
-
end
|
179
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.get_accounts ...' if @api_client.config.debugging
|
183
180
|
# verify the required parameter 'id' is set
|
184
181
|
if @api_client.config.client_side_validation && id.nil?
|
185
|
-
|
182
|
+
raise ArgumentError, "Missing the required parameter 'id' when calling AccountsApi.get_accounts"
|
186
183
|
end
|
184
|
+
|
187
185
|
# resource path
|
188
186
|
local_var_path = '/links/{id}/accounts'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
189
187
|
|
190
188
|
# query parameters
|
191
189
|
query_params = opts[:query_params] || {}
|
192
|
-
|
190
|
+
unless opts[:account_ids].nil?
|
191
|
+
query_params[:account_ids] =
|
192
|
+
@api_client.build_collection_param(opts[:account_ids], :multi)
|
193
|
+
end
|
193
194
|
|
194
195
|
# header parameters
|
195
196
|
header_params = opts[:header_params] || {}
|
196
197
|
# HTTP header 'Accept' (if needed)
|
197
198
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
198
|
-
header_params[:'moneykit-version'] = opts[:
|
199
|
+
header_params[:'moneykit-version'] = opts[:moneykit_version] unless opts[:moneykit_version].nil?
|
199
200
|
|
200
201
|
# form parameters
|
201
202
|
form_params = opts[:form_params] || {}
|
@@ -207,23 +208,23 @@ module MoneyKit
|
|
207
208
|
return_type = opts[:debug_return_type] || 'GetAccountsResponse'
|
208
209
|
|
209
210
|
# auth_names
|
210
|
-
auth_names = opts[:debug_auth_names] || ['
|
211
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
|
211
212
|
|
212
213
|
new_options = opts.merge(
|
213
|
-
:
|
214
|
-
:
|
215
|
-
:
|
216
|
-
:
|
217
|
-
:
|
218
|
-
:
|
219
|
-
:
|
214
|
+
operation: :"AccountsApi.get_accounts",
|
215
|
+
header_params: header_params,
|
216
|
+
query_params: query_params,
|
217
|
+
form_params: form_params,
|
218
|
+
body: post_body,
|
219
|
+
auth_names: auth_names,
|
220
|
+
return_type: return_type
|
220
221
|
)
|
221
222
|
|
222
223
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
223
224
|
if @api_client.config.debugging
|
224
225
|
@api_client.config.logger.debug "API called: AccountsApi#get_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
225
226
|
end
|
226
|
-
|
227
|
+
[data, status_code, headers]
|
227
228
|
end
|
228
229
|
|
229
230
|
# /users/{id}/accounts
|
@@ -232,7 +233,7 @@ module MoneyKit
|
|
232
233
|
# @param [Hash] opts the optional parameters
|
233
234
|
# @option opts [Array<String>] :account_id If present, filters results to accounts matching the given IDs.
|
234
235
|
# @option opts [Array<String>] :institution_id If present, filters results to accounts at institutions matching the given IDs.
|
235
|
-
# @option opts [
|
236
|
+
# @option opts [String] :moneykit_version (default to '2023-02-18')
|
236
237
|
# @return [GetUserAccountsResponse]
|
237
238
|
def get_user_accounts(id, opts = {})
|
238
239
|
data, _status_code, _headers = get_user_accounts_with_http_info(id, opts)
|
@@ -245,29 +246,34 @@ module MoneyKit
|
|
245
246
|
# @param [Hash] opts the optional parameters
|
246
247
|
# @option opts [Array<String>] :account_id If present, filters results to accounts matching the given IDs.
|
247
248
|
# @option opts [Array<String>] :institution_id If present, filters results to accounts at institutions matching the given IDs.
|
248
|
-
# @option opts [
|
249
|
+
# @option opts [String] :moneykit_version (default to '2023-02-18')
|
249
250
|
# @return [Array<(GetUserAccountsResponse, Integer, Hash)>] GetUserAccountsResponse data, response status code and response headers
|
250
251
|
def get_user_accounts_with_http_info(id, opts = {})
|
251
|
-
if @api_client.config.debugging
|
252
|
-
@api_client.config.logger.debug 'Calling API: AccountsApi.get_user_accounts ...'
|
253
|
-
end
|
252
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.get_user_accounts ...' if @api_client.config.debugging
|
254
253
|
# verify the required parameter 'id' is set
|
255
254
|
if @api_client.config.client_side_validation && id.nil?
|
256
|
-
|
255
|
+
raise ArgumentError, "Missing the required parameter 'id' when calling AccountsApi.get_user_accounts"
|
257
256
|
end
|
257
|
+
|
258
258
|
# resource path
|
259
259
|
local_var_path = '/users/{id}/accounts'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
260
260
|
|
261
261
|
# query parameters
|
262
262
|
query_params = opts[:query_params] || {}
|
263
|
-
|
264
|
-
|
263
|
+
unless opts[:account_id].nil?
|
264
|
+
query_params[:account_id] =
|
265
|
+
@api_client.build_collection_param(opts[:account_id], :multi)
|
266
|
+
end
|
267
|
+
unless opts[:institution_id].nil?
|
268
|
+
query_params[:institution_id] =
|
269
|
+
@api_client.build_collection_param(opts[:institution_id], :multi)
|
270
|
+
end
|
265
271
|
|
266
272
|
# header parameters
|
267
273
|
header_params = opts[:header_params] || {}
|
268
274
|
# HTTP header 'Accept' (if needed)
|
269
275
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
270
|
-
header_params[:'moneykit-version'] = opts[:
|
276
|
+
header_params[:'moneykit-version'] = opts[:moneykit_version] unless opts[:moneykit_version].nil?
|
271
277
|
|
272
278
|
# form parameters
|
273
279
|
form_params = opts[:form_params] || {}
|
@@ -279,23 +285,23 @@ module MoneyKit
|
|
279
285
|
return_type = opts[:debug_return_type] || 'GetUserAccountsResponse'
|
280
286
|
|
281
287
|
# auth_names
|
282
|
-
auth_names = opts[:debug_auth_names] || ['
|
288
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
|
283
289
|
|
284
290
|
new_options = opts.merge(
|
285
|
-
:
|
286
|
-
:
|
287
|
-
:
|
288
|
-
:
|
289
|
-
:
|
290
|
-
:
|
291
|
-
:
|
291
|
+
operation: :"AccountsApi.get_user_accounts",
|
292
|
+
header_params: header_params,
|
293
|
+
query_params: query_params,
|
294
|
+
form_params: form_params,
|
295
|
+
body: post_body,
|
296
|
+
auth_names: auth_names,
|
297
|
+
return_type: return_type
|
292
298
|
)
|
293
299
|
|
294
300
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
295
301
|
if @api_client.config.debugging
|
296
302
|
@api_client.config.logger.debug "API called: AccountsApi#get_user_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
297
303
|
end
|
298
|
-
|
304
|
+
[data, status_code, headers]
|
299
305
|
end
|
300
306
|
end
|
301
307
|
end
|
@@ -1,14 +1,12 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=end
|
1
|
+
# #MoneyKit API
|
2
|
+
#
|
3
|
+
# No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
#
|
5
|
+
# The version of the OpenAPI document: 0.1.0
|
6
|
+
#
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# OpenAPI Generator version: 7.1.0
|
9
|
+
#
|
12
10
|
|
13
11
|
require 'cgi'
|
14
12
|
|
@@ -19,12 +17,13 @@ module MoneyKit
|
|
19
17
|
def initialize(api_client = ApiClient.default)
|
20
18
|
@api_client = api_client
|
21
19
|
end
|
20
|
+
|
22
21
|
# /links/{id}/identity
|
23
|
-
# 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.
|
24
23
|
# @param id [String] The unique ID for this link.
|
25
24
|
# @param [Hash] opts the optional parameters
|
26
25
|
# @option opts [Array<String>] :account_ids An optional list of account IDs to filter the results.
|
27
|
-
# @option opts [
|
26
|
+
# @option opts [String] :moneykit_version (default to '2023-02-18')
|
28
27
|
# @return [IdentityResponse]
|
29
28
|
def get_identities(id, opts = {})
|
30
29
|
data, _status_code, _headers = get_identities_with_http_info(id, opts)
|
@@ -32,32 +31,34 @@ module MoneyKit
|
|
32
31
|
end
|
33
32
|
|
34
33
|
# /links/{id}/identity
|
35
|
-
# 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.
|
34
|
+
# 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.
|
36
35
|
# @param id [String] The unique ID for this link.
|
37
36
|
# @param [Hash] opts the optional parameters
|
38
37
|
# @option opts [Array<String>] :account_ids An optional list of account IDs to filter the results.
|
39
|
-
# @option opts [
|
38
|
+
# @option opts [String] :moneykit_version (default to '2023-02-18')
|
40
39
|
# @return [Array<(IdentityResponse, Integer, Hash)>] IdentityResponse data, response status code and response headers
|
41
40
|
def get_identities_with_http_info(id, opts = {})
|
42
|
-
if @api_client.config.debugging
|
43
|
-
@api_client.config.logger.debug 'Calling API: IdentityApi.get_identities ...'
|
44
|
-
end
|
41
|
+
@api_client.config.logger.debug 'Calling API: IdentityApi.get_identities ...' if @api_client.config.debugging
|
45
42
|
# verify the required parameter 'id' is set
|
46
43
|
if @api_client.config.client_side_validation && id.nil?
|
47
|
-
|
44
|
+
raise ArgumentError, "Missing the required parameter 'id' when calling IdentityApi.get_identities"
|
48
45
|
end
|
46
|
+
|
49
47
|
# resource path
|
50
48
|
local_var_path = '/links/{id}/identity'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
51
49
|
|
52
50
|
# query parameters
|
53
51
|
query_params = opts[:query_params] || {}
|
54
|
-
|
52
|
+
unless opts[:account_ids].nil?
|
53
|
+
query_params[:account_ids] =
|
54
|
+
@api_client.build_collection_param(opts[:account_ids], :multi)
|
55
|
+
end
|
55
56
|
|
56
57
|
# header parameters
|
57
58
|
header_params = opts[:header_params] || {}
|
58
59
|
# HTTP header 'Accept' (if needed)
|
59
60
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
60
|
-
header_params[:'moneykit-version'] = opts[:
|
61
|
+
header_params[:'moneykit-version'] = opts[:moneykit_version] unless opts[:moneykit_version].nil?
|
61
62
|
|
62
63
|
# form parameters
|
63
64
|
form_params = opts[:form_params] || {}
|
@@ -69,23 +70,23 @@ module MoneyKit
|
|
69
70
|
return_type = opts[:debug_return_type] || 'IdentityResponse'
|
70
71
|
|
71
72
|
# auth_names
|
72
|
-
auth_names = opts[:debug_auth_names] || ['
|
73
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
|
73
74
|
|
74
75
|
new_options = opts.merge(
|
75
|
-
:
|
76
|
-
:
|
77
|
-
:
|
78
|
-
:
|
79
|
-
:
|
80
|
-
:
|
81
|
-
:
|
76
|
+
operation: :"IdentityApi.get_identities",
|
77
|
+
header_params: header_params,
|
78
|
+
query_params: query_params,
|
79
|
+
form_params: form_params,
|
80
|
+
body: post_body,
|
81
|
+
auth_names: auth_names,
|
82
|
+
return_type: return_type
|
82
83
|
)
|
83
84
|
|
84
85
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
85
86
|
if @api_client.config.debugging
|
86
87
|
@api_client.config.logger.debug "API called: IdentityApi#get_identities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
88
|
end
|
88
|
-
|
89
|
+
[data, status_code, headers]
|
89
90
|
end
|
90
91
|
end
|
91
92
|
end
|