mx-platform-ruby 0.6.1 → 0.8.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 +18 -12
- data/LICENSE +1 -1
- data/README.md +31 -18
- data/docs/EnhanceTransactionResponse.md +19 -5
- data/docs/EnhanceTransactionsRequest.md +6 -2
- data/docs/MxPlatformApi.md +168 -20
- data/docs/TransactionResponse.md +4 -0
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +241 -55
- data/lib/mx-platform-ruby/api_client.rb +7 -9
- data/lib/mx-platform-ruby/api_error.rb +1 -1
- data/lib/mx-platform-ruby/configuration.rb +35 -2
- data/lib/mx-platform-ruby/models/account_number_response.rb +5 -1
- data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_owner_response.rb +9 -1
- data/lib/mx-platform-ruby/models/account_owners_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_response.rb +45 -1
- data/lib/mx-platform-ruby/models/account_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/account_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/accounts_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/categories_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/category_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/category_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/category_response.rb +7 -1
- data/lib/mx-platform-ruby/models/category_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/category_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/category_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/challenge_response.rb +5 -1
- data/lib/mx-platform-ruby/models/challenges_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_request.rb +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_response.rb +2 -1
- data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/credential_request.rb +2 -1
- data/lib/mx-platform-ruby/models/credential_response.rb +4 -1
- data/lib/mx-platform-ruby/models/credentials_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +87 -2
- data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +20 -2
- data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/holding_response.rb +15 -1
- data/lib/mx-platform-ruby/models/holding_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/holdings_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/image_option_response.rb +4 -1
- data/lib/mx-platform-ruby/models/institution_response.rb +11 -1
- data/lib/mx-platform-ruby/models/institution_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/institutions_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_account_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_account_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_member_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_member_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/member_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_response.rb +13 -1
- data/lib/mx-platform-ruby/models/member_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_resume_request.rb +1 -1
- data/lib/mx-platform-ruby/models/member_resume_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_status_response.rb +8 -1
- data/lib/mx-platform-ruby/models/member_status_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/member_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/members_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/merchant_location_response.rb +11 -1
- data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/merchant_response.rb +6 -1
- data/lib/mx-platform-ruby/models/merchant_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/merchants_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/o_auth_window_response.rb +2 -1
- data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/option_response.rb +3 -1
- data/lib/mx-platform-ruby/models/pagination_response.rb +1 -1
- data/lib/mx-platform-ruby/models/statement_response.rb +5 -1
- data/lib/mx-platform-ruby/models/statement_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/statements_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_response.rb +2 -1
- data/lib/mx-platform-ruby/models/tag_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_response.rb +2 -1
- data/lib/mx-platform-ruby/models/tagging_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/taggings_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tags_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_response.rb +57 -2
- data/lib/mx-platform-ruby/models/transaction_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_response.rb +5 -1
- data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +3 -1
- data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transactions_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/user_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/user_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/user_response.rb +5 -1
- data/lib/mx-platform-ruby/models/user_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/user_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/user_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/users_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/widget_request.rb +1 -1
- data/lib/mx-platform-ruby/models/widget_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/widget_response.rb +4 -1
- data/lib/mx-platform-ruby/models/widget_response_body.rb +1 -1
- data/lib/mx-platform-ruby/version.rb +2 -2
- data/lib/mx-platform-ruby.rb +1 -1
- data/mx-platform-ruby.gemspec +1 -1
- data/openapi/config.yml +1 -1
- data/openapi/templates/README.mustache +31 -20
- data/spec/api/mx_platform_api_spec.rb +30 -4
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_number_response_spec.rb +1 -1
- data/spec/models/account_numbers_response_body_spec.rb +1 -1
- data/spec/models/account_owner_response_spec.rb +1 -1
- data/spec/models/account_owners_response_body_spec.rb +1 -1
- data/spec/models/account_response_body_spec.rb +1 -1
- data/spec/models/account_response_spec.rb +1 -1
- data/spec/models/account_update_request_body_spec.rb +1 -1
- data/spec/models/account_update_request_spec.rb +1 -1
- data/spec/models/accounts_response_body_spec.rb +1 -1
- data/spec/models/categories_response_body_spec.rb +1 -1
- data/spec/models/category_create_request_body_spec.rb +1 -1
- data/spec/models/category_create_request_spec.rb +1 -1
- data/spec/models/category_response_body_spec.rb +1 -1
- data/spec/models/category_response_spec.rb +1 -1
- data/spec/models/category_update_request_body_spec.rb +1 -1
- data/spec/models/category_update_request_spec.rb +1 -1
- data/spec/models/challenge_response_spec.rb +1 -1
- data/spec/models/challenges_response_body_spec.rb +1 -1
- data/spec/models/connect_widget_request_body_spec.rb +1 -1
- data/spec/models/connect_widget_request_spec.rb +1 -1
- data/spec/models/connect_widget_response_body_spec.rb +1 -1
- data/spec/models/connect_widget_response_spec.rb +1 -1
- data/spec/models/credential_request_spec.rb +1 -1
- data/spec/models/credential_response_spec.rb +1 -1
- data/spec/models/credentials_response_body_spec.rb +1 -1
- data/spec/models/enhance_transaction_response_spec.rb +43 -1
- data/spec/models/enhance_transactions_request_body_spec.rb +1 -1
- data/spec/models/enhance_transactions_request_spec.rb +13 -1
- data/spec/models/enhance_transactions_response_body_spec.rb +1 -1
- data/spec/models/holding_response_body_spec.rb +1 -1
- data/spec/models/holding_response_spec.rb +1 -1
- data/spec/models/holdings_response_body_spec.rb +1 -1
- data/spec/models/image_option_response_spec.rb +1 -1
- data/spec/models/institution_response_body_spec.rb +1 -1
- data/spec/models/institution_response_spec.rb +1 -1
- data/spec/models/institutions_response_body_spec.rb +1 -1
- data/spec/models/managed_account_create_request_body_spec.rb +1 -1
- data/spec/models/managed_account_create_request_spec.rb +1 -1
- data/spec/models/managed_account_update_request_body_spec.rb +1 -1
- data/spec/models/managed_account_update_request_spec.rb +1 -1
- data/spec/models/managed_member_create_request_body_spec.rb +1 -1
- data/spec/models/managed_member_create_request_spec.rb +1 -1
- data/spec/models/managed_member_update_request_body_spec.rb +1 -1
- data/spec/models/managed_member_update_request_spec.rb +1 -1
- data/spec/models/managed_transaction_create_request_body_spec.rb +1 -1
- data/spec/models/managed_transaction_create_request_spec.rb +1 -1
- data/spec/models/managed_transaction_update_request_body_spec.rb +1 -1
- data/spec/models/managed_transaction_update_request_spec.rb +1 -1
- data/spec/models/member_create_request_body_spec.rb +1 -1
- data/spec/models/member_create_request_spec.rb +1 -1
- data/spec/models/member_response_body_spec.rb +1 -1
- data/spec/models/member_response_spec.rb +1 -1
- data/spec/models/member_resume_request_body_spec.rb +1 -1
- data/spec/models/member_resume_request_spec.rb +1 -1
- data/spec/models/member_status_response_body_spec.rb +1 -1
- data/spec/models/member_status_response_spec.rb +1 -1
- data/spec/models/member_update_request_body_spec.rb +1 -1
- data/spec/models/member_update_request_spec.rb +1 -1
- data/spec/models/members_response_body_spec.rb +1 -1
- data/spec/models/merchant_location_response_body_spec.rb +1 -1
- data/spec/models/merchant_location_response_spec.rb +1 -1
- data/spec/models/merchant_response_body_spec.rb +1 -1
- data/spec/models/merchant_response_spec.rb +1 -1
- data/spec/models/merchants_response_body_spec.rb +1 -1
- data/spec/models/o_auth_window_response_body_spec.rb +1 -1
- data/spec/models/o_auth_window_response_spec.rb +1 -1
- data/spec/models/option_response_spec.rb +1 -1
- data/spec/models/pagination_response_spec.rb +1 -1
- data/spec/models/statement_response_body_spec.rb +1 -1
- data/spec/models/statement_response_spec.rb +1 -1
- data/spec/models/statements_response_body_spec.rb +1 -1
- data/spec/models/tag_create_request_body_spec.rb +1 -1
- data/spec/models/tag_create_request_spec.rb +1 -1
- data/spec/models/tag_response_body_spec.rb +1 -1
- data/spec/models/tag_response_spec.rb +1 -1
- data/spec/models/tag_update_request_body_spec.rb +1 -1
- data/spec/models/tag_update_request_spec.rb +1 -1
- data/spec/models/tagging_create_request_body_spec.rb +1 -1
- data/spec/models/tagging_create_request_spec.rb +1 -1
- data/spec/models/tagging_response_body_spec.rb +1 -1
- data/spec/models/tagging_response_spec.rb +1 -1
- data/spec/models/tagging_update_request_body_spec.rb +1 -1
- data/spec/models/tagging_update_request_spec.rb +1 -1
- data/spec/models/taggings_response_body_spec.rb +1 -1
- data/spec/models/tags_response_body_spec.rb +1 -1
- data/spec/models/transaction_response_body_spec.rb +1 -1
- data/spec/models/transaction_response_spec.rb +13 -1
- data/spec/models/transaction_rule_create_request_body_spec.rb +1 -1
- data/spec/models/transaction_rule_create_request_spec.rb +1 -1
- data/spec/models/transaction_rule_response_body_spec.rb +1 -1
- data/spec/models/transaction_rule_response_spec.rb +1 -1
- data/spec/models/transaction_rule_update_request_body_spec.rb +1 -1
- data/spec/models/transaction_rule_update_request_spec.rb +1 -1
- data/spec/models/transaction_rules_response_body_spec.rb +1 -1
- data/spec/models/transaction_update_request_body_spec.rb +1 -1
- data/spec/models/transaction_update_request_spec.rb +1 -1
- data/spec/models/transactions_response_body_spec.rb +1 -1
- data/spec/models/user_create_request_body_spec.rb +1 -1
- data/spec/models/user_create_request_spec.rb +1 -1
- data/spec/models/user_response_body_spec.rb +1 -1
- data/spec/models/user_response_spec.rb +1 -1
- data/spec/models/user_update_request_body_spec.rb +1 -1
- data/spec/models/user_update_request_spec.rb +1 -1
- data/spec/models/users_response_body_spec.rb +1 -1
- data/spec/models/widget_request_body_spec.rb +1 -1
- data/spec/models/widget_request_spec.rb +1 -1
- data/spec/models/widget_response_body_spec.rb +1 -1
- data/spec/models/widget_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +93 -93
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 5.
|
|
9
|
+
OpenAPI Generator version: 5.3.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -197,7 +197,10 @@ module MxPlatformRuby
|
|
|
197
197
|
# HTTP header 'Accept' (if needed)
|
|
198
198
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
199
199
|
# HTTP header 'Content-Type'
|
|
200
|
-
|
|
200
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
201
|
+
if !content_type.nil?
|
|
202
|
+
header_params['Content-Type'] = content_type
|
|
203
|
+
end
|
|
201
204
|
|
|
202
205
|
# form parameters
|
|
203
206
|
form_params = opts[:form_params] || {}
|
|
@@ -274,7 +277,10 @@ module MxPlatformRuby
|
|
|
274
277
|
# HTTP header 'Accept' (if needed)
|
|
275
278
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
276
279
|
# HTTP header 'Content-Type'
|
|
277
|
-
|
|
280
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
281
|
+
if !content_type.nil?
|
|
282
|
+
header_params['Content-Type'] = content_type
|
|
283
|
+
end
|
|
278
284
|
|
|
279
285
|
# form parameters
|
|
280
286
|
form_params = opts[:form_params] || {}
|
|
@@ -345,7 +351,10 @@ module MxPlatformRuby
|
|
|
345
351
|
# HTTP header 'Accept' (if needed)
|
|
346
352
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
347
353
|
# HTTP header 'Content-Type'
|
|
348
|
-
|
|
354
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
355
|
+
if !content_type.nil?
|
|
356
|
+
header_params['Content-Type'] = content_type
|
|
357
|
+
end
|
|
349
358
|
|
|
350
359
|
# form parameters
|
|
351
360
|
form_params = opts[:form_params] || {}
|
|
@@ -422,7 +431,10 @@ module MxPlatformRuby
|
|
|
422
431
|
# HTTP header 'Accept' (if needed)
|
|
423
432
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
424
433
|
# HTTP header 'Content-Type'
|
|
425
|
-
|
|
434
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
435
|
+
if !content_type.nil?
|
|
436
|
+
header_params['Content-Type'] = content_type
|
|
437
|
+
end
|
|
426
438
|
|
|
427
439
|
# form parameters
|
|
428
440
|
form_params = opts[:form_params] || {}
|
|
@@ -493,7 +505,10 @@ module MxPlatformRuby
|
|
|
493
505
|
# HTTP header 'Accept' (if needed)
|
|
494
506
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
495
507
|
# HTTP header 'Content-Type'
|
|
496
|
-
|
|
508
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
509
|
+
if !content_type.nil?
|
|
510
|
+
header_params['Content-Type'] = content_type
|
|
511
|
+
end
|
|
497
512
|
|
|
498
513
|
# form parameters
|
|
499
514
|
form_params = opts[:form_params] || {}
|
|
@@ -564,7 +579,10 @@ module MxPlatformRuby
|
|
|
564
579
|
# HTTP header 'Accept' (if needed)
|
|
565
580
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
566
581
|
# HTTP header 'Content-Type'
|
|
567
|
-
|
|
582
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
583
|
+
if !content_type.nil?
|
|
584
|
+
header_params['Content-Type'] = content_type
|
|
585
|
+
end
|
|
568
586
|
|
|
569
587
|
# form parameters
|
|
570
588
|
form_params = opts[:form_params] || {}
|
|
@@ -635,7 +653,10 @@ module MxPlatformRuby
|
|
|
635
653
|
# HTTP header 'Accept' (if needed)
|
|
636
654
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
637
655
|
# HTTP header 'Content-Type'
|
|
638
|
-
|
|
656
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
657
|
+
if !content_type.nil?
|
|
658
|
+
header_params['Content-Type'] = content_type
|
|
659
|
+
end
|
|
639
660
|
|
|
640
661
|
# form parameters
|
|
641
662
|
form_params = opts[:form_params] || {}
|
|
@@ -706,7 +727,10 @@ module MxPlatformRuby
|
|
|
706
727
|
# HTTP header 'Accept' (if needed)
|
|
707
728
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
708
729
|
# HTTP header 'Content-Type'
|
|
709
|
-
|
|
730
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
731
|
+
if !content_type.nil?
|
|
732
|
+
header_params['Content-Type'] = content_type
|
|
733
|
+
end
|
|
710
734
|
|
|
711
735
|
# form parameters
|
|
712
736
|
form_params = opts[:form_params] || {}
|
|
@@ -771,7 +795,10 @@ module MxPlatformRuby
|
|
|
771
795
|
# HTTP header 'Accept' (if needed)
|
|
772
796
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
773
797
|
# HTTP header 'Content-Type'
|
|
774
|
-
|
|
798
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
799
|
+
if !content_type.nil?
|
|
800
|
+
header_params['Content-Type'] = content_type
|
|
801
|
+
end
|
|
775
802
|
|
|
776
803
|
# form parameters
|
|
777
804
|
form_params = opts[:form_params] || {}
|
|
@@ -839,8 +866,6 @@ module MxPlatformRuby
|
|
|
839
866
|
|
|
840
867
|
# header parameters
|
|
841
868
|
header_params = opts[:header_params] || {}
|
|
842
|
-
# HTTP header 'Accept' (if needed)
|
|
843
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
844
869
|
|
|
845
870
|
# form parameters
|
|
846
871
|
form_params = opts[:form_params] || {}
|
|
@@ -914,8 +939,6 @@ module MxPlatformRuby
|
|
|
914
939
|
|
|
915
940
|
# header parameters
|
|
916
941
|
header_params = opts[:header_params] || {}
|
|
917
|
-
# HTTP header 'Accept' (if needed)
|
|
918
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
919
942
|
|
|
920
943
|
# form parameters
|
|
921
944
|
form_params = opts[:form_params] || {}
|
|
@@ -983,8 +1006,6 @@ module MxPlatformRuby
|
|
|
983
1006
|
|
|
984
1007
|
# header parameters
|
|
985
1008
|
header_params = opts[:header_params] || {}
|
|
986
|
-
# HTTP header 'Accept' (if needed)
|
|
987
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
988
1009
|
|
|
989
1010
|
# form parameters
|
|
990
1011
|
form_params = opts[:form_params] || {}
|
|
@@ -1058,8 +1079,6 @@ module MxPlatformRuby
|
|
|
1058
1079
|
|
|
1059
1080
|
# header parameters
|
|
1060
1081
|
header_params = opts[:header_params] || {}
|
|
1061
|
-
# HTTP header 'Accept' (if needed)
|
|
1062
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
1063
1082
|
|
|
1064
1083
|
# form parameters
|
|
1065
1084
|
form_params = opts[:form_params] || {}
|
|
@@ -1127,8 +1146,6 @@ module MxPlatformRuby
|
|
|
1127
1146
|
|
|
1128
1147
|
# header parameters
|
|
1129
1148
|
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
1149
|
|
|
1133
1150
|
# form parameters
|
|
1134
1151
|
form_params = opts[:form_params] || {}
|
|
@@ -1196,8 +1213,6 @@ module MxPlatformRuby
|
|
|
1196
1213
|
|
|
1197
1214
|
# header parameters
|
|
1198
1215
|
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
1216
|
|
|
1202
1217
|
# form parameters
|
|
1203
1218
|
form_params = opts[:form_params] || {}
|
|
@@ -1265,8 +1280,6 @@ module MxPlatformRuby
|
|
|
1265
1280
|
|
|
1266
1281
|
# header parameters
|
|
1267
1282
|
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
1283
|
|
|
1271
1284
|
# form parameters
|
|
1272
1285
|
form_params = opts[:form_params] || {}
|
|
@@ -1334,8 +1347,6 @@ module MxPlatformRuby
|
|
|
1334
1347
|
|
|
1335
1348
|
# header parameters
|
|
1336
1349
|
header_params = opts[:header_params] || {}
|
|
1337
|
-
# HTTP header 'Accept' (if needed)
|
|
1338
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
1339
1350
|
|
|
1340
1351
|
# form parameters
|
|
1341
1352
|
form_params = opts[:form_params] || {}
|
|
@@ -1397,8 +1408,6 @@ module MxPlatformRuby
|
|
|
1397
1408
|
|
|
1398
1409
|
# header parameters
|
|
1399
1410
|
header_params = opts[:header_params] || {}
|
|
1400
|
-
# HTTP header 'Accept' (if needed)
|
|
1401
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
1402
1411
|
|
|
1403
1412
|
# form parameters
|
|
1404
1413
|
form_params = opts[:form_params] || {}
|
|
@@ -1538,7 +1547,10 @@ module MxPlatformRuby
|
|
|
1538
1547
|
# HTTP header 'Accept' (if needed)
|
|
1539
1548
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
1540
1549
|
# HTTP header 'Content-Type'
|
|
1541
|
-
|
|
1550
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1551
|
+
if !content_type.nil?
|
|
1552
|
+
header_params['Content-Type'] = content_type
|
|
1553
|
+
end
|
|
1542
1554
|
|
|
1543
1555
|
# form parameters
|
|
1544
1556
|
form_params = opts[:form_params] || {}
|
|
@@ -2071,31 +2083,94 @@ module MxPlatformRuby
|
|
|
2071
2083
|
end
|
|
2072
2084
|
|
|
2073
2085
|
# List default categories
|
|
2074
|
-
# Use this endpoint to
|
|
2075
|
-
# @param user_guid [String] The unique id for a `user`.
|
|
2086
|
+
# Use this endpoint to retrieve a list of all the default categories and subcategories offered within the MX Platform API. In other words, each item in the returned list will have its `is_default` field set to `true`. There are currently 119 default categories and subcategories. Both the _list default categories_ and _list default categories by user_ endpoints return the same results. The different routes are provided for convenience.
|
|
2076
2087
|
# @param [Hash] opts the optional parameters
|
|
2077
2088
|
# @option opts [Integer] :page Specify current page.
|
|
2078
2089
|
# @option opts [Integer] :records_per_page Specify records per page.
|
|
2079
2090
|
# @return [CategoriesResponseBody]
|
|
2080
|
-
def list_default_categories(
|
|
2081
|
-
data, _status_code, _headers = list_default_categories_with_http_info(
|
|
2091
|
+
def list_default_categories(opts = {})
|
|
2092
|
+
data, _status_code, _headers = list_default_categories_with_http_info(opts)
|
|
2082
2093
|
data
|
|
2083
2094
|
end
|
|
2084
2095
|
|
|
2085
2096
|
# List default categories
|
|
2086
|
-
# Use this endpoint to
|
|
2087
|
-
# @param user_guid [String] The unique id for a `user`.
|
|
2097
|
+
# Use this endpoint to retrieve a list of all the default categories and subcategories offered within the MX Platform API. In other words, each item in the returned list will have its `is_default` field set to `true`. There are currently 119 default categories and subcategories. Both the _list default categories_ and _list default categories by user_ endpoints return the same results. The different routes are provided for convenience.
|
|
2088
2098
|
# @param [Hash] opts the optional parameters
|
|
2089
2099
|
# @option opts [Integer] :page Specify current page.
|
|
2090
2100
|
# @option opts [Integer] :records_per_page Specify records per page.
|
|
2091
2101
|
# @return [Array<(CategoriesResponseBody, Integer, Hash)>] CategoriesResponseBody data, response status code and response headers
|
|
2092
|
-
def list_default_categories_with_http_info(
|
|
2102
|
+
def list_default_categories_with_http_info(opts = {})
|
|
2093
2103
|
if @api_client.config.debugging
|
|
2094
2104
|
@api_client.config.logger.debug 'Calling API: MxPlatformApi.list_default_categories ...'
|
|
2095
2105
|
end
|
|
2106
|
+
# resource path
|
|
2107
|
+
local_var_path = '/categories/default'
|
|
2108
|
+
|
|
2109
|
+
# query parameters
|
|
2110
|
+
query_params = opts[:query_params] || {}
|
|
2111
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
2112
|
+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
|
2113
|
+
|
|
2114
|
+
# header parameters
|
|
2115
|
+
header_params = opts[:header_params] || {}
|
|
2116
|
+
# HTTP header 'Accept' (if needed)
|
|
2117
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
2118
|
+
|
|
2119
|
+
# form parameters
|
|
2120
|
+
form_params = opts[:form_params] || {}
|
|
2121
|
+
|
|
2122
|
+
# http body (model)
|
|
2123
|
+
post_body = opts[:debug_body]
|
|
2124
|
+
|
|
2125
|
+
# return_type
|
|
2126
|
+
return_type = opts[:debug_return_type] || 'CategoriesResponseBody'
|
|
2127
|
+
|
|
2128
|
+
# auth_names
|
|
2129
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
2130
|
+
|
|
2131
|
+
new_options = opts.merge(
|
|
2132
|
+
:operation => :"MxPlatformApi.list_default_categories",
|
|
2133
|
+
:header_params => header_params,
|
|
2134
|
+
:query_params => query_params,
|
|
2135
|
+
:form_params => form_params,
|
|
2136
|
+
:body => post_body,
|
|
2137
|
+
:auth_names => auth_names,
|
|
2138
|
+
:return_type => return_type
|
|
2139
|
+
)
|
|
2140
|
+
|
|
2141
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2142
|
+
if @api_client.config.debugging
|
|
2143
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#list_default_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2144
|
+
end
|
|
2145
|
+
return data, status_code, headers
|
|
2146
|
+
end
|
|
2147
|
+
|
|
2148
|
+
# List default categories by user
|
|
2149
|
+
# Use this endpoint to retrieve a list of all the default categories and subcategories, scoped by user, offered within the MX Platform API. In other words, each item in the returned list will have its `is_default` field set to `true`. There are currently 119 default categories and subcategories. Both the _list default categories_ and _list default categories by user_ endpoints return the same results. The different routes are provided for convenience.
|
|
2150
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
2151
|
+
# @param [Hash] opts the optional parameters
|
|
2152
|
+
# @option opts [Integer] :page Specify current page.
|
|
2153
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
2154
|
+
# @return [CategoriesResponseBody]
|
|
2155
|
+
def list_default_categories_by_user(user_guid, opts = {})
|
|
2156
|
+
data, _status_code, _headers = list_default_categories_by_user_with_http_info(user_guid, opts)
|
|
2157
|
+
data
|
|
2158
|
+
end
|
|
2159
|
+
|
|
2160
|
+
# List default categories by user
|
|
2161
|
+
# Use this endpoint to retrieve a list of all the default categories and subcategories, scoped by user, offered within the MX Platform API. In other words, each item in the returned list will have its `is_default` field set to `true`. There are currently 119 default categories and subcategories. Both the _list default categories_ and _list default categories by user_ endpoints return the same results. The different routes are provided for convenience.
|
|
2162
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
2163
|
+
# @param [Hash] opts the optional parameters
|
|
2164
|
+
# @option opts [Integer] :page Specify current page.
|
|
2165
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
2166
|
+
# @return [Array<(CategoriesResponseBody, Integer, Hash)>] CategoriesResponseBody data, response status code and response headers
|
|
2167
|
+
def list_default_categories_by_user_with_http_info(user_guid, opts = {})
|
|
2168
|
+
if @api_client.config.debugging
|
|
2169
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.list_default_categories_by_user ...'
|
|
2170
|
+
end
|
|
2096
2171
|
# verify the required parameter 'user_guid' is set
|
|
2097
2172
|
if @api_client.config.client_side_validation && user_guid.nil?
|
|
2098
|
-
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.
|
|
2173
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.list_default_categories_by_user"
|
|
2099
2174
|
end
|
|
2100
2175
|
# resource path
|
|
2101
2176
|
local_var_path = '/users/{user_guid}/categories/default'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
@@ -2123,7 +2198,7 @@ module MxPlatformRuby
|
|
|
2123
2198
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
2124
2199
|
|
|
2125
2200
|
new_options = opts.merge(
|
|
2126
|
-
:operation => :"MxPlatformApi.
|
|
2201
|
+
:operation => :"MxPlatformApi.list_default_categories_by_user",
|
|
2127
2202
|
:header_params => header_params,
|
|
2128
2203
|
:query_params => query_params,
|
|
2129
2204
|
:form_params => form_params,
|
|
@@ -2134,7 +2209,7 @@ module MxPlatformRuby
|
|
|
2134
2209
|
|
|
2135
2210
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2136
2211
|
if @api_client.config.debugging
|
|
2137
|
-
@api_client.config.logger.debug "API called: MxPlatformApi#
|
|
2212
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#list_default_categories_by_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2138
2213
|
end
|
|
2139
2214
|
return data, status_code, headers
|
|
2140
2215
|
end
|
|
@@ -3870,7 +3945,7 @@ module MxPlatformRuby
|
|
|
3870
3945
|
return data, status_code, headers
|
|
3871
3946
|
end
|
|
3872
3947
|
|
|
3873
|
-
# Read category
|
|
3948
|
+
# Read a custom category
|
|
3874
3949
|
# Use this endpoint to read the attributes of either a default category or a custom category.
|
|
3875
3950
|
# @param category_guid [String] The unique id for a `category`.
|
|
3876
3951
|
# @param user_guid [String] The unique id for a `user`.
|
|
@@ -3881,7 +3956,7 @@ module MxPlatformRuby
|
|
|
3881
3956
|
data
|
|
3882
3957
|
end
|
|
3883
3958
|
|
|
3884
|
-
# Read category
|
|
3959
|
+
# Read a custom category
|
|
3885
3960
|
# Use this endpoint to read the attributes of either a default category or a custom category.
|
|
3886
3961
|
# @param category_guid [String] The unique id for a `category`.
|
|
3887
3962
|
# @param user_guid [String] The unique id for a `user`.
|
|
@@ -3939,6 +4014,75 @@ module MxPlatformRuby
|
|
|
3939
4014
|
return data, status_code, headers
|
|
3940
4015
|
end
|
|
3941
4016
|
|
|
4017
|
+
# Read a default category
|
|
4018
|
+
# Use this endpoint to read the attributes of a default category.
|
|
4019
|
+
# @param category_guid [String] The unique id for a `category`.
|
|
4020
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
4021
|
+
# @param [Hash] opts the optional parameters
|
|
4022
|
+
# @return [CategoryResponseBody]
|
|
4023
|
+
def read_default_category(category_guid, user_guid, opts = {})
|
|
4024
|
+
data, _status_code, _headers = read_default_category_with_http_info(category_guid, user_guid, opts)
|
|
4025
|
+
data
|
|
4026
|
+
end
|
|
4027
|
+
|
|
4028
|
+
# Read a default category
|
|
4029
|
+
# Use this endpoint to read the attributes of a default category.
|
|
4030
|
+
# @param category_guid [String] The unique id for a `category`.
|
|
4031
|
+
# @param user_guid [String] The unique id for a `user`.
|
|
4032
|
+
# @param [Hash] opts the optional parameters
|
|
4033
|
+
# @return [Array<(CategoryResponseBody, Integer, Hash)>] CategoryResponseBody data, response status code and response headers
|
|
4034
|
+
def read_default_category_with_http_info(category_guid, user_guid, opts = {})
|
|
4035
|
+
if @api_client.config.debugging
|
|
4036
|
+
@api_client.config.logger.debug 'Calling API: MxPlatformApi.read_default_category ...'
|
|
4037
|
+
end
|
|
4038
|
+
# verify the required parameter 'category_guid' is set
|
|
4039
|
+
if @api_client.config.client_side_validation && category_guid.nil?
|
|
4040
|
+
fail ArgumentError, "Missing the required parameter 'category_guid' when calling MxPlatformApi.read_default_category"
|
|
4041
|
+
end
|
|
4042
|
+
# verify the required parameter 'user_guid' is set
|
|
4043
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
|
4044
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.read_default_category"
|
|
4045
|
+
end
|
|
4046
|
+
# resource path
|
|
4047
|
+
local_var_path = '/categories/{category_guid}'.sub('{' + 'category_guid' + '}', CGI.escape(category_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
|
|
4048
|
+
|
|
4049
|
+
# query parameters
|
|
4050
|
+
query_params = opts[:query_params] || {}
|
|
4051
|
+
|
|
4052
|
+
# header parameters
|
|
4053
|
+
header_params = opts[:header_params] || {}
|
|
4054
|
+
# HTTP header 'Accept' (if needed)
|
|
4055
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
4056
|
+
|
|
4057
|
+
# form parameters
|
|
4058
|
+
form_params = opts[:form_params] || {}
|
|
4059
|
+
|
|
4060
|
+
# http body (model)
|
|
4061
|
+
post_body = opts[:debug_body]
|
|
4062
|
+
|
|
4063
|
+
# return_type
|
|
4064
|
+
return_type = opts[:debug_return_type] || 'CategoryResponseBody'
|
|
4065
|
+
|
|
4066
|
+
# auth_names
|
|
4067
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
4068
|
+
|
|
4069
|
+
new_options = opts.merge(
|
|
4070
|
+
:operation => :"MxPlatformApi.read_default_category",
|
|
4071
|
+
:header_params => header_params,
|
|
4072
|
+
:query_params => query_params,
|
|
4073
|
+
:form_params => form_params,
|
|
4074
|
+
:body => post_body,
|
|
4075
|
+
:auth_names => auth_names,
|
|
4076
|
+
:return_type => return_type
|
|
4077
|
+
)
|
|
4078
|
+
|
|
4079
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
4080
|
+
if @api_client.config.debugging
|
|
4081
|
+
@api_client.config.logger.debug "API called: MxPlatformApi#read_default_category\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4082
|
+
end
|
|
4083
|
+
return data, status_code, headers
|
|
4084
|
+
end
|
|
4085
|
+
|
|
3942
4086
|
# Read holding
|
|
3943
4087
|
# Use this endpoint to read the attributes of a specific `holding`.
|
|
3944
4088
|
# @param holding_guid [String] The unique id for a `holding`.
|
|
@@ -5004,7 +5148,10 @@ module MxPlatformRuby
|
|
|
5004
5148
|
# HTTP header 'Accept' (if needed)
|
|
5005
5149
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
5006
5150
|
# HTTP header 'Content-Type'
|
|
5007
|
-
|
|
5151
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5152
|
+
if !content_type.nil?
|
|
5153
|
+
header_params['Content-Type'] = content_type
|
|
5154
|
+
end
|
|
5008
5155
|
|
|
5009
5156
|
# form parameters
|
|
5010
5157
|
form_params = opts[:form_params] || {}
|
|
@@ -5155,7 +5302,10 @@ module MxPlatformRuby
|
|
|
5155
5302
|
# HTTP header 'Accept' (if needed)
|
|
5156
5303
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
5157
5304
|
# HTTP header 'Content-Type'
|
|
5158
|
-
|
|
5305
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5306
|
+
if !content_type.nil?
|
|
5307
|
+
header_params['Content-Type'] = content_type
|
|
5308
|
+
end
|
|
5159
5309
|
header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
|
|
5160
5310
|
|
|
5161
5311
|
# form parameters
|
|
@@ -5233,7 +5383,10 @@ module MxPlatformRuby
|
|
|
5233
5383
|
# HTTP header 'Accept' (if needed)
|
|
5234
5384
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
5235
5385
|
# HTTP header 'Content-Type'
|
|
5236
|
-
|
|
5386
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5387
|
+
if !content_type.nil?
|
|
5388
|
+
header_params['Content-Type'] = content_type
|
|
5389
|
+
end
|
|
5237
5390
|
|
|
5238
5391
|
# form parameters
|
|
5239
5392
|
form_params = opts[:form_params] || {}
|
|
@@ -5316,7 +5469,10 @@ module MxPlatformRuby
|
|
|
5316
5469
|
# HTTP header 'Accept' (if needed)
|
|
5317
5470
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
5318
5471
|
# HTTP header 'Content-Type'
|
|
5319
|
-
|
|
5472
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5473
|
+
if !content_type.nil?
|
|
5474
|
+
header_params['Content-Type'] = content_type
|
|
5475
|
+
end
|
|
5320
5476
|
|
|
5321
5477
|
# form parameters
|
|
5322
5478
|
form_params = opts[:form_params] || {}
|
|
@@ -5393,7 +5549,10 @@ module MxPlatformRuby
|
|
|
5393
5549
|
# HTTP header 'Accept' (if needed)
|
|
5394
5550
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
5395
5551
|
# HTTP header 'Content-Type'
|
|
5396
|
-
|
|
5552
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5553
|
+
if !content_type.nil?
|
|
5554
|
+
header_params['Content-Type'] = content_type
|
|
5555
|
+
end
|
|
5397
5556
|
|
|
5398
5557
|
# form parameters
|
|
5399
5558
|
form_params = opts[:form_params] || {}
|
|
@@ -5476,7 +5635,10 @@ module MxPlatformRuby
|
|
|
5476
5635
|
# HTTP header 'Accept' (if needed)
|
|
5477
5636
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
5478
5637
|
# HTTP header 'Content-Type'
|
|
5479
|
-
|
|
5638
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5639
|
+
if !content_type.nil?
|
|
5640
|
+
header_params['Content-Type'] = content_type
|
|
5641
|
+
end
|
|
5480
5642
|
|
|
5481
5643
|
# form parameters
|
|
5482
5644
|
form_params = opts[:form_params] || {}
|
|
@@ -5553,7 +5715,10 @@ module MxPlatformRuby
|
|
|
5553
5715
|
# HTTP header 'Accept' (if needed)
|
|
5554
5716
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
5555
5717
|
# HTTP header 'Content-Type'
|
|
5556
|
-
|
|
5718
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5719
|
+
if !content_type.nil?
|
|
5720
|
+
header_params['Content-Type'] = content_type
|
|
5721
|
+
end
|
|
5557
5722
|
|
|
5558
5723
|
# form parameters
|
|
5559
5724
|
form_params = opts[:form_params] || {}
|
|
@@ -5636,7 +5801,10 @@ module MxPlatformRuby
|
|
|
5636
5801
|
# HTTP header 'Accept' (if needed)
|
|
5637
5802
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
5638
5803
|
# HTTP header 'Content-Type'
|
|
5639
|
-
|
|
5804
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5805
|
+
if !content_type.nil?
|
|
5806
|
+
header_params['Content-Type'] = content_type
|
|
5807
|
+
end
|
|
5640
5808
|
|
|
5641
5809
|
# form parameters
|
|
5642
5810
|
form_params = opts[:form_params] || {}
|
|
@@ -5713,7 +5881,10 @@ module MxPlatformRuby
|
|
|
5713
5881
|
# HTTP header 'Accept' (if needed)
|
|
5714
5882
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
5715
5883
|
# HTTP header 'Content-Type'
|
|
5716
|
-
|
|
5884
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5885
|
+
if !content_type.nil?
|
|
5886
|
+
header_params['Content-Type'] = content_type
|
|
5887
|
+
end
|
|
5717
5888
|
|
|
5718
5889
|
# form parameters
|
|
5719
5890
|
form_params = opts[:form_params] || {}
|
|
@@ -5790,7 +5961,10 @@ module MxPlatformRuby
|
|
|
5790
5961
|
# HTTP header 'Accept' (if needed)
|
|
5791
5962
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
5792
5963
|
# HTTP header 'Content-Type'
|
|
5793
|
-
|
|
5964
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5965
|
+
if !content_type.nil?
|
|
5966
|
+
header_params['Content-Type'] = content_type
|
|
5967
|
+
end
|
|
5794
5968
|
|
|
5795
5969
|
# form parameters
|
|
5796
5970
|
form_params = opts[:form_params] || {}
|
|
@@ -5867,7 +6041,10 @@ module MxPlatformRuby
|
|
|
5867
6041
|
# HTTP header 'Accept' (if needed)
|
|
5868
6042
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
5869
6043
|
# HTTP header 'Content-Type'
|
|
5870
|
-
|
|
6044
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
6045
|
+
if !content_type.nil?
|
|
6046
|
+
header_params['Content-Type'] = content_type
|
|
6047
|
+
end
|
|
5871
6048
|
|
|
5872
6049
|
# form parameters
|
|
5873
6050
|
form_params = opts[:form_params] || {}
|
|
@@ -5944,7 +6121,10 @@ module MxPlatformRuby
|
|
|
5944
6121
|
# HTTP header 'Accept' (if needed)
|
|
5945
6122
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
5946
6123
|
# HTTP header 'Content-Type'
|
|
5947
|
-
|
|
6124
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
6125
|
+
if !content_type.nil?
|
|
6126
|
+
header_params['Content-Type'] = content_type
|
|
6127
|
+
end
|
|
5948
6128
|
|
|
5949
6129
|
# form parameters
|
|
5950
6130
|
form_params = opts[:form_params] || {}
|
|
@@ -6021,7 +6201,10 @@ module MxPlatformRuby
|
|
|
6021
6201
|
# HTTP header 'Accept' (if needed)
|
|
6022
6202
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
6023
6203
|
# HTTP header 'Content-Type'
|
|
6024
|
-
|
|
6204
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
6205
|
+
if !content_type.nil?
|
|
6206
|
+
header_params['Content-Type'] = content_type
|
|
6207
|
+
end
|
|
6025
6208
|
|
|
6026
6209
|
# form parameters
|
|
6027
6210
|
form_params = opts[:form_params] || {}
|
|
@@ -6092,7 +6275,10 @@ module MxPlatformRuby
|
|
|
6092
6275
|
# HTTP header 'Accept' (if needed)
|
|
6093
6276
|
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
|
|
6094
6277
|
# HTTP header 'Content-Type'
|
|
6095
|
-
|
|
6278
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
6279
|
+
if !content_type.nil?
|
|
6280
|
+
header_params['Content-Type'] = content_type
|
|
6281
|
+
end
|
|
6096
6282
|
|
|
6097
6283
|
# form parameters
|
|
6098
6284
|
form_params = opts[:form_params] || {}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 5.
|
|
9
|
+
OpenAPI Generator version: 5.3.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -56,7 +56,8 @@ module MxPlatformRuby
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn|
|
|
59
|
-
conn.basic_auth
|
|
59
|
+
conn.request(:basic_auth, config.username, config.password)
|
|
60
|
+
@config.configure_middleware(conn)
|
|
60
61
|
if opts[:header_params]["Content-Type"] == "multipart/form-data"
|
|
61
62
|
conn.request :multipart
|
|
62
63
|
conn.request :url_encoded
|
|
@@ -117,9 +118,6 @@ module MxPlatformRuby
|
|
|
117
118
|
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
|
118
119
|
|
|
119
120
|
req_opts = {
|
|
120
|
-
:method => http_method,
|
|
121
|
-
:headers => header_params,
|
|
122
|
-
:params => query_params,
|
|
123
121
|
:params_encoding => @config.params_encoding,
|
|
124
122
|
:timeout => @config.timeout,
|
|
125
123
|
:verbose => @config.debugging
|
|
@@ -127,13 +125,13 @@ module MxPlatformRuby
|
|
|
127
125
|
|
|
128
126
|
if [:post, :patch, :put, :delete].include?(http_method)
|
|
129
127
|
req_body = build_request_body(header_params, form_params, opts[:body])
|
|
130
|
-
req_opts.update :body => req_body
|
|
131
128
|
if @config.debugging
|
|
132
129
|
@config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
|
|
133
130
|
end
|
|
134
131
|
end
|
|
135
132
|
request.headers = header_params
|
|
136
133
|
request.body = req_body
|
|
134
|
+
request.options = OpenStruct.new(req_opts)
|
|
137
135
|
request.url url
|
|
138
136
|
request.params = query_params
|
|
139
137
|
download_file(request) if opts[:return_type] == 'File'
|
|
@@ -301,7 +299,7 @@ module MxPlatformRuby
|
|
|
301
299
|
@config.base_url(opts[:operation]) + path
|
|
302
300
|
end
|
|
303
301
|
|
|
304
|
-
# Update
|
|
302
|
+
# Update header and query params based on authentication settings.
|
|
305
303
|
#
|
|
306
304
|
# @param [Hash] header_params Header parameters
|
|
307
305
|
# @param [Hash] query_params Query parameters
|
|
@@ -340,8 +338,8 @@ module MxPlatformRuby
|
|
|
340
338
|
# @param [Array] content_types array for Content-Type
|
|
341
339
|
# @return [String] the Content-Type header (e.g. application/json)
|
|
342
340
|
def select_header_content_type(content_types)
|
|
343
|
-
#
|
|
344
|
-
return
|
|
341
|
+
# return nil by default
|
|
342
|
+
return if content_types.nil? || content_types.empty?
|
|
345
343
|
# use JSON when present, otherwise use the first one
|
|
346
344
|
json_content_type = content_types.find { |s| json_mime?(s) }
|
|
347
345
|
json_content_type || content_types.first
|