mx-platform-ruby 0.4.2 → 0.5.0
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 +5 -5
- data/README.md +1 -1
- 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 +1397 -119
- data/docs/TransactionResponse.md +11 -1
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +1379 -125
- data/lib/mx-platform-ruby/models/account_response.rb +67 -4
- 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_response.rb +22 -4
- data/lib/mx-platform-ruby/models/merchant_location_response.rb +317 -0
- data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +218 -0
- data/lib/mx-platform-ruby/models/transaction_response.rb +49 -4
- data/lib/mx-platform-ruby/version.rb +1 -1
- data/lib/mx-platform-ruby.rb +14 -0
- data/openapi/config.yml +1 -1
- data/spec/api/mx_platform_api_spec.rb +237 -0
- data/spec/models/account_response_spec.rb +42 -0
- 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_response_spec.rb +12 -0
- data/spec/models/merchant_location_response_body_spec.rb +34 -0
- data/spec/models/merchant_location_response_spec.rb +100 -0
- data/spec/models/transaction_response_spec.rb +30 -0
- metadata +136 -80
@@ -228,6 +228,231 @@ module MxPlatformRuby
|
|
228
228
|
return data, status_code, headers
|
229
229
|
end
|
230
230
|
|
231
|
+
# Create managed account
|
232
|
+
# Use this endpoint to create a partner-managed account.
|
233
|
+
# @param user_guid [String] The unique id for a `user`.
|
234
|
+
# @param member_guid [String] The unique id for a `member`.
|
235
|
+
# @param managed_account_create_request_body [ManagedAccountCreateRequestBody] Managed account to be created.
|
236
|
+
# @param [Hash] opts the optional parameters
|
237
|
+
# @return [AccountResponseBody]
|
238
|
+
def create_managed_account(user_guid, member_guid, managed_account_create_request_body, opts = {})
|
239
|
+
data, _status_code, _headers = create_managed_account_with_http_info(user_guid, member_guid, managed_account_create_request_body, opts)
|
240
|
+
data
|
241
|
+
end
|
242
|
+
|
243
|
+
# Create managed account
|
244
|
+
# Use this endpoint to create a partner-managed account.
|
245
|
+
# @param user_guid [String] The unique id for a `user`.
|
246
|
+
# @param member_guid [String] The unique id for a `member`.
|
247
|
+
# @param managed_account_create_request_body [ManagedAccountCreateRequestBody] Managed account to be created.
|
248
|
+
# @param [Hash] opts the optional parameters
|
249
|
+
# @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
|
250
|
+
def create_managed_account_with_http_info(user_guid, member_guid, managed_account_create_request_body, opts = {})
|
251
|
+
if @api_client.config.debugging
|
252
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.create_managed_account ...'
|
253
|
+
end
|
254
|
+
# verify the required parameter 'user_guid' is set
|
255
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
256
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.create_managed_account"
|
257
|
+
end
|
258
|
+
# verify the required parameter 'member_guid' is set
|
259
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
260
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.create_managed_account"
|
261
|
+
end
|
262
|
+
# verify the required parameter 'managed_account_create_request_body' is set
|
263
|
+
if @api_client.config.client_side_validation && managed_account_create_request_body.nil?
|
264
|
+
fail ArgumentError, "Missing the required parameter 'managed_account_create_request_body' when calling MxPlatformApi.create_managed_account"
|
265
|
+
end
|
266
|
+
# resource path
|
267
|
+
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))
|
268
|
+
|
269
|
+
# query parameters
|
270
|
+
query_params = opts[:query_params] || {}
|
271
|
+
|
272
|
+
# header parameters
|
273
|
+
header_params = opts[:header_params] || {}
|
274
|
+
# HTTP header 'Accept' (if needed)
|
275
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
276
|
+
# HTTP header 'Content-Type'
|
277
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
278
|
+
|
279
|
+
# form parameters
|
280
|
+
form_params = opts[:form_params] || {}
|
281
|
+
|
282
|
+
# http body (model)
|
283
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_account_create_request_body)
|
284
|
+
|
285
|
+
# return_type
|
286
|
+
return_type = opts[:debug_return_type] || 'AccountResponseBody'
|
287
|
+
|
288
|
+
# auth_names
|
289
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
290
|
+
|
291
|
+
new_options = opts.merge(
|
292
|
+
:operation => :"MxPlatformApi.create_managed_account",
|
293
|
+
:header_params => header_params,
|
294
|
+
:query_params => query_params,
|
295
|
+
:form_params => form_params,
|
296
|
+
:body => post_body,
|
297
|
+
:auth_names => auth_names,
|
298
|
+
:return_type => return_type
|
299
|
+
)
|
300
|
+
|
301
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
302
|
+
if @api_client.config.debugging
|
303
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#create_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
304
|
+
end
|
305
|
+
return data, status_code, headers
|
306
|
+
end
|
307
|
+
|
308
|
+
# Create managed member
|
309
|
+
# Use this endpoint to create a new partner-managed `member`.
|
310
|
+
# @param user_guid [String] The unique id for a `user`.
|
311
|
+
# @param managed_member_create_request_body [ManagedMemberCreateRequestBody] Managed member to be created.
|
312
|
+
# @param [Hash] opts the optional parameters
|
313
|
+
# @return [MemberResponseBody]
|
314
|
+
def create_managed_member(user_guid, managed_member_create_request_body, opts = {})
|
315
|
+
data, _status_code, _headers = create_managed_member_with_http_info(user_guid, managed_member_create_request_body, opts)
|
316
|
+
data
|
317
|
+
end
|
318
|
+
|
319
|
+
# Create managed member
|
320
|
+
# Use this endpoint to create a new partner-managed `member`.
|
321
|
+
# @param user_guid [String] The unique id for a `user`.
|
322
|
+
# @param managed_member_create_request_body [ManagedMemberCreateRequestBody] Managed member to be created.
|
323
|
+
# @param [Hash] opts the optional parameters
|
324
|
+
# @return [Array<(MemberResponseBody, Integer, Hash)>] MemberResponseBody data, response status code and response headers
|
325
|
+
def create_managed_member_with_http_info(user_guid, managed_member_create_request_body, opts = {})
|
326
|
+
if @api_client.config.debugging
|
327
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.create_managed_member ...'
|
328
|
+
end
|
329
|
+
# verify the required parameter 'user_guid' is set
|
330
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
331
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.create_managed_member"
|
332
|
+
end
|
333
|
+
# verify the required parameter 'managed_member_create_request_body' is set
|
334
|
+
if @api_client.config.client_side_validation && managed_member_create_request_body.nil?
|
335
|
+
fail ArgumentError, "Missing the required parameter 'managed_member_create_request_body' when calling MxPlatformApi.create_managed_member"
|
336
|
+
end
|
337
|
+
# resource path
|
338
|
+
local_var_path = '/users/{user_guid}/managed_members'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
339
|
+
|
340
|
+
# query parameters
|
341
|
+
query_params = opts[:query_params] || {}
|
342
|
+
|
343
|
+
# header parameters
|
344
|
+
header_params = opts[:header_params] || {}
|
345
|
+
# HTTP header 'Accept' (if needed)
|
346
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
347
|
+
# HTTP header 'Content-Type'
|
348
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
349
|
+
|
350
|
+
# form parameters
|
351
|
+
form_params = opts[:form_params] || {}
|
352
|
+
|
353
|
+
# http body (model)
|
354
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_member_create_request_body)
|
355
|
+
|
356
|
+
# return_type
|
357
|
+
return_type = opts[:debug_return_type] || 'MemberResponseBody'
|
358
|
+
|
359
|
+
# auth_names
|
360
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
361
|
+
|
362
|
+
new_options = opts.merge(
|
363
|
+
:operation => :"MxPlatformApi.create_managed_member",
|
364
|
+
:header_params => header_params,
|
365
|
+
:query_params => query_params,
|
366
|
+
:form_params => form_params,
|
367
|
+
:body => post_body,
|
368
|
+
:auth_names => auth_names,
|
369
|
+
:return_type => return_type
|
370
|
+
)
|
371
|
+
|
372
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
373
|
+
if @api_client.config.debugging
|
374
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#create_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
375
|
+
end
|
376
|
+
return data, status_code, headers
|
377
|
+
end
|
378
|
+
|
379
|
+
# Create managed transaction
|
380
|
+
# Use this endpoint to create a new partner-managed `transaction`.
|
381
|
+
# @param user_guid [String] The unique id for a `user`.
|
382
|
+
# @param member_guid [String] The unique id for a `member`.
|
383
|
+
# @param managed_transaction_create_request_body [ManagedTransactionCreateRequestBody] Managed transaction to be created.
|
384
|
+
# @param [Hash] opts the optional parameters
|
385
|
+
# @return [TransactionResponseBody]
|
386
|
+
def create_managed_transaction(user_guid, member_guid, managed_transaction_create_request_body, opts = {})
|
387
|
+
data, _status_code, _headers = create_managed_transaction_with_http_info(user_guid, member_guid, managed_transaction_create_request_body, opts)
|
388
|
+
data
|
389
|
+
end
|
390
|
+
|
391
|
+
# Create managed transaction
|
392
|
+
# Use this endpoint to create a new partner-managed `transaction`.
|
393
|
+
# @param user_guid [String] The unique id for a `user`.
|
394
|
+
# @param member_guid [String] The unique id for a `member`.
|
395
|
+
# @param managed_transaction_create_request_body [ManagedTransactionCreateRequestBody] Managed transaction to be created.
|
396
|
+
# @param [Hash] opts the optional parameters
|
397
|
+
# @return [Array<(TransactionResponseBody, Integer, Hash)>] TransactionResponseBody data, response status code and response headers
|
398
|
+
def create_managed_transaction_with_http_info(user_guid, member_guid, managed_transaction_create_request_body, opts = {})
|
399
|
+
if @api_client.config.debugging
|
400
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.create_managed_transaction ...'
|
401
|
+
end
|
402
|
+
# verify the required parameter 'user_guid' is set
|
403
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
404
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.create_managed_transaction"
|
405
|
+
end
|
406
|
+
# verify the required parameter 'member_guid' is set
|
407
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
408
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.create_managed_transaction"
|
409
|
+
end
|
410
|
+
# verify the required parameter 'managed_transaction_create_request_body' is set
|
411
|
+
if @api_client.config.client_side_validation && managed_transaction_create_request_body.nil?
|
412
|
+
fail ArgumentError, "Missing the required parameter 'managed_transaction_create_request_body' when calling MxPlatformApi.create_managed_transaction"
|
413
|
+
end
|
414
|
+
# resource path
|
415
|
+
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))
|
416
|
+
|
417
|
+
# query parameters
|
418
|
+
query_params = opts[:query_params] || {}
|
419
|
+
|
420
|
+
# header parameters
|
421
|
+
header_params = opts[:header_params] || {}
|
422
|
+
# HTTP header 'Accept' (if needed)
|
423
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
424
|
+
# HTTP header 'Content-Type'
|
425
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
426
|
+
|
427
|
+
# form parameters
|
428
|
+
form_params = opts[:form_params] || {}
|
429
|
+
|
430
|
+
# http body (model)
|
431
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_transaction_create_request_body)
|
432
|
+
|
433
|
+
# return_type
|
434
|
+
return_type = opts[:debug_return_type] || 'TransactionResponseBody'
|
435
|
+
|
436
|
+
# auth_names
|
437
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
438
|
+
|
439
|
+
new_options = opts.merge(
|
440
|
+
:operation => :"MxPlatformApi.create_managed_transaction",
|
441
|
+
:header_params => header_params,
|
442
|
+
:query_params => query_params,
|
443
|
+
:form_params => form_params,
|
444
|
+
:body => post_body,
|
445
|
+
:auth_names => auth_names,
|
446
|
+
:return_type => return_type
|
447
|
+
)
|
448
|
+
|
449
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
450
|
+
if @api_client.config.debugging
|
451
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#create_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
452
|
+
end
|
453
|
+
return data, status_code, headers
|
454
|
+
end
|
455
|
+
|
231
456
|
# Create member
|
232
457
|
# 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
458
|
# @param user_guid [String] The unique id for a `user`.
|
@@ -646,37 +871,43 @@ module MxPlatformRuby
|
|
646
871
|
return data, status_code, headers
|
647
872
|
end
|
648
873
|
|
649
|
-
# Delete
|
650
|
-
#
|
874
|
+
# Delete managed account
|
875
|
+
# 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
876
|
# @param member_guid [String] The unique id for a `member`.
|
652
877
|
# @param user_guid [String] The unique id for a `user`.
|
878
|
+
# @param account_guid [String] The unique id for an `account`.
|
653
879
|
# @param [Hash] opts the optional parameters
|
654
880
|
# @return [nil]
|
655
|
-
def
|
656
|
-
|
881
|
+
def delete_managed_account(member_guid, user_guid, account_guid, opts = {})
|
882
|
+
delete_managed_account_with_http_info(member_guid, user_guid, account_guid, opts)
|
657
883
|
nil
|
658
884
|
end
|
659
885
|
|
660
|
-
# Delete
|
661
|
-
#
|
886
|
+
# Delete managed account
|
887
|
+
# 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
888
|
# @param member_guid [String] The unique id for a `member`.
|
663
889
|
# @param user_guid [String] The unique id for a `user`.
|
890
|
+
# @param account_guid [String] The unique id for an `account`.
|
664
891
|
# @param [Hash] opts the optional parameters
|
665
892
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
666
|
-
def
|
893
|
+
def delete_managed_account_with_http_info(member_guid, user_guid, account_guid, opts = {})
|
667
894
|
if @api_client.config.debugging
|
668
|
-
@api_client.config.logger.debug 'Calling API: MxPlatformApi.
|
895
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_managed_account ...'
|
669
896
|
end
|
670
897
|
# verify the required parameter 'member_guid' is set
|
671
898
|
if @api_client.config.client_side_validation && member_guid.nil?
|
672
|
-
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.
|
899
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.delete_managed_account"
|
673
900
|
end
|
674
901
|
# verify the required parameter 'user_guid' is set
|
675
902
|
if @api_client.config.client_side_validation && user_guid.nil?
|
676
|
-
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.
|
903
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_managed_account"
|
904
|
+
end
|
905
|
+
# verify the required parameter 'account_guid' is set
|
906
|
+
if @api_client.config.client_side_validation && account_guid.nil?
|
907
|
+
fail ArgumentError, "Missing the required parameter 'account_guid' when calling MxPlatformApi.delete_managed_account"
|
677
908
|
end
|
678
909
|
# resource path
|
679
|
-
local_var_path = '/users/{user_guid}/
|
910
|
+
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
911
|
|
681
912
|
# query parameters
|
682
913
|
query_params = opts[:query_params] || {}
|
@@ -699,7 +930,7 @@ module MxPlatformRuby
|
|
699
930
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
700
931
|
|
701
932
|
new_options = opts.merge(
|
702
|
-
:operation => :"MxPlatformApi.
|
933
|
+
:operation => :"MxPlatformApi.delete_managed_account",
|
703
934
|
:header_params => header_params,
|
704
935
|
:query_params => query_params,
|
705
936
|
:form_params => form_params,
|
@@ -710,42 +941,42 @@ module MxPlatformRuby
|
|
710
941
|
|
711
942
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
712
943
|
if @api_client.config.debugging
|
713
|
-
@api_client.config.logger.debug "API called: MxPlatformApi#
|
944
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#delete_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
714
945
|
end
|
715
946
|
return data, status_code, headers
|
716
947
|
end
|
717
948
|
|
718
|
-
# Delete
|
719
|
-
# Use this endpoint to
|
720
|
-
# @param
|
949
|
+
# Delete managed member
|
950
|
+
# Use this endpoint to delete the specified partner-managed `member`. The endpoint will respond with a status of `204 No Content` without a resource.
|
951
|
+
# @param member_guid [String] The unique id for a `member`.
|
721
952
|
# @param user_guid [String] The unique id for a `user`.
|
722
953
|
# @param [Hash] opts the optional parameters
|
723
954
|
# @return [nil]
|
724
|
-
def
|
725
|
-
|
955
|
+
def delete_managed_member(member_guid, user_guid, opts = {})
|
956
|
+
delete_managed_member_with_http_info(member_guid, user_guid, opts)
|
726
957
|
nil
|
727
958
|
end
|
728
959
|
|
729
|
-
# Delete
|
730
|
-
# Use this endpoint to
|
731
|
-
# @param
|
960
|
+
# Delete managed member
|
961
|
+
# Use this endpoint to delete the specified partner-managed `member`. The endpoint will respond with a status of `204 No Content` without a resource.
|
962
|
+
# @param member_guid [String] The unique id for a `member`.
|
732
963
|
# @param user_guid [String] The unique id for a `user`.
|
733
964
|
# @param [Hash] opts the optional parameters
|
734
965
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
735
|
-
def
|
966
|
+
def delete_managed_member_with_http_info(member_guid, user_guid, opts = {})
|
736
967
|
if @api_client.config.debugging
|
737
|
-
@api_client.config.logger.debug 'Calling API: MxPlatformApi.
|
968
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_managed_member ...'
|
738
969
|
end
|
739
|
-
# verify the required parameter '
|
740
|
-
if @api_client.config.client_side_validation &&
|
741
|
-
fail ArgumentError, "Missing the required parameter '
|
970
|
+
# verify the required parameter 'member_guid' is set
|
971
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
972
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.delete_managed_member"
|
742
973
|
end
|
743
974
|
# verify the required parameter 'user_guid' is set
|
744
975
|
if @api_client.config.client_side_validation && user_guid.nil?
|
745
|
-
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.
|
976
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_managed_member"
|
746
977
|
end
|
747
978
|
# resource path
|
748
|
-
local_var_path = '/users/{user_guid}/
|
979
|
+
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
980
|
|
750
981
|
# query parameters
|
751
982
|
query_params = opts[:query_params] || {}
|
@@ -768,7 +999,7 @@ module MxPlatformRuby
|
|
768
999
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
769
1000
|
|
770
1001
|
new_options = opts.merge(
|
771
|
-
:operation => :"MxPlatformApi.
|
1002
|
+
:operation => :"MxPlatformApi.delete_managed_member",
|
772
1003
|
:header_params => header_params,
|
773
1004
|
:query_params => query_params,
|
774
1005
|
:form_params => form_params,
|
@@ -779,42 +1010,48 @@ module MxPlatformRuby
|
|
779
1010
|
|
780
1011
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
781
1012
|
if @api_client.config.debugging
|
782
|
-
@api_client.config.logger.debug "API called: MxPlatformApi#
|
1013
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#delete_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
783
1014
|
end
|
784
1015
|
return data, status_code, headers
|
785
1016
|
end
|
786
1017
|
|
787
|
-
# Delete
|
788
|
-
# Use this endpoint to delete
|
789
|
-
# @param
|
1018
|
+
# Delete managed transaction
|
1019
|
+
# Use this endpoint to delete the specified partner-managed `transaction`. The endpoint will respond with a status of `204 No Content` without a resource.
|
1020
|
+
# @param member_guid [String] The unique id for a `member`.
|
790
1021
|
# @param user_guid [String] The unique id for a `user`.
|
1022
|
+
# @param transaction_guid [String] The unique id for a `transaction`.
|
791
1023
|
# @param [Hash] opts the optional parameters
|
792
1024
|
# @return [nil]
|
793
|
-
def
|
794
|
-
|
1025
|
+
def delete_managed_transaction(member_guid, user_guid, transaction_guid, opts = {})
|
1026
|
+
delete_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, opts)
|
795
1027
|
nil
|
796
1028
|
end
|
797
1029
|
|
798
|
-
# Delete
|
799
|
-
# Use this endpoint to delete
|
800
|
-
# @param
|
1030
|
+
# Delete managed transaction
|
1031
|
+
# Use this endpoint to delete the specified partner-managed `transaction`. The endpoint will respond with a status of `204 No Content` without a resource.
|
1032
|
+
# @param member_guid [String] The unique id for a `member`.
|
801
1033
|
# @param user_guid [String] The unique id for a `user`.
|
1034
|
+
# @param transaction_guid [String] The unique id for a `transaction`.
|
802
1035
|
# @param [Hash] opts the optional parameters
|
803
1036
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
804
|
-
def
|
1037
|
+
def delete_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, opts = {})
|
805
1038
|
if @api_client.config.debugging
|
806
|
-
@api_client.config.logger.debug 'Calling API: MxPlatformApi.
|
1039
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_managed_transaction ...'
|
807
1040
|
end
|
808
|
-
# verify the required parameter '
|
809
|
-
if @api_client.config.client_side_validation &&
|
810
|
-
fail ArgumentError, "Missing the required parameter '
|
1041
|
+
# verify the required parameter 'member_guid' is set
|
1042
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
1043
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.delete_managed_transaction"
|
811
1044
|
end
|
812
1045
|
# verify the required parameter 'user_guid' is set
|
813
1046
|
if @api_client.config.client_side_validation && user_guid.nil?
|
814
|
-
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.
|
1047
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_managed_transaction"
|
1048
|
+
end
|
1049
|
+
# verify the required parameter 'transaction_guid' is set
|
1050
|
+
if @api_client.config.client_side_validation && transaction_guid.nil?
|
1051
|
+
fail ArgumentError, "Missing the required parameter 'transaction_guid' when calling MxPlatformApi.delete_managed_transaction"
|
815
1052
|
end
|
816
1053
|
# resource path
|
817
|
-
local_var_path = '/users/{user_guid}/
|
1054
|
+
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
1055
|
|
819
1056
|
# query parameters
|
820
1057
|
query_params = opts[:query_params] || {}
|
@@ -837,7 +1074,7 @@ module MxPlatformRuby
|
|
837
1074
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
838
1075
|
|
839
1076
|
new_options = opts.merge(
|
840
|
-
:operation => :"MxPlatformApi.
|
1077
|
+
:operation => :"MxPlatformApi.delete_managed_transaction",
|
841
1078
|
:header_params => header_params,
|
842
1079
|
:query_params => query_params,
|
843
1080
|
:form_params => form_params,
|
@@ -848,34 +1085,241 @@ module MxPlatformRuby
|
|
848
1085
|
|
849
1086
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
850
1087
|
if @api_client.config.debugging
|
851
|
-
@api_client.config.logger.debug "API called: MxPlatformApi#
|
1088
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#delete_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
852
1089
|
end
|
853
1090
|
return data, status_code, headers
|
854
1091
|
end
|
855
1092
|
|
856
|
-
# Delete
|
857
|
-
#
|
858
|
-
# @param
|
1093
|
+
# Delete member
|
1094
|
+
# Accessing this endpoint will permanently delete a member.
|
1095
|
+
# @param member_guid [String] The unique id for a `member`.
|
859
1096
|
# @param user_guid [String] The unique id for a `user`.
|
860
1097
|
# @param [Hash] opts the optional parameters
|
861
1098
|
# @return [nil]
|
862
|
-
def
|
863
|
-
|
1099
|
+
def delete_member(member_guid, user_guid, opts = {})
|
1100
|
+
delete_member_with_http_info(member_guid, user_guid, opts)
|
864
1101
|
nil
|
865
1102
|
end
|
866
1103
|
|
867
|
-
# Delete
|
868
|
-
#
|
869
|
-
# @param
|
1104
|
+
# Delete member
|
1105
|
+
# Accessing this endpoint will permanently delete a member.
|
1106
|
+
# @param member_guid [String] The unique id for a `member`.
|
870
1107
|
# @param user_guid [String] The unique id for a `user`.
|
871
1108
|
# @param [Hash] opts the optional parameters
|
872
1109
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
873
|
-
def
|
1110
|
+
def delete_member_with_http_info(member_guid, user_guid, opts = {})
|
874
1111
|
if @api_client.config.debugging
|
875
|
-
@api_client.config.logger.debug 'Calling API: MxPlatformApi.
|
1112
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_member ...'
|
876
1113
|
end
|
877
|
-
# verify the required parameter '
|
878
|
-
if @api_client.config.client_side_validation &&
|
1114
|
+
# verify the required parameter 'member_guid' is set
|
1115
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
1116
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.delete_member"
|
1117
|
+
end
|
1118
|
+
# verify the required parameter 'user_guid' is set
|
1119
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
1120
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_member"
|
1121
|
+
end
|
1122
|
+
# resource path
|
1123
|
+
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))
|
1124
|
+
|
1125
|
+
# query parameters
|
1126
|
+
query_params = opts[:query_params] || {}
|
1127
|
+
|
1128
|
+
# header parameters
|
1129
|
+
header_params = opts[:header_params] || {}
|
1130
|
+
# HTTP header 'Accept' (if needed)
|
1131
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
1132
|
+
|
1133
|
+
# form parameters
|
1134
|
+
form_params = opts[:form_params] || {}
|
1135
|
+
|
1136
|
+
# http body (model)
|
1137
|
+
post_body = opts[:debug_body]
|
1138
|
+
|
1139
|
+
# return_type
|
1140
|
+
return_type = opts[:debug_return_type]
|
1141
|
+
|
1142
|
+
# auth_names
|
1143
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
1144
|
+
|
1145
|
+
new_options = opts.merge(
|
1146
|
+
:operation => :"MxPlatformApi.delete_member",
|
1147
|
+
:header_params => header_params,
|
1148
|
+
:query_params => query_params,
|
1149
|
+
:form_params => form_params,
|
1150
|
+
:body => post_body,
|
1151
|
+
:auth_names => auth_names,
|
1152
|
+
:return_type => return_type
|
1153
|
+
)
|
1154
|
+
|
1155
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
1156
|
+
if @api_client.config.debugging
|
1157
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#delete_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1158
|
+
end
|
1159
|
+
return data, status_code, headers
|
1160
|
+
end
|
1161
|
+
|
1162
|
+
# Delete tag
|
1163
|
+
# 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`.
|
1164
|
+
# @param tag_guid [String] The unique id for a `tag`.
|
1165
|
+
# @param user_guid [String] The unique id for a `user`.
|
1166
|
+
# @param [Hash] opts the optional parameters
|
1167
|
+
# @return [nil]
|
1168
|
+
def delete_tag(tag_guid, user_guid, opts = {})
|
1169
|
+
delete_tag_with_http_info(tag_guid, user_guid, opts)
|
1170
|
+
nil
|
1171
|
+
end
|
1172
|
+
|
1173
|
+
# Delete tag
|
1174
|
+
# 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`.
|
1175
|
+
# @param tag_guid [String] The unique id for a `tag`.
|
1176
|
+
# @param user_guid [String] The unique id for a `user`.
|
1177
|
+
# @param [Hash] opts the optional parameters
|
1178
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1179
|
+
def delete_tag_with_http_info(tag_guid, user_guid, opts = {})
|
1180
|
+
if @api_client.config.debugging
|
1181
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_tag ...'
|
1182
|
+
end
|
1183
|
+
# verify the required parameter 'tag_guid' is set
|
1184
|
+
if @api_client.config.client_side_validation && tag_guid.nil?
|
1185
|
+
fail ArgumentError, "Missing the required parameter 'tag_guid' when calling MxPlatformApi.delete_tag"
|
1186
|
+
end
|
1187
|
+
# verify the required parameter 'user_guid' is set
|
1188
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
1189
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_tag"
|
1190
|
+
end
|
1191
|
+
# resource path
|
1192
|
+
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))
|
1193
|
+
|
1194
|
+
# query parameters
|
1195
|
+
query_params = opts[:query_params] || {}
|
1196
|
+
|
1197
|
+
# header parameters
|
1198
|
+
header_params = opts[:header_params] || {}
|
1199
|
+
# HTTP header 'Accept' (if needed)
|
1200
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
1201
|
+
|
1202
|
+
# form parameters
|
1203
|
+
form_params = opts[:form_params] || {}
|
1204
|
+
|
1205
|
+
# http body (model)
|
1206
|
+
post_body = opts[:debug_body]
|
1207
|
+
|
1208
|
+
# return_type
|
1209
|
+
return_type = opts[:debug_return_type]
|
1210
|
+
|
1211
|
+
# auth_names
|
1212
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
1213
|
+
|
1214
|
+
new_options = opts.merge(
|
1215
|
+
:operation => :"MxPlatformApi.delete_tag",
|
1216
|
+
:header_params => header_params,
|
1217
|
+
:query_params => query_params,
|
1218
|
+
:form_params => form_params,
|
1219
|
+
:body => post_body,
|
1220
|
+
:auth_names => auth_names,
|
1221
|
+
:return_type => return_type
|
1222
|
+
)
|
1223
|
+
|
1224
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
1225
|
+
if @api_client.config.debugging
|
1226
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#delete_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1227
|
+
end
|
1228
|
+
return data, status_code, headers
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
# Delete tagging
|
1232
|
+
# 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.
|
1233
|
+
# @param tagging_guid [String] The unique id for a `tagging`.
|
1234
|
+
# @param user_guid [String] The unique id for a `user`.
|
1235
|
+
# @param [Hash] opts the optional parameters
|
1236
|
+
# @return [nil]
|
1237
|
+
def delete_tagging(tagging_guid, user_guid, opts = {})
|
1238
|
+
delete_tagging_with_http_info(tagging_guid, user_guid, opts)
|
1239
|
+
nil
|
1240
|
+
end
|
1241
|
+
|
1242
|
+
# Delete tagging
|
1243
|
+
# 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.
|
1244
|
+
# @param tagging_guid [String] The unique id for a `tagging`.
|
1245
|
+
# @param user_guid [String] The unique id for a `user`.
|
1246
|
+
# @param [Hash] opts the optional parameters
|
1247
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1248
|
+
def delete_tagging_with_http_info(tagging_guid, user_guid, opts = {})
|
1249
|
+
if @api_client.config.debugging
|
1250
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_tagging ...'
|
1251
|
+
end
|
1252
|
+
# verify the required parameter 'tagging_guid' is set
|
1253
|
+
if @api_client.config.client_side_validation && tagging_guid.nil?
|
1254
|
+
fail ArgumentError, "Missing the required parameter 'tagging_guid' when calling MxPlatformApi.delete_tagging"
|
1255
|
+
end
|
1256
|
+
# verify the required parameter 'user_guid' is set
|
1257
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
1258
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_tagging"
|
1259
|
+
end
|
1260
|
+
# resource path
|
1261
|
+
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))
|
1262
|
+
|
1263
|
+
# query parameters
|
1264
|
+
query_params = opts[:query_params] || {}
|
1265
|
+
|
1266
|
+
# header parameters
|
1267
|
+
header_params = opts[:header_params] || {}
|
1268
|
+
# HTTP header 'Accept' (if needed)
|
1269
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
1270
|
+
|
1271
|
+
# form parameters
|
1272
|
+
form_params = opts[:form_params] || {}
|
1273
|
+
|
1274
|
+
# http body (model)
|
1275
|
+
post_body = opts[:debug_body]
|
1276
|
+
|
1277
|
+
# return_type
|
1278
|
+
return_type = opts[:debug_return_type]
|
1279
|
+
|
1280
|
+
# auth_names
|
1281
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
1282
|
+
|
1283
|
+
new_options = opts.merge(
|
1284
|
+
:operation => :"MxPlatformApi.delete_tagging",
|
1285
|
+
:header_params => header_params,
|
1286
|
+
:query_params => query_params,
|
1287
|
+
:form_params => form_params,
|
1288
|
+
:body => post_body,
|
1289
|
+
:auth_names => auth_names,
|
1290
|
+
:return_type => return_type
|
1291
|
+
)
|
1292
|
+
|
1293
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
1294
|
+
if @api_client.config.debugging
|
1295
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#delete_tagging\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1296
|
+
end
|
1297
|
+
return data, status_code, headers
|
1298
|
+
end
|
1299
|
+
|
1300
|
+
# Delete transaction rule
|
1301
|
+
# Use this endpoint to permanently delete a transaction rule based on its unique GUID.
|
1302
|
+
# @param transaction_rule_guid [String] The unique id for a `transaction_rule`.
|
1303
|
+
# @param user_guid [String] The unique id for a `user`.
|
1304
|
+
# @param [Hash] opts the optional parameters
|
1305
|
+
# @return [nil]
|
1306
|
+
def delete_transaction_rule(transaction_rule_guid, user_guid, opts = {})
|
1307
|
+
delete_transaction_rule_with_http_info(transaction_rule_guid, user_guid, opts)
|
1308
|
+
nil
|
1309
|
+
end
|
1310
|
+
|
1311
|
+
# Delete transaction rule
|
1312
|
+
# Use this endpoint to permanently delete a transaction rule based on its unique GUID.
|
1313
|
+
# @param transaction_rule_guid [String] The unique id for a `transaction_rule`.
|
1314
|
+
# @param user_guid [String] The unique id for a `user`.
|
1315
|
+
# @param [Hash] opts the optional parameters
|
1316
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1317
|
+
def delete_transaction_rule_with_http_info(transaction_rule_guid, user_guid, opts = {})
|
1318
|
+
if @api_client.config.debugging
|
1319
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_transaction_rule ...'
|
1320
|
+
end
|
1321
|
+
# verify the required parameter 'transaction_rule_guid' is set
|
1322
|
+
if @api_client.config.client_side_validation && transaction_rule_guid.nil?
|
879
1323
|
fail ArgumentError, "Missing the required parameter 'transaction_rule_guid' when calling MxPlatformApi.delete_transaction_rule"
|
880
1324
|
end
|
881
1325
|
# verify the required parameter 'user_guid' is set
|
@@ -1869,10 +2313,289 @@ module MxPlatformRuby
|
|
1869
2313
|
|
1870
2314
|
# query parameters
|
1871
2315
|
query_params = opts[:query_params] || {}
|
1872
|
-
query_params[:'from_date'] = opts[:'from_date'] if !opts[:'from_date'].nil?
|
2316
|
+
query_params[:'from_date'] = opts[:'from_date'] if !opts[:'from_date'].nil?
|
2317
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
2318
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
2319
|
+
query_params[:'to_date'] = opts[:'to_date'] if !opts[:'to_date'].nil?
|
2320
|
+
|
2321
|
+
# header parameters
|
2322
|
+
header_params = opts[:header_params] || {}
|
2323
|
+
# HTTP header 'Accept' (if needed)
|
2324
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
2325
|
+
|
2326
|
+
# form parameters
|
2327
|
+
form_params = opts[:form_params] || {}
|
2328
|
+
|
2329
|
+
# http body (model)
|
2330
|
+
post_body = opts[:debug_body]
|
2331
|
+
|
2332
|
+
# return_type
|
2333
|
+
return_type = opts[:debug_return_type] || 'HoldingsResponseBody'
|
2334
|
+
|
2335
|
+
# auth_names
|
2336
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
2337
|
+
|
2338
|
+
new_options = opts.merge(
|
2339
|
+
:operation => :"MxPlatformApi.list_holdings_by_member",
|
2340
|
+
:header_params => header_params,
|
2341
|
+
:query_params => query_params,
|
2342
|
+
:form_params => form_params,
|
2343
|
+
:body => post_body,
|
2344
|
+
:auth_names => auth_names,
|
2345
|
+
:return_type => return_type
|
2346
|
+
)
|
2347
|
+
|
2348
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2349
|
+
if @api_client.config.debugging
|
2350
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#list_holdings_by_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2351
|
+
end
|
2352
|
+
return data, status_code, headers
|
2353
|
+
end
|
2354
|
+
|
2355
|
+
# List institution credentials
|
2356
|
+
# Use this endpoint to see which credentials will be needed to create a member for a specific institution.
|
2357
|
+
# @param institution_code [String] The institution_code of the institution.
|
2358
|
+
# @param [Hash] opts the optional parameters
|
2359
|
+
# @option opts [Integer] :page Specify current page.
|
2360
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
2361
|
+
# @return [CredentialsResponseBody]
|
2362
|
+
def list_institution_credentials(institution_code, opts = {})
|
2363
|
+
data, _status_code, _headers = list_institution_credentials_with_http_info(institution_code, opts)
|
2364
|
+
data
|
2365
|
+
end
|
2366
|
+
|
2367
|
+
# List institution credentials
|
2368
|
+
# Use this endpoint to see which credentials will be needed to create a member for a specific institution.
|
2369
|
+
# @param institution_code [String] The institution_code of the institution.
|
2370
|
+
# @param [Hash] opts the optional parameters
|
2371
|
+
# @option opts [Integer] :page Specify current page.
|
2372
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
2373
|
+
# @return [Array<(CredentialsResponseBody, Integer, Hash)>] CredentialsResponseBody data, response status code and response headers
|
2374
|
+
def list_institution_credentials_with_http_info(institution_code, opts = {})
|
2375
|
+
if @api_client.config.debugging
|
2376
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.list_institution_credentials ...'
|
2377
|
+
end
|
2378
|
+
# verify the required parameter 'institution_code' is set
|
2379
|
+
if @api_client.config.client_side_validation && institution_code.nil?
|
2380
|
+
fail ArgumentError, "Missing the required parameter 'institution_code' when calling MxPlatformApi.list_institution_credentials"
|
2381
|
+
end
|
2382
|
+
# resource path
|
2383
|
+
local_var_path = '/institutions/{institution_code}/credentials'.sub('{' + 'institution_code' + '}', CGI.escape(institution_code.to_s))
|
2384
|
+
|
2385
|
+
# query parameters
|
2386
|
+
query_params = opts[:query_params] || {}
|
2387
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
2388
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
2389
|
+
|
2390
|
+
# header parameters
|
2391
|
+
header_params = opts[:header_params] || {}
|
2392
|
+
# HTTP header 'Accept' (if needed)
|
2393
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
2394
|
+
|
2395
|
+
# form parameters
|
2396
|
+
form_params = opts[:form_params] || {}
|
2397
|
+
|
2398
|
+
# http body (model)
|
2399
|
+
post_body = opts[:debug_body]
|
2400
|
+
|
2401
|
+
# return_type
|
2402
|
+
return_type = opts[:debug_return_type] || 'CredentialsResponseBody'
|
2403
|
+
|
2404
|
+
# auth_names
|
2405
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
2406
|
+
|
2407
|
+
new_options = opts.merge(
|
2408
|
+
:operation => :"MxPlatformApi.list_institution_credentials",
|
2409
|
+
:header_params => header_params,
|
2410
|
+
:query_params => query_params,
|
2411
|
+
:form_params => form_params,
|
2412
|
+
:body => post_body,
|
2413
|
+
:auth_names => auth_names,
|
2414
|
+
:return_type => return_type
|
2415
|
+
)
|
2416
|
+
|
2417
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2418
|
+
if @api_client.config.debugging
|
2419
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#list_institution_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2420
|
+
end
|
2421
|
+
return data, status_code, headers
|
2422
|
+
end
|
2423
|
+
|
2424
|
+
# List institutions
|
2425
|
+
# This endpoint returns a list of institutions based on the specified search term or parameter.
|
2426
|
+
# @param [Hash] opts the optional parameters
|
2427
|
+
# @option opts [String] :name This will list only institutions in which the appended string appears.
|
2428
|
+
# @option opts [Boolean] :supports_account_identification Filter only institutions which support account identification.
|
2429
|
+
# @option opts [Boolean] :supports_account_statement Filter only institutions which support account statements.
|
2430
|
+
# @option opts [Boolean] :supports_account_verification Filter only institutions which support account verification.
|
2431
|
+
# @option opts [Boolean] :supports_transaction_history Filter only institutions which support extended transaction history.
|
2432
|
+
# @return [InstitutionsResponseBody]
|
2433
|
+
def list_institutions(opts = {})
|
2434
|
+
data, _status_code, _headers = list_institutions_with_http_info(opts)
|
2435
|
+
data
|
2436
|
+
end
|
2437
|
+
|
2438
|
+
# List institutions
|
2439
|
+
# This endpoint returns a list of institutions based on the specified search term or parameter.
|
2440
|
+
# @param [Hash] opts the optional parameters
|
2441
|
+
# @option opts [String] :name This will list only institutions in which the appended string appears.
|
2442
|
+
# @option opts [Boolean] :supports_account_identification Filter only institutions which support account identification.
|
2443
|
+
# @option opts [Boolean] :supports_account_statement Filter only institutions which support account statements.
|
2444
|
+
# @option opts [Boolean] :supports_account_verification Filter only institutions which support account verification.
|
2445
|
+
# @option opts [Boolean] :supports_transaction_history Filter only institutions which support extended transaction history.
|
2446
|
+
# @return [Array<(InstitutionsResponseBody, Integer, Hash)>] InstitutionsResponseBody data, response status code and response headers
|
2447
|
+
def list_institutions_with_http_info(opts = {})
|
2448
|
+
if @api_client.config.debugging
|
2449
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.list_institutions ...'
|
2450
|
+
end
|
2451
|
+
# resource path
|
2452
|
+
local_var_path = '/institutions'
|
2453
|
+
|
2454
|
+
# query parameters
|
2455
|
+
query_params = opts[:query_params] || {}
|
2456
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
2457
|
+
query_params[:'supports_account_identification'] = opts[:'supports_account_identification'] if !opts[:'supports_account_identification'].nil?
|
2458
|
+
query_params[:'supports_account_statement'] = opts[:'supports_account_statement'] if !opts[:'supports_account_statement'].nil?
|
2459
|
+
query_params[:'supports_account_verification'] = opts[:'supports_account_verification'] if !opts[:'supports_account_verification'].nil?
|
2460
|
+
query_params[:'supports_transaction_history'] = opts[:'supports_transaction_history'] if !opts[:'supports_transaction_history'].nil?
|
2461
|
+
|
2462
|
+
# header parameters
|
2463
|
+
header_params = opts[:header_params] || {}
|
2464
|
+
# HTTP header 'Accept' (if needed)
|
2465
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
2466
|
+
|
2467
|
+
# form parameters
|
2468
|
+
form_params = opts[:form_params] || {}
|
2469
|
+
|
2470
|
+
# http body (model)
|
2471
|
+
post_body = opts[:debug_body]
|
2472
|
+
|
2473
|
+
# return_type
|
2474
|
+
return_type = opts[:debug_return_type] || 'InstitutionsResponseBody'
|
2475
|
+
|
2476
|
+
# auth_names
|
2477
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
2478
|
+
|
2479
|
+
new_options = opts.merge(
|
2480
|
+
:operation => :"MxPlatformApi.list_institutions",
|
2481
|
+
:header_params => header_params,
|
2482
|
+
:query_params => query_params,
|
2483
|
+
:form_params => form_params,
|
2484
|
+
:body => post_body,
|
2485
|
+
:auth_names => auth_names,
|
2486
|
+
:return_type => return_type
|
2487
|
+
)
|
2488
|
+
|
2489
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2490
|
+
if @api_client.config.debugging
|
2491
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#list_institutions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2492
|
+
end
|
2493
|
+
return data, status_code, headers
|
2494
|
+
end
|
2495
|
+
|
2496
|
+
# List managed accounts
|
2497
|
+
# Use this endpoint to retrieve a list of all the partner-managed accounts associated with the given partner-manage member.
|
2498
|
+
# @param user_guid [String] The unique id for a `user`.
|
2499
|
+
# @param member_guid [String] The unique id for a `member`.
|
2500
|
+
# @param [Hash] opts the optional parameters
|
2501
|
+
# @option opts [Integer] :page Specify current page.
|
2502
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
2503
|
+
# @return [AccountsResponseBody]
|
2504
|
+
def list_managed_accounts(user_guid, member_guid, opts = {})
|
2505
|
+
data, _status_code, _headers = list_managed_accounts_with_http_info(user_guid, member_guid, opts)
|
2506
|
+
data
|
2507
|
+
end
|
2508
|
+
|
2509
|
+
# List managed accounts
|
2510
|
+
# Use this endpoint to retrieve a list of all the partner-managed accounts associated with the given partner-manage member.
|
2511
|
+
# @param user_guid [String] The unique id for a `user`.
|
2512
|
+
# @param member_guid [String] The unique id for a `member`.
|
2513
|
+
# @param [Hash] opts the optional parameters
|
2514
|
+
# @option opts [Integer] :page Specify current page.
|
2515
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
2516
|
+
# @return [Array<(AccountsResponseBody, Integer, Hash)>] AccountsResponseBody data, response status code and response headers
|
2517
|
+
def list_managed_accounts_with_http_info(user_guid, member_guid, opts = {})
|
2518
|
+
if @api_client.config.debugging
|
2519
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.list_managed_accounts ...'
|
2520
|
+
end
|
2521
|
+
# verify the required parameter 'user_guid' is set
|
2522
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
2523
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.list_managed_accounts"
|
2524
|
+
end
|
2525
|
+
# verify the required parameter 'member_guid' is set
|
2526
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
2527
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.list_managed_accounts"
|
2528
|
+
end
|
2529
|
+
# resource path
|
2530
|
+
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))
|
2531
|
+
|
2532
|
+
# query parameters
|
2533
|
+
query_params = opts[:query_params] || {}
|
2534
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
2535
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
2536
|
+
|
2537
|
+
# header parameters
|
2538
|
+
header_params = opts[:header_params] || {}
|
2539
|
+
# HTTP header 'Accept' (if needed)
|
2540
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
2541
|
+
|
2542
|
+
# form parameters
|
2543
|
+
form_params = opts[:form_params] || {}
|
2544
|
+
|
2545
|
+
# http body (model)
|
2546
|
+
post_body = opts[:debug_body]
|
2547
|
+
|
2548
|
+
# return_type
|
2549
|
+
return_type = opts[:debug_return_type] || 'AccountsResponseBody'
|
2550
|
+
|
2551
|
+
# auth_names
|
2552
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
2553
|
+
|
2554
|
+
new_options = opts.merge(
|
2555
|
+
:operation => :"MxPlatformApi.list_managed_accounts",
|
2556
|
+
:header_params => header_params,
|
2557
|
+
:query_params => query_params,
|
2558
|
+
:form_params => form_params,
|
2559
|
+
:body => post_body,
|
2560
|
+
:auth_names => auth_names,
|
2561
|
+
:return_type => return_type
|
2562
|
+
)
|
2563
|
+
|
2564
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2565
|
+
if @api_client.config.debugging
|
2566
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#list_managed_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2567
|
+
end
|
2568
|
+
return data, status_code, headers
|
2569
|
+
end
|
2570
|
+
|
2571
|
+
# List managed institutions
|
2572
|
+
# This endpoint returns a list of institutions which can be used to create partner-managed members.
|
2573
|
+
# @param [Hash] opts the optional parameters
|
2574
|
+
# @option opts [Integer] :page Specify current page.
|
2575
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
2576
|
+
# @return [InstitutionsResponseBody]
|
2577
|
+
def list_managed_institutions(opts = {})
|
2578
|
+
data, _status_code, _headers = list_managed_institutions_with_http_info(opts)
|
2579
|
+
data
|
2580
|
+
end
|
2581
|
+
|
2582
|
+
# List managed institutions
|
2583
|
+
# This endpoint returns a list of institutions which can be used to create partner-managed members.
|
2584
|
+
# @param [Hash] opts the optional parameters
|
2585
|
+
# @option opts [Integer] :page Specify current page.
|
2586
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
2587
|
+
# @return [Array<(InstitutionsResponseBody, Integer, Hash)>] InstitutionsResponseBody data, response status code and response headers
|
2588
|
+
def list_managed_institutions_with_http_info(opts = {})
|
2589
|
+
if @api_client.config.debugging
|
2590
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.list_managed_institutions ...'
|
2591
|
+
end
|
2592
|
+
# resource path
|
2593
|
+
local_var_path = '/managed_institutions'
|
2594
|
+
|
2595
|
+
# query parameters
|
2596
|
+
query_params = opts[:query_params] || {}
|
1873
2597
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1874
2598
|
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
1875
|
-
query_params[:'to_date'] = opts[:'to_date'] if !opts[:'to_date'].nil?
|
1876
2599
|
|
1877
2600
|
# header parameters
|
1878
2601
|
header_params = opts[:header_params] || {}
|
@@ -1886,13 +2609,13 @@ module MxPlatformRuby
|
|
1886
2609
|
post_body = opts[:debug_body]
|
1887
2610
|
|
1888
2611
|
# return_type
|
1889
|
-
return_type = opts[:debug_return_type] || '
|
2612
|
+
return_type = opts[:debug_return_type] || 'InstitutionsResponseBody'
|
1890
2613
|
|
1891
2614
|
# auth_names
|
1892
2615
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
1893
2616
|
|
1894
2617
|
new_options = opts.merge(
|
1895
|
-
:operation => :"MxPlatformApi.
|
2618
|
+
:operation => :"MxPlatformApi.list_managed_institutions",
|
1896
2619
|
:header_params => header_params,
|
1897
2620
|
:query_params => query_params,
|
1898
2621
|
:form_params => form_params,
|
@@ -1903,40 +2626,40 @@ module MxPlatformRuby
|
|
1903
2626
|
|
1904
2627
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1905
2628
|
if @api_client.config.debugging
|
1906
|
-
@api_client.config.logger.debug "API called: MxPlatformApi#
|
2629
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#list_managed_institutions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1907
2630
|
end
|
1908
2631
|
return data, status_code, headers
|
1909
2632
|
end
|
1910
2633
|
|
1911
|
-
# List
|
1912
|
-
#
|
1913
|
-
# @param
|
2634
|
+
# List managed members
|
2635
|
+
# This endpoint returns a list of all the partner-managed members associated with the specified `user`.
|
2636
|
+
# @param user_guid [String] The unique id for a `user`.
|
1914
2637
|
# @param [Hash] opts the optional parameters
|
1915
2638
|
# @option opts [Integer] :page Specify current page.
|
1916
2639
|
# @option opts [Integer] :records_per_page Specify records per page.
|
1917
|
-
# @return [
|
1918
|
-
def
|
1919
|
-
data, _status_code, _headers =
|
2640
|
+
# @return [MembersResponseBody]
|
2641
|
+
def list_managed_members(user_guid, opts = {})
|
2642
|
+
data, _status_code, _headers = list_managed_members_with_http_info(user_guid, opts)
|
1920
2643
|
data
|
1921
2644
|
end
|
1922
2645
|
|
1923
|
-
# List
|
1924
|
-
#
|
1925
|
-
# @param
|
2646
|
+
# List managed members
|
2647
|
+
# This endpoint returns a list of all the partner-managed members associated with the specified `user`.
|
2648
|
+
# @param user_guid [String] The unique id for a `user`.
|
1926
2649
|
# @param [Hash] opts the optional parameters
|
1927
2650
|
# @option opts [Integer] :page Specify current page.
|
1928
2651
|
# @option opts [Integer] :records_per_page Specify records per page.
|
1929
|
-
# @return [Array<(
|
1930
|
-
def
|
2652
|
+
# @return [Array<(MembersResponseBody, Integer, Hash)>] MembersResponseBody data, response status code and response headers
|
2653
|
+
def list_managed_members_with_http_info(user_guid, opts = {})
|
1931
2654
|
if @api_client.config.debugging
|
1932
|
-
@api_client.config.logger.debug 'Calling API: MxPlatformApi.
|
2655
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.list_managed_members ...'
|
1933
2656
|
end
|
1934
|
-
# verify the required parameter '
|
1935
|
-
if @api_client.config.client_side_validation &&
|
1936
|
-
fail ArgumentError, "Missing the required parameter '
|
2657
|
+
# verify the required parameter 'user_guid' is set
|
2658
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
2659
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.list_managed_members"
|
1937
2660
|
end
|
1938
2661
|
# resource path
|
1939
|
-
local_var_path = '/
|
2662
|
+
local_var_path = '/users/{user_guid}/managed_members'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
1940
2663
|
|
1941
2664
|
# query parameters
|
1942
2665
|
query_params = opts[:query_params] || {}
|
@@ -1955,13 +2678,13 @@ module MxPlatformRuby
|
|
1955
2678
|
post_body = opts[:debug_body]
|
1956
2679
|
|
1957
2680
|
# return_type
|
1958
|
-
return_type = opts[:debug_return_type] || '
|
2681
|
+
return_type = opts[:debug_return_type] || 'MembersResponseBody'
|
1959
2682
|
|
1960
2683
|
# auth_names
|
1961
2684
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
1962
2685
|
|
1963
2686
|
new_options = opts.merge(
|
1964
|
-
:operation => :"MxPlatformApi.
|
2687
|
+
:operation => :"MxPlatformApi.list_managed_members",
|
1965
2688
|
:header_params => header_params,
|
1966
2689
|
:query_params => query_params,
|
1967
2690
|
:form_params => form_params,
|
@@ -1972,48 +2695,51 @@ module MxPlatformRuby
|
|
1972
2695
|
|
1973
2696
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1974
2697
|
if @api_client.config.debugging
|
1975
|
-
@api_client.config.logger.debug "API called: MxPlatformApi#
|
2698
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#list_managed_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1976
2699
|
end
|
1977
2700
|
return data, status_code, headers
|
1978
2701
|
end
|
1979
2702
|
|
1980
|
-
# List
|
1981
|
-
# This endpoint returns a list of
|
2703
|
+
# List managed transactions
|
2704
|
+
# This endpoint returns a list of all the partner-managed transactions associated with the specified `account`, scoped through a `user` and a `member`.
|
2705
|
+
# @param user_guid [String] The unique id for a `user`.
|
2706
|
+
# @param member_guid [String] The unique id for a `member`.
|
1982
2707
|
# @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)
|
2708
|
+
# @option opts [Integer] :page Specify current page.
|
2709
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
2710
|
+
# @return [TransactionsResponseBody]
|
2711
|
+
def list_managed_transactions(user_guid, member_guid, opts = {})
|
2712
|
+
data, _status_code, _headers = list_managed_transactions_with_http_info(user_guid, member_guid, opts)
|
1991
2713
|
data
|
1992
2714
|
end
|
1993
2715
|
|
1994
|
-
# List
|
1995
|
-
# This endpoint returns a list of
|
2716
|
+
# List managed transactions
|
2717
|
+
# This endpoint returns a list of all the partner-managed transactions associated with the specified `account`, scoped through a `user` and a `member`.
|
2718
|
+
# @param user_guid [String] The unique id for a `user`.
|
2719
|
+
# @param member_guid [String] The unique id for a `member`.
|
1996
2720
|
# @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 = {})
|
2721
|
+
# @option opts [Integer] :page Specify current page.
|
2722
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
2723
|
+
# @return [Array<(TransactionsResponseBody, Integer, Hash)>] TransactionsResponseBody data, response status code and response headers
|
2724
|
+
def list_managed_transactions_with_http_info(user_guid, member_guid, opts = {})
|
2004
2725
|
if @api_client.config.debugging
|
2005
|
-
@api_client.config.logger.debug 'Calling API: MxPlatformApi.
|
2726
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.list_managed_transactions ...'
|
2727
|
+
end
|
2728
|
+
# verify the required parameter 'user_guid' is set
|
2729
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
2730
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.list_managed_transactions"
|
2731
|
+
end
|
2732
|
+
# verify the required parameter 'member_guid' is set
|
2733
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
2734
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.list_managed_transactions"
|
2006
2735
|
end
|
2007
2736
|
# resource path
|
2008
|
-
local_var_path = '/
|
2737
|
+
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
2738
|
|
2010
2739
|
# query parameters
|
2011
2740
|
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?
|
2741
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
2742
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
2017
2743
|
|
2018
2744
|
# header parameters
|
2019
2745
|
header_params = opts[:header_params] || {}
|
@@ -2027,13 +2753,13 @@ module MxPlatformRuby
|
|
2027
2753
|
post_body = opts[:debug_body]
|
2028
2754
|
|
2029
2755
|
# return_type
|
2030
|
-
return_type = opts[:debug_return_type] || '
|
2756
|
+
return_type = opts[:debug_return_type] || 'TransactionsResponseBody'
|
2031
2757
|
|
2032
2758
|
# auth_names
|
2033
2759
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
2034
2760
|
|
2035
2761
|
new_options = opts.merge(
|
2036
|
-
:operation => :"MxPlatformApi.
|
2762
|
+
:operation => :"MxPlatformApi.list_managed_transactions",
|
2037
2763
|
:header_params => header_params,
|
2038
2764
|
:query_params => query_params,
|
2039
2765
|
:form_params => form_params,
|
@@ -2044,7 +2770,7 @@ module MxPlatformRuby
|
|
2044
2770
|
|
2045
2771
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2046
2772
|
if @api_client.config.debugging
|
2047
|
-
@api_client.config.logger.debug "API called: MxPlatformApi#
|
2773
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#list_managed_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2048
2774
|
end
|
2049
2775
|
return data, status_code, headers
|
2050
2776
|
end
|
@@ -3268,21 +3994,240 @@ module MxPlatformRuby
|
|
3268
3994
|
data
|
3269
3995
|
end
|
3270
3996
|
|
3271
|
-
# Read institution
|
3272
|
-
# This endpoint returns information about the institution specified by `institution_code`.
|
3273
|
-
# @param institution_code [String] The institution_code of the institution.
|
3997
|
+
# Read institution
|
3998
|
+
# This endpoint returns information about the institution specified by `institution_code`.
|
3999
|
+
# @param institution_code [String] The institution_code of the institution.
|
4000
|
+
# @param [Hash] opts the optional parameters
|
4001
|
+
# @return [Array<(InstitutionResponseBody, Integer, Hash)>] InstitutionResponseBody data, response status code and response headers
|
4002
|
+
def read_institution_with_http_info(institution_code, opts = {})
|
4003
|
+
if @api_client.config.debugging
|
4004
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.read_institution ...'
|
4005
|
+
end
|
4006
|
+
# verify the required parameter 'institution_code' is set
|
4007
|
+
if @api_client.config.client_side_validation && institution_code.nil?
|
4008
|
+
fail ArgumentError, "Missing the required parameter 'institution_code' when calling MxPlatformApi.read_institution"
|
4009
|
+
end
|
4010
|
+
# resource path
|
4011
|
+
local_var_path = '/institutions/{institution_code}'.sub('{' + 'institution_code' + '}', CGI.escape(institution_code.to_s))
|
4012
|
+
|
4013
|
+
# query parameters
|
4014
|
+
query_params = opts[:query_params] || {}
|
4015
|
+
|
4016
|
+
# header parameters
|
4017
|
+
header_params = opts[:header_params] || {}
|
4018
|
+
# HTTP header 'Accept' (if needed)
|
4019
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
4020
|
+
|
4021
|
+
# form parameters
|
4022
|
+
form_params = opts[:form_params] || {}
|
4023
|
+
|
4024
|
+
# http body (model)
|
4025
|
+
post_body = opts[:debug_body]
|
4026
|
+
|
4027
|
+
# return_type
|
4028
|
+
return_type = opts[:debug_return_type] || 'InstitutionResponseBody'
|
4029
|
+
|
4030
|
+
# auth_names
|
4031
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
4032
|
+
|
4033
|
+
new_options = opts.merge(
|
4034
|
+
:operation => :"MxPlatformApi.read_institution",
|
4035
|
+
:header_params => header_params,
|
4036
|
+
:query_params => query_params,
|
4037
|
+
:form_params => form_params,
|
4038
|
+
:body => post_body,
|
4039
|
+
:auth_names => auth_names,
|
4040
|
+
:return_type => return_type
|
4041
|
+
)
|
4042
|
+
|
4043
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
4044
|
+
if @api_client.config.debugging
|
4045
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#read_institution\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4046
|
+
end
|
4047
|
+
return data, status_code, headers
|
4048
|
+
end
|
4049
|
+
|
4050
|
+
# Read managed account
|
4051
|
+
# Use this endpoint to read the attributes of a partner-managed account according to its unique guid.
|
4052
|
+
# @param member_guid [String] The unique id for a `member`.
|
4053
|
+
# @param user_guid [String] The unique id for a `user`.
|
4054
|
+
# @param account_guid [String] The unique id for an `account`.
|
4055
|
+
# @param [Hash] opts the optional parameters
|
4056
|
+
# @return [AccountResponseBody]
|
4057
|
+
def read_managed_account(member_guid, user_guid, account_guid, opts = {})
|
4058
|
+
data, _status_code, _headers = read_managed_account_with_http_info(member_guid, user_guid, account_guid, opts)
|
4059
|
+
data
|
4060
|
+
end
|
4061
|
+
|
4062
|
+
# Read managed account
|
4063
|
+
# Use this endpoint to read the attributes of a partner-managed account according to its unique guid.
|
4064
|
+
# @param member_guid [String] The unique id for a `member`.
|
4065
|
+
# @param user_guid [String] The unique id for a `user`.
|
4066
|
+
# @param account_guid [String] The unique id for an `account`.
|
4067
|
+
# @param [Hash] opts the optional parameters
|
4068
|
+
# @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
|
4069
|
+
def read_managed_account_with_http_info(member_guid, user_guid, account_guid, opts = {})
|
4070
|
+
if @api_client.config.debugging
|
4071
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.read_managed_account ...'
|
4072
|
+
end
|
4073
|
+
# verify the required parameter 'member_guid' is set
|
4074
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
4075
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.read_managed_account"
|
4076
|
+
end
|
4077
|
+
# verify the required parameter 'user_guid' is set
|
4078
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
4079
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.read_managed_account"
|
4080
|
+
end
|
4081
|
+
# verify the required parameter 'account_guid' is set
|
4082
|
+
if @api_client.config.client_side_validation && account_guid.nil?
|
4083
|
+
fail ArgumentError, "Missing the required parameter 'account_guid' when calling MxPlatformApi.read_managed_account"
|
4084
|
+
end
|
4085
|
+
# resource path
|
4086
|
+
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))
|
4087
|
+
|
4088
|
+
# query parameters
|
4089
|
+
query_params = opts[:query_params] || {}
|
4090
|
+
|
4091
|
+
# header parameters
|
4092
|
+
header_params = opts[:header_params] || {}
|
4093
|
+
# HTTP header 'Accept' (if needed)
|
4094
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
4095
|
+
|
4096
|
+
# form parameters
|
4097
|
+
form_params = opts[:form_params] || {}
|
4098
|
+
|
4099
|
+
# http body (model)
|
4100
|
+
post_body = opts[:debug_body]
|
4101
|
+
|
4102
|
+
# return_type
|
4103
|
+
return_type = opts[:debug_return_type] || 'AccountResponseBody'
|
4104
|
+
|
4105
|
+
# auth_names
|
4106
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
4107
|
+
|
4108
|
+
new_options = opts.merge(
|
4109
|
+
:operation => :"MxPlatformApi.read_managed_account",
|
4110
|
+
:header_params => header_params,
|
4111
|
+
:query_params => query_params,
|
4112
|
+
:form_params => form_params,
|
4113
|
+
:body => post_body,
|
4114
|
+
:auth_names => auth_names,
|
4115
|
+
:return_type => return_type
|
4116
|
+
)
|
4117
|
+
|
4118
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
4119
|
+
if @api_client.config.debugging
|
4120
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#read_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4121
|
+
end
|
4122
|
+
return data, status_code, headers
|
4123
|
+
end
|
4124
|
+
|
4125
|
+
# Read managed member
|
4126
|
+
# This endpoint returns the attributes of the specified partner-managed `member`.
|
4127
|
+
# @param member_guid [String] The unique id for a `member`.
|
4128
|
+
# @param user_guid [String] The unique id for a `user`.
|
4129
|
+
# @param [Hash] opts the optional parameters
|
4130
|
+
# @return [MemberResponseBody]
|
4131
|
+
def read_managed_member(member_guid, user_guid, opts = {})
|
4132
|
+
data, _status_code, _headers = read_managed_member_with_http_info(member_guid, user_guid, opts)
|
4133
|
+
data
|
4134
|
+
end
|
4135
|
+
|
4136
|
+
# Read managed member
|
4137
|
+
# This endpoint returns the attributes of the specified partner-managed `member`.
|
4138
|
+
# @param member_guid [String] The unique id for a `member`.
|
4139
|
+
# @param user_guid [String] The unique id for a `user`.
|
4140
|
+
# @param [Hash] opts the optional parameters
|
4141
|
+
# @return [Array<(MemberResponseBody, Integer, Hash)>] MemberResponseBody data, response status code and response headers
|
4142
|
+
def read_managed_member_with_http_info(member_guid, user_guid, opts = {})
|
4143
|
+
if @api_client.config.debugging
|
4144
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.read_managed_member ...'
|
4145
|
+
end
|
4146
|
+
# verify the required parameter 'member_guid' is set
|
4147
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
4148
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.read_managed_member"
|
4149
|
+
end
|
4150
|
+
# verify the required parameter 'user_guid' is set
|
4151
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
4152
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.read_managed_member"
|
4153
|
+
end
|
4154
|
+
# resource path
|
4155
|
+
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))
|
4156
|
+
|
4157
|
+
# query parameters
|
4158
|
+
query_params = opts[:query_params] || {}
|
4159
|
+
|
4160
|
+
# header parameters
|
4161
|
+
header_params = opts[:header_params] || {}
|
4162
|
+
# HTTP header 'Accept' (if needed)
|
4163
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
4164
|
+
|
4165
|
+
# form parameters
|
4166
|
+
form_params = opts[:form_params] || {}
|
4167
|
+
|
4168
|
+
# http body (model)
|
4169
|
+
post_body = opts[:debug_body]
|
4170
|
+
|
4171
|
+
# return_type
|
4172
|
+
return_type = opts[:debug_return_type] || 'MemberResponseBody'
|
4173
|
+
|
4174
|
+
# auth_names
|
4175
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
4176
|
+
|
4177
|
+
new_options = opts.merge(
|
4178
|
+
:operation => :"MxPlatformApi.read_managed_member",
|
4179
|
+
:header_params => header_params,
|
4180
|
+
:query_params => query_params,
|
4181
|
+
:form_params => form_params,
|
4182
|
+
:body => post_body,
|
4183
|
+
:auth_names => auth_names,
|
4184
|
+
:return_type => return_type
|
4185
|
+
)
|
4186
|
+
|
4187
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
4188
|
+
if @api_client.config.debugging
|
4189
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#read_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4190
|
+
end
|
4191
|
+
return data, status_code, headers
|
4192
|
+
end
|
4193
|
+
|
4194
|
+
# Read managed transaction
|
4195
|
+
# Requests to this endpoint will return the attributes of the specified partner-managed `transaction`.
|
4196
|
+
# @param member_guid [String] The unique id for a `member`.
|
4197
|
+
# @param user_guid [String] The unique id for a `user`.
|
4198
|
+
# @param transaction_guid [String] The unique id for a `transaction`.
|
4199
|
+
# @param [Hash] opts the optional parameters
|
4200
|
+
# @return [TransactionResponseBody]
|
4201
|
+
def read_managed_transaction(member_guid, user_guid, transaction_guid, opts = {})
|
4202
|
+
data, _status_code, _headers = read_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, opts)
|
4203
|
+
data
|
4204
|
+
end
|
4205
|
+
|
4206
|
+
# Read managed transaction
|
4207
|
+
# Requests to this endpoint will return the attributes of the specified partner-managed `transaction`.
|
4208
|
+
# @param member_guid [String] The unique id for a `member`.
|
4209
|
+
# @param user_guid [String] The unique id for a `user`.
|
4210
|
+
# @param transaction_guid [String] The unique id for a `transaction`.
|
3274
4211
|
# @param [Hash] opts the optional parameters
|
3275
|
-
# @return [Array<(
|
3276
|
-
def
|
4212
|
+
# @return [Array<(TransactionResponseBody, Integer, Hash)>] TransactionResponseBody data, response status code and response headers
|
4213
|
+
def read_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, opts = {})
|
3277
4214
|
if @api_client.config.debugging
|
3278
|
-
@api_client.config.logger.debug 'Calling API: MxPlatformApi.
|
4215
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.read_managed_transaction ...'
|
3279
4216
|
end
|
3280
|
-
# verify the required parameter '
|
3281
|
-
if @api_client.config.client_side_validation &&
|
3282
|
-
fail ArgumentError, "Missing the required parameter '
|
4217
|
+
# verify the required parameter 'member_guid' is set
|
4218
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
4219
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.read_managed_transaction"
|
4220
|
+
end
|
4221
|
+
# verify the required parameter 'user_guid' is set
|
4222
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
4223
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.read_managed_transaction"
|
4224
|
+
end
|
4225
|
+
# verify the required parameter 'transaction_guid' is set
|
4226
|
+
if @api_client.config.client_side_validation && transaction_guid.nil?
|
4227
|
+
fail ArgumentError, "Missing the required parameter 'transaction_guid' when calling MxPlatformApi.read_managed_transaction"
|
3283
4228
|
end
|
3284
4229
|
# resource path
|
3285
|
-
local_var_path = '/
|
4230
|
+
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
4231
|
|
3287
4232
|
# query parameters
|
3288
4233
|
query_params = opts[:query_params] || {}
|
@@ -3299,13 +4244,13 @@ module MxPlatformRuby
|
|
3299
4244
|
post_body = opts[:debug_body]
|
3300
4245
|
|
3301
4246
|
# return_type
|
3302
|
-
return_type = opts[:debug_return_type] || '
|
4247
|
+
return_type = opts[:debug_return_type] || 'TransactionResponseBody'
|
3303
4248
|
|
3304
4249
|
# auth_names
|
3305
4250
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
3306
4251
|
|
3307
4252
|
new_options = opts.merge(
|
3308
|
-
:operation => :"MxPlatformApi.
|
4253
|
+
:operation => :"MxPlatformApi.read_managed_transaction",
|
3309
4254
|
:header_params => header_params,
|
3310
4255
|
:query_params => query_params,
|
3311
4256
|
:form_params => form_params,
|
@@ -3316,7 +4261,7 @@ module MxPlatformRuby
|
|
3316
4261
|
|
3317
4262
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
3318
4263
|
if @api_client.config.debugging
|
3319
|
-
@api_client.config.logger.debug "API called: MxPlatformApi#
|
4264
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#read_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3320
4265
|
end
|
3321
4266
|
return data, status_code, headers
|
3322
4267
|
end
|
@@ -3522,6 +4467,69 @@ module MxPlatformRuby
|
|
3522
4467
|
return data, status_code, headers
|
3523
4468
|
end
|
3524
4469
|
|
4470
|
+
# Read merchant location
|
4471
|
+
# This endpoint returns the specified merchant_location resource.
|
4472
|
+
# @param merchant_location_guid [String] The unique id for a `merchant_location`.
|
4473
|
+
# @param [Hash] opts the optional parameters
|
4474
|
+
# @return [MerchantLocationResponseBody]
|
4475
|
+
def read_merchant_location(merchant_location_guid, opts = {})
|
4476
|
+
data, _status_code, _headers = read_merchant_location_with_http_info(merchant_location_guid, opts)
|
4477
|
+
data
|
4478
|
+
end
|
4479
|
+
|
4480
|
+
# Read merchant location
|
4481
|
+
# This endpoint returns the specified merchant_location resource.
|
4482
|
+
# @param merchant_location_guid [String] The unique id for a `merchant_location`.
|
4483
|
+
# @param [Hash] opts the optional parameters
|
4484
|
+
# @return [Array<(MerchantLocationResponseBody, Integer, Hash)>] MerchantLocationResponseBody data, response status code and response headers
|
4485
|
+
def read_merchant_location_with_http_info(merchant_location_guid, opts = {})
|
4486
|
+
if @api_client.config.debugging
|
4487
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.read_merchant_location ...'
|
4488
|
+
end
|
4489
|
+
# verify the required parameter 'merchant_location_guid' is set
|
4490
|
+
if @api_client.config.client_side_validation && merchant_location_guid.nil?
|
4491
|
+
fail ArgumentError, "Missing the required parameter 'merchant_location_guid' when calling MxPlatformApi.read_merchant_location"
|
4492
|
+
end
|
4493
|
+
# resource path
|
4494
|
+
local_var_path = '/merchant_locations/{merchant_location_guid}'.sub('{' + 'merchant_location_guid' + '}', CGI.escape(merchant_location_guid.to_s))
|
4495
|
+
|
4496
|
+
# query parameters
|
4497
|
+
query_params = opts[:query_params] || {}
|
4498
|
+
|
4499
|
+
# header parameters
|
4500
|
+
header_params = opts[:header_params] || {}
|
4501
|
+
# HTTP header 'Accept' (if needed)
|
4502
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
4503
|
+
|
4504
|
+
# form parameters
|
4505
|
+
form_params = opts[:form_params] || {}
|
4506
|
+
|
4507
|
+
# http body (model)
|
4508
|
+
post_body = opts[:debug_body]
|
4509
|
+
|
4510
|
+
# return_type
|
4511
|
+
return_type = opts[:debug_return_type] || 'MerchantLocationResponseBody'
|
4512
|
+
|
4513
|
+
# auth_names
|
4514
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
4515
|
+
|
4516
|
+
new_options = opts.merge(
|
4517
|
+
:operation => :"MxPlatformApi.read_merchant_location",
|
4518
|
+
:header_params => header_params,
|
4519
|
+
:query_params => query_params,
|
4520
|
+
:form_params => form_params,
|
4521
|
+
:body => post_body,
|
4522
|
+
:auth_names => auth_names,
|
4523
|
+
:return_type => return_type
|
4524
|
+
)
|
4525
|
+
|
4526
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
4527
|
+
if @api_client.config.debugging
|
4528
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#read_merchant_location\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4529
|
+
end
|
4530
|
+
return data, status_code, headers
|
4531
|
+
end
|
4532
|
+
|
3525
4533
|
# Read statement by member
|
3526
4534
|
# Use this endpoint to read a JSON representation of the statement.
|
3527
4535
|
# @param member_guid [String] The unique id for a `member`.
|
@@ -4010,6 +5018,7 @@ module MxPlatformRuby
|
|
4010
5018
|
# @param [Hash] opts the optional parameters
|
4011
5019
|
# @option opts [String] :referral_source Must be either `BROWSER` or `APP` depending on the implementation. Defaults to `BROWSER`.
|
4012
5020
|
# @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
|
5021
|
+
# @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
5022
|
# @return [OAuthWindowResponseBody]
|
4014
5023
|
def request_o_auth_window_uri(member_guid, user_guid, opts = {})
|
4015
5024
|
data, _status_code, _headers = request_o_auth_window_uri_with_http_info(member_guid, user_guid, opts)
|
@@ -4023,6 +5032,7 @@ module MxPlatformRuby
|
|
4023
5032
|
# @param [Hash] opts the optional parameters
|
4024
5033
|
# @option opts [String] :referral_source Must be either `BROWSER` or `APP` depending on the implementation. Defaults to `BROWSER`.
|
4025
5034
|
# @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
|
5035
|
+
# @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
5036
|
# @return [Array<(OAuthWindowResponseBody, Integer, Hash)>] OAuthWindowResponseBody data, response status code and response headers
|
4027
5037
|
def request_o_auth_window_uri_with_http_info(member_guid, user_guid, opts = {})
|
4028
5038
|
if @api_client.config.debugging
|
@@ -4043,6 +5053,7 @@ module MxPlatformRuby
|
|
4043
5053
|
query_params = opts[:query_params] || {}
|
4044
5054
|
query_params[:'referral_source'] = opts[:'referral_source'] if !opts[:'referral_source'].nil?
|
4045
5055
|
query_params[:'ui_message_webview_url_scheme'] = opts[:'ui_message_webview_url_scheme'] if !opts[:'ui_message_webview_url_scheme'].nil?
|
5056
|
+
query_params[:'skip_aggregation'] = opts[:'skip_aggregation'] if !opts[:'skip_aggregation'].nil?
|
4046
5057
|
|
4047
5058
|
# header parameters
|
4048
5059
|
header_params = opts[:header_params] || {}
|
@@ -4389,6 +5400,249 @@ module MxPlatformRuby
|
|
4389
5400
|
return data, status_code, headers
|
4390
5401
|
end
|
4391
5402
|
|
5403
|
+
# Update managed account
|
5404
|
+
# Use this endpoint to update the attributes of a partner-managed account according to its unique GUID.
|
5405
|
+
# @param member_guid [String] The unique id for a `member`.
|
5406
|
+
# @param user_guid [String] The unique id for a `user`.
|
5407
|
+
# @param account_guid [String] The unique id for an `account`.
|
5408
|
+
# @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)
|
5409
|
+
# @param [Hash] opts the optional parameters
|
5410
|
+
# @return [AccountResponseBody]
|
5411
|
+
def update_managed_account(member_guid, user_guid, account_guid, managed_account_update_request_body, opts = {})
|
5412
|
+
data, _status_code, _headers = update_managed_account_with_http_info(member_guid, user_guid, account_guid, managed_account_update_request_body, opts)
|
5413
|
+
data
|
5414
|
+
end
|
5415
|
+
|
5416
|
+
# Update managed account
|
5417
|
+
# Use this endpoint to update the attributes of a partner-managed account according to its unique GUID.
|
5418
|
+
# @param member_guid [String] The unique id for a `member`.
|
5419
|
+
# @param user_guid [String] The unique id for a `user`.
|
5420
|
+
# @param account_guid [String] The unique id for an `account`.
|
5421
|
+
# @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)
|
5422
|
+
# @param [Hash] opts the optional parameters
|
5423
|
+
# @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
|
5424
|
+
def update_managed_account_with_http_info(member_guid, user_guid, account_guid, managed_account_update_request_body, opts = {})
|
5425
|
+
if @api_client.config.debugging
|
5426
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.update_managed_account ...'
|
5427
|
+
end
|
5428
|
+
# verify the required parameter 'member_guid' is set
|
5429
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
5430
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.update_managed_account"
|
5431
|
+
end
|
5432
|
+
# verify the required parameter 'user_guid' is set
|
5433
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
5434
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.update_managed_account"
|
5435
|
+
end
|
5436
|
+
# verify the required parameter 'account_guid' is set
|
5437
|
+
if @api_client.config.client_side_validation && account_guid.nil?
|
5438
|
+
fail ArgumentError, "Missing the required parameter 'account_guid' when calling MxPlatformApi.update_managed_account"
|
5439
|
+
end
|
5440
|
+
# verify the required parameter 'managed_account_update_request_body' is set
|
5441
|
+
if @api_client.config.client_side_validation && managed_account_update_request_body.nil?
|
5442
|
+
fail ArgumentError, "Missing the required parameter 'managed_account_update_request_body' when calling MxPlatformApi.update_managed_account"
|
5443
|
+
end
|
5444
|
+
# resource path
|
5445
|
+
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))
|
5446
|
+
|
5447
|
+
# query parameters
|
5448
|
+
query_params = opts[:query_params] || {}
|
5449
|
+
|
5450
|
+
# header parameters
|
5451
|
+
header_params = opts[:header_params] || {}
|
5452
|
+
# HTTP header 'Accept' (if needed)
|
5453
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
5454
|
+
# HTTP header 'Content-Type'
|
5455
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
5456
|
+
|
5457
|
+
# form parameters
|
5458
|
+
form_params = opts[:form_params] || {}
|
5459
|
+
|
5460
|
+
# http body (model)
|
5461
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_account_update_request_body)
|
5462
|
+
|
5463
|
+
# return_type
|
5464
|
+
return_type = opts[:debug_return_type] || 'AccountResponseBody'
|
5465
|
+
|
5466
|
+
# auth_names
|
5467
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
5468
|
+
|
5469
|
+
new_options = opts.merge(
|
5470
|
+
:operation => :"MxPlatformApi.update_managed_account",
|
5471
|
+
:header_params => header_params,
|
5472
|
+
:query_params => query_params,
|
5473
|
+
:form_params => form_params,
|
5474
|
+
:body => post_body,
|
5475
|
+
:auth_names => auth_names,
|
5476
|
+
:return_type => return_type
|
5477
|
+
)
|
5478
|
+
|
5479
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
5480
|
+
if @api_client.config.debugging
|
5481
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#update_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5482
|
+
end
|
5483
|
+
return data, status_code, headers
|
5484
|
+
end
|
5485
|
+
|
5486
|
+
# Update managed member
|
5487
|
+
# Use this endpoint to update the attributes of the specified partner_managed `member`.
|
5488
|
+
# @param member_guid [String] The unique id for a `member`.
|
5489
|
+
# @param user_guid [String] The unique id for a `user`.
|
5490
|
+
# @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)
|
5491
|
+
# @param [Hash] opts the optional parameters
|
5492
|
+
# @return [MemberResponseBody]
|
5493
|
+
def update_managed_member(member_guid, user_guid, managed_member_update_request_body, opts = {})
|
5494
|
+
data, _status_code, _headers = update_managed_member_with_http_info(member_guid, user_guid, managed_member_update_request_body, opts)
|
5495
|
+
data
|
5496
|
+
end
|
5497
|
+
|
5498
|
+
# Update managed member
|
5499
|
+
# Use this endpoint to update the attributes of the specified partner_managed `member`.
|
5500
|
+
# @param member_guid [String] The unique id for a `member`.
|
5501
|
+
# @param user_guid [String] The unique id for a `user`.
|
5502
|
+
# @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)
|
5503
|
+
# @param [Hash] opts the optional parameters
|
5504
|
+
# @return [Array<(MemberResponseBody, Integer, Hash)>] MemberResponseBody data, response status code and response headers
|
5505
|
+
def update_managed_member_with_http_info(member_guid, user_guid, managed_member_update_request_body, opts = {})
|
5506
|
+
if @api_client.config.debugging
|
5507
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.update_managed_member ...'
|
5508
|
+
end
|
5509
|
+
# verify the required parameter 'member_guid' is set
|
5510
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
5511
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.update_managed_member"
|
5512
|
+
end
|
5513
|
+
# verify the required parameter 'user_guid' is set
|
5514
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
5515
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.update_managed_member"
|
5516
|
+
end
|
5517
|
+
# verify the required parameter 'managed_member_update_request_body' is set
|
5518
|
+
if @api_client.config.client_side_validation && managed_member_update_request_body.nil?
|
5519
|
+
fail ArgumentError, "Missing the required parameter 'managed_member_update_request_body' when calling MxPlatformApi.update_managed_member"
|
5520
|
+
end
|
5521
|
+
# resource path
|
5522
|
+
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))
|
5523
|
+
|
5524
|
+
# query parameters
|
5525
|
+
query_params = opts[:query_params] || {}
|
5526
|
+
|
5527
|
+
# header parameters
|
5528
|
+
header_params = opts[:header_params] || {}
|
5529
|
+
# HTTP header 'Accept' (if needed)
|
5530
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
5531
|
+
# HTTP header 'Content-Type'
|
5532
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
5533
|
+
|
5534
|
+
# form parameters
|
5535
|
+
form_params = opts[:form_params] || {}
|
5536
|
+
|
5537
|
+
# http body (model)
|
5538
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_member_update_request_body)
|
5539
|
+
|
5540
|
+
# return_type
|
5541
|
+
return_type = opts[:debug_return_type] || 'MemberResponseBody'
|
5542
|
+
|
5543
|
+
# auth_names
|
5544
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
5545
|
+
|
5546
|
+
new_options = opts.merge(
|
5547
|
+
:operation => :"MxPlatformApi.update_managed_member",
|
5548
|
+
:header_params => header_params,
|
5549
|
+
:query_params => query_params,
|
5550
|
+
:form_params => form_params,
|
5551
|
+
:body => post_body,
|
5552
|
+
:auth_names => auth_names,
|
5553
|
+
:return_type => return_type
|
5554
|
+
)
|
5555
|
+
|
5556
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
5557
|
+
if @api_client.config.debugging
|
5558
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#update_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5559
|
+
end
|
5560
|
+
return data, status_code, headers
|
5561
|
+
end
|
5562
|
+
|
5563
|
+
# Update managed transaction
|
5564
|
+
# Use this endpoint to update the attributes of the specified partner_managed `transaction`.
|
5565
|
+
# @param member_guid [String] The unique id for a `member`.
|
5566
|
+
# @param user_guid [String] The unique id for a `user`.
|
5567
|
+
# @param transaction_guid [String] The unique id for a `transaction`.
|
5568
|
+
# @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)
|
5569
|
+
# @param [Hash] opts the optional parameters
|
5570
|
+
# @return [TransactionResponseBody]
|
5571
|
+
def update_managed_transaction(member_guid, user_guid, transaction_guid, managed_transaction_update_request_body, opts = {})
|
5572
|
+
data, _status_code, _headers = update_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, managed_transaction_update_request_body, opts)
|
5573
|
+
data
|
5574
|
+
end
|
5575
|
+
|
5576
|
+
# Update managed transaction
|
5577
|
+
# Use this endpoint to update the attributes of the specified partner_managed `transaction`.
|
5578
|
+
# @param member_guid [String] The unique id for a `member`.
|
5579
|
+
# @param user_guid [String] The unique id for a `user`.
|
5580
|
+
# @param transaction_guid [String] The unique id for a `transaction`.
|
5581
|
+
# @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)
|
5582
|
+
# @param [Hash] opts the optional parameters
|
5583
|
+
# @return [Array<(TransactionResponseBody, Integer, Hash)>] TransactionResponseBody data, response status code and response headers
|
5584
|
+
def update_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, managed_transaction_update_request_body, opts = {})
|
5585
|
+
if @api_client.config.debugging
|
5586
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.update_managed_transaction ...'
|
5587
|
+
end
|
5588
|
+
# verify the required parameter 'member_guid' is set
|
5589
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
5590
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.update_managed_transaction"
|
5591
|
+
end
|
5592
|
+
# verify the required parameter 'user_guid' is set
|
5593
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
5594
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.update_managed_transaction"
|
5595
|
+
end
|
5596
|
+
# verify the required parameter 'transaction_guid' is set
|
5597
|
+
if @api_client.config.client_side_validation && transaction_guid.nil?
|
5598
|
+
fail ArgumentError, "Missing the required parameter 'transaction_guid' when calling MxPlatformApi.update_managed_transaction"
|
5599
|
+
end
|
5600
|
+
# verify the required parameter 'managed_transaction_update_request_body' is set
|
5601
|
+
if @api_client.config.client_side_validation && managed_transaction_update_request_body.nil?
|
5602
|
+
fail ArgumentError, "Missing the required parameter 'managed_transaction_update_request_body' when calling MxPlatformApi.update_managed_transaction"
|
5603
|
+
end
|
5604
|
+
# resource path
|
5605
|
+
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))
|
5606
|
+
|
5607
|
+
# query parameters
|
5608
|
+
query_params = opts[:query_params] || {}
|
5609
|
+
|
5610
|
+
# header parameters
|
5611
|
+
header_params = opts[:header_params] || {}
|
5612
|
+
# HTTP header 'Accept' (if needed)
|
5613
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
5614
|
+
# HTTP header 'Content-Type'
|
5615
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
5616
|
+
|
5617
|
+
# form parameters
|
5618
|
+
form_params = opts[:form_params] || {}
|
5619
|
+
|
5620
|
+
# http body (model)
|
5621
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_transaction_update_request_body)
|
5622
|
+
|
5623
|
+
# return_type
|
5624
|
+
return_type = opts[:debug_return_type] || 'TransactionResponseBody'
|
5625
|
+
|
5626
|
+
# auth_names
|
5627
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
5628
|
+
|
5629
|
+
new_options = opts.merge(
|
5630
|
+
:operation => :"MxPlatformApi.update_managed_transaction",
|
5631
|
+
:header_params => header_params,
|
5632
|
+
:query_params => query_params,
|
5633
|
+
:form_params => form_params,
|
5634
|
+
:body => post_body,
|
5635
|
+
:auth_names => auth_names,
|
5636
|
+
:return_type => return_type
|
5637
|
+
)
|
5638
|
+
|
5639
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
5640
|
+
if @api_client.config.debugging
|
5641
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#update_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5642
|
+
end
|
5643
|
+
return data, status_code, headers
|
5644
|
+
end
|
5645
|
+
|
4392
5646
|
# Update member
|
4393
5647
|
# 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
5648
|
# @param member_guid [String] The unique id for a `member`.
|