DealMakerAPI 0.105.4 → 0.106.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc8a11386f87c55f53dfc87285302a9359e210d690a9cdf0bcf68034580f0fad
4
- data.tar.gz: b37546eb0461a64e0d8738489379b06a673c21e222fb1d13067163e36c8d2d4e
3
+ metadata.gz: 635cd39d8621f4861f4cbf9eac72ad30e3d3560f01b155c2febc219cea0c825c
4
+ data.tar.gz: 6e95256490ba2a701e32163b7ee79de96b4fdb9feafb5cd6c0915843eee89149
5
5
  SHA512:
6
- metadata.gz: 126f1d8305e13915fdac37ce7fd1a073e5a0a7c0477191ca183e2ea853e842cc90bebf921200238a475ec9282d2f4fe52098c2a40b55220031f606b6ce1cbd6f
7
- data.tar.gz: 1accd1d5d3e4c98b527bd535e78c04afa0b95469470ecc919b9bcc37d691dcfc9573a161ce72aa4e2e571f36306481bc057bcc13914606f7a143c1107052d089
6
+ metadata.gz: 310ac9d34ff03680298b5add2c248e6bde30e5746c6537d9e31369b25b8f84a39cfdddebd4b34a3d07a16df7702cdb4b7253ec7f8d9c05c7bdca1f2459ec1069
7
+ data.tar.gz: 1ed7bd3f9e37fa5b5b4d81dfbddcc31c628349702f9eed7750d0bc746ded223a78ddbc53a620b4dbcd3441aa7e4ef5efbe22b9fd7e5a91519a81e4bbb7e18b78
data/README.md CHANGED
@@ -338,7 +338,7 @@ Given the high number of updates our platform performs on any investor, we’ve
338
338
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
339
339
 
340
340
  - API version: 1.75.0
341
- - Package version: 0.105.4
341
+ - Package version: 0.106.1
342
342
  - Generator version: 7.7.0-SNAPSHOT
343
343
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
344
344
 
@@ -355,16 +355,16 @@ gem build DealMakerAPI.gemspec
355
355
  Then either install the gem locally:
356
356
 
357
357
  ```shell
358
- gem install ./DealMakerAPI-0.105.4.gem
358
+ gem install ./DealMakerAPI-0.106.1.gem
359
359
  ```
360
360
 
361
- (for development, run `gem install --dev ./DealMakerAPI-0.105.4.gem` to install the development dependencies)
361
+ (for development, run `gem install --dev ./DealMakerAPI-0.106.1.gem` to install the development dependencies)
362
362
 
363
363
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
364
364
 
365
365
  Finally add this to the Gemfile:
366
366
 
367
- gem 'DealMakerAPI', '~> 0.105.4'
367
+ gem 'DealMakerAPI', '~> 0.106.1'
368
368
 
369
369
  ### Install from Git
370
370
 
@@ -457,6 +457,7 @@ Class | Method | HTTP request | Description
457
457
  *DealMakerAPI::DefaultApi* | [**get_webhooks_deal_id**](docs/DefaultApi.md#get_webhooks_deal_id) | **GET** /webhooks/deal/{id} | Finds a deal using the id
458
458
  *DealMakerAPI::DefaultApi* | [**get_webhooks_deals_search**](docs/DefaultApi.md#get_webhooks_deals_search) | **GET** /webhooks/deals/search | Searches for deals for a given user
459
459
  *DealMakerAPI::DefaultApi* | [**get_webhooks_security_token**](docs/DefaultApi.md#get_webhooks_security_token) | **GET** /webhooks/security_token | Creates a new security token for webhook subscription
460
+ *DealMakerAPI::DefaultApi* | [**patch_deals_id_platform_emails_domain**](docs/DefaultApi.md#patch_deals_id_platform_emails_domain) | **PATCH** /deals/{id}/platform_emails/domain | Update the email domain settings for the deal
460
461
  *DealMakerAPI::DefaultApi* | [**post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit**](docs/DefaultApi.md#post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit) | **POST** /deals/{deal_id}/payment_onboarding/questionnaire/payout_account_details/submit | Submit a payout account details form
461
462
  *DealMakerAPI::DefaultApi* | [**post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_response_submit**](docs/DefaultApi.md#post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_response_submit) | **POST** /deals/{deal_id}/payment_onboarding/questionnaire/qualification_questionnaire/response/submit | Submit a qualification questionnaire response
462
463
  *DealMakerAPI::DefaultApi* | [**post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_submit**](docs/DefaultApi.md#post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_submit) | **POST** /deals/{deal_id}/payment_onboarding/questionnaire/qualification_questionnaire/submit | Submit a qualification questionnaire form
@@ -512,6 +513,7 @@ Class | Method | HTTP request | Description
512
513
  *DealMakerAPI::UserApi* | [**update_user_password**](docs/UserApi.md#update_user_password) | **PUT** /users/{id}/update_password | Update user password
513
514
  *DealMakerAPI::UserApi* | [**verify_factor**](docs/UserApi.md#verify_factor) | **PUT** /users/{id}/verify_factor | Creates an API endpoint to verify an existing TOTP factor
514
515
  *DealMakerAPI::UserApi* | [**verify_sms_verification**](docs/UserApi.md#verify_sms_verification) | **POST** /users/{id}/verify_sms_verification | Verify a SMS Verification by creating a two factor channel of sms type
516
+ *DealMakerAPI::UsersApi* | [**get_users_id_contexts**](docs/UsersApi.md#get_users_id_contexts) | **GET** /users/{id}/contexts | Get contexts for a user
515
517
  *DealMakerAPI::UsersApi* | [**get_users_investments**](docs/UsersApi.md#get_users_investments) | **GET** /users/investments | Gets the investments for a specific user.
516
518
 
517
519
 
@@ -532,6 +534,7 @@ Class | Method | HTTP request | Description
532
534
  - [DealMakerAPI::GenerateUrlRequest](docs/GenerateUrlRequest.md)
533
535
  - [DealMakerAPI::GetAccessTokenRequest](docs/GetAccessTokenRequest.md)
534
536
  - [DealMakerAPI::PatchDealIncentivePlanRequest](docs/PatchDealIncentivePlanRequest.md)
537
+ - [DealMakerAPI::PatchDealsIdPlatformEmailsDomainRequest](docs/PatchDealsIdPlatformEmailsDomainRequest.md)
535
538
  - [DealMakerAPI::PatchInvestorProfilesCorporations](docs/PatchInvestorProfilesCorporations.md)
536
539
  - [DealMakerAPI::PatchInvestorProfilesCorporationsBeneficialOwnersInner](docs/PatchInvestorProfilesCorporationsBeneficialOwnersInner.md)
537
540
  - [DealMakerAPI::PatchInvestorProfilesIndividuals](docs/PatchInvestorProfilesIndividuals.md)
@@ -645,6 +648,8 @@ Class | Method | HTTP request | Description
645
648
  - [DealMakerAPI::V1EntitiesTtwReservation](docs/V1EntitiesTtwReservation.md)
646
649
  - [DealMakerAPI::V1EntitiesUser](docs/V1EntitiesUser.md)
647
650
  - [DealMakerAPI::V1EntitiesUsersBinding](docs/V1EntitiesUsersBinding.md)
651
+ - [DealMakerAPI::V1EntitiesUsersContext](docs/V1EntitiesUsersContext.md)
652
+ - [DealMakerAPI::V1EntitiesUsersContexts](docs/V1EntitiesUsersContexts.md)
648
653
  - [DealMakerAPI::V1EntitiesUsersFactor](docs/V1EntitiesUsersFactor.md)
649
654
  - [DealMakerAPI::V1EntitiesUsersTwoFactorChannel](docs/V1EntitiesUsersTwoFactorChannel.md)
650
655
  - [DealMakerAPI::V1EntitiesUsersTwoFactorChannels](docs/V1EntitiesUsersTwoFactorChannels.md)
data/docs/DefaultApi.md CHANGED
@@ -17,6 +17,7 @@ All URIs are relative to *http://api.dealmaker.tech*
17
17
  | [**get_webhooks_deal_id**](DefaultApi.md#get_webhooks_deal_id) | **GET** /webhooks/deal/{id} | Finds a deal using the id |
18
18
  | [**get_webhooks_deals_search**](DefaultApi.md#get_webhooks_deals_search) | **GET** /webhooks/deals/search | Searches for deals for a given user |
19
19
  | [**get_webhooks_security_token**](DefaultApi.md#get_webhooks_security_token) | **GET** /webhooks/security_token | Creates a new security token for webhook subscription |
20
+ | [**patch_deals_id_platform_emails_domain**](DefaultApi.md#patch_deals_id_platform_emails_domain) | **PATCH** /deals/{id}/platform_emails/domain | Update the email domain settings for the deal |
20
21
  | [**post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit**](DefaultApi.md#post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit) | **POST** /deals/{deal_id}/payment_onboarding/questionnaire/payout_account_details/submit | Submit a payout account details form |
21
22
  | [**post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_response_submit**](DefaultApi.md#post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_response_submit) | **POST** /deals/{deal_id}/payment_onboarding/questionnaire/qualification_questionnaire/response/submit | Submit a qualification questionnaire response |
22
23
  | [**post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_submit**](DefaultApi.md#post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_submit) | **POST** /deals/{deal_id}/payment_onboarding/questionnaire/qualification_questionnaire/submit | Submit a qualification questionnaire form |
@@ -878,6 +879,73 @@ No authorization required
878
879
  - **Accept**: application/json
879
880
 
880
881
 
882
+ ## patch_deals_id_platform_emails_domain
883
+
884
+ > patch_deals_id_platform_emails_domain(id, patch_deals_id_platform_emails_domain_request)
885
+
886
+ Update the email domain settings for the deal
887
+
888
+ Update the email domain settings for the deal
889
+
890
+ ### Examples
891
+
892
+ ```ruby
893
+ require 'time'
894
+ require 'DealMakerAPI'
895
+ # setup authorization
896
+ DealMakerAPI.configure do |config|end
897
+
898
+ api_instance = DealMakerAPI::DefaultApi.new
899
+ id = 56 # Integer | The deal id.
900
+ patch_deals_id_platform_emails_domain_request = DealMakerAPI::PatchDealsIdPlatformEmailsDomainRequest.new({sender_name: 'sender_name_example', sender_email: 'sender_email_example'}) # PatchDealsIdPlatformEmailsDomainRequest |
901
+
902
+ begin
903
+ # Update the email domain settings for the deal
904
+ api_instance.patch_deals_id_platform_emails_domain(id, patch_deals_id_platform_emails_domain_request)
905
+ rescue DealMakerAPI::ApiError => e
906
+ puts "Error when calling DefaultApi->patch_deals_id_platform_emails_domain: #{e}"
907
+ end
908
+ ```
909
+
910
+ #### Using the patch_deals_id_platform_emails_domain_with_http_info variant
911
+
912
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
913
+
914
+ > <Array(nil, Integer, Hash)> patch_deals_id_platform_emails_domain_with_http_info(id, patch_deals_id_platform_emails_domain_request)
915
+
916
+ ```ruby
917
+ begin
918
+ # Update the email domain settings for the deal
919
+ data, status_code, headers = api_instance.patch_deals_id_platform_emails_domain_with_http_info(id, patch_deals_id_platform_emails_domain_request)
920
+ p status_code # => 2xx
921
+ p headers # => { ... }
922
+ p data # => nil
923
+ rescue DealMakerAPI::ApiError => e
924
+ puts "Error when calling DefaultApi->patch_deals_id_platform_emails_domain_with_http_info: #{e}"
925
+ end
926
+ ```
927
+
928
+ ### Parameters
929
+
930
+ | Name | Type | Description | Notes |
931
+ | ---- | ---- | ----------- | ----- |
932
+ | **id** | **Integer** | The deal id. | |
933
+ | **patch_deals_id_platform_emails_domain_request** | [**PatchDealsIdPlatformEmailsDomainRequest**](PatchDealsIdPlatformEmailsDomainRequest.md) | | |
934
+
935
+ ### Return type
936
+
937
+ nil (empty response body)
938
+
939
+ ### Authorization
940
+
941
+ No authorization required
942
+
943
+ ### HTTP request headers
944
+
945
+ - **Content-Type**: application/json
946
+ - **Accept**: Not defined
947
+
948
+
881
949
  ## post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit
882
950
 
883
951
  > <V1EntitiesPaymentsSelfServeOnboardingPayoutAccountDetailsResult> post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit(deal_id)
@@ -0,0 +1,20 @@
1
+ # DealMakerAPI::PatchDealsIdPlatformEmailsDomainRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **sender_name** | **String** | The sender name. | |
8
+ | **sender_email** | **String** | The sender email. It must match an authenticated domain. | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'DealMakerAPI'
14
+
15
+ instance = DealMakerAPI::PatchDealsIdPlatformEmailsDomainRequest.new(
16
+ sender_name: null,
17
+ sender_email: null
18
+ )
19
+ ```
20
+
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **email** | **String** | The investor email address. | |
8
+ | **email_confirmation** | **String** | The investor confirmation email address. | [optional] |
8
9
  | **investor_profile_id** | **Integer** | The Investor Profile id. | [optional] |
9
10
  | **tags** | **Array&lt;String&gt;** | | [optional] |
10
11
  | **first_name** | **String** | The first name of the investor. | [optional] |
@@ -24,6 +25,7 @@ require 'DealMakerAPI'
24
25
 
25
26
  instance = DealMakerAPI::PostDealsIdInvestors.new(
26
27
  email: null,
28
+ email_confirmation: null,
27
29
  investor_profile_id: null,
28
30
  tags: null,
29
31
  first_name: null,
data/docs/UsersApi.md CHANGED
@@ -4,9 +4,76 @@ All URIs are relative to *http://api.dealmaker.tech*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
+ | [**get_users_id_contexts**](UsersApi.md#get_users_id_contexts) | **GET** /users/{id}/contexts | Get contexts for a user |
7
8
  | [**get_users_investments**](UsersApi.md#get_users_investments) | **GET** /users/investments | Gets the investments for a specific user. |
8
9
 
9
10
 
11
+ ## get_users_id_contexts
12
+
13
+ > <V1EntitiesUsersContexts> get_users_id_contexts(id)
14
+
15
+ Get contexts for a user
16
+
17
+ Get contexts for a user
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'DealMakerAPI'
24
+ # setup authorization
25
+ DealMakerAPI.configure do |config|end
26
+
27
+ api_instance = DealMakerAPI::UsersApi.new
28
+ id = 56 # Integer |
29
+
30
+ begin
31
+ # Get contexts for a user
32
+ result = api_instance.get_users_id_contexts(id)
33
+ p result
34
+ rescue DealMakerAPI::ApiError => e
35
+ puts "Error when calling UsersApi->get_users_id_contexts: #{e}"
36
+ end
37
+ ```
38
+
39
+ #### Using the get_users_id_contexts_with_http_info variant
40
+
41
+ This returns an Array which contains the response data, status code and headers.
42
+
43
+ > <Array(<V1EntitiesUsersContexts>, Integer, Hash)> get_users_id_contexts_with_http_info(id)
44
+
45
+ ```ruby
46
+ begin
47
+ # Get contexts for a user
48
+ data, status_code, headers = api_instance.get_users_id_contexts_with_http_info(id)
49
+ p status_code # => 2xx
50
+ p headers # => { ... }
51
+ p data # => <V1EntitiesUsersContexts>
52
+ rescue DealMakerAPI::ApiError => e
53
+ puts "Error when calling UsersApi->get_users_id_contexts_with_http_info: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+ | Name | Type | Description | Notes |
60
+ | ---- | ---- | ----------- | ----- |
61
+ | **id** | **Integer** | | |
62
+
63
+ ### Return type
64
+
65
+ [**V1EntitiesUsersContexts**](V1EntitiesUsersContexts.md)
66
+
67
+ ### Authorization
68
+
69
+ No authorization required
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: Not defined
74
+ - **Accept**: application/json
75
+
76
+
10
77
  ## get_users_investments
11
78
 
12
79
  > <V1EntitiesInvestors> get_users_investments(email, opts)
@@ -0,0 +1,24 @@
1
+ # DealMakerAPI::V1EntitiesUsersContext
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | Context ID. | [optional] |
8
+ | **name** | **String** | The name of the context. | [optional] |
9
+ | **logo** | **String** | The logo of the context. | [optional] |
10
+ | **type** | **String** | The type of the context. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'DealMakerAPI'
16
+
17
+ instance = DealMakerAPI::V1EntitiesUsersContext.new(
18
+ id: null,
19
+ name: null,
20
+ logo: null,
21
+ type: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # DealMakerAPI::V1EntitiesUsersContexts
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **contexts** | [**V1EntitiesUsersContext**](V1EntitiesUsersContext.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'DealMakerAPI'
13
+
14
+ instance = DealMakerAPI::V1EntitiesUsersContexts.new(
15
+ contexts: null
16
+ )
17
+ ```
18
+
@@ -825,6 +825,78 @@ module DealMakerAPI
825
825
  return data, status_code, headers
826
826
  end
827
827
 
828
+ # Update the email domain settings for the deal
829
+ # Update the email domain settings for the deal
830
+ # @param id [Integer] The deal id.
831
+ # @param patch_deals_id_platform_emails_domain_request [PatchDealsIdPlatformEmailsDomainRequest]
832
+ # @param [Hash] opts the optional parameters
833
+ # @return [nil]
834
+ def patch_deals_id_platform_emails_domain(id, patch_deals_id_platform_emails_domain_request, opts = {})
835
+ patch_deals_id_platform_emails_domain_with_http_info(id, patch_deals_id_platform_emails_domain_request, opts)
836
+ nil
837
+ end
838
+
839
+ # Update the email domain settings for the deal
840
+ # Update the email domain settings for the deal
841
+ # @param id [Integer] The deal id.
842
+ # @param patch_deals_id_platform_emails_domain_request [PatchDealsIdPlatformEmailsDomainRequest]
843
+ # @param [Hash] opts the optional parameters
844
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
845
+ def patch_deals_id_platform_emails_domain_with_http_info(id, patch_deals_id_platform_emails_domain_request, opts = {})
846
+ if @api_client.config.debugging
847
+ @api_client.config.logger.debug 'Calling API: DefaultApi.patch_deals_id_platform_emails_domain ...'
848
+ end
849
+ # verify the required parameter 'id' is set
850
+ if @api_client.config.client_side_validation && id.nil?
851
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.patch_deals_id_platform_emails_domain"
852
+ end
853
+ # verify the required parameter 'patch_deals_id_platform_emails_domain_request' is set
854
+ if @api_client.config.client_side_validation && patch_deals_id_platform_emails_domain_request.nil?
855
+ fail ArgumentError, "Missing the required parameter 'patch_deals_id_platform_emails_domain_request' when calling DefaultApi.patch_deals_id_platform_emails_domain"
856
+ end
857
+ # resource path
858
+ local_var_path = '/deals/{id}/platform_emails/domain'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
859
+
860
+ # query parameters
861
+ query_params = opts[:query_params] || {}
862
+
863
+ # header parameters
864
+ header_params = opts[:header_params] || {}
865
+ # HTTP header 'Content-Type'
866
+ content_type = @api_client.select_header_content_type(['application/json'])
867
+ if !content_type.nil?
868
+ header_params['Content-Type'] = content_type
869
+ end
870
+
871
+ # form parameters
872
+ form_params = opts[:form_params] || {}
873
+
874
+ # http body (model)
875
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(patch_deals_id_platform_emails_domain_request)
876
+
877
+ # return_type
878
+ return_type = opts[:debug_return_type]
879
+
880
+ # auth_names
881
+ auth_names = opts[:debug_auth_names] || []
882
+
883
+ new_options = opts.merge(
884
+ :operation => :"DefaultApi.patch_deals_id_platform_emails_domain",
885
+ :header_params => header_params,
886
+ :query_params => query_params,
887
+ :form_params => form_params,
888
+ :body => post_body,
889
+ :auth_names => auth_names,
890
+ :return_type => return_type
891
+ )
892
+
893
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
894
+ if @api_client.config.debugging
895
+ @api_client.config.logger.debug "API called: DefaultApi#patch_deals_id_platform_emails_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
896
+ end
897
+ return data, status_code, headers
898
+ end
899
+
828
900
  # Submit a payout account details form
829
901
  # Submit a payout account details form
830
902
  # @param deal_id [Integer]
@@ -19,6 +19,69 @@ module DealMakerAPI
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Get contexts for a user
23
+ # Get contexts for a user
24
+ # @param id [Integer]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [V1EntitiesUsersContexts]
27
+ def get_users_id_contexts(id, opts = {})
28
+ data, _status_code, _headers = get_users_id_contexts_with_http_info(id, opts)
29
+ data
30
+ end
31
+
32
+ # Get contexts for a user
33
+ # Get contexts for a user
34
+ # @param id [Integer]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(V1EntitiesUsersContexts, Integer, Hash)>] V1EntitiesUsersContexts data, response status code and response headers
37
+ def get_users_id_contexts_with_http_info(id, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: UsersApi.get_users_id_contexts ...'
40
+ end
41
+ # verify the required parameter 'id' is set
42
+ if @api_client.config.client_side_validation && id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.get_users_id_contexts"
44
+ end
45
+ # resource path
46
+ local_var_path = '/users/{id}/contexts'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+
56
+ # form parameters
57
+ form_params = opts[:form_params] || {}
58
+
59
+ # http body (model)
60
+ post_body = opts[:debug_body]
61
+
62
+ # return_type
63
+ return_type = opts[:debug_return_type] || 'V1EntitiesUsersContexts'
64
+
65
+ # auth_names
66
+ auth_names = opts[:debug_auth_names] || []
67
+
68
+ new_options = opts.merge(
69
+ :operation => :"UsersApi.get_users_id_contexts",
70
+ :header_params => header_params,
71
+ :query_params => query_params,
72
+ :form_params => form_params,
73
+ :body => post_body,
74
+ :auth_names => auth_names,
75
+ :return_type => return_type
76
+ )
77
+
78
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
79
+ if @api_client.config.debugging
80
+ @api_client.config.logger.debug "API called: UsersApi#get_users_id_contexts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
+ end
82
+ return data, status_code, headers
83
+ end
84
+
22
85
  # Gets the investments for a specific user.
23
86
  # Get Investments
24
87
  # @param email [String] The email of the user.