mx-platform-ruby 0.4.2 → 0.6.2
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/Gemfile.lock +6 -6
- data/README.md +4 -6
- data/docs/AccountResponse.md +15 -1
- data/docs/ManagedAccountCreateRequest.md +78 -0
- data/docs/ManagedAccountCreateRequestBody.md +18 -0
- data/docs/ManagedAccountUpdateRequest.md +78 -0
- data/docs/ManagedAccountUpdateRequestBody.md +18 -0
- data/docs/ManagedMemberCreateRequest.md +24 -0
- data/docs/ManagedMemberCreateRequestBody.md +18 -0
- data/docs/ManagedMemberUpdateRequest.md +22 -0
- data/docs/ManagedMemberUpdateRequestBody.md +18 -0
- data/docs/ManagedTransactionCreateRequest.md +56 -0
- data/docs/ManagedTransactionCreateRequestBody.md +18 -0
- data/docs/ManagedTransactionUpdateRequest.md +56 -0
- data/docs/ManagedTransactionUpdateRequestBody.md +18 -0
- data/docs/MemberResponse.md +5 -1
- data/docs/MerchantLocationResponse.md +40 -0
- data/docs/MerchantLocationResponseBody.md +18 -0
- data/docs/MxPlatformApi.md +1415 -117
- data/docs/TransactionResponse.md +11 -1
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +1474 -124
- data/lib/mx-platform-ruby/api_client.rb +7 -9
- data/lib/mx-platform-ruby/api_error.rb +1 -1
- data/lib/mx-platform-ruby/configuration.rb +35 -2
- data/lib/mx-platform-ruby/models/account_number_response.rb +5 -1
- data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_owner_response.rb +9 -1
- data/lib/mx-platform-ruby/models/account_owners_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_response.rb +112 -5
- data/lib/mx-platform-ruby/models/account_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/account_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/accounts_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/categories_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/category_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/category_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/category_response.rb +7 -1
- data/lib/mx-platform-ruby/models/category_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/category_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/category_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/challenge_response.rb +5 -1
- data/lib/mx-platform-ruby/models/challenges_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_request.rb +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_response.rb +2 -1
- data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/credential_request.rb +2 -1
- data/lib/mx-platform-ruby/models/credential_response.rb +4 -1
- data/lib/mx-platform-ruby/models/credentials_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +16 -1
- data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +1 -1
- data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/holding_response.rb +15 -1
- data/lib/mx-platform-ruby/models/holding_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/holdings_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/image_option_response.rb +4 -1
- data/lib/mx-platform-ruby/models/institution_response.rb +11 -1
- data/lib/mx-platform-ruby/models/institution_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/institutions_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_account_create_request.rb +503 -0
- data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/managed_account_update_request.rb +488 -0
- data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/managed_member_create_request.rb +250 -0
- data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/managed_member_update_request.rb +236 -0
- data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +414 -0
- data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +389 -0
- data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/member_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/member_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_response.rb +35 -5
- data/lib/mx-platform-ruby/models/member_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_resume_request.rb +1 -1
- data/lib/mx-platform-ruby/models/member_resume_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_status_response.rb +8 -1
- data/lib/mx-platform-ruby/models/member_status_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/member_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/members_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/merchant_location_response.rb +327 -0
- data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +218 -0
- data/lib/mx-platform-ruby/models/merchant_response.rb +6 -1
- data/lib/mx-platform-ruby/models/merchant_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/merchants_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/o_auth_window_response.rb +2 -1
- data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/option_response.rb +3 -1
- data/lib/mx-platform-ruby/models/pagination_response.rb +1 -1
- data/lib/mx-platform-ruby/models/statement_response.rb +5 -1
- data/lib/mx-platform-ruby/models/statement_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/statements_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_response.rb +2 -1
- data/lib/mx-platform-ruby/models/tag_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_response.rb +2 -1
- data/lib/mx-platform-ruby/models/tagging_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/taggings_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tags_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_response.rb +85 -5
- data/lib/mx-platform-ruby/models/transaction_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_response.rb +5 -1
- data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +3 -1
- data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transactions_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/user_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/user_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/user_response.rb +5 -1
- data/lib/mx-platform-ruby/models/user_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/user_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/user_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/users_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/widget_request.rb +1 -1
- data/lib/mx-platform-ruby/models/widget_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/widget_response.rb +4 -1
- data/lib/mx-platform-ruby/models/widget_response_body.rb +1 -1
- data/lib/mx-platform-ruby/version.rb +2 -2
- data/lib/mx-platform-ruby.rb +15 -1
- data/mx-platform-ruby.gemspec +1 -1
- data/openapi/config.yml +1 -1
- data/openapi/templates/README.mustache +4 -6
- data/spec/api/mx_platform_api_spec.rb +246 -1
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_number_response_spec.rb +1 -1
- data/spec/models/account_numbers_response_body_spec.rb +1 -1
- data/spec/models/account_owner_response_spec.rb +1 -1
- data/spec/models/account_owners_response_body_spec.rb +1 -1
- data/spec/models/account_response_body_spec.rb +1 -1
- data/spec/models/account_response_spec.rb +43 -1
- data/spec/models/account_update_request_body_spec.rb +1 -1
- data/spec/models/account_update_request_spec.rb +1 -1
- data/spec/models/accounts_response_body_spec.rb +1 -1
- data/spec/models/categories_response_body_spec.rb +1 -1
- data/spec/models/category_create_request_body_spec.rb +1 -1
- data/spec/models/category_create_request_spec.rb +1 -1
- data/spec/models/category_response_body_spec.rb +1 -1
- data/spec/models/category_response_spec.rb +1 -1
- data/spec/models/category_update_request_body_spec.rb +1 -1
- data/spec/models/category_update_request_spec.rb +1 -1
- data/spec/models/challenge_response_spec.rb +1 -1
- data/spec/models/challenges_response_body_spec.rb +1 -1
- data/spec/models/connect_widget_request_body_spec.rb +1 -1
- data/spec/models/connect_widget_request_spec.rb +1 -1
- data/spec/models/connect_widget_response_body_spec.rb +1 -1
- data/spec/models/connect_widget_response_spec.rb +1 -1
- data/spec/models/credential_request_spec.rb +1 -1
- data/spec/models/credential_response_spec.rb +1 -1
- data/spec/models/credentials_response_body_spec.rb +1 -1
- data/spec/models/enhance_transaction_response_spec.rb +1 -1
- data/spec/models/enhance_transactions_request_body_spec.rb +1 -1
- data/spec/models/enhance_transactions_request_spec.rb +1 -1
- data/spec/models/enhance_transactions_response_body_spec.rb +1 -1
- data/spec/models/holding_response_body_spec.rb +1 -1
- data/spec/models/holding_response_spec.rb +1 -1
- data/spec/models/holdings_response_body_spec.rb +1 -1
- data/spec/models/image_option_response_spec.rb +1 -1
- data/spec/models/institution_response_body_spec.rb +1 -1
- data/spec/models/institution_response_spec.rb +1 -1
- data/spec/models/institutions_response_body_spec.rb +1 -1
- data/spec/models/managed_account_create_request_body_spec.rb +34 -0
- data/spec/models/managed_account_create_request_spec.rb +214 -0
- data/spec/models/managed_account_update_request_body_spec.rb +34 -0
- data/spec/models/managed_account_update_request_spec.rb +214 -0
- data/spec/models/managed_member_create_request_body_spec.rb +34 -0
- data/spec/models/managed_member_create_request_spec.rb +52 -0
- data/spec/models/managed_member_update_request_body_spec.rb +34 -0
- data/spec/models/managed_member_update_request_spec.rb +46 -0
- data/spec/models/managed_transaction_create_request_body_spec.rb +34 -0
- data/spec/models/managed_transaction_create_request_spec.rb +148 -0
- data/spec/models/managed_transaction_update_request_body_spec.rb +34 -0
- data/spec/models/managed_transaction_update_request_spec.rb +148 -0
- data/spec/models/member_create_request_body_spec.rb +1 -1
- data/spec/models/member_create_request_spec.rb +1 -1
- data/spec/models/member_response_body_spec.rb +1 -1
- data/spec/models/member_response_spec.rb +13 -1
- data/spec/models/member_resume_request_body_spec.rb +1 -1
- data/spec/models/member_resume_request_spec.rb +1 -1
- data/spec/models/member_status_response_body_spec.rb +1 -1
- data/spec/models/member_status_response_spec.rb +1 -1
- data/spec/models/member_update_request_body_spec.rb +1 -1
- data/spec/models/member_update_request_spec.rb +1 -1
- data/spec/models/members_response_body_spec.rb +1 -1
- data/spec/models/merchant_location_response_body_spec.rb +34 -0
- data/spec/models/merchant_location_response_spec.rb +100 -0
- data/spec/models/merchant_response_body_spec.rb +1 -1
- data/spec/models/merchant_response_spec.rb +1 -1
- data/spec/models/merchants_response_body_spec.rb +1 -1
- data/spec/models/o_auth_window_response_body_spec.rb +1 -1
- data/spec/models/o_auth_window_response_spec.rb +1 -1
- data/spec/models/option_response_spec.rb +1 -1
- data/spec/models/pagination_response_spec.rb +1 -1
- data/spec/models/statement_response_body_spec.rb +1 -1
- data/spec/models/statement_response_spec.rb +1 -1
- data/spec/models/statements_response_body_spec.rb +1 -1
- data/spec/models/tag_create_request_body_spec.rb +1 -1
- data/spec/models/tag_create_request_spec.rb +1 -1
- data/spec/models/tag_response_body_spec.rb +1 -1
- data/spec/models/tag_response_spec.rb +1 -1
- data/spec/models/tag_update_request_body_spec.rb +1 -1
- data/spec/models/tag_update_request_spec.rb +1 -1
- data/spec/models/tagging_create_request_body_spec.rb +1 -1
- data/spec/models/tagging_create_request_spec.rb +1 -1
- data/spec/models/tagging_response_body_spec.rb +1 -1
- data/spec/models/tagging_response_spec.rb +1 -1
- data/spec/models/tagging_update_request_body_spec.rb +1 -1
- data/spec/models/tagging_update_request_spec.rb +1 -1
- data/spec/models/taggings_response_body_spec.rb +1 -1
- data/spec/models/tags_response_body_spec.rb +1 -1
- data/spec/models/transaction_response_body_spec.rb +1 -1
- data/spec/models/transaction_response_spec.rb +31 -1
- data/spec/models/transaction_rule_create_request_body_spec.rb +1 -1
- data/spec/models/transaction_rule_create_request_spec.rb +1 -1
- data/spec/models/transaction_rule_response_body_spec.rb +1 -1
- data/spec/models/transaction_rule_response_spec.rb +1 -1
- data/spec/models/transaction_rule_update_request_body_spec.rb +1 -1
- data/spec/models/transaction_rule_update_request_spec.rb +1 -1
- data/spec/models/transaction_rules_response_body_spec.rb +1 -1
- data/spec/models/transaction_update_request_body_spec.rb +1 -1
- data/spec/models/transaction_update_request_spec.rb +1 -1
- data/spec/models/transactions_response_body_spec.rb +1 -1
- data/spec/models/user_create_request_body_spec.rb +1 -1
- data/spec/models/user_create_request_spec.rb +1 -1
- data/spec/models/user_response_body_spec.rb +1 -1
- data/spec/models/user_response_spec.rb +1 -1
- data/spec/models/user_update_request_body_spec.rb +1 -1
- data/spec/models/user_update_request_spec.rb +1 -1
- data/spec/models/users_response_body_spec.rb +1 -1
- data/spec/models/widget_request_body_spec.rb +1 -1
- data/spec/models/widget_request_spec.rb +1 -1
- data/spec/models/widget_response_body_spec.rb +1 -1
- data/spec/models/widget_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +134 -78
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 5.
|
|
9
|
+
OpenAPI Generator version: 5.3.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -197,7 +197,10 @@ module MxPlatformRuby
|
|
|
197
197
|
# HTTP header 'Accept' (if needed)
|
|
198
198
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
199
199
|
# HTTP header 'Content-Type'
|
|
200
|
-
|
|
200
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
201
|
+
if !content_type.nil?
|
|
202
|
+
header_params['Content-Type'] = content_type
|
|
203
|
+
end
|
|
201
204
|
|
|
202
205
|
# form parameters
|
|
203
206
|
form_params = opts[:form_params] || {}
|
|
@@ -228,6 +231,240 @@ module MxPlatformRuby
|
|
|
228
231
|
return data, status_code, headers
|
|
229
232
|
end
|
|
230
233
|
|
|
234
|
+
# Create managed account
|
|
235
|
+
# Use this endpoint to create a partner-managed account.
|
|
236
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
237
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
238
|
+
# @param managed_account_create_request_body [ManagedAccountCreateRequestBody] Managed account to be created.
|
|
239
|
+
# @param [Hash] opts the optional parameters
|
|
240
|
+
# @return [AccountResponseBody]
|
|
241
|
+
def create_managed_account(user_guid, member_guid, managed_account_create_request_body, opts = {})
|
|
242
|
+
data, _status_code, _headers = create_managed_account_with_http_info(user_guid, member_guid, managed_account_create_request_body, opts)
|
|
243
|
+
data
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# Create managed account
|
|
247
|
+
# Use this endpoint to create a partner-managed account.
|
|
248
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
249
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
250
|
+
# @param managed_account_create_request_body [ManagedAccountCreateRequestBody] Managed account to be created.
|
|
251
|
+
# @param [Hash] opts the optional parameters
|
|
252
|
+
# @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
|
|
253
|
+
def create_managed_account_with_http_info(user_guid, member_guid, managed_account_create_request_body, opts = {})
|
|
254
|
+
if @api_client.config.debugging
|
|
255
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.create_managed_account ...'
|
|
256
|
+
end
|
|
257
|
+
# verify the required parameter 'user_guid' is set
|
|
258
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
259
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.create_managed_account"
|
|
260
|
+
end
|
|
261
|
+
# verify the required parameter 'member_guid' is set
|
|
262
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
263
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.create_managed_account"
|
|
264
|
+
end
|
|
265
|
+
# verify the required parameter 'managed_account_create_request_body' is set
|
|
266
|
+
if @api_client.config.client_side_validation && managed_account_create_request_body.nil?
|
|
267
|
+
fail ArgumentError, "Missing the required parameter 'managed_account_create_request_body' when calling MxPlatformApi.create_managed_account"
|
|
268
|
+
end
|
|
269
|
+
# resource path
|
|
270
|
+
local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s))
|
|
271
|
+
|
|
272
|
+
# query parameters
|
|
273
|
+
query_params = opts[:query_params] || {}
|
|
274
|
+
|
|
275
|
+
# header parameters
|
|
276
|
+
header_params = opts[:header_params] || {}
|
|
277
|
+
# HTTP header 'Accept' (if needed)
|
|
278
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
279
|
+
# HTTP header 'Content-Type'
|
|
280
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
281
|
+
if !content_type.nil?
|
|
282
|
+
header_params['Content-Type'] = content_type
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# form parameters
|
|
286
|
+
form_params = opts[:form_params] || {}
|
|
287
|
+
|
|
288
|
+
# http body (model)
|
|
289
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_account_create_request_body)
|
|
290
|
+
|
|
291
|
+
# return_type
|
|
292
|
+
return_type = opts[:debug_return_type] || 'AccountResponseBody'
|
|
293
|
+
|
|
294
|
+
# auth_names
|
|
295
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
296
|
+
|
|
297
|
+
new_options = opts.merge(
|
|
298
|
+
:operation => :"MxPlatformApi.create_managed_account",
|
|
299
|
+
:header_params => header_params,
|
|
300
|
+
:query_params => query_params,
|
|
301
|
+
:form_params => form_params,
|
|
302
|
+
:body => post_body,
|
|
303
|
+
:auth_names => auth_names,
|
|
304
|
+
:return_type => return_type
|
|
305
|
+
)
|
|
306
|
+
|
|
307
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
308
|
+
if @api_client.config.debugging
|
|
309
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#create_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
310
|
+
end
|
|
311
|
+
return data, status_code, headers
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
# Create managed member
|
|
315
|
+
# Use this endpoint to create a new partner-managed `member`.
|
|
316
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
317
|
+
# @param managed_member_create_request_body [ManagedMemberCreateRequestBody] Managed member to be created.
|
|
318
|
+
# @param [Hash] opts the optional parameters
|
|
319
|
+
# @return [MemberResponseBody]
|
|
320
|
+
def create_managed_member(user_guid, managed_member_create_request_body, opts = {})
|
|
321
|
+
data, _status_code, _headers = create_managed_member_with_http_info(user_guid, managed_member_create_request_body, opts)
|
|
322
|
+
data
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
# Create managed member
|
|
326
|
+
# Use this endpoint to create a new partner-managed `member`.
|
|
327
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
328
|
+
# @param managed_member_create_request_body [ManagedMemberCreateRequestBody] Managed member to be created.
|
|
329
|
+
# @param [Hash] opts the optional parameters
|
|
330
|
+
# @return [Array<(MemberResponseBody, Integer, Hash)>] MemberResponseBody data, response status code and response headers
|
|
331
|
+
def create_managed_member_with_http_info(user_guid, managed_member_create_request_body, opts = {})
|
|
332
|
+
if @api_client.config.debugging
|
|
333
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.create_managed_member ...'
|
|
334
|
+
end
|
|
335
|
+
# verify the required parameter 'user_guid' is set
|
|
336
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
337
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.create_managed_member"
|
|
338
|
+
end
|
|
339
|
+
# verify the required parameter 'managed_member_create_request_body' is set
|
|
340
|
+
if @api_client.config.client_side_validation && managed_member_create_request_body.nil?
|
|
341
|
+
fail ArgumentError, "Missing the required parameter 'managed_member_create_request_body' when calling MxPlatformApi.create_managed_member"
|
|
342
|
+
end
|
|
343
|
+
# resource path
|
|
344
|
+
local_var_path = '/users/{user_guid}/managed_members'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
345
|
+
|
|
346
|
+
# query parameters
|
|
347
|
+
query_params = opts[:query_params] || {}
|
|
348
|
+
|
|
349
|
+
# header parameters
|
|
350
|
+
header_params = opts[:header_params] || {}
|
|
351
|
+
# HTTP header 'Accept' (if needed)
|
|
352
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
353
|
+
# HTTP header 'Content-Type'
|
|
354
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
355
|
+
if !content_type.nil?
|
|
356
|
+
header_params['Content-Type'] = content_type
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
# form parameters
|
|
360
|
+
form_params = opts[:form_params] || {}
|
|
361
|
+
|
|
362
|
+
# http body (model)
|
|
363
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_member_create_request_body)
|
|
364
|
+
|
|
365
|
+
# return_type
|
|
366
|
+
return_type = opts[:debug_return_type] || 'MemberResponseBody'
|
|
367
|
+
|
|
368
|
+
# auth_names
|
|
369
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
370
|
+
|
|
371
|
+
new_options = opts.merge(
|
|
372
|
+
:operation => :"MxPlatformApi.create_managed_member",
|
|
373
|
+
:header_params => header_params,
|
|
374
|
+
:query_params => query_params,
|
|
375
|
+
:form_params => form_params,
|
|
376
|
+
:body => post_body,
|
|
377
|
+
:auth_names => auth_names,
|
|
378
|
+
:return_type => return_type
|
|
379
|
+
)
|
|
380
|
+
|
|
381
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
382
|
+
if @api_client.config.debugging
|
|
383
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#create_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
384
|
+
end
|
|
385
|
+
return data, status_code, headers
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
# Create managed transaction
|
|
389
|
+
# Use this endpoint to create a new partner-managed `transaction`.
|
|
390
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
391
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
392
|
+
# @param managed_transaction_create_request_body [ManagedTransactionCreateRequestBody] Managed transaction to be created.
|
|
393
|
+
# @param [Hash] opts the optional parameters
|
|
394
|
+
# @return [TransactionResponseBody]
|
|
395
|
+
def create_managed_transaction(user_guid, member_guid, managed_transaction_create_request_body, opts = {})
|
|
396
|
+
data, _status_code, _headers = create_managed_transaction_with_http_info(user_guid, member_guid, managed_transaction_create_request_body, opts)
|
|
397
|
+
data
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
# Create managed transaction
|
|
401
|
+
# Use this endpoint to create a new partner-managed `transaction`.
|
|
402
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
403
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
404
|
+
# @param managed_transaction_create_request_body [ManagedTransactionCreateRequestBody] Managed transaction to be created.
|
|
405
|
+
# @param [Hash] opts the optional parameters
|
|
406
|
+
# @return [Array<(TransactionResponseBody, Integer, Hash)>] TransactionResponseBody data, response status code and response headers
|
|
407
|
+
def create_managed_transaction_with_http_info(user_guid, member_guid, managed_transaction_create_request_body, opts = {})
|
|
408
|
+
if @api_client.config.debugging
|
|
409
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.create_managed_transaction ...'
|
|
410
|
+
end
|
|
411
|
+
# verify the required parameter 'user_guid' is set
|
|
412
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
413
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.create_managed_transaction"
|
|
414
|
+
end
|
|
415
|
+
# verify the required parameter 'member_guid' is set
|
|
416
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
417
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.create_managed_transaction"
|
|
418
|
+
end
|
|
419
|
+
# verify the required parameter 'managed_transaction_create_request_body' is set
|
|
420
|
+
if @api_client.config.client_side_validation && managed_transaction_create_request_body.nil?
|
|
421
|
+
fail ArgumentError, "Missing the required parameter 'managed_transaction_create_request_body' when calling MxPlatformApi.create_managed_transaction"
|
|
422
|
+
end
|
|
423
|
+
# resource path
|
|
424
|
+
local_var_path = '/users/{user_guid}/managed_members/{member_guid}/transactions'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s))
|
|
425
|
+
|
|
426
|
+
# query parameters
|
|
427
|
+
query_params = opts[:query_params] || {}
|
|
428
|
+
|
|
429
|
+
# header parameters
|
|
430
|
+
header_params = opts[:header_params] || {}
|
|
431
|
+
# HTTP header 'Accept' (if needed)
|
|
432
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
433
|
+
# HTTP header 'Content-Type'
|
|
434
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
435
|
+
if !content_type.nil?
|
|
436
|
+
header_params['Content-Type'] = content_type
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
# form parameters
|
|
440
|
+
form_params = opts[:form_params] || {}
|
|
441
|
+
|
|
442
|
+
# http body (model)
|
|
443
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_transaction_create_request_body)
|
|
444
|
+
|
|
445
|
+
# return_type
|
|
446
|
+
return_type = opts[:debug_return_type] || 'TransactionResponseBody'
|
|
447
|
+
|
|
448
|
+
# auth_names
|
|
449
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
450
|
+
|
|
451
|
+
new_options = opts.merge(
|
|
452
|
+
:operation => :"MxPlatformApi.create_managed_transaction",
|
|
453
|
+
:header_params => header_params,
|
|
454
|
+
:query_params => query_params,
|
|
455
|
+
:form_params => form_params,
|
|
456
|
+
:body => post_body,
|
|
457
|
+
:auth_names => auth_names,
|
|
458
|
+
:return_type => return_type
|
|
459
|
+
)
|
|
460
|
+
|
|
461
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
462
|
+
if @api_client.config.debugging
|
|
463
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#create_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
464
|
+
end
|
|
465
|
+
return data, status_code, headers
|
|
466
|
+
end
|
|
467
|
+
|
|
231
468
|
# Create member
|
|
232
469
|
# This endpoint allows you to create a new member. Members are created with the required parameters credentials and institution_code, and the optional parameters id and metadata. When creating a member, youll need to include the correct type of credential required by the financial institution and provided by the user. You can find out which credential type is required with the `/institutions/{institution_code}/credentials` endpoint. If successful, the MX Platform API will respond with the newly-created member object. Once you successfully create a member, MX will immediately validate the provided credentials and attempt to aggregate data for accounts and transactions.
|
|
233
470
|
# @param user_guid [String] The unique id for a `user`.
|
|
@@ -268,7 +505,10 @@ module MxPlatformRuby
|
|
|
268
505
|
# HTTP header 'Accept' (if needed)
|
|
269
506
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
270
507
|
# HTTP header 'Content-Type'
|
|
271
|
-
|
|
508
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
509
|
+
if !content_type.nil?
|
|
510
|
+
header_params['Content-Type'] = content_type
|
|
511
|
+
end
|
|
272
512
|
|
|
273
513
|
# form parameters
|
|
274
514
|
form_params = opts[:form_params] || {}
|
|
@@ -339,7 +579,10 @@ module MxPlatformRuby
|
|
|
339
579
|
# HTTP header 'Accept' (if needed)
|
|
340
580
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
341
581
|
# HTTP header 'Content-Type'
|
|
342
|
-
|
|
582
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
583
|
+
if !content_type.nil?
|
|
584
|
+
header_params['Content-Type'] = content_type
|
|
585
|
+
end
|
|
343
586
|
|
|
344
587
|
# form parameters
|
|
345
588
|
form_params = opts[:form_params] || {}
|
|
@@ -410,7 +653,10 @@ module MxPlatformRuby
|
|
|
410
653
|
# HTTP header 'Accept' (if needed)
|
|
411
654
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
412
655
|
# HTTP header 'Content-Type'
|
|
413
|
-
|
|
656
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
657
|
+
if !content_type.nil?
|
|
658
|
+
header_params['Content-Type'] = content_type
|
|
659
|
+
end
|
|
414
660
|
|
|
415
661
|
# form parameters
|
|
416
662
|
form_params = opts[:form_params] || {}
|
|
@@ -481,7 +727,10 @@ module MxPlatformRuby
|
|
|
481
727
|
# HTTP header 'Accept' (if needed)
|
|
482
728
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
483
729
|
# HTTP header 'Content-Type'
|
|
484
|
-
|
|
730
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
731
|
+
if !content_type.nil?
|
|
732
|
+
header_params['Content-Type'] = content_type
|
|
733
|
+
end
|
|
485
734
|
|
|
486
735
|
# form parameters
|
|
487
736
|
form_params = opts[:form_params] || {}
|
|
@@ -546,7 +795,10 @@ module MxPlatformRuby
|
|
|
546
795
|
# HTTP header 'Accept' (if needed)
|
|
547
796
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
548
797
|
# HTTP header 'Content-Type'
|
|
549
|
-
|
|
798
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
799
|
+
if !content_type.nil?
|
|
800
|
+
header_params['Content-Type'] = content_type
|
|
801
|
+
end
|
|
550
802
|
|
|
551
803
|
# form parameters
|
|
552
804
|
form_params = opts[:form_params] || {}
|
|
@@ -646,37 +898,43 @@ module MxPlatformRuby
|
|
|
646
898
|
return data, status_code, headers
|
|
647
899
|
end
|
|
648
900
|
|
|
649
|
-
# Delete
|
|
650
|
-
#
|
|
901
|
+
# Delete managed account
|
|
902
|
+
# Use this endpoint to delete a partner-managed account according to its unique GUID. If successful, the API will respond with a status of `204 No Content`.
|
|
651
903
|
# @param member_guid [String] The unique id for a `member`.
|
|
652
904
|
# @param user_guid [String] The unique id for a `user`.
|
|
905
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
653
906
|
# @param [Hash] opts the optional parameters
|
|
654
907
|
# @return [nil]
|
|
655
|
-
def
|
|
656
|
-
|
|
908
|
+
def delete_managed_account(member_guid, user_guid, account_guid, opts = {})
|
|
909
|
+
delete_managed_account_with_http_info(member_guid, user_guid, account_guid, opts)
|
|
657
910
|
nil
|
|
658
911
|
end
|
|
659
912
|
|
|
660
|
-
# Delete
|
|
661
|
-
#
|
|
913
|
+
# Delete managed account
|
|
914
|
+
# Use this endpoint to delete a partner-managed account according to its unique GUID. If successful, the API will respond with a status of `204 No Content`.
|
|
662
915
|
# @param member_guid [String] The unique id for a `member`.
|
|
663
916
|
# @param user_guid [String] The unique id for a `user`.
|
|
917
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
664
918
|
# @param [Hash] opts the optional parameters
|
|
665
919
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
666
|
-
def
|
|
920
|
+
def delete_managed_account_with_http_info(member_guid, user_guid, account_guid, opts = {})
|
|
667
921
|
if @api_client.config.debugging
|
|
668
|
-
@api_client.config.logger.debug 'Calling API: MxPlatformApi.
|
|
922
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_managed_account ...'
|
|
669
923
|
end
|
|
670
924
|
# verify the required parameter 'member_guid' is set
|
|
671
925
|
if @api_client.config.client_side_validation && member_guid.nil?
|
|
672
|
-
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.
|
|
926
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.delete_managed_account"
|
|
673
927
|
end
|
|
674
928
|
# verify the required parameter 'user_guid' is set
|
|
675
929
|
if @api_client.config.client_side_validation && user_guid.nil?
|
|
676
|
-
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.
|
|
930
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_managed_account"
|
|
931
|
+
end
|
|
932
|
+
# verify the required parameter 'account_guid' is set
|
|
933
|
+
if @api_client.config.client_side_validation && account_guid.nil?
|
|
934
|
+
fail ArgumentError, "Missing the required parameter 'account_guid' when calling MxPlatformApi.delete_managed_account"
|
|
677
935
|
end
|
|
678
936
|
# resource path
|
|
679
|
-
local_var_path = '/users/{user_guid}/
|
|
937
|
+
local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s))
|
|
680
938
|
|
|
681
939
|
# query parameters
|
|
682
940
|
query_params = opts[:query_params] || {}
|
|
@@ -699,7 +957,7 @@ module MxPlatformRuby
|
|
|
699
957
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
700
958
|
|
|
701
959
|
new_options = opts.merge(
|
|
702
|
-
:operation => :"MxPlatformApi.
|
|
960
|
+
:operation => :"MxPlatformApi.delete_managed_account",
|
|
703
961
|
:header_params => header_params,
|
|
704
962
|
:query_params => query_params,
|
|
705
963
|
:form_params => form_params,
|
|
@@ -710,42 +968,42 @@ module MxPlatformRuby
|
|
|
710
968
|
|
|
711
969
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
712
970
|
if @api_client.config.debugging
|
|
713
|
-
@api_client.config.logger.debug "API called: MxPlatformApi#
|
|
971
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#delete_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
714
972
|
end
|
|
715
973
|
return data, status_code, headers
|
|
716
974
|
end
|
|
717
975
|
|
|
718
|
-
# Delete
|
|
719
|
-
# Use this endpoint to
|
|
720
|
-
# @param
|
|
976
|
+
# Delete managed member
|
|
977
|
+
# Use this endpoint to delete the specified partner-managed `member`. The endpoint will respond with a status of `204 No Content` without a resource.
|
|
978
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
721
979
|
# @param user_guid [String] The unique id for a `user`.
|
|
722
980
|
# @param [Hash] opts the optional parameters
|
|
723
981
|
# @return [nil]
|
|
724
|
-
def
|
|
725
|
-
|
|
982
|
+
def delete_managed_member(member_guid, user_guid, opts = {})
|
|
983
|
+
delete_managed_member_with_http_info(member_guid, user_guid, opts)
|
|
726
984
|
nil
|
|
727
985
|
end
|
|
728
986
|
|
|
729
|
-
# Delete
|
|
730
|
-
# Use this endpoint to
|
|
731
|
-
# @param
|
|
987
|
+
# Delete managed member
|
|
988
|
+
# Use this endpoint to delete the specified partner-managed `member`. The endpoint will respond with a status of `204 No Content` without a resource.
|
|
989
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
732
990
|
# @param user_guid [String] The unique id for a `user`.
|
|
733
991
|
# @param [Hash] opts the optional parameters
|
|
734
992
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
735
|
-
def
|
|
993
|
+
def delete_managed_member_with_http_info(member_guid, user_guid, opts = {})
|
|
736
994
|
if @api_client.config.debugging
|
|
737
|
-
@api_client.config.logger.debug 'Calling API: MxPlatformApi.
|
|
995
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_managed_member ...'
|
|
738
996
|
end
|
|
739
|
-
# verify the required parameter '
|
|
740
|
-
if @api_client.config.client_side_validation &&
|
|
741
|
-
fail ArgumentError, "Missing the required parameter '
|
|
997
|
+
# verify the required parameter 'member_guid' is set
|
|
998
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
999
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.delete_managed_member"
|
|
742
1000
|
end
|
|
743
1001
|
# verify the required parameter 'user_guid' is set
|
|
744
1002
|
if @api_client.config.client_side_validation && user_guid.nil?
|
|
745
|
-
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.
|
|
1003
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_managed_member"
|
|
746
1004
|
end
|
|
747
1005
|
# resource path
|
|
748
|
-
local_var_path = '/users/{user_guid}/
|
|
1006
|
+
local_var_path = '/users/{user_guid}/managed_members/{member_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
749
1007
|
|
|
750
1008
|
# query parameters
|
|
751
1009
|
query_params = opts[:query_params] || {}
|
|
@@ -768,7 +1026,7 @@ module MxPlatformRuby
|
|
|
768
1026
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
769
1027
|
|
|
770
1028
|
new_options = opts.merge(
|
|
771
|
-
:operation => :"MxPlatformApi.
|
|
1029
|
+
:operation => :"MxPlatformApi.delete_managed_member",
|
|
772
1030
|
:header_params => header_params,
|
|
773
1031
|
:query_params => query_params,
|
|
774
1032
|
:form_params => form_params,
|
|
@@ -779,42 +1037,48 @@ module MxPlatformRuby
|
|
|
779
1037
|
|
|
780
1038
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
781
1039
|
if @api_client.config.debugging
|
|
782
|
-
@api_client.config.logger.debug "API called: MxPlatformApi#
|
|
1040
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#delete_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
783
1041
|
end
|
|
784
1042
|
return data, status_code, headers
|
|
785
1043
|
end
|
|
786
1044
|
|
|
787
|
-
# Delete
|
|
788
|
-
# Use this endpoint to delete
|
|
789
|
-
# @param
|
|
1045
|
+
# Delete managed transaction
|
|
1046
|
+
# Use this endpoint to delete the specified partner-managed `transaction`. The endpoint will respond with a status of `204 No Content` without a resource.
|
|
1047
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
790
1048
|
# @param user_guid [String] The unique id for a `user`.
|
|
1049
|
+
# @param transaction_guid [String] The unique id for a `transaction`.
|
|
791
1050
|
# @param [Hash] opts the optional parameters
|
|
792
1051
|
# @return [nil]
|
|
793
|
-
def
|
|
794
|
-
|
|
1052
|
+
def delete_managed_transaction(member_guid, user_guid, transaction_guid, opts = {})
|
|
1053
|
+
delete_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, opts)
|
|
795
1054
|
nil
|
|
796
1055
|
end
|
|
797
1056
|
|
|
798
|
-
# Delete
|
|
799
|
-
# Use this endpoint to delete
|
|
800
|
-
# @param
|
|
1057
|
+
# Delete managed transaction
|
|
1058
|
+
# Use this endpoint to delete the specified partner-managed `transaction`. The endpoint will respond with a status of `204 No Content` without a resource.
|
|
1059
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
801
1060
|
# @param user_guid [String] The unique id for a `user`.
|
|
1061
|
+
# @param transaction_guid [String] The unique id for a `transaction`.
|
|
802
1062
|
# @param [Hash] opts the optional parameters
|
|
803
1063
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
804
|
-
def
|
|
1064
|
+
def delete_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, opts = {})
|
|
805
1065
|
if @api_client.config.debugging
|
|
806
|
-
@api_client.config.logger.debug 'Calling API: MxPlatformApi.
|
|
1066
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_managed_transaction ...'
|
|
807
1067
|
end
|
|
808
|
-
# verify the required parameter '
|
|
809
|
-
if @api_client.config.client_side_validation &&
|
|
810
|
-
fail ArgumentError, "Missing the required parameter '
|
|
1068
|
+
# verify the required parameter 'member_guid' is set
|
|
1069
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
1070
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.delete_managed_transaction"
|
|
811
1071
|
end
|
|
812
1072
|
# verify the required parameter 'user_guid' is set
|
|
813
1073
|
if @api_client.config.client_side_validation && user_guid.nil?
|
|
814
|
-
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.
|
|
1074
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_managed_transaction"
|
|
1075
|
+
end
|
|
1076
|
+
# verify the required parameter 'transaction_guid' is set
|
|
1077
|
+
if @api_client.config.client_side_validation && transaction_guid.nil?
|
|
1078
|
+
fail ArgumentError, "Missing the required parameter 'transaction_guid' when calling MxPlatformApi.delete_managed_transaction"
|
|
815
1079
|
end
|
|
816
1080
|
# resource path
|
|
817
|
-
local_var_path = '/users/{user_guid}/
|
|
1081
|
+
local_var_path = '/users/{user_guid}/managed_members/{member_guid}/transactions/{transaction_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'transaction_guid' + '}', CGI.escape(transaction_guid.to_s))
|
|
818
1082
|
|
|
819
1083
|
# query parameters
|
|
820
1084
|
query_params = opts[:query_params] || {}
|
|
@@ -837,7 +1101,7 @@ module MxPlatformRuby
|
|
|
837
1101
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
838
1102
|
|
|
839
1103
|
new_options = opts.merge(
|
|
840
|
-
:operation => :"MxPlatformApi.
|
|
1104
|
+
:operation => :"MxPlatformApi.delete_managed_transaction",
|
|
841
1105
|
:header_params => header_params,
|
|
842
1106
|
:query_params => query_params,
|
|
843
1107
|
:form_params => form_params,
|
|
@@ -848,25 +1112,232 @@ module MxPlatformRuby
|
|
|
848
1112
|
|
|
849
1113
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
850
1114
|
if @api_client.config.debugging
|
|
851
|
-
@api_client.config.logger.debug "API called: MxPlatformApi#
|
|
1115
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#delete_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
852
1116
|
end
|
|
853
1117
|
return data, status_code, headers
|
|
854
1118
|
end
|
|
855
1119
|
|
|
856
|
-
# Delete
|
|
857
|
-
#
|
|
858
|
-
# @param
|
|
1120
|
+
# Delete member
|
|
1121
|
+
# Accessing this endpoint will permanently delete a member.
|
|
1122
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
859
1123
|
# @param user_guid [String] The unique id for a `user`.
|
|
860
1124
|
# @param [Hash] opts the optional parameters
|
|
861
1125
|
# @return [nil]
|
|
862
|
-
def
|
|
863
|
-
|
|
1126
|
+
def delete_member(member_guid, user_guid, opts = {})
|
|
1127
|
+
delete_member_with_http_info(member_guid, user_guid, opts)
|
|
864
1128
|
nil
|
|
865
1129
|
end
|
|
866
1130
|
|
|
867
|
-
# Delete
|
|
868
|
-
#
|
|
869
|
-
# @param
|
|
1131
|
+
# Delete member
|
|
1132
|
+
# Accessing this endpoint will permanently delete a member.
|
|
1133
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
1134
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
1135
|
+
# @param [Hash] opts the optional parameters
|
|
1136
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1137
|
+
def delete_member_with_http_info(member_guid, user_guid, opts = {})
|
|
1138
|
+
if @api_client.config.debugging
|
|
1139
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_member ...'
|
|
1140
|
+
end
|
|
1141
|
+
# verify the required parameter 'member_guid' is set
|
|
1142
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
1143
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.delete_member"
|
|
1144
|
+
end
|
|
1145
|
+
# verify the required parameter 'user_guid' is set
|
|
1146
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
1147
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_member"
|
|
1148
|
+
end
|
|
1149
|
+
# resource path
|
|
1150
|
+
local_var_path = '/users/{user_guid}/members/{member_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
1151
|
+
|
|
1152
|
+
# query parameters
|
|
1153
|
+
query_params = opts[:query_params] || {}
|
|
1154
|
+
|
|
1155
|
+
# header parameters
|
|
1156
|
+
header_params = opts[:header_params] || {}
|
|
1157
|
+
# HTTP header 'Accept' (if needed)
|
|
1158
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
1159
|
+
|
|
1160
|
+
# form parameters
|
|
1161
|
+
form_params = opts[:form_params] || {}
|
|
1162
|
+
|
|
1163
|
+
# http body (model)
|
|
1164
|
+
post_body = opts[:debug_body]
|
|
1165
|
+
|
|
1166
|
+
# return_type
|
|
1167
|
+
return_type = opts[:debug_return_type]
|
|
1168
|
+
|
|
1169
|
+
# auth_names
|
|
1170
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
1171
|
+
|
|
1172
|
+
new_options = opts.merge(
|
|
1173
|
+
:operation => :"MxPlatformApi.delete_member",
|
|
1174
|
+
:header_params => header_params,
|
|
1175
|
+
:query_params => query_params,
|
|
1176
|
+
:form_params => form_params,
|
|
1177
|
+
:body => post_body,
|
|
1178
|
+
:auth_names => auth_names,
|
|
1179
|
+
:return_type => return_type
|
|
1180
|
+
)
|
|
1181
|
+
|
|
1182
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1183
|
+
if @api_client.config.debugging
|
|
1184
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#delete_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1185
|
+
end
|
|
1186
|
+
return data, status_code, headers
|
|
1187
|
+
end
|
|
1188
|
+
|
|
1189
|
+
# Delete tag
|
|
1190
|
+
# Use this endpoint to permanently delete a specific tag based on its unique GUID. If successful, the API will respond with status of `204 No Content`.
|
|
1191
|
+
# @param tag_guid [String] The unique id for a `tag`.
|
|
1192
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
1193
|
+
# @param [Hash] opts the optional parameters
|
|
1194
|
+
# @return [nil]
|
|
1195
|
+
def delete_tag(tag_guid, user_guid, opts = {})
|
|
1196
|
+
delete_tag_with_http_info(tag_guid, user_guid, opts)
|
|
1197
|
+
nil
|
|
1198
|
+
end
|
|
1199
|
+
|
|
1200
|
+
# Delete tag
|
|
1201
|
+
# Use this endpoint to permanently delete a specific tag based on its unique GUID. If successful, the API will respond with status of `204 No Content`.
|
|
1202
|
+
# @param tag_guid [String] The unique id for a `tag`.
|
|
1203
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
1204
|
+
# @param [Hash] opts the optional parameters
|
|
1205
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1206
|
+
def delete_tag_with_http_info(tag_guid, user_guid, opts = {})
|
|
1207
|
+
if @api_client.config.debugging
|
|
1208
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_tag ...'
|
|
1209
|
+
end
|
|
1210
|
+
# verify the required parameter 'tag_guid' is set
|
|
1211
|
+
if @api_client.config.client_side_validation && tag_guid.nil?
|
|
1212
|
+
fail ArgumentError, "Missing the required parameter 'tag_guid' when calling MxPlatformApi.delete_tag"
|
|
1213
|
+
end
|
|
1214
|
+
# verify the required parameter 'user_guid' is set
|
|
1215
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
1216
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_tag"
|
|
1217
|
+
end
|
|
1218
|
+
# resource path
|
|
1219
|
+
local_var_path = '/users/{user_guid}/tags/{tag_guid}'.sub('{' + 'tag_guid' + '}', CGI.escape(tag_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
1220
|
+
|
|
1221
|
+
# query parameters
|
|
1222
|
+
query_params = opts[:query_params] || {}
|
|
1223
|
+
|
|
1224
|
+
# header parameters
|
|
1225
|
+
header_params = opts[:header_params] || {}
|
|
1226
|
+
# HTTP header 'Accept' (if needed)
|
|
1227
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
1228
|
+
|
|
1229
|
+
# form parameters
|
|
1230
|
+
form_params = opts[:form_params] || {}
|
|
1231
|
+
|
|
1232
|
+
# http body (model)
|
|
1233
|
+
post_body = opts[:debug_body]
|
|
1234
|
+
|
|
1235
|
+
# return_type
|
|
1236
|
+
return_type = opts[:debug_return_type]
|
|
1237
|
+
|
|
1238
|
+
# auth_names
|
|
1239
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
1240
|
+
|
|
1241
|
+
new_options = opts.merge(
|
|
1242
|
+
:operation => :"MxPlatformApi.delete_tag",
|
|
1243
|
+
:header_params => header_params,
|
|
1244
|
+
:query_params => query_params,
|
|
1245
|
+
:form_params => form_params,
|
|
1246
|
+
:body => post_body,
|
|
1247
|
+
:auth_names => auth_names,
|
|
1248
|
+
:return_type => return_type
|
|
1249
|
+
)
|
|
1250
|
+
|
|
1251
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1252
|
+
if @api_client.config.debugging
|
|
1253
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#delete_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1254
|
+
end
|
|
1255
|
+
return data, status_code, headers
|
|
1256
|
+
end
|
|
1257
|
+
|
|
1258
|
+
# Delete tagging
|
|
1259
|
+
# Use this endpoint to delete a tagging according to its unique GUID. If successful, the API will respond with an empty body and a status of 204 NO Content.
|
|
1260
|
+
# @param tagging_guid [String] The unique id for a `tagging`.
|
|
1261
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
1262
|
+
# @param [Hash] opts the optional parameters
|
|
1263
|
+
# @return [nil]
|
|
1264
|
+
def delete_tagging(tagging_guid, user_guid, opts = {})
|
|
1265
|
+
delete_tagging_with_http_info(tagging_guid, user_guid, opts)
|
|
1266
|
+
nil
|
|
1267
|
+
end
|
|
1268
|
+
|
|
1269
|
+
# Delete tagging
|
|
1270
|
+
# Use this endpoint to delete a tagging according to its unique GUID. If successful, the API will respond with an empty body and a status of 204 NO Content.
|
|
1271
|
+
# @param tagging_guid [String] The unique id for a `tagging`.
|
|
1272
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
1273
|
+
# @param [Hash] opts the optional parameters
|
|
1274
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1275
|
+
def delete_tagging_with_http_info(tagging_guid, user_guid, opts = {})
|
|
1276
|
+
if @api_client.config.debugging
|
|
1277
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_tagging ...'
|
|
1278
|
+
end
|
|
1279
|
+
# verify the required parameter 'tagging_guid' is set
|
|
1280
|
+
if @api_client.config.client_side_validation && tagging_guid.nil?
|
|
1281
|
+
fail ArgumentError, "Missing the required parameter 'tagging_guid' when calling MxPlatformApi.delete_tagging"
|
|
1282
|
+
end
|
|
1283
|
+
# verify the required parameter 'user_guid' is set
|
|
1284
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
1285
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_tagging"
|
|
1286
|
+
end
|
|
1287
|
+
# resource path
|
|
1288
|
+
local_var_path = '/users/{user_guid}/taggings/{tagging_guid}'.sub('{' + 'tagging_guid' + '}', CGI.escape(tagging_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
1289
|
+
|
|
1290
|
+
# query parameters
|
|
1291
|
+
query_params = opts[:query_params] || {}
|
|
1292
|
+
|
|
1293
|
+
# header parameters
|
|
1294
|
+
header_params = opts[:header_params] || {}
|
|
1295
|
+
# HTTP header 'Accept' (if needed)
|
|
1296
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
1297
|
+
|
|
1298
|
+
# form parameters
|
|
1299
|
+
form_params = opts[:form_params] || {}
|
|
1300
|
+
|
|
1301
|
+
# http body (model)
|
|
1302
|
+
post_body = opts[:debug_body]
|
|
1303
|
+
|
|
1304
|
+
# return_type
|
|
1305
|
+
return_type = opts[:debug_return_type]
|
|
1306
|
+
|
|
1307
|
+
# auth_names
|
|
1308
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
1309
|
+
|
|
1310
|
+
new_options = opts.merge(
|
|
1311
|
+
:operation => :"MxPlatformApi.delete_tagging",
|
|
1312
|
+
:header_params => header_params,
|
|
1313
|
+
:query_params => query_params,
|
|
1314
|
+
:form_params => form_params,
|
|
1315
|
+
:body => post_body,
|
|
1316
|
+
:auth_names => auth_names,
|
|
1317
|
+
:return_type => return_type
|
|
1318
|
+
)
|
|
1319
|
+
|
|
1320
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1321
|
+
if @api_client.config.debugging
|
|
1322
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#delete_tagging\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1323
|
+
end
|
|
1324
|
+
return data, status_code, headers
|
|
1325
|
+
end
|
|
1326
|
+
|
|
1327
|
+
# Delete transaction rule
|
|
1328
|
+
# Use this endpoint to permanently delete a transaction rule based on its unique GUID.
|
|
1329
|
+
# @param transaction_rule_guid [String] The unique id for a `transaction_rule`.
|
|
1330
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
1331
|
+
# @param [Hash] opts the optional parameters
|
|
1332
|
+
# @return [nil]
|
|
1333
|
+
def delete_transaction_rule(transaction_rule_guid, user_guid, opts = {})
|
|
1334
|
+
delete_transaction_rule_with_http_info(transaction_rule_guid, user_guid, opts)
|
|
1335
|
+
nil
|
|
1336
|
+
end
|
|
1337
|
+
|
|
1338
|
+
# Delete transaction rule
|
|
1339
|
+
# Use this endpoint to permanently delete a transaction rule based on its unique GUID.
|
|
1340
|
+
# @param transaction_rule_guid [String] The unique id for a `transaction_rule`.
|
|
870
1341
|
# @param user_guid [String] The unique id for a `user`.
|
|
871
1342
|
# @param [Hash] opts the optional parameters
|
|
872
1343
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
@@ -1094,7 +1565,10 @@ module MxPlatformRuby
|
|
|
1094
1565
|
# HTTP header 'Accept' (if needed)
|
|
1095
1566
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
1096
1567
|
# HTTP header 'Content-Type'
|
|
1097
|
-
|
|
1568
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1569
|
+
if !content_type.nil?
|
|
1570
|
+
header_params['Content-Type'] = content_type
|
|
1571
|
+
end
|
|
1098
1572
|
|
|
1099
1573
|
# form parameters
|
|
1100
1574
|
form_params = opts[:form_params] || {}
|
|
@@ -1630,6 +2104,8 @@ module MxPlatformRuby
|
|
|
1630
2104
|
# Use this endpoint to read the attributes of a specific user.
|
|
1631
2105
|
# @param user_guid [String] The unique id for a `user`.
|
|
1632
2106
|
# @param [Hash] opts the optional parameters
|
|
2107
|
+
# @option opts [Integer] :page Specify current page.
|
|
2108
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
1633
2109
|
# @return [CategoriesResponseBody]
|
|
1634
2110
|
def list_default_categories(user_guid, opts = {})
|
|
1635
2111
|
data, _status_code, _headers = list_default_categories_with_http_info(user_guid, opts)
|
|
@@ -1640,6 +2116,8 @@ module MxPlatformRuby
|
|
|
1640
2116
|
# Use this endpoint to read the attributes of a specific user.
|
|
1641
2117
|
# @param user_guid [String] The unique id for a `user`.
|
|
1642
2118
|
# @param [Hash] opts the optional parameters
|
|
2119
|
+
# @option opts [Integer] :page Specify current page.
|
|
2120
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
1643
2121
|
# @return [Array<(CategoriesResponseBody, Integer, Hash)>] CategoriesResponseBody data, response status code and response headers
|
|
1644
2122
|
def list_default_categories_with_http_info(user_guid, opts = {})
|
|
1645
2123
|
if @api_client.config.debugging
|
|
@@ -1654,6 +2132,8 @@ module MxPlatformRuby
|
|
|
1654
2132
|
|
|
1655
2133
|
# query parameters
|
|
1656
2134
|
query_params = opts[:query_params] || {}
|
|
2135
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
2136
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
|
1657
2137
|
|
|
1658
2138
|
# header parameters
|
|
1659
2139
|
header_params = opts[:header_params] || {}
|
|
@@ -1920,23 +2400,308 @@ module MxPlatformRuby
|
|
|
1920
2400
|
data
|
|
1921
2401
|
end
|
|
1922
2402
|
|
|
1923
|
-
# List institution credentials
|
|
1924
|
-
# Use this endpoint to see which credentials will be needed to create a member for a specific institution.
|
|
1925
|
-
# @param institution_code [String] The institution_code of the institution.
|
|
2403
|
+
# List institution credentials
|
|
2404
|
+
# Use this endpoint to see which credentials will be needed to create a member for a specific institution.
|
|
2405
|
+
# @param institution_code [String] The institution_code of the institution.
|
|
2406
|
+
# @param [Hash] opts the optional parameters
|
|
2407
|
+
# @option opts [Integer] :page Specify current page.
|
|
2408
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
2409
|
+
# @return [Array<(CredentialsResponseBody, Integer, Hash)>] CredentialsResponseBody data, response status code and response headers
|
|
2410
|
+
def list_institution_credentials_with_http_info(institution_code, opts = {})
|
|
2411
|
+
if @api_client.config.debugging
|
|
2412
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.list_institution_credentials ...'
|
|
2413
|
+
end
|
|
2414
|
+
# verify the required parameter 'institution_code' is set
|
|
2415
|
+
if @api_client.config.client_side_validation && institution_code.nil?
|
|
2416
|
+
fail ArgumentError, "Missing the required parameter 'institution_code' when calling MxPlatformApi.list_institution_credentials"
|
|
2417
|
+
end
|
|
2418
|
+
# resource path
|
|
2419
|
+
local_var_path = '/institutions/{institution_code}/credentials'.sub('{' + 'institution_code' + '}', CGI.escape(institution_code.to_s))
|
|
2420
|
+
|
|
2421
|
+
# query parameters
|
|
2422
|
+
query_params = opts[:query_params] || {}
|
|
2423
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
2424
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
|
2425
|
+
|
|
2426
|
+
# header parameters
|
|
2427
|
+
header_params = opts[:header_params] || {}
|
|
2428
|
+
# HTTP header 'Accept' (if needed)
|
|
2429
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
2430
|
+
|
|
2431
|
+
# form parameters
|
|
2432
|
+
form_params = opts[:form_params] || {}
|
|
2433
|
+
|
|
2434
|
+
# http body (model)
|
|
2435
|
+
post_body = opts[:debug_body]
|
|
2436
|
+
|
|
2437
|
+
# return_type
|
|
2438
|
+
return_type = opts[:debug_return_type] || 'CredentialsResponseBody'
|
|
2439
|
+
|
|
2440
|
+
# auth_names
|
|
2441
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
2442
|
+
|
|
2443
|
+
new_options = opts.merge(
|
|
2444
|
+
:operation => :"MxPlatformApi.list_institution_credentials",
|
|
2445
|
+
:header_params => header_params,
|
|
2446
|
+
:query_params => query_params,
|
|
2447
|
+
:form_params => form_params,
|
|
2448
|
+
:body => post_body,
|
|
2449
|
+
:auth_names => auth_names,
|
|
2450
|
+
:return_type => return_type
|
|
2451
|
+
)
|
|
2452
|
+
|
|
2453
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2454
|
+
if @api_client.config.debugging
|
|
2455
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#list_institution_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2456
|
+
end
|
|
2457
|
+
return data, status_code, headers
|
|
2458
|
+
end
|
|
2459
|
+
|
|
2460
|
+
# List institutions
|
|
2461
|
+
# This endpoint returns a list of institutions based on the specified search term or parameter.
|
|
2462
|
+
# @param [Hash] opts the optional parameters
|
|
2463
|
+
# @option opts [String] :name This will list only institutions in which the appended string appears.
|
|
2464
|
+
# @option opts [Integer] :page Specify current page.
|
|
2465
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
2466
|
+
# @option opts [Boolean] :supports_account_identification Filter only institutions which support account identification.
|
|
2467
|
+
# @option opts [Boolean] :supports_account_statement Filter only institutions which support account statements.
|
|
2468
|
+
# @option opts [Boolean] :supports_account_verification Filter only institutions which support account verification.
|
|
2469
|
+
# @option opts [Boolean] :supports_transaction_history Filter only institutions which support extended transaction history.
|
|
2470
|
+
# @return [InstitutionsResponseBody]
|
|
2471
|
+
def list_institutions(opts = {})
|
|
2472
|
+
data, _status_code, _headers = list_institutions_with_http_info(opts)
|
|
2473
|
+
data
|
|
2474
|
+
end
|
|
2475
|
+
|
|
2476
|
+
# List institutions
|
|
2477
|
+
# This endpoint returns a list of institutions based on the specified search term or parameter.
|
|
2478
|
+
# @param [Hash] opts the optional parameters
|
|
2479
|
+
# @option opts [String] :name This will list only institutions in which the appended string appears.
|
|
2480
|
+
# @option opts [Integer] :page Specify current page.
|
|
2481
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
2482
|
+
# @option opts [Boolean] :supports_account_identification Filter only institutions which support account identification.
|
|
2483
|
+
# @option opts [Boolean] :supports_account_statement Filter only institutions which support account statements.
|
|
2484
|
+
# @option opts [Boolean] :supports_account_verification Filter only institutions which support account verification.
|
|
2485
|
+
# @option opts [Boolean] :supports_transaction_history Filter only institutions which support extended transaction history.
|
|
2486
|
+
# @return [Array<(InstitutionsResponseBody, Integer, Hash)>] InstitutionsResponseBody data, response status code and response headers
|
|
2487
|
+
def list_institutions_with_http_info(opts = {})
|
|
2488
|
+
if @api_client.config.debugging
|
|
2489
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.list_institutions ...'
|
|
2490
|
+
end
|
|
2491
|
+
# resource path
|
|
2492
|
+
local_var_path = '/institutions'
|
|
2493
|
+
|
|
2494
|
+
# query parameters
|
|
2495
|
+
query_params = opts[:query_params] || {}
|
|
2496
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
2497
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
2498
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
|
2499
|
+
query_params[:'supports_account_identification'] = opts[:'supports_account_identification'] if !opts[:'supports_account_identification'].nil?
|
|
2500
|
+
query_params[:'supports_account_statement'] = opts[:'supports_account_statement'] if !opts[:'supports_account_statement'].nil?
|
|
2501
|
+
query_params[:'supports_account_verification'] = opts[:'supports_account_verification'] if !opts[:'supports_account_verification'].nil?
|
|
2502
|
+
query_params[:'supports_transaction_history'] = opts[:'supports_transaction_history'] if !opts[:'supports_transaction_history'].nil?
|
|
2503
|
+
|
|
2504
|
+
# header parameters
|
|
2505
|
+
header_params = opts[:header_params] || {}
|
|
2506
|
+
# HTTP header 'Accept' (if needed)
|
|
2507
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
2508
|
+
|
|
2509
|
+
# form parameters
|
|
2510
|
+
form_params = opts[:form_params] || {}
|
|
2511
|
+
|
|
2512
|
+
# http body (model)
|
|
2513
|
+
post_body = opts[:debug_body]
|
|
2514
|
+
|
|
2515
|
+
# return_type
|
|
2516
|
+
return_type = opts[:debug_return_type] || 'InstitutionsResponseBody'
|
|
2517
|
+
|
|
2518
|
+
# auth_names
|
|
2519
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
2520
|
+
|
|
2521
|
+
new_options = opts.merge(
|
|
2522
|
+
:operation => :"MxPlatformApi.list_institutions",
|
|
2523
|
+
:header_params => header_params,
|
|
2524
|
+
:query_params => query_params,
|
|
2525
|
+
:form_params => form_params,
|
|
2526
|
+
:body => post_body,
|
|
2527
|
+
:auth_names => auth_names,
|
|
2528
|
+
:return_type => return_type
|
|
2529
|
+
)
|
|
2530
|
+
|
|
2531
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2532
|
+
if @api_client.config.debugging
|
|
2533
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#list_institutions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2534
|
+
end
|
|
2535
|
+
return data, status_code, headers
|
|
2536
|
+
end
|
|
2537
|
+
|
|
2538
|
+
# List managed accounts
|
|
2539
|
+
# Use this endpoint to retrieve a list of all the partner-managed accounts associated with the given partner-manage member.
|
|
2540
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
2541
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
2542
|
+
# @param [Hash] opts the optional parameters
|
|
2543
|
+
# @option opts [Integer] :page Specify current page.
|
|
2544
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
2545
|
+
# @return [AccountsResponseBody]
|
|
2546
|
+
def list_managed_accounts(user_guid, member_guid, opts = {})
|
|
2547
|
+
data, _status_code, _headers = list_managed_accounts_with_http_info(user_guid, member_guid, opts)
|
|
2548
|
+
data
|
|
2549
|
+
end
|
|
2550
|
+
|
|
2551
|
+
# List managed accounts
|
|
2552
|
+
# Use this endpoint to retrieve a list of all the partner-managed accounts associated with the given partner-manage member.
|
|
2553
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
2554
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
2555
|
+
# @param [Hash] opts the optional parameters
|
|
2556
|
+
# @option opts [Integer] :page Specify current page.
|
|
2557
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
2558
|
+
# @return [Array<(AccountsResponseBody, Integer, Hash)>] AccountsResponseBody data, response status code and response headers
|
|
2559
|
+
def list_managed_accounts_with_http_info(user_guid, member_guid, opts = {})
|
|
2560
|
+
if @api_client.config.debugging
|
|
2561
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.list_managed_accounts ...'
|
|
2562
|
+
end
|
|
2563
|
+
# verify the required parameter 'user_guid' is set
|
|
2564
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
2565
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.list_managed_accounts"
|
|
2566
|
+
end
|
|
2567
|
+
# verify the required parameter 'member_guid' is set
|
|
2568
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
2569
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.list_managed_accounts"
|
|
2570
|
+
end
|
|
2571
|
+
# resource path
|
|
2572
|
+
local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s))
|
|
2573
|
+
|
|
2574
|
+
# query parameters
|
|
2575
|
+
query_params = opts[:query_params] || {}
|
|
2576
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
2577
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
|
2578
|
+
|
|
2579
|
+
# header parameters
|
|
2580
|
+
header_params = opts[:header_params] || {}
|
|
2581
|
+
# HTTP header 'Accept' (if needed)
|
|
2582
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
2583
|
+
|
|
2584
|
+
# form parameters
|
|
2585
|
+
form_params = opts[:form_params] || {}
|
|
2586
|
+
|
|
2587
|
+
# http body (model)
|
|
2588
|
+
post_body = opts[:debug_body]
|
|
2589
|
+
|
|
2590
|
+
# return_type
|
|
2591
|
+
return_type = opts[:debug_return_type] || 'AccountsResponseBody'
|
|
2592
|
+
|
|
2593
|
+
# auth_names
|
|
2594
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
2595
|
+
|
|
2596
|
+
new_options = opts.merge(
|
|
2597
|
+
:operation => :"MxPlatformApi.list_managed_accounts",
|
|
2598
|
+
:header_params => header_params,
|
|
2599
|
+
:query_params => query_params,
|
|
2600
|
+
:form_params => form_params,
|
|
2601
|
+
:body => post_body,
|
|
2602
|
+
:auth_names => auth_names,
|
|
2603
|
+
:return_type => return_type
|
|
2604
|
+
)
|
|
2605
|
+
|
|
2606
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2607
|
+
if @api_client.config.debugging
|
|
2608
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#list_managed_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2609
|
+
end
|
|
2610
|
+
return data, status_code, headers
|
|
2611
|
+
end
|
|
2612
|
+
|
|
2613
|
+
# List managed institutions
|
|
2614
|
+
# This endpoint returns a list of institutions which can be used to create partner-managed members.
|
|
2615
|
+
# @param [Hash] opts the optional parameters
|
|
2616
|
+
# @option opts [Integer] :page Specify current page.
|
|
2617
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
2618
|
+
# @return [InstitutionsResponseBody]
|
|
2619
|
+
def list_managed_institutions(opts = {})
|
|
2620
|
+
data, _status_code, _headers = list_managed_institutions_with_http_info(opts)
|
|
2621
|
+
data
|
|
2622
|
+
end
|
|
2623
|
+
|
|
2624
|
+
# List managed institutions
|
|
2625
|
+
# This endpoint returns a list of institutions which can be used to create partner-managed members.
|
|
2626
|
+
# @param [Hash] opts the optional parameters
|
|
2627
|
+
# @option opts [Integer] :page Specify current page.
|
|
2628
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
2629
|
+
# @return [Array<(InstitutionsResponseBody, Integer, Hash)>] InstitutionsResponseBody data, response status code and response headers
|
|
2630
|
+
def list_managed_institutions_with_http_info(opts = {})
|
|
2631
|
+
if @api_client.config.debugging
|
|
2632
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.list_managed_institutions ...'
|
|
2633
|
+
end
|
|
2634
|
+
# resource path
|
|
2635
|
+
local_var_path = '/managed_institutions'
|
|
2636
|
+
|
|
2637
|
+
# query parameters
|
|
2638
|
+
query_params = opts[:query_params] || {}
|
|
2639
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
2640
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
|
2641
|
+
|
|
2642
|
+
# header parameters
|
|
2643
|
+
header_params = opts[:header_params] || {}
|
|
2644
|
+
# HTTP header 'Accept' (if needed)
|
|
2645
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
2646
|
+
|
|
2647
|
+
# form parameters
|
|
2648
|
+
form_params = opts[:form_params] || {}
|
|
2649
|
+
|
|
2650
|
+
# http body (model)
|
|
2651
|
+
post_body = opts[:debug_body]
|
|
2652
|
+
|
|
2653
|
+
# return_type
|
|
2654
|
+
return_type = opts[:debug_return_type] || 'InstitutionsResponseBody'
|
|
2655
|
+
|
|
2656
|
+
# auth_names
|
|
2657
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
2658
|
+
|
|
2659
|
+
new_options = opts.merge(
|
|
2660
|
+
:operation => :"MxPlatformApi.list_managed_institutions",
|
|
2661
|
+
:header_params => header_params,
|
|
2662
|
+
:query_params => query_params,
|
|
2663
|
+
:form_params => form_params,
|
|
2664
|
+
:body => post_body,
|
|
2665
|
+
:auth_names => auth_names,
|
|
2666
|
+
:return_type => return_type
|
|
2667
|
+
)
|
|
2668
|
+
|
|
2669
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2670
|
+
if @api_client.config.debugging
|
|
2671
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#list_managed_institutions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2672
|
+
end
|
|
2673
|
+
return data, status_code, headers
|
|
2674
|
+
end
|
|
2675
|
+
|
|
2676
|
+
# List managed members
|
|
2677
|
+
# This endpoint returns a list of all the partner-managed members associated with the specified `user`.
|
|
2678
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
2679
|
+
# @param [Hash] opts the optional parameters
|
|
2680
|
+
# @option opts [Integer] :page Specify current page.
|
|
2681
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
2682
|
+
# @return [MembersResponseBody]
|
|
2683
|
+
def list_managed_members(user_guid, opts = {})
|
|
2684
|
+
data, _status_code, _headers = list_managed_members_with_http_info(user_guid, opts)
|
|
2685
|
+
data
|
|
2686
|
+
end
|
|
2687
|
+
|
|
2688
|
+
# List managed members
|
|
2689
|
+
# This endpoint returns a list of all the partner-managed members associated with the specified `user`.
|
|
2690
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
1926
2691
|
# @param [Hash] opts the optional parameters
|
|
1927
2692
|
# @option opts [Integer] :page Specify current page.
|
|
1928
2693
|
# @option opts [Integer] :records_per_page Specify records per page.
|
|
1929
|
-
# @return [Array<(
|
|
1930
|
-
def
|
|
2694
|
+
# @return [Array<(MembersResponseBody, Integer, Hash)>] MembersResponseBody data, response status code and response headers
|
|
2695
|
+
def list_managed_members_with_http_info(user_guid, opts = {})
|
|
1931
2696
|
if @api_client.config.debugging
|
|
1932
|
-
@api_client.config.logger.debug 'Calling API: MxPlatformApi.
|
|
2697
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.list_managed_members ...'
|
|
1933
2698
|
end
|
|
1934
|
-
# verify the required parameter '
|
|
1935
|
-
if @api_client.config.client_side_validation &&
|
|
1936
|
-
fail ArgumentError, "Missing the required parameter '
|
|
2699
|
+
# verify the required parameter 'user_guid' is set
|
|
2700
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
2701
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.list_managed_members"
|
|
1937
2702
|
end
|
|
1938
2703
|
# resource path
|
|
1939
|
-
local_var_path = '/
|
|
2704
|
+
local_var_path = '/users/{user_guid}/managed_members'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
1940
2705
|
|
|
1941
2706
|
# query parameters
|
|
1942
2707
|
query_params = opts[:query_params] || {}
|
|
@@ -1955,13 +2720,13 @@ module MxPlatformRuby
|
|
|
1955
2720
|
post_body = opts[:debug_body]
|
|
1956
2721
|
|
|
1957
2722
|
# return_type
|
|
1958
|
-
return_type = opts[:debug_return_type] || '
|
|
2723
|
+
return_type = opts[:debug_return_type] || 'MembersResponseBody'
|
|
1959
2724
|
|
|
1960
2725
|
# auth_names
|
|
1961
2726
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
1962
2727
|
|
|
1963
2728
|
new_options = opts.merge(
|
|
1964
|
-
:operation => :"MxPlatformApi.
|
|
2729
|
+
:operation => :"MxPlatformApi.list_managed_members",
|
|
1965
2730
|
:header_params => header_params,
|
|
1966
2731
|
:query_params => query_params,
|
|
1967
2732
|
:form_params => form_params,
|
|
@@ -1972,48 +2737,51 @@ module MxPlatformRuby
|
|
|
1972
2737
|
|
|
1973
2738
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1974
2739
|
if @api_client.config.debugging
|
|
1975
|
-
@api_client.config.logger.debug "API called: MxPlatformApi#
|
|
2740
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#list_managed_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1976
2741
|
end
|
|
1977
2742
|
return data, status_code, headers
|
|
1978
2743
|
end
|
|
1979
2744
|
|
|
1980
|
-
# List
|
|
1981
|
-
# This endpoint returns a list of
|
|
2745
|
+
# List managed transactions
|
|
2746
|
+
# This endpoint returns a list of all the partner-managed transactions associated with the specified `account`, scoped through a `user` and a `member`.
|
|
2747
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
2748
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
1982
2749
|
# @param [Hash] opts the optional parameters
|
|
1983
|
-
# @option opts [
|
|
1984
|
-
# @option opts [
|
|
1985
|
-
# @
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
# @return [InstitutionsResponseBody]
|
|
1989
|
-
def list_institutions(opts = {})
|
|
1990
|
-
data, _status_code, _headers = list_institutions_with_http_info(opts)
|
|
2750
|
+
# @option opts [Integer] :page Specify current page.
|
|
2751
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
2752
|
+
# @return [TransactionsResponseBody]
|
|
2753
|
+
def list_managed_transactions(user_guid, member_guid, opts = {})
|
|
2754
|
+
data, _status_code, _headers = list_managed_transactions_with_http_info(user_guid, member_guid, opts)
|
|
1991
2755
|
data
|
|
1992
2756
|
end
|
|
1993
2757
|
|
|
1994
|
-
# List
|
|
1995
|
-
# This endpoint returns a list of
|
|
2758
|
+
# List managed transactions
|
|
2759
|
+
# This endpoint returns a list of all the partner-managed transactions associated with the specified `account`, scoped through a `user` and a `member`.
|
|
2760
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
2761
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
1996
2762
|
# @param [Hash] opts the optional parameters
|
|
1997
|
-
# @option opts [
|
|
1998
|
-
# @option opts [
|
|
1999
|
-
# @
|
|
2000
|
-
|
|
2001
|
-
# @option opts [Boolean] :supports_transaction_history Filter only institutions which support extended transaction history.
|
|
2002
|
-
# @return [Array<(InstitutionsResponseBody, Integer, Hash)>] InstitutionsResponseBody data, response status code and response headers
|
|
2003
|
-
def list_institutions_with_http_info(opts = {})
|
|
2763
|
+
# @option opts [Integer] :page Specify current page.
|
|
2764
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
2765
|
+
# @return [Array<(TransactionsResponseBody, Integer, Hash)>] TransactionsResponseBody data, response status code and response headers
|
|
2766
|
+
def list_managed_transactions_with_http_info(user_guid, member_guid, opts = {})
|
|
2004
2767
|
if @api_client.config.debugging
|
|
2005
|
-
@api_client.config.logger.debug 'Calling API: MxPlatformApi.
|
|
2768
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.list_managed_transactions ...'
|
|
2769
|
+
end
|
|
2770
|
+
# verify the required parameter 'user_guid' is set
|
|
2771
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
2772
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.list_managed_transactions"
|
|
2773
|
+
end
|
|
2774
|
+
# verify the required parameter 'member_guid' is set
|
|
2775
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
2776
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.list_managed_transactions"
|
|
2006
2777
|
end
|
|
2007
2778
|
# resource path
|
|
2008
|
-
local_var_path = '/
|
|
2779
|
+
local_var_path = '/users/{user_guid}/managed_members/{member_guid}/transactions'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s))
|
|
2009
2780
|
|
|
2010
2781
|
# query parameters
|
|
2011
2782
|
query_params = opts[:query_params] || {}
|
|
2012
|
-
query_params[:'
|
|
2013
|
-
query_params[:'
|
|
2014
|
-
query_params[:'supports_account_statement'] = opts[:'supports_account_statement'] if !opts[:'supports_account_statement'].nil?
|
|
2015
|
-
query_params[:'supports_account_verification'] = opts[:'supports_account_verification'] if !opts[:'supports_account_verification'].nil?
|
|
2016
|
-
query_params[:'supports_transaction_history'] = opts[:'supports_transaction_history'] if !opts[:'supports_transaction_history'].nil?
|
|
2783
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
2784
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
|
2017
2785
|
|
|
2018
2786
|
# header parameters
|
|
2019
2787
|
header_params = opts[:header_params] || {}
|
|
@@ -2027,13 +2795,13 @@ module MxPlatformRuby
|
|
|
2027
2795
|
post_body = opts[:debug_body]
|
|
2028
2796
|
|
|
2029
2797
|
# return_type
|
|
2030
|
-
return_type = opts[:debug_return_type] || '
|
|
2798
|
+
return_type = opts[:debug_return_type] || 'TransactionsResponseBody'
|
|
2031
2799
|
|
|
2032
2800
|
# auth_names
|
|
2033
2801
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
2034
2802
|
|
|
2035
2803
|
new_options = opts.merge(
|
|
2036
|
-
:operation => :"MxPlatformApi.
|
|
2804
|
+
:operation => :"MxPlatformApi.list_managed_transactions",
|
|
2037
2805
|
:header_params => header_params,
|
|
2038
2806
|
:query_params => query_params,
|
|
2039
2807
|
:form_params => form_params,
|
|
@@ -2044,7 +2812,7 @@ module MxPlatformRuby
|
|
|
2044
2812
|
|
|
2045
2813
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2046
2814
|
if @api_client.config.debugging
|
|
2047
|
-
@api_client.config.logger.debug "API called: MxPlatformApi#
|
|
2815
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#list_managed_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2048
2816
|
end
|
|
2049
2817
|
return data, status_code, headers
|
|
2050
2818
|
end
|
|
@@ -2855,6 +3623,10 @@ module MxPlatformRuby
|
|
|
2855
3623
|
# @param tag_guid [String] The unique id for a `tag`.
|
|
2856
3624
|
# @param user_guid [String] The unique id for a `user`.
|
|
2857
3625
|
# @param [Hash] opts the optional parameters
|
|
3626
|
+
# @option opts [String] :from_date Filter transactions from this date.
|
|
3627
|
+
# @option opts [Integer] :page Specify current page.
|
|
3628
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
3629
|
+
# @option opts [String] :to_date Filter transactions to this date.
|
|
2858
3630
|
# @return [TransactionsResponseBody]
|
|
2859
3631
|
def list_transactions_by_tag(tag_guid, user_guid, opts = {})
|
|
2860
3632
|
data, _status_code, _headers = list_transactions_by_tag_with_http_info(tag_guid, user_guid, opts)
|
|
@@ -2866,6 +3638,10 @@ module MxPlatformRuby
|
|
|
2866
3638
|
# @param tag_guid [String] The unique id for a `tag`.
|
|
2867
3639
|
# @param user_guid [String] The unique id for a `user`.
|
|
2868
3640
|
# @param [Hash] opts the optional parameters
|
|
3641
|
+
# @option opts [String] :from_date Filter transactions from this date.
|
|
3642
|
+
# @option opts [Integer] :page Specify current page.
|
|
3643
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
3644
|
+
# @option opts [String] :to_date Filter transactions to this date.
|
|
2869
3645
|
# @return [Array<(TransactionsResponseBody, Integer, Hash)>] TransactionsResponseBody data, response status code and response headers
|
|
2870
3646
|
def list_transactions_by_tag_with_http_info(tag_guid, user_guid, opts = {})
|
|
2871
3647
|
if @api_client.config.debugging
|
|
@@ -2884,6 +3660,10 @@ module MxPlatformRuby
|
|
|
2884
3660
|
|
|
2885
3661
|
# query parameters
|
|
2886
3662
|
query_params = opts[:query_params] || {}
|
|
3663
|
+
query_params[:'from_date'] = opts[:'from_date'] if !opts[:'from_date'].nil?
|
|
3664
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
3665
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
|
3666
|
+
query_params[:'to_date'] = opts[:'to_date'] if !opts[:'to_date'].nil?
|
|
2887
3667
|
|
|
2888
3668
|
# header parameters
|
|
2889
3669
|
header_params = opts[:header_params] || {}
|
|
@@ -3275,14 +4055,233 @@ module MxPlatformRuby
|
|
|
3275
4055
|
# @return [Array<(InstitutionResponseBody, Integer, Hash)>] InstitutionResponseBody data, response status code and response headers
|
|
3276
4056
|
def read_institution_with_http_info(institution_code, opts = {})
|
|
3277
4057
|
if @api_client.config.debugging
|
|
3278
|
-
@api_client.config.logger.debug 'Calling API: MxPlatformApi.read_institution ...'
|
|
4058
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.read_institution ...'
|
|
4059
|
+
end
|
|
4060
|
+
# verify the required parameter 'institution_code' is set
|
|
4061
|
+
if @api_client.config.client_side_validation && institution_code.nil?
|
|
4062
|
+
fail ArgumentError, "Missing the required parameter 'institution_code' when calling MxPlatformApi.read_institution"
|
|
4063
|
+
end
|
|
4064
|
+
# resource path
|
|
4065
|
+
local_var_path = '/institutions/{institution_code}'.sub('{' + 'institution_code' + '}', CGI.escape(institution_code.to_s))
|
|
4066
|
+
|
|
4067
|
+
# query parameters
|
|
4068
|
+
query_params = opts[:query_params] || {}
|
|
4069
|
+
|
|
4070
|
+
# header parameters
|
|
4071
|
+
header_params = opts[:header_params] || {}
|
|
4072
|
+
# HTTP header 'Accept' (if needed)
|
|
4073
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
4074
|
+
|
|
4075
|
+
# form parameters
|
|
4076
|
+
form_params = opts[:form_params] || {}
|
|
4077
|
+
|
|
4078
|
+
# http body (model)
|
|
4079
|
+
post_body = opts[:debug_body]
|
|
4080
|
+
|
|
4081
|
+
# return_type
|
|
4082
|
+
return_type = opts[:debug_return_type] || 'InstitutionResponseBody'
|
|
4083
|
+
|
|
4084
|
+
# auth_names
|
|
4085
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
4086
|
+
|
|
4087
|
+
new_options = opts.merge(
|
|
4088
|
+
:operation => :"MxPlatformApi.read_institution",
|
|
4089
|
+
:header_params => header_params,
|
|
4090
|
+
:query_params => query_params,
|
|
4091
|
+
:form_params => form_params,
|
|
4092
|
+
:body => post_body,
|
|
4093
|
+
:auth_names => auth_names,
|
|
4094
|
+
:return_type => return_type
|
|
4095
|
+
)
|
|
4096
|
+
|
|
4097
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
4098
|
+
if @api_client.config.debugging
|
|
4099
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#read_institution\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4100
|
+
end
|
|
4101
|
+
return data, status_code, headers
|
|
4102
|
+
end
|
|
4103
|
+
|
|
4104
|
+
# Read managed account
|
|
4105
|
+
# Use this endpoint to read the attributes of a partner-managed account according to its unique guid.
|
|
4106
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
4107
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
4108
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
4109
|
+
# @param [Hash] opts the optional parameters
|
|
4110
|
+
# @return [AccountResponseBody]
|
|
4111
|
+
def read_managed_account(member_guid, user_guid, account_guid, opts = {})
|
|
4112
|
+
data, _status_code, _headers = read_managed_account_with_http_info(member_guid, user_guid, account_guid, opts)
|
|
4113
|
+
data
|
|
4114
|
+
end
|
|
4115
|
+
|
|
4116
|
+
# Read managed account
|
|
4117
|
+
# Use this endpoint to read the attributes of a partner-managed account according to its unique guid.
|
|
4118
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
4119
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
4120
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
4121
|
+
# @param [Hash] opts the optional parameters
|
|
4122
|
+
# @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
|
|
4123
|
+
def read_managed_account_with_http_info(member_guid, user_guid, account_guid, opts = {})
|
|
4124
|
+
if @api_client.config.debugging
|
|
4125
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.read_managed_account ...'
|
|
4126
|
+
end
|
|
4127
|
+
# verify the required parameter 'member_guid' is set
|
|
4128
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
4129
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.read_managed_account"
|
|
4130
|
+
end
|
|
4131
|
+
# verify the required parameter 'user_guid' is set
|
|
4132
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
4133
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.read_managed_account"
|
|
4134
|
+
end
|
|
4135
|
+
# verify the required parameter 'account_guid' is set
|
|
4136
|
+
if @api_client.config.client_side_validation && account_guid.nil?
|
|
4137
|
+
fail ArgumentError, "Missing the required parameter 'account_guid' when calling MxPlatformApi.read_managed_account"
|
|
4138
|
+
end
|
|
4139
|
+
# resource path
|
|
4140
|
+
local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s))
|
|
4141
|
+
|
|
4142
|
+
# query parameters
|
|
4143
|
+
query_params = opts[:query_params] || {}
|
|
4144
|
+
|
|
4145
|
+
# header parameters
|
|
4146
|
+
header_params = opts[:header_params] || {}
|
|
4147
|
+
# HTTP header 'Accept' (if needed)
|
|
4148
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
4149
|
+
|
|
4150
|
+
# form parameters
|
|
4151
|
+
form_params = opts[:form_params] || {}
|
|
4152
|
+
|
|
4153
|
+
# http body (model)
|
|
4154
|
+
post_body = opts[:debug_body]
|
|
4155
|
+
|
|
4156
|
+
# return_type
|
|
4157
|
+
return_type = opts[:debug_return_type] || 'AccountResponseBody'
|
|
4158
|
+
|
|
4159
|
+
# auth_names
|
|
4160
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
4161
|
+
|
|
4162
|
+
new_options = opts.merge(
|
|
4163
|
+
:operation => :"MxPlatformApi.read_managed_account",
|
|
4164
|
+
:header_params => header_params,
|
|
4165
|
+
:query_params => query_params,
|
|
4166
|
+
:form_params => form_params,
|
|
4167
|
+
:body => post_body,
|
|
4168
|
+
:auth_names => auth_names,
|
|
4169
|
+
:return_type => return_type
|
|
4170
|
+
)
|
|
4171
|
+
|
|
4172
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
4173
|
+
if @api_client.config.debugging
|
|
4174
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#read_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4175
|
+
end
|
|
4176
|
+
return data, status_code, headers
|
|
4177
|
+
end
|
|
4178
|
+
|
|
4179
|
+
# Read managed member
|
|
4180
|
+
# This endpoint returns the attributes of the specified partner-managed `member`.
|
|
4181
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
4182
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
4183
|
+
# @param [Hash] opts the optional parameters
|
|
4184
|
+
# @return [MemberResponseBody]
|
|
4185
|
+
def read_managed_member(member_guid, user_guid, opts = {})
|
|
4186
|
+
data, _status_code, _headers = read_managed_member_with_http_info(member_guid, user_guid, opts)
|
|
4187
|
+
data
|
|
4188
|
+
end
|
|
4189
|
+
|
|
4190
|
+
# Read managed member
|
|
4191
|
+
# This endpoint returns the attributes of the specified partner-managed `member`.
|
|
4192
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
4193
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
4194
|
+
# @param [Hash] opts the optional parameters
|
|
4195
|
+
# @return [Array<(MemberResponseBody, Integer, Hash)>] MemberResponseBody data, response status code and response headers
|
|
4196
|
+
def read_managed_member_with_http_info(member_guid, user_guid, opts = {})
|
|
4197
|
+
if @api_client.config.debugging
|
|
4198
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.read_managed_member ...'
|
|
4199
|
+
end
|
|
4200
|
+
# verify the required parameter 'member_guid' is set
|
|
4201
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
4202
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.read_managed_member"
|
|
4203
|
+
end
|
|
4204
|
+
# verify the required parameter 'user_guid' is set
|
|
4205
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
4206
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.read_managed_member"
|
|
4207
|
+
end
|
|
4208
|
+
# resource path
|
|
4209
|
+
local_var_path = '/users/{user_guid}/managed_members/{member_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
4210
|
+
|
|
4211
|
+
# query parameters
|
|
4212
|
+
query_params = opts[:query_params] || {}
|
|
4213
|
+
|
|
4214
|
+
# header parameters
|
|
4215
|
+
header_params = opts[:header_params] || {}
|
|
4216
|
+
# HTTP header 'Accept' (if needed)
|
|
4217
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
4218
|
+
|
|
4219
|
+
# form parameters
|
|
4220
|
+
form_params = opts[:form_params] || {}
|
|
4221
|
+
|
|
4222
|
+
# http body (model)
|
|
4223
|
+
post_body = opts[:debug_body]
|
|
4224
|
+
|
|
4225
|
+
# return_type
|
|
4226
|
+
return_type = opts[:debug_return_type] || 'MemberResponseBody'
|
|
4227
|
+
|
|
4228
|
+
# auth_names
|
|
4229
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
4230
|
+
|
|
4231
|
+
new_options = opts.merge(
|
|
4232
|
+
:operation => :"MxPlatformApi.read_managed_member",
|
|
4233
|
+
:header_params => header_params,
|
|
4234
|
+
:query_params => query_params,
|
|
4235
|
+
:form_params => form_params,
|
|
4236
|
+
:body => post_body,
|
|
4237
|
+
:auth_names => auth_names,
|
|
4238
|
+
:return_type => return_type
|
|
4239
|
+
)
|
|
4240
|
+
|
|
4241
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
4242
|
+
if @api_client.config.debugging
|
|
4243
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#read_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4244
|
+
end
|
|
4245
|
+
return data, status_code, headers
|
|
4246
|
+
end
|
|
4247
|
+
|
|
4248
|
+
# Read managed transaction
|
|
4249
|
+
# Requests to this endpoint will return the attributes of the specified partner-managed `transaction`.
|
|
4250
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
4251
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
4252
|
+
# @param transaction_guid [String] The unique id for a `transaction`.
|
|
4253
|
+
# @param [Hash] opts the optional parameters
|
|
4254
|
+
# @return [TransactionResponseBody]
|
|
4255
|
+
def read_managed_transaction(member_guid, user_guid, transaction_guid, opts = {})
|
|
4256
|
+
data, _status_code, _headers = read_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, opts)
|
|
4257
|
+
data
|
|
4258
|
+
end
|
|
4259
|
+
|
|
4260
|
+
# Read managed transaction
|
|
4261
|
+
# Requests to this endpoint will return the attributes of the specified partner-managed `transaction`.
|
|
4262
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
4263
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
4264
|
+
# @param transaction_guid [String] The unique id for a `transaction`.
|
|
4265
|
+
# @param [Hash] opts the optional parameters
|
|
4266
|
+
# @return [Array<(TransactionResponseBody, Integer, Hash)>] TransactionResponseBody data, response status code and response headers
|
|
4267
|
+
def read_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, opts = {})
|
|
4268
|
+
if @api_client.config.debugging
|
|
4269
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.read_managed_transaction ...'
|
|
3279
4270
|
end
|
|
3280
|
-
# verify the required parameter '
|
|
3281
|
-
if @api_client.config.client_side_validation &&
|
|
3282
|
-
fail ArgumentError, "Missing the required parameter '
|
|
4271
|
+
# verify the required parameter 'member_guid' is set
|
|
4272
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
4273
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.read_managed_transaction"
|
|
4274
|
+
end
|
|
4275
|
+
# verify the required parameter 'user_guid' is set
|
|
4276
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
4277
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.read_managed_transaction"
|
|
4278
|
+
end
|
|
4279
|
+
# verify the required parameter 'transaction_guid' is set
|
|
4280
|
+
if @api_client.config.client_side_validation && transaction_guid.nil?
|
|
4281
|
+
fail ArgumentError, "Missing the required parameter 'transaction_guid' when calling MxPlatformApi.read_managed_transaction"
|
|
3283
4282
|
end
|
|
3284
4283
|
# resource path
|
|
3285
|
-
local_var_path = '/
|
|
4284
|
+
local_var_path = '/users/{user_guid}/managed_members/{member_guid}/transactions/{transaction_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'transaction_guid' + '}', CGI.escape(transaction_guid.to_s))
|
|
3286
4285
|
|
|
3287
4286
|
# query parameters
|
|
3288
4287
|
query_params = opts[:query_params] || {}
|
|
@@ -3299,13 +4298,13 @@ module MxPlatformRuby
|
|
|
3299
4298
|
post_body = opts[:debug_body]
|
|
3300
4299
|
|
|
3301
4300
|
# return_type
|
|
3302
|
-
return_type = opts[:debug_return_type] || '
|
|
4301
|
+
return_type = opts[:debug_return_type] || 'TransactionResponseBody'
|
|
3303
4302
|
|
|
3304
4303
|
# auth_names
|
|
3305
4304
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
3306
4305
|
|
|
3307
4306
|
new_options = opts.merge(
|
|
3308
|
-
:operation => :"MxPlatformApi.
|
|
4307
|
+
:operation => :"MxPlatformApi.read_managed_transaction",
|
|
3309
4308
|
:header_params => header_params,
|
|
3310
4309
|
:query_params => query_params,
|
|
3311
4310
|
:form_params => form_params,
|
|
@@ -3316,7 +4315,7 @@ module MxPlatformRuby
|
|
|
3316
4315
|
|
|
3317
4316
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3318
4317
|
if @api_client.config.debugging
|
|
3319
|
-
@api_client.config.logger.debug "API called: MxPlatformApi#
|
|
4318
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#read_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3320
4319
|
end
|
|
3321
4320
|
return data, status_code, headers
|
|
3322
4321
|
end
|
|
@@ -3522,6 +4521,69 @@ module MxPlatformRuby
|
|
|
3522
4521
|
return data, status_code, headers
|
|
3523
4522
|
end
|
|
3524
4523
|
|
|
4524
|
+
# Read merchant location
|
|
4525
|
+
# This endpoint returns the specified merchant_location resource.
|
|
4526
|
+
# @param merchant_location_guid [String] The unique id for a `merchant_location`.
|
|
4527
|
+
# @param [Hash] opts the optional parameters
|
|
4528
|
+
# @return [MerchantLocationResponseBody]
|
|
4529
|
+
def read_merchant_location(merchant_location_guid, opts = {})
|
|
4530
|
+
data, _status_code, _headers = read_merchant_location_with_http_info(merchant_location_guid, opts)
|
|
4531
|
+
data
|
|
4532
|
+
end
|
|
4533
|
+
|
|
4534
|
+
# Read merchant location
|
|
4535
|
+
# This endpoint returns the specified merchant_location resource.
|
|
4536
|
+
# @param merchant_location_guid [String] The unique id for a `merchant_location`.
|
|
4537
|
+
# @param [Hash] opts the optional parameters
|
|
4538
|
+
# @return [Array<(MerchantLocationResponseBody, Integer, Hash)>] MerchantLocationResponseBody data, response status code and response headers
|
|
4539
|
+
def read_merchant_location_with_http_info(merchant_location_guid, opts = {})
|
|
4540
|
+
if @api_client.config.debugging
|
|
4541
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.read_merchant_location ...'
|
|
4542
|
+
end
|
|
4543
|
+
# verify the required parameter 'merchant_location_guid' is set
|
|
4544
|
+
if @api_client.config.client_side_validation && merchant_location_guid.nil?
|
|
4545
|
+
fail ArgumentError, "Missing the required parameter 'merchant_location_guid' when calling MxPlatformApi.read_merchant_location"
|
|
4546
|
+
end
|
|
4547
|
+
# resource path
|
|
4548
|
+
local_var_path = '/merchant_locations/{merchant_location_guid}'.sub('{' + 'merchant_location_guid' + '}', CGI.escape(merchant_location_guid.to_s))
|
|
4549
|
+
|
|
4550
|
+
# query parameters
|
|
4551
|
+
query_params = opts[:query_params] || {}
|
|
4552
|
+
|
|
4553
|
+
# header parameters
|
|
4554
|
+
header_params = opts[:header_params] || {}
|
|
4555
|
+
# HTTP header 'Accept' (if needed)
|
|
4556
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
4557
|
+
|
|
4558
|
+
# form parameters
|
|
4559
|
+
form_params = opts[:form_params] || {}
|
|
4560
|
+
|
|
4561
|
+
# http body (model)
|
|
4562
|
+
post_body = opts[:debug_body]
|
|
4563
|
+
|
|
4564
|
+
# return_type
|
|
4565
|
+
return_type = opts[:debug_return_type] || 'MerchantLocationResponseBody'
|
|
4566
|
+
|
|
4567
|
+
# auth_names
|
|
4568
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
4569
|
+
|
|
4570
|
+
new_options = opts.merge(
|
|
4571
|
+
:operation => :"MxPlatformApi.read_merchant_location",
|
|
4572
|
+
:header_params => header_params,
|
|
4573
|
+
:query_params => query_params,
|
|
4574
|
+
:form_params => form_params,
|
|
4575
|
+
:body => post_body,
|
|
4576
|
+
:auth_names => auth_names,
|
|
4577
|
+
:return_type => return_type
|
|
4578
|
+
)
|
|
4579
|
+
|
|
4580
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
4581
|
+
if @api_client.config.debugging
|
|
4582
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#read_merchant_location\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4583
|
+
end
|
|
4584
|
+
return data, status_code, headers
|
|
4585
|
+
end
|
|
4586
|
+
|
|
3525
4587
|
# Read statement by member
|
|
3526
4588
|
# Use this endpoint to read a JSON representation of the statement.
|
|
3527
4589
|
# @param member_guid [String] The unique id for a `member`.
|
|
@@ -3972,7 +5034,10 @@ module MxPlatformRuby
|
|
|
3972
5034
|
# HTTP header 'Accept' (if needed)
|
|
3973
5035
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
3974
5036
|
# HTTP header 'Content-Type'
|
|
3975
|
-
|
|
5037
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5038
|
+
if !content_type.nil?
|
|
5039
|
+
header_params['Content-Type'] = content_type
|
|
5040
|
+
end
|
|
3976
5041
|
|
|
3977
5042
|
# form parameters
|
|
3978
5043
|
form_params = opts[:form_params] || {}
|
|
@@ -4010,6 +5075,7 @@ module MxPlatformRuby
|
|
|
4010
5075
|
# @param [Hash] opts the optional parameters
|
|
4011
5076
|
# @option opts [String] :referral_source Must be either `BROWSER` or `APP` depending on the implementation. Defaults to `BROWSER`.
|
|
4012
5077
|
# @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
|
|
5078
|
+
# @option opts [Boolean] :skip_aggregation Setting this parameter to `true` will prevent the member from automatically aggregating after being redirected from the authorization page.
|
|
4013
5079
|
# @return [OAuthWindowResponseBody]
|
|
4014
5080
|
def request_o_auth_window_uri(member_guid, user_guid, opts = {})
|
|
4015
5081
|
data, _status_code, _headers = request_o_auth_window_uri_with_http_info(member_guid, user_guid, opts)
|
|
@@ -4023,6 +5089,7 @@ module MxPlatformRuby
|
|
|
4023
5089
|
# @param [Hash] opts the optional parameters
|
|
4024
5090
|
# @option opts [String] :referral_source Must be either `BROWSER` or `APP` depending on the implementation. Defaults to `BROWSER`.
|
|
4025
5091
|
# @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
|
|
5092
|
+
# @option opts [Boolean] :skip_aggregation Setting this parameter to `true` will prevent the member from automatically aggregating after being redirected from the authorization page.
|
|
4026
5093
|
# @return [Array<(OAuthWindowResponseBody, Integer, Hash)>] OAuthWindowResponseBody data, response status code and response headers
|
|
4027
5094
|
def request_o_auth_window_uri_with_http_info(member_guid, user_guid, opts = {})
|
|
4028
5095
|
if @api_client.config.debugging
|
|
@@ -4043,6 +5110,7 @@ module MxPlatformRuby
|
|
|
4043
5110
|
query_params = opts[:query_params] || {}
|
|
4044
5111
|
query_params[:'referral_source'] = opts[:'referral_source'] if !opts[:'referral_source'].nil?
|
|
4045
5112
|
query_params[:'ui_message_webview_url_scheme'] = opts[:'ui_message_webview_url_scheme'] if !opts[:'ui_message_webview_url_scheme'].nil?
|
|
5113
|
+
query_params[:'skip_aggregation'] = opts[:'skip_aggregation'] if !opts[:'skip_aggregation'].nil?
|
|
4046
5114
|
|
|
4047
5115
|
# header parameters
|
|
4048
5116
|
header_params = opts[:header_params] || {}
|
|
@@ -4120,7 +5188,10 @@ module MxPlatformRuby
|
|
|
4120
5188
|
# HTTP header 'Accept' (if needed)
|
|
4121
5189
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
4122
5190
|
# HTTP header 'Content-Type'
|
|
4123
|
-
|
|
5191
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5192
|
+
if !content_type.nil?
|
|
5193
|
+
header_params['Content-Type'] = content_type
|
|
5194
|
+
end
|
|
4124
5195
|
header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
|
|
4125
5196
|
|
|
4126
5197
|
# form parameters
|
|
@@ -4198,7 +5269,10 @@ module MxPlatformRuby
|
|
|
4198
5269
|
# HTTP header 'Accept' (if needed)
|
|
4199
5270
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
4200
5271
|
# HTTP header 'Content-Type'
|
|
4201
|
-
|
|
5272
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5273
|
+
if !content_type.nil?
|
|
5274
|
+
header_params['Content-Type'] = content_type
|
|
5275
|
+
end
|
|
4202
5276
|
|
|
4203
5277
|
# form parameters
|
|
4204
5278
|
form_params = opts[:form_params] || {}
|
|
@@ -4281,7 +5355,10 @@ module MxPlatformRuby
|
|
|
4281
5355
|
# HTTP header 'Accept' (if needed)
|
|
4282
5356
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
4283
5357
|
# HTTP header 'Content-Type'
|
|
4284
|
-
|
|
5358
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5359
|
+
if !content_type.nil?
|
|
5360
|
+
header_params['Content-Type'] = content_type
|
|
5361
|
+
end
|
|
4285
5362
|
|
|
4286
5363
|
# form parameters
|
|
4287
5364
|
form_params = opts[:form_params] || {}
|
|
@@ -4358,7 +5435,10 @@ module MxPlatformRuby
|
|
|
4358
5435
|
# HTTP header 'Accept' (if needed)
|
|
4359
5436
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
4360
5437
|
# HTTP header 'Content-Type'
|
|
4361
|
-
|
|
5438
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5439
|
+
if !content_type.nil?
|
|
5440
|
+
header_params['Content-Type'] = content_type
|
|
5441
|
+
end
|
|
4362
5442
|
|
|
4363
5443
|
# form parameters
|
|
4364
5444
|
form_params = opts[:form_params] || {}
|
|
@@ -4389,6 +5469,258 @@ module MxPlatformRuby
|
|
|
4389
5469
|
return data, status_code, headers
|
|
4390
5470
|
end
|
|
4391
5471
|
|
|
5472
|
+
# Update managed account
|
|
5473
|
+
# Use this endpoint to update the attributes of a partner-managed account according to its unique GUID.
|
|
5474
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
5475
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
5476
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
5477
|
+
# @param managed_account_update_request_body [ManagedAccountUpdateRequestBody] Managed account object to be updated (While no single parameter is required, the request body can't be empty)
|
|
5478
|
+
# @param [Hash] opts the optional parameters
|
|
5479
|
+
# @return [AccountResponseBody]
|
|
5480
|
+
def update_managed_account(member_guid, user_guid, account_guid, managed_account_update_request_body, opts = {})
|
|
5481
|
+
data, _status_code, _headers = update_managed_account_with_http_info(member_guid, user_guid, account_guid, managed_account_update_request_body, opts)
|
|
5482
|
+
data
|
|
5483
|
+
end
|
|
5484
|
+
|
|
5485
|
+
# Update managed account
|
|
5486
|
+
# Use this endpoint to update the attributes of a partner-managed account according to its unique GUID.
|
|
5487
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
5488
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
5489
|
+
# @param account_guid [String] The unique id for an `account`.
|
|
5490
|
+
# @param managed_account_update_request_body [ManagedAccountUpdateRequestBody] Managed account object to be updated (While no single parameter is required, the request body can't be empty)
|
|
5491
|
+
# @param [Hash] opts the optional parameters
|
|
5492
|
+
# @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
|
|
5493
|
+
def update_managed_account_with_http_info(member_guid, user_guid, account_guid, managed_account_update_request_body, opts = {})
|
|
5494
|
+
if @api_client.config.debugging
|
|
5495
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.update_managed_account ...'
|
|
5496
|
+
end
|
|
5497
|
+
# verify the required parameter 'member_guid' is set
|
|
5498
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
5499
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.update_managed_account"
|
|
5500
|
+
end
|
|
5501
|
+
# verify the required parameter 'user_guid' is set
|
|
5502
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
5503
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.update_managed_account"
|
|
5504
|
+
end
|
|
5505
|
+
# verify the required parameter 'account_guid' is set
|
|
5506
|
+
if @api_client.config.client_side_validation && account_guid.nil?
|
|
5507
|
+
fail ArgumentError, "Missing the required parameter 'account_guid' when calling MxPlatformApi.update_managed_account"
|
|
5508
|
+
end
|
|
5509
|
+
# verify the required parameter 'managed_account_update_request_body' is set
|
|
5510
|
+
if @api_client.config.client_side_validation && managed_account_update_request_body.nil?
|
|
5511
|
+
fail ArgumentError, "Missing the required parameter 'managed_account_update_request_body' when calling MxPlatformApi.update_managed_account"
|
|
5512
|
+
end
|
|
5513
|
+
# resource path
|
|
5514
|
+
local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s))
|
|
5515
|
+
|
|
5516
|
+
# query parameters
|
|
5517
|
+
query_params = opts[:query_params] || {}
|
|
5518
|
+
|
|
5519
|
+
# header parameters
|
|
5520
|
+
header_params = opts[:header_params] || {}
|
|
5521
|
+
# HTTP header 'Accept' (if needed)
|
|
5522
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
5523
|
+
# HTTP header 'Content-Type'
|
|
5524
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5525
|
+
if !content_type.nil?
|
|
5526
|
+
header_params['Content-Type'] = content_type
|
|
5527
|
+
end
|
|
5528
|
+
|
|
5529
|
+
# form parameters
|
|
5530
|
+
form_params = opts[:form_params] || {}
|
|
5531
|
+
|
|
5532
|
+
# http body (model)
|
|
5533
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_account_update_request_body)
|
|
5534
|
+
|
|
5535
|
+
# return_type
|
|
5536
|
+
return_type = opts[:debug_return_type] || 'AccountResponseBody'
|
|
5537
|
+
|
|
5538
|
+
# auth_names
|
|
5539
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
5540
|
+
|
|
5541
|
+
new_options = opts.merge(
|
|
5542
|
+
:operation => :"MxPlatformApi.update_managed_account",
|
|
5543
|
+
:header_params => header_params,
|
|
5544
|
+
:query_params => query_params,
|
|
5545
|
+
:form_params => form_params,
|
|
5546
|
+
:body => post_body,
|
|
5547
|
+
:auth_names => auth_names,
|
|
5548
|
+
:return_type => return_type
|
|
5549
|
+
)
|
|
5550
|
+
|
|
5551
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
5552
|
+
if @api_client.config.debugging
|
|
5553
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#update_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5554
|
+
end
|
|
5555
|
+
return data, status_code, headers
|
|
5556
|
+
end
|
|
5557
|
+
|
|
5558
|
+
# Update managed member
|
|
5559
|
+
# Use this endpoint to update the attributes of the specified partner_managed `member`.
|
|
5560
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
5561
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
5562
|
+
# @param managed_member_update_request_body [ManagedMemberUpdateRequestBody] Managed member object to be updated (While no single parameter is required, the request body can't be empty)
|
|
5563
|
+
# @param [Hash] opts the optional parameters
|
|
5564
|
+
# @return [MemberResponseBody]
|
|
5565
|
+
def update_managed_member(member_guid, user_guid, managed_member_update_request_body, opts = {})
|
|
5566
|
+
data, _status_code, _headers = update_managed_member_with_http_info(member_guid, user_guid, managed_member_update_request_body, opts)
|
|
5567
|
+
data
|
|
5568
|
+
end
|
|
5569
|
+
|
|
5570
|
+
# Update managed member
|
|
5571
|
+
# Use this endpoint to update the attributes of the specified partner_managed `member`.
|
|
5572
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
5573
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
5574
|
+
# @param managed_member_update_request_body [ManagedMemberUpdateRequestBody] Managed member object to be updated (While no single parameter is required, the request body can't be empty)
|
|
5575
|
+
# @param [Hash] opts the optional parameters
|
|
5576
|
+
# @return [Array<(MemberResponseBody, Integer, Hash)>] MemberResponseBody data, response status code and response headers
|
|
5577
|
+
def update_managed_member_with_http_info(member_guid, user_guid, managed_member_update_request_body, opts = {})
|
|
5578
|
+
if @api_client.config.debugging
|
|
5579
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.update_managed_member ...'
|
|
5580
|
+
end
|
|
5581
|
+
# verify the required parameter 'member_guid' is set
|
|
5582
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
5583
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.update_managed_member"
|
|
5584
|
+
end
|
|
5585
|
+
# verify the required parameter 'user_guid' is set
|
|
5586
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
5587
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.update_managed_member"
|
|
5588
|
+
end
|
|
5589
|
+
# verify the required parameter 'managed_member_update_request_body' is set
|
|
5590
|
+
if @api_client.config.client_side_validation && managed_member_update_request_body.nil?
|
|
5591
|
+
fail ArgumentError, "Missing the required parameter 'managed_member_update_request_body' when calling MxPlatformApi.update_managed_member"
|
|
5592
|
+
end
|
|
5593
|
+
# resource path
|
|
5594
|
+
local_var_path = '/users/{user_guid}/managed_members/{member_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
5595
|
+
|
|
5596
|
+
# query parameters
|
|
5597
|
+
query_params = opts[:query_params] || {}
|
|
5598
|
+
|
|
5599
|
+
# header parameters
|
|
5600
|
+
header_params = opts[:header_params] || {}
|
|
5601
|
+
# HTTP header 'Accept' (if needed)
|
|
5602
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
5603
|
+
# HTTP header 'Content-Type'
|
|
5604
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5605
|
+
if !content_type.nil?
|
|
5606
|
+
header_params['Content-Type'] = content_type
|
|
5607
|
+
end
|
|
5608
|
+
|
|
5609
|
+
# form parameters
|
|
5610
|
+
form_params = opts[:form_params] || {}
|
|
5611
|
+
|
|
5612
|
+
# http body (model)
|
|
5613
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_member_update_request_body)
|
|
5614
|
+
|
|
5615
|
+
# return_type
|
|
5616
|
+
return_type = opts[:debug_return_type] || 'MemberResponseBody'
|
|
5617
|
+
|
|
5618
|
+
# auth_names
|
|
5619
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
5620
|
+
|
|
5621
|
+
new_options = opts.merge(
|
|
5622
|
+
:operation => :"MxPlatformApi.update_managed_member",
|
|
5623
|
+
:header_params => header_params,
|
|
5624
|
+
:query_params => query_params,
|
|
5625
|
+
:form_params => form_params,
|
|
5626
|
+
:body => post_body,
|
|
5627
|
+
:auth_names => auth_names,
|
|
5628
|
+
:return_type => return_type
|
|
5629
|
+
)
|
|
5630
|
+
|
|
5631
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
5632
|
+
if @api_client.config.debugging
|
|
5633
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#update_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5634
|
+
end
|
|
5635
|
+
return data, status_code, headers
|
|
5636
|
+
end
|
|
5637
|
+
|
|
5638
|
+
# Update managed transaction
|
|
5639
|
+
# Use this endpoint to update the attributes of the specified partner_managed `transaction`.
|
|
5640
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
5641
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
5642
|
+
# @param transaction_guid [String] The unique id for a `transaction`.
|
|
5643
|
+
# @param managed_transaction_update_request_body [ManagedTransactionUpdateRequestBody] Managed transaction object to be updated (While no single parameter is required, the request body can't be empty)
|
|
5644
|
+
# @param [Hash] opts the optional parameters
|
|
5645
|
+
# @return [TransactionResponseBody]
|
|
5646
|
+
def update_managed_transaction(member_guid, user_guid, transaction_guid, managed_transaction_update_request_body, opts = {})
|
|
5647
|
+
data, _status_code, _headers = update_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, managed_transaction_update_request_body, opts)
|
|
5648
|
+
data
|
|
5649
|
+
end
|
|
5650
|
+
|
|
5651
|
+
# Update managed transaction
|
|
5652
|
+
# Use this endpoint to update the attributes of the specified partner_managed `transaction`.
|
|
5653
|
+
# @param member_guid [String] The unique id for a `member`.
|
|
5654
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
5655
|
+
# @param transaction_guid [String] The unique id for a `transaction`.
|
|
5656
|
+
# @param managed_transaction_update_request_body [ManagedTransactionUpdateRequestBody] Managed transaction object to be updated (While no single parameter is required, the request body can't be empty)
|
|
5657
|
+
# @param [Hash] opts the optional parameters
|
|
5658
|
+
# @return [Array<(TransactionResponseBody, Integer, Hash)>] TransactionResponseBody data, response status code and response headers
|
|
5659
|
+
def update_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, managed_transaction_update_request_body, opts = {})
|
|
5660
|
+
if @api_client.config.debugging
|
|
5661
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.update_managed_transaction ...'
|
|
5662
|
+
end
|
|
5663
|
+
# verify the required parameter 'member_guid' is set
|
|
5664
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
|
5665
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.update_managed_transaction"
|
|
5666
|
+
end
|
|
5667
|
+
# verify the required parameter 'user_guid' is set
|
|
5668
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
5669
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.update_managed_transaction"
|
|
5670
|
+
end
|
|
5671
|
+
# verify the required parameter 'transaction_guid' is set
|
|
5672
|
+
if @api_client.config.client_side_validation && transaction_guid.nil?
|
|
5673
|
+
fail ArgumentError, "Missing the required parameter 'transaction_guid' when calling MxPlatformApi.update_managed_transaction"
|
|
5674
|
+
end
|
|
5675
|
+
# verify the required parameter 'managed_transaction_update_request_body' is set
|
|
5676
|
+
if @api_client.config.client_side_validation && managed_transaction_update_request_body.nil?
|
|
5677
|
+
fail ArgumentError, "Missing the required parameter 'managed_transaction_update_request_body' when calling MxPlatformApi.update_managed_transaction"
|
|
5678
|
+
end
|
|
5679
|
+
# resource path
|
|
5680
|
+
local_var_path = '/users/{user_guid}/managed_members/{member_guid}/transactions/{transaction_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'transaction_guid' + '}', CGI.escape(transaction_guid.to_s))
|
|
5681
|
+
|
|
5682
|
+
# query parameters
|
|
5683
|
+
query_params = opts[:query_params] || {}
|
|
5684
|
+
|
|
5685
|
+
# header parameters
|
|
5686
|
+
header_params = opts[:header_params] || {}
|
|
5687
|
+
# HTTP header 'Accept' (if needed)
|
|
5688
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
5689
|
+
# HTTP header 'Content-Type'
|
|
5690
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5691
|
+
if !content_type.nil?
|
|
5692
|
+
header_params['Content-Type'] = content_type
|
|
5693
|
+
end
|
|
5694
|
+
|
|
5695
|
+
# form parameters
|
|
5696
|
+
form_params = opts[:form_params] || {}
|
|
5697
|
+
|
|
5698
|
+
# http body (model)
|
|
5699
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_transaction_update_request_body)
|
|
5700
|
+
|
|
5701
|
+
# return_type
|
|
5702
|
+
return_type = opts[:debug_return_type] || 'TransactionResponseBody'
|
|
5703
|
+
|
|
5704
|
+
# auth_names
|
|
5705
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
5706
|
+
|
|
5707
|
+
new_options = opts.merge(
|
|
5708
|
+
:operation => :"MxPlatformApi.update_managed_transaction",
|
|
5709
|
+
:header_params => header_params,
|
|
5710
|
+
:query_params => query_params,
|
|
5711
|
+
:form_params => form_params,
|
|
5712
|
+
:body => post_body,
|
|
5713
|
+
:auth_names => auth_names,
|
|
5714
|
+
:return_type => return_type
|
|
5715
|
+
)
|
|
5716
|
+
|
|
5717
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
5718
|
+
if @api_client.config.debugging
|
|
5719
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#update_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5720
|
+
end
|
|
5721
|
+
return data, status_code, headers
|
|
5722
|
+
end
|
|
5723
|
+
|
|
4392
5724
|
# Update member
|
|
4393
5725
|
# Use this endpoint to update a members attributes. Only the credentials, id, and metadata parameters can be updated. To get a list of the required credentials for the member, use the list member credentials endpoint.
|
|
4394
5726
|
# @param member_guid [String] The unique id for a `member`.
|
|
@@ -4435,7 +5767,10 @@ module MxPlatformRuby
|
|
|
4435
5767
|
# HTTP header 'Accept' (if needed)
|
|
4436
5768
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
4437
5769
|
# HTTP header 'Content-Type'
|
|
4438
|
-
|
|
5770
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5771
|
+
if !content_type.nil?
|
|
5772
|
+
header_params['Content-Type'] = content_type
|
|
5773
|
+
end
|
|
4439
5774
|
|
|
4440
5775
|
# form parameters
|
|
4441
5776
|
form_params = opts[:form_params] || {}
|
|
@@ -4512,7 +5847,10 @@ module MxPlatformRuby
|
|
|
4512
5847
|
# HTTP header 'Accept' (if needed)
|
|
4513
5848
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
4514
5849
|
# HTTP header 'Content-Type'
|
|
4515
|
-
|
|
5850
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5851
|
+
if !content_type.nil?
|
|
5852
|
+
header_params['Content-Type'] = content_type
|
|
5853
|
+
end
|
|
4516
5854
|
|
|
4517
5855
|
# form parameters
|
|
4518
5856
|
form_params = opts[:form_params] || {}
|
|
@@ -4589,7 +5927,10 @@ module MxPlatformRuby
|
|
|
4589
5927
|
# HTTP header 'Accept' (if needed)
|
|
4590
5928
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
4591
5929
|
# HTTP header 'Content-Type'
|
|
4592
|
-
|
|
5930
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5931
|
+
if !content_type.nil?
|
|
5932
|
+
header_params['Content-Type'] = content_type
|
|
5933
|
+
end
|
|
4593
5934
|
|
|
4594
5935
|
# form parameters
|
|
4595
5936
|
form_params = opts[:form_params] || {}
|
|
@@ -4666,7 +6007,10 @@ module MxPlatformRuby
|
|
|
4666
6007
|
# HTTP header 'Accept' (if needed)
|
|
4667
6008
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
4668
6009
|
# HTTP header 'Content-Type'
|
|
4669
|
-
|
|
6010
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
6011
|
+
if !content_type.nil?
|
|
6012
|
+
header_params['Content-Type'] = content_type
|
|
6013
|
+
end
|
|
4670
6014
|
|
|
4671
6015
|
# form parameters
|
|
4672
6016
|
form_params = opts[:form_params] || {}
|
|
@@ -4743,7 +6087,10 @@ module MxPlatformRuby
|
|
|
4743
6087
|
# HTTP header 'Accept' (if needed)
|
|
4744
6088
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
4745
6089
|
# HTTP header 'Content-Type'
|
|
4746
|
-
|
|
6090
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
6091
|
+
if !content_type.nil?
|
|
6092
|
+
header_params['Content-Type'] = content_type
|
|
6093
|
+
end
|
|
4747
6094
|
|
|
4748
6095
|
# form parameters
|
|
4749
6096
|
form_params = opts[:form_params] || {}
|
|
@@ -4814,7 +6161,10 @@ module MxPlatformRuby
|
|
|
4814
6161
|
# HTTP header 'Accept' (if needed)
|
|
4815
6162
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
4816
6163
|
# HTTP header 'Content-Type'
|
|
4817
|
-
|
|
6164
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
6165
|
+
if !content_type.nil?
|
|
6166
|
+
header_params['Content-Type'] = content_type
|
|
6167
|
+
end
|
|
4818
6168
|
|
|
4819
6169
|
# form parameters
|
|
4820
6170
|
form_params = opts[:form_params] || {}
|