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,744 +1,745 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=end
|
1
|
+
# #Plaid Compatibility Layer
|
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: 5.1.1
|
9
|
+
#
|
12
10
|
|
13
11
|
require 'cgi'
|
14
12
|
|
15
|
-
module MoneyKit
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
@api_client.config.
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
@api_client.config.logger.debug 'Calling API: PlaidApi.identity_get ...'
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
@api_client.config.
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
@api_client.config.
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
@api_client.config.
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
@api_client.config.logger.debug 'Calling API: PlaidApi.item_get ...'
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
@api_client.config.
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
:
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
13
|
+
module MoneyKit
|
14
|
+
module PlaidCompatible
|
15
|
+
class PlaidApi
|
16
|
+
attr_accessor :api_client
|
17
|
+
|
18
|
+
def initialize(api_client = ApiClient.default)
|
19
|
+
@api_client = api_client
|
20
|
+
end
|
21
|
+
|
22
|
+
# /accounts/get
|
23
|
+
# @param accounts_get_request [AccountsGetRequest]
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :plaid_version
|
26
|
+
# @return [AccountsGetResponse]
|
27
|
+
def accounts_get(accounts_get_request, opts = {})
|
28
|
+
data, _status_code, _headers = accounts_get_with_http_info(accounts_get_request, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# /accounts/get
|
33
|
+
# @param accounts_get_request [AccountsGetRequest]
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @option opts [String] :plaid_version
|
36
|
+
# @return [Array<(AccountsGetResponse, Integer, Hash)>] AccountsGetResponse data, response status code and response headers
|
37
|
+
def accounts_get_with_http_info(accounts_get_request, opts = {})
|
38
|
+
@api_client.config.logger.debug 'Calling API: PlaidApi.accounts_get ...' if @api_client.config.debugging
|
39
|
+
# verify the required parameter 'accounts_get_request' is set
|
40
|
+
if @api_client.config.client_side_validation && accounts_get_request.nil?
|
41
|
+
raise ArgumentError,
|
42
|
+
"Missing the required parameter 'accounts_get_request' when calling PlaidApi.accounts_get"
|
43
|
+
end
|
44
|
+
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/accounts/get'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
|
+
header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = opts[:form_params] || {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(accounts_get_request)
|
64
|
+
|
65
|
+
# return_type
|
66
|
+
return_type = opts[:debug_return_type] || 'AccountsGetResponse'
|
67
|
+
|
68
|
+
# auth_names
|
69
|
+
auth_names = opts[:debug_auth_names] || %w[clientId secret]
|
70
|
+
|
71
|
+
new_options = opts.merge(
|
72
|
+
operation: :"PlaidApi.accounts_get",
|
73
|
+
header_params: header_params,
|
74
|
+
query_params: query_params,
|
75
|
+
form_params: form_params,
|
76
|
+
body: post_body,
|
77
|
+
auth_names: auth_names,
|
78
|
+
return_type: return_type
|
79
|
+
)
|
80
|
+
|
81
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
82
|
+
if @api_client.config.debugging
|
83
|
+
@api_client.config.logger.debug "API called: PlaidApi#accounts_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
84
|
+
end
|
85
|
+
[data, status_code, headers]
|
86
|
+
end
|
87
|
+
|
88
|
+
# /auth/get
|
89
|
+
# @param auth_get_request [AuthGetRequest]
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @option opts [String] :plaid_version
|
92
|
+
# @return [AuthGetResponse]
|
93
|
+
def auth_get(auth_get_request, opts = {})
|
94
|
+
data, _status_code, _headers = auth_get_with_http_info(auth_get_request, opts)
|
95
|
+
data
|
96
|
+
end
|
97
|
+
|
98
|
+
# /auth/get
|
99
|
+
# @param auth_get_request [AuthGetRequest]
|
100
|
+
# @param [Hash] opts the optional parameters
|
101
|
+
# @option opts [String] :plaid_version
|
102
|
+
# @return [Array<(AuthGetResponse, Integer, Hash)>] AuthGetResponse data, response status code and response headers
|
103
|
+
def auth_get_with_http_info(auth_get_request, opts = {})
|
104
|
+
@api_client.config.logger.debug 'Calling API: PlaidApi.auth_get ...' if @api_client.config.debugging
|
105
|
+
# verify the required parameter 'auth_get_request' is set
|
106
|
+
if @api_client.config.client_side_validation && auth_get_request.nil?
|
107
|
+
raise ArgumentError, "Missing the required parameter 'auth_get_request' when calling PlaidApi.auth_get"
|
108
|
+
end
|
109
|
+
|
110
|
+
# resource path
|
111
|
+
local_var_path = '/auth/get'
|
112
|
+
|
113
|
+
# query parameters
|
114
|
+
query_params = opts[:query_params] || {}
|
115
|
+
|
116
|
+
# header parameters
|
117
|
+
header_params = opts[:header_params] || {}
|
118
|
+
# HTTP header 'Accept' (if needed)
|
119
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
120
|
+
# HTTP header 'Content-Type'
|
121
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
122
|
+
header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?
|
123
|
+
|
124
|
+
# form parameters
|
125
|
+
form_params = opts[:form_params] || {}
|
126
|
+
|
127
|
+
# http body (model)
|
128
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(auth_get_request)
|
129
|
+
|
130
|
+
# return_type
|
131
|
+
return_type = opts[:debug_return_type] || 'AuthGetResponse'
|
132
|
+
|
133
|
+
# auth_names
|
134
|
+
auth_names = opts[:debug_auth_names] || %w[clientId secret]
|
135
|
+
|
136
|
+
new_options = opts.merge(
|
137
|
+
operation: :"PlaidApi.auth_get",
|
138
|
+
header_params: header_params,
|
139
|
+
query_params: query_params,
|
140
|
+
form_params: form_params,
|
141
|
+
body: post_body,
|
142
|
+
auth_names: auth_names,
|
143
|
+
return_type: return_type
|
144
|
+
)
|
145
|
+
|
146
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
147
|
+
if @api_client.config.debugging
|
148
|
+
@api_client.config.logger.debug "API called: PlaidApi#auth_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
149
|
+
end
|
150
|
+
[data, status_code, headers]
|
151
|
+
end
|
152
|
+
|
153
|
+
# /identity/get
|
154
|
+
# @param identity_get_request [IdentityGetRequest]
|
155
|
+
# @param [Hash] opts the optional parameters
|
156
|
+
# @option opts [String] :plaid_version
|
157
|
+
# @return [IdentityGetResponse]
|
158
|
+
def identity_get(identity_get_request, opts = {})
|
159
|
+
data, _status_code, _headers = identity_get_with_http_info(identity_get_request, opts)
|
160
|
+
data
|
161
|
+
end
|
162
|
+
|
163
|
+
# /identity/get
|
164
|
+
# @param identity_get_request [IdentityGetRequest]
|
165
|
+
# @param [Hash] opts the optional parameters
|
166
|
+
# @option opts [String] :plaid_version
|
167
|
+
# @return [Array<(IdentityGetResponse, Integer, Hash)>] IdentityGetResponse data, response status code and response headers
|
168
|
+
def identity_get_with_http_info(identity_get_request, opts = {})
|
169
|
+
@api_client.config.logger.debug 'Calling API: PlaidApi.identity_get ...' if @api_client.config.debugging
|
170
|
+
# verify the required parameter 'identity_get_request' is set
|
171
|
+
if @api_client.config.client_side_validation && identity_get_request.nil?
|
172
|
+
raise ArgumentError,
|
173
|
+
"Missing the required parameter 'identity_get_request' when calling PlaidApi.identity_get"
|
174
|
+
end
|
175
|
+
|
176
|
+
# resource path
|
177
|
+
local_var_path = '/identity/get'
|
178
|
+
|
179
|
+
# query parameters
|
180
|
+
query_params = opts[:query_params] || {}
|
181
|
+
|
182
|
+
# header parameters
|
183
|
+
header_params = opts[:header_params] || {}
|
184
|
+
# HTTP header 'Accept' (if needed)
|
185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
186
|
+
# HTTP header 'Content-Type'
|
187
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
188
|
+
header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?
|
189
|
+
|
190
|
+
# form parameters
|
191
|
+
form_params = opts[:form_params] || {}
|
192
|
+
|
193
|
+
# http body (model)
|
194
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(identity_get_request)
|
195
|
+
|
196
|
+
# return_type
|
197
|
+
return_type = opts[:debug_return_type] || 'IdentityGetResponse'
|
198
|
+
|
199
|
+
# auth_names
|
200
|
+
auth_names = opts[:debug_auth_names] || %w[clientId secret]
|
201
|
+
|
202
|
+
new_options = opts.merge(
|
203
|
+
operation: :"PlaidApi.identity_get",
|
204
|
+
header_params: header_params,
|
205
|
+
query_params: query_params,
|
206
|
+
form_params: form_params,
|
207
|
+
body: post_body,
|
208
|
+
auth_names: auth_names,
|
209
|
+
return_type: return_type
|
210
|
+
)
|
211
|
+
|
212
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
213
|
+
if @api_client.config.debugging
|
214
|
+
@api_client.config.logger.debug "API called: PlaidApi#identity_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
215
|
+
end
|
216
|
+
[data, status_code, headers]
|
217
|
+
end
|
218
|
+
|
219
|
+
# /institutions/get_by_id
|
220
|
+
# @param [Hash] opts the optional parameters
|
221
|
+
# @option opts [String] :plaid_version
|
222
|
+
# @option opts [InstitutionsGetByIdRequest] :institutions_get_by_id_request
|
223
|
+
# @return [InstitutionsGetByIdResponse]
|
224
|
+
def institutions_get_by_id(opts = {})
|
225
|
+
data, _status_code, _headers = institutions_get_by_id_with_http_info(opts)
|
226
|
+
data
|
227
|
+
end
|
228
|
+
|
229
|
+
# /institutions/get_by_id
|
230
|
+
# @param [Hash] opts the optional parameters
|
231
|
+
# @option opts [String] :plaid_version
|
232
|
+
# @option opts [InstitutionsGetByIdRequest] :institutions_get_by_id_request
|
233
|
+
# @return [Array<(InstitutionsGetByIdResponse, Integer, Hash)>] InstitutionsGetByIdResponse data, response status code and response headers
|
234
|
+
def institutions_get_by_id_with_http_info(opts = {})
|
235
|
+
if @api_client.config.debugging
|
236
|
+
@api_client.config.logger.debug 'Calling API: PlaidApi.institutions_get_by_id ...'
|
237
|
+
end
|
238
|
+
# resource path
|
239
|
+
local_var_path = '/institutions/get_by_id'
|
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
|
+
# HTTP header 'Content-Type'
|
249
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
250
|
+
header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?
|
251
|
+
|
252
|
+
# form parameters
|
253
|
+
form_params = opts[:form_params] || {}
|
254
|
+
|
255
|
+
# http body (model)
|
256
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:institutions_get_by_id_request])
|
257
|
+
|
258
|
+
# return_type
|
259
|
+
return_type = opts[:debug_return_type] || 'InstitutionsGetByIdResponse'
|
260
|
+
|
261
|
+
# auth_names
|
262
|
+
auth_names = opts[:debug_auth_names] || %w[clientId secret]
|
263
|
+
|
264
|
+
new_options = opts.merge(
|
265
|
+
operation: :"PlaidApi.institutions_get_by_id",
|
266
|
+
header_params: header_params,
|
267
|
+
query_params: query_params,
|
268
|
+
form_params: form_params,
|
269
|
+
body: post_body,
|
270
|
+
auth_names: auth_names,
|
271
|
+
return_type: return_type
|
272
|
+
)
|
273
|
+
|
274
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
275
|
+
if @api_client.config.debugging
|
276
|
+
@api_client.config.logger.debug "API called: PlaidApi#institutions_get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
277
|
+
end
|
278
|
+
[data, status_code, headers]
|
279
|
+
end
|
280
|
+
|
281
|
+
# /item/get
|
282
|
+
# @param item_get_request [ItemGetRequest]
|
283
|
+
# @param [Hash] opts the optional parameters
|
284
|
+
# @option opts [String] :plaid_version
|
285
|
+
# @return [ItemGetResponse]
|
286
|
+
def item_get(item_get_request, opts = {})
|
287
|
+
data, _status_code, _headers = item_get_with_http_info(item_get_request, opts)
|
288
|
+
data
|
289
|
+
end
|
290
|
+
|
291
|
+
# /item/get
|
292
|
+
# @param item_get_request [ItemGetRequest]
|
293
|
+
# @param [Hash] opts the optional parameters
|
294
|
+
# @option opts [String] :plaid_version
|
295
|
+
# @return [Array<(ItemGetResponse, Integer, Hash)>] ItemGetResponse data, response status code and response headers
|
296
|
+
def item_get_with_http_info(item_get_request, opts = {})
|
297
|
+
@api_client.config.logger.debug 'Calling API: PlaidApi.item_get ...' if @api_client.config.debugging
|
298
|
+
# verify the required parameter 'item_get_request' is set
|
299
|
+
if @api_client.config.client_side_validation && item_get_request.nil?
|
300
|
+
raise ArgumentError, "Missing the required parameter 'item_get_request' when calling PlaidApi.item_get"
|
301
|
+
end
|
302
|
+
|
303
|
+
# resource path
|
304
|
+
local_var_path = '/item/get'
|
305
|
+
|
306
|
+
# query parameters
|
307
|
+
query_params = opts[:query_params] || {}
|
308
|
+
|
309
|
+
# header parameters
|
310
|
+
header_params = opts[:header_params] || {}
|
311
|
+
# HTTP header 'Accept' (if needed)
|
312
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
313
|
+
# HTTP header 'Content-Type'
|
314
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
315
|
+
header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?
|
316
|
+
|
317
|
+
# form parameters
|
318
|
+
form_params = opts[:form_params] || {}
|
319
|
+
|
320
|
+
# http body (model)
|
321
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(item_get_request)
|
322
|
+
|
323
|
+
# return_type
|
324
|
+
return_type = opts[:debug_return_type] || 'ItemGetResponse'
|
325
|
+
|
326
|
+
# auth_names
|
327
|
+
auth_names = opts[:debug_auth_names] || %w[clientId secret]
|
328
|
+
|
329
|
+
new_options = opts.merge(
|
330
|
+
operation: :"PlaidApi.item_get",
|
331
|
+
header_params: header_params,
|
332
|
+
query_params: query_params,
|
333
|
+
form_params: form_params,
|
334
|
+
body: post_body,
|
335
|
+
auth_names: auth_names,
|
336
|
+
return_type: return_type
|
337
|
+
)
|
338
|
+
|
339
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
340
|
+
if @api_client.config.debugging
|
341
|
+
@api_client.config.logger.debug "API called: PlaidApi#item_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
342
|
+
end
|
343
|
+
[data, status_code, headers]
|
344
|
+
end
|
345
|
+
|
346
|
+
# /item/public_token/exchange
|
347
|
+
# @param item_public_token_exchange_request [ItemPublicTokenExchangeRequest]
|
348
|
+
# @param [Hash] opts the optional parameters
|
349
|
+
# @option opts [String] :plaid_version
|
350
|
+
# @return [ItemPublicTokenExchangeResponse]
|
351
|
+
def item_public_token_exchange(item_public_token_exchange_request, opts = {})
|
352
|
+
data, _status_code, _headers = item_public_token_exchange_with_http_info(item_public_token_exchange_request,
|
353
|
+
opts)
|
354
|
+
data
|
355
|
+
end
|
356
|
+
|
357
|
+
# /item/public_token/exchange
|
358
|
+
# @param item_public_token_exchange_request [ItemPublicTokenExchangeRequest]
|
359
|
+
# @param [Hash] opts the optional parameters
|
360
|
+
# @option opts [String] :plaid_version
|
361
|
+
# @return [Array<(ItemPublicTokenExchangeResponse, Integer, Hash)>] ItemPublicTokenExchangeResponse data, response status code and response headers
|
362
|
+
def item_public_token_exchange_with_http_info(item_public_token_exchange_request, opts = {})
|
363
|
+
if @api_client.config.debugging
|
364
|
+
@api_client.config.logger.debug 'Calling API: PlaidApi.item_public_token_exchange ...'
|
365
|
+
end
|
366
|
+
# verify the required parameter 'item_public_token_exchange_request' is set
|
367
|
+
if @api_client.config.client_side_validation && item_public_token_exchange_request.nil?
|
368
|
+
raise ArgumentError,
|
369
|
+
"Missing the required parameter 'item_public_token_exchange_request' when calling PlaidApi.item_public_token_exchange"
|
370
|
+
end
|
371
|
+
|
372
|
+
# resource path
|
373
|
+
local_var_path = '/item/public_token/exchange'
|
374
|
+
|
375
|
+
# query parameters
|
376
|
+
query_params = opts[:query_params] || {}
|
377
|
+
|
378
|
+
# header parameters
|
379
|
+
header_params = opts[:header_params] || {}
|
380
|
+
# HTTP header 'Accept' (if needed)
|
381
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
382
|
+
# HTTP header 'Content-Type'
|
383
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
384
|
+
header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?
|
385
|
+
|
386
|
+
# form parameters
|
387
|
+
form_params = opts[:form_params] || {}
|
388
|
+
|
389
|
+
# http body (model)
|
390
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(item_public_token_exchange_request)
|
391
|
+
|
392
|
+
# return_type
|
393
|
+
return_type = opts[:debug_return_type] || 'ItemPublicTokenExchangeResponse'
|
394
|
+
|
395
|
+
# auth_names
|
396
|
+
auth_names = opts[:debug_auth_names] || %w[clientId secret]
|
397
|
+
|
398
|
+
new_options = opts.merge(
|
399
|
+
operation: :"PlaidApi.item_public_token_exchange",
|
400
|
+
header_params: header_params,
|
401
|
+
query_params: query_params,
|
402
|
+
form_params: form_params,
|
403
|
+
body: post_body,
|
404
|
+
auth_names: auth_names,
|
405
|
+
return_type: return_type
|
406
|
+
)
|
407
|
+
|
408
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
409
|
+
if @api_client.config.debugging
|
410
|
+
@api_client.config.logger.debug "API called: PlaidApi#item_public_token_exchange\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
411
|
+
end
|
412
|
+
[data, status_code, headers]
|
413
|
+
end
|
414
|
+
|
415
|
+
# /item/remove
|
416
|
+
# @param item_remove_request [ItemRemoveRequest]
|
417
|
+
# @param [Hash] opts the optional parameters
|
418
|
+
# @option opts [String] :plaid_version
|
419
|
+
# @return [ItemRemoveResponse]
|
420
|
+
def item_remove(item_remove_request, opts = {})
|
421
|
+
data, _status_code, _headers = item_remove_with_http_info(item_remove_request, opts)
|
422
|
+
data
|
423
|
+
end
|
424
|
+
|
425
|
+
# /item/remove
|
426
|
+
# @param item_remove_request [ItemRemoveRequest]
|
427
|
+
# @param [Hash] opts the optional parameters
|
428
|
+
# @option opts [String] :plaid_version
|
429
|
+
# @return [Array<(ItemRemoveResponse, Integer, Hash)>] ItemRemoveResponse data, response status code and response headers
|
430
|
+
def item_remove_with_http_info(item_remove_request, opts = {})
|
431
|
+
@api_client.config.logger.debug 'Calling API: PlaidApi.item_remove ...' if @api_client.config.debugging
|
432
|
+
# verify the required parameter 'item_remove_request' is set
|
433
|
+
if @api_client.config.client_side_validation && item_remove_request.nil?
|
434
|
+
raise ArgumentError, "Missing the required parameter 'item_remove_request' when calling PlaidApi.item_remove"
|
435
|
+
end
|
436
|
+
|
437
|
+
# resource path
|
438
|
+
local_var_path = '/item/remove'
|
439
|
+
|
440
|
+
# query parameters
|
441
|
+
query_params = opts[:query_params] || {}
|
442
|
+
|
443
|
+
# header parameters
|
444
|
+
header_params = opts[:header_params] || {}
|
445
|
+
# HTTP header 'Accept' (if needed)
|
446
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
447
|
+
# HTTP header 'Content-Type'
|
448
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
449
|
+
header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?
|
450
|
+
|
451
|
+
# form parameters
|
452
|
+
form_params = opts[:form_params] || {}
|
453
|
+
|
454
|
+
# http body (model)
|
455
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(item_remove_request)
|
456
|
+
|
457
|
+
# return_type
|
458
|
+
return_type = opts[:debug_return_type] || 'ItemRemoveResponse'
|
459
|
+
|
460
|
+
# auth_names
|
461
|
+
auth_names = opts[:debug_auth_names] || %w[clientId secret]
|
462
|
+
|
463
|
+
new_options = opts.merge(
|
464
|
+
operation: :"PlaidApi.item_remove",
|
465
|
+
header_params: header_params,
|
466
|
+
query_params: query_params,
|
467
|
+
form_params: form_params,
|
468
|
+
body: post_body,
|
469
|
+
auth_names: auth_names,
|
470
|
+
return_type: return_type
|
471
|
+
)
|
472
|
+
|
473
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
474
|
+
if @api_client.config.debugging
|
475
|
+
@api_client.config.logger.debug "API called: PlaidApi#item_remove\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
476
|
+
end
|
477
|
+
[data, status_code, headers]
|
478
|
+
end
|
479
|
+
|
480
|
+
# /link/token/create
|
481
|
+
# @param link_token_create_request [LinkTokenCreateRequest]
|
482
|
+
# @param [Hash] opts the optional parameters
|
483
|
+
# @option opts [String] :plaid_version
|
484
|
+
# @return [LinkTokenCreateResponse]
|
485
|
+
def link_token_create(link_token_create_request, opts = {})
|
486
|
+
data, _status_code, _headers = link_token_create_with_http_info(link_token_create_request, opts)
|
487
|
+
data
|
488
|
+
end
|
489
|
+
|
490
|
+
# /link/token/create
|
491
|
+
# @param link_token_create_request [LinkTokenCreateRequest]
|
492
|
+
# @param [Hash] opts the optional parameters
|
493
|
+
# @option opts [String] :plaid_version
|
494
|
+
# @return [Array<(LinkTokenCreateResponse, Integer, Hash)>] LinkTokenCreateResponse data, response status code and response headers
|
495
|
+
def link_token_create_with_http_info(link_token_create_request, opts = {})
|
496
|
+
@api_client.config.logger.debug 'Calling API: PlaidApi.link_token_create ...' if @api_client.config.debugging
|
497
|
+
# verify the required parameter 'link_token_create_request' is set
|
498
|
+
if @api_client.config.client_side_validation && link_token_create_request.nil?
|
499
|
+
raise ArgumentError,
|
500
|
+
"Missing the required parameter 'link_token_create_request' when calling PlaidApi.link_token_create"
|
501
|
+
end
|
502
|
+
|
503
|
+
# resource path
|
504
|
+
local_var_path = '/link/token/create'
|
505
|
+
|
506
|
+
# query parameters
|
507
|
+
query_params = opts[:query_params] || {}
|
508
|
+
|
509
|
+
# header parameters
|
510
|
+
header_params = opts[:header_params] || {}
|
511
|
+
# HTTP header 'Accept' (if needed)
|
512
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
513
|
+
# HTTP header 'Content-Type'
|
514
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
515
|
+
header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?
|
516
|
+
|
517
|
+
# form parameters
|
518
|
+
form_params = opts[:form_params] || {}
|
519
|
+
|
520
|
+
# http body (model)
|
521
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(link_token_create_request)
|
522
|
+
|
523
|
+
# return_type
|
524
|
+
return_type = opts[:debug_return_type] || 'LinkTokenCreateResponse'
|
525
|
+
|
526
|
+
# auth_names
|
527
|
+
auth_names = opts[:debug_auth_names] || %w[clientId secret]
|
528
|
+
|
529
|
+
new_options = opts.merge(
|
530
|
+
operation: :"PlaidApi.link_token_create",
|
531
|
+
header_params: header_params,
|
532
|
+
query_params: query_params,
|
533
|
+
form_params: form_params,
|
534
|
+
body: post_body,
|
535
|
+
auth_names: auth_names,
|
536
|
+
return_type: return_type
|
537
|
+
)
|
538
|
+
|
539
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
540
|
+
if @api_client.config.debugging
|
541
|
+
@api_client.config.logger.debug "API called: PlaidApi#link_token_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
542
|
+
end
|
543
|
+
[data, status_code, headers]
|
544
|
+
end
|
545
|
+
|
546
|
+
# /transactions/get
|
547
|
+
# @param transactions_get_request [TransactionsGetRequest]
|
548
|
+
# @param [Hash] opts the optional parameters
|
549
|
+
# @option opts [String] :plaid_version
|
550
|
+
# @return [TransactionsGetResponse]
|
551
|
+
def transactions_get(transactions_get_request, opts = {})
|
552
|
+
data, _status_code, _headers = transactions_get_with_http_info(transactions_get_request, opts)
|
553
|
+
data
|
554
|
+
end
|
555
|
+
|
556
|
+
# /transactions/get
|
557
|
+
# @param transactions_get_request [TransactionsGetRequest]
|
558
|
+
# @param [Hash] opts the optional parameters
|
559
|
+
# @option opts [String] :plaid_version
|
560
|
+
# @return [Array<(TransactionsGetResponse, Integer, Hash)>] TransactionsGetResponse data, response status code and response headers
|
561
|
+
def transactions_get_with_http_info(transactions_get_request, opts = {})
|
562
|
+
@api_client.config.logger.debug 'Calling API: PlaidApi.transactions_get ...' if @api_client.config.debugging
|
563
|
+
# verify the required parameter 'transactions_get_request' is set
|
564
|
+
if @api_client.config.client_side_validation && transactions_get_request.nil?
|
565
|
+
raise ArgumentError,
|
566
|
+
"Missing the required parameter 'transactions_get_request' when calling PlaidApi.transactions_get"
|
567
|
+
end
|
568
|
+
|
569
|
+
# resource path
|
570
|
+
local_var_path = '/transactions/get'
|
571
|
+
|
572
|
+
# query parameters
|
573
|
+
query_params = opts[:query_params] || {}
|
574
|
+
|
575
|
+
# header parameters
|
576
|
+
header_params = opts[:header_params] || {}
|
577
|
+
# HTTP header 'Accept' (if needed)
|
578
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
579
|
+
# HTTP header 'Content-Type'
|
580
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
581
|
+
header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?
|
582
|
+
|
583
|
+
# form parameters
|
584
|
+
form_params = opts[:form_params] || {}
|
585
|
+
|
586
|
+
# http body (model)
|
587
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(transactions_get_request)
|
588
|
+
|
589
|
+
# return_type
|
590
|
+
return_type = opts[:debug_return_type] || 'TransactionsGetResponse'
|
591
|
+
|
592
|
+
# auth_names
|
593
|
+
auth_names = opts[:debug_auth_names] || %w[clientId secret]
|
594
|
+
|
595
|
+
new_options = opts.merge(
|
596
|
+
operation: :"PlaidApi.transactions_get",
|
597
|
+
header_params: header_params,
|
598
|
+
query_params: query_params,
|
599
|
+
form_params: form_params,
|
600
|
+
body: post_body,
|
601
|
+
auth_names: auth_names,
|
602
|
+
return_type: return_type
|
603
|
+
)
|
604
|
+
|
605
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
606
|
+
if @api_client.config.debugging
|
607
|
+
@api_client.config.logger.debug "API called: PlaidApi#transactions_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
608
|
+
end
|
609
|
+
[data, status_code, headers]
|
610
|
+
end
|
611
|
+
|
612
|
+
# /transactions/refresh
|
613
|
+
# @param transactions_refresh_request [TransactionsRefreshRequest]
|
614
|
+
# @param [Hash] opts the optional parameters
|
615
|
+
# @option opts [String] :plaid_version
|
616
|
+
# @return [TransactionsRefreshResponse]
|
617
|
+
def transactions_refresh(transactions_refresh_request, opts = {})
|
618
|
+
data, _status_code, _headers = transactions_refresh_with_http_info(transactions_refresh_request, opts)
|
619
|
+
data
|
620
|
+
end
|
621
|
+
|
622
|
+
# /transactions/refresh
|
623
|
+
# @param transactions_refresh_request [TransactionsRefreshRequest]
|
624
|
+
# @param [Hash] opts the optional parameters
|
625
|
+
# @option opts [String] :plaid_version
|
626
|
+
# @return [Array<(TransactionsRefreshResponse, Integer, Hash)>] TransactionsRefreshResponse data, response status code and response headers
|
627
|
+
def transactions_refresh_with_http_info(transactions_refresh_request, opts = {})
|
628
|
+
@api_client.config.logger.debug 'Calling API: PlaidApi.transactions_refresh ...' if @api_client.config.debugging
|
629
|
+
# verify the required parameter 'transactions_refresh_request' is set
|
630
|
+
if @api_client.config.client_side_validation && transactions_refresh_request.nil?
|
631
|
+
raise ArgumentError,
|
632
|
+
"Missing the required parameter 'transactions_refresh_request' when calling PlaidApi.transactions_refresh"
|
633
|
+
end
|
634
|
+
|
635
|
+
# resource path
|
636
|
+
local_var_path = '/transactions/refresh'
|
637
|
+
|
638
|
+
# query parameters
|
639
|
+
query_params = opts[:query_params] || {}
|
640
|
+
|
641
|
+
# header parameters
|
642
|
+
header_params = opts[:header_params] || {}
|
643
|
+
# HTTP header 'Accept' (if needed)
|
644
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
645
|
+
# HTTP header 'Content-Type'
|
646
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
647
|
+
header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?
|
648
|
+
|
649
|
+
# form parameters
|
650
|
+
form_params = opts[:form_params] || {}
|
651
|
+
|
652
|
+
# http body (model)
|
653
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(transactions_refresh_request)
|
654
|
+
|
655
|
+
# return_type
|
656
|
+
return_type = opts[:debug_return_type] || 'TransactionsRefreshResponse'
|
657
|
+
|
658
|
+
# auth_names
|
659
|
+
auth_names = opts[:debug_auth_names] || %w[clientId secret]
|
660
|
+
|
661
|
+
new_options = opts.merge(
|
662
|
+
operation: :"PlaidApi.transactions_refresh",
|
663
|
+
header_params: header_params,
|
664
|
+
query_params: query_params,
|
665
|
+
form_params: form_params,
|
666
|
+
body: post_body,
|
667
|
+
auth_names: auth_names,
|
668
|
+
return_type: return_type
|
669
|
+
)
|
670
|
+
|
671
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
672
|
+
if @api_client.config.debugging
|
673
|
+
@api_client.config.logger.debug "API called: PlaidApi#transactions_refresh\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
674
|
+
end
|
675
|
+
[data, status_code, headers]
|
676
|
+
end
|
677
|
+
|
678
|
+
# /transactions/sync
|
679
|
+
# @param transactions_sync_request [TransactionsSyncRequest]
|
680
|
+
# @param [Hash] opts the optional parameters
|
681
|
+
# @option opts [String] :plaid_version
|
682
|
+
# @return [TransactionsSyncResponse]
|
683
|
+
def transactions_sync(transactions_sync_request, opts = {})
|
684
|
+
data, _status_code, _headers = transactions_sync_with_http_info(transactions_sync_request, opts)
|
685
|
+
data
|
686
|
+
end
|
687
|
+
|
688
|
+
# /transactions/sync
|
689
|
+
# @param transactions_sync_request [TransactionsSyncRequest]
|
690
|
+
# @param [Hash] opts the optional parameters
|
691
|
+
# @option opts [String] :plaid_version
|
692
|
+
# @return [Array<(TransactionsSyncResponse, Integer, Hash)>] TransactionsSyncResponse data, response status code and response headers
|
693
|
+
def transactions_sync_with_http_info(transactions_sync_request, opts = {})
|
694
|
+
@api_client.config.logger.debug 'Calling API: PlaidApi.transactions_sync ...' if @api_client.config.debugging
|
695
|
+
# verify the required parameter 'transactions_sync_request' is set
|
696
|
+
if @api_client.config.client_side_validation && transactions_sync_request.nil?
|
697
|
+
raise ArgumentError,
|
698
|
+
"Missing the required parameter 'transactions_sync_request' when calling PlaidApi.transactions_sync"
|
699
|
+
end
|
700
|
+
|
701
|
+
# resource path
|
702
|
+
local_var_path = '/transactions/sync'
|
703
|
+
|
704
|
+
# query parameters
|
705
|
+
query_params = opts[:query_params] || {}
|
706
|
+
|
707
|
+
# header parameters
|
708
|
+
header_params = opts[:header_params] || {}
|
709
|
+
# HTTP header 'Accept' (if needed)
|
710
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
711
|
+
# HTTP header 'Content-Type'
|
712
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
713
|
+
header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?
|
714
|
+
|
715
|
+
# form parameters
|
716
|
+
form_params = opts[:form_params] || {}
|
717
|
+
|
718
|
+
# http body (model)
|
719
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(transactions_sync_request)
|
720
|
+
|
721
|
+
# return_type
|
722
|
+
return_type = opts[:debug_return_type] || 'TransactionsSyncResponse'
|
723
|
+
|
724
|
+
# auth_names
|
725
|
+
auth_names = opts[:debug_auth_names] || %w[clientId secret]
|
726
|
+
|
727
|
+
new_options = opts.merge(
|
728
|
+
operation: :"PlaidApi.transactions_sync",
|
729
|
+
header_params: header_params,
|
730
|
+
query_params: query_params,
|
731
|
+
form_params: form_params,
|
732
|
+
body: post_body,
|
733
|
+
auth_names: auth_names,
|
734
|
+
return_type: return_type
|
735
|
+
)
|
736
|
+
|
737
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
738
|
+
if @api_client.config.debugging
|
739
|
+
@api_client.config.logger.debug "API called: PlaidApi#transactions_sync\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
740
|
+
end
|
741
|
+
[data, status_code, headers]
|
740
742
|
end
|
741
|
-
return data, status_code, headers
|
742
743
|
end
|
743
744
|
end
|
744
745
|
end
|