DealMakerAPI 0.92.2 → 0.93.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: dd03bf403ac4d077017fd1b252672075a7495f981706e5a2bc0f6c344cda1359
4
- data.tar.gz: 1e332c73a8e85d2ea3adfa7f76b0b21af2425a2ef59b947291d49eaff19a02e1
3
+ metadata.gz: 4755a245e11ca80878643dcc640a55cda9db3c435f431cd0f31320b959b681d0
4
+ data.tar.gz: 5310af9d9bfc3b05b31ee0944d5133fb9d9c333deccad506a6842cda6b3c84c4
5
5
  SHA512:
6
- metadata.gz: c5dff79d00ba9580c59dd4545aa5db5f41f5c7cda40a404e7b6f4ce85335342c36a22d70fc3e13e7292bfb59fe51fd0661a2bdb40e69bb96d920a2ea4b3bdc05
7
- data.tar.gz: 03d3bebc98d80c3a834c6e80917853038a622059c709eaa91c9ed568fa2f66e15c762bb8b920cb60fc0272fda2bb802ca680dba08a47bc036e1a2a110f5de719
6
+ metadata.gz: 44da781df9e7f60b94eefaed296112682ef5a5316ea33a08da3854e1aa43c9aa8e55223737d8793f18d3df85e45afd4fc4337d00bab3eca3293cd244934a6d32
7
+ data.tar.gz: 45f3850219f2ee958aef1730ed2cd58ed38d5968b74438be6f6b0341f25cfd279a318e86a8b6f603c2d1d15b7d1d808ac4a01da945f3292b14f17d8c5e2a5f2d
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.92.2
341
+ - Package version: 0.93.1
342
342
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
343
343
 
344
344
  ## Installation
@@ -354,16 +354,16 @@ gem build DealMakerAPI.gemspec
354
354
  Then either install the gem locally:
355
355
 
356
356
  ```shell
357
- gem install ./DealMakerAPI-0.92.2.gem
357
+ gem install ./DealMakerAPI-0.93.1.gem
358
358
  ```
359
359
 
360
- (for development, run `gem install --dev ./DealMakerAPI-0.92.2.gem` to install the development dependencies)
360
+ (for development, run `gem install --dev ./DealMakerAPI-0.93.1.gem` to install the development dependencies)
361
361
 
362
362
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
363
363
 
364
364
  Finally add this to the Gemfile:
365
365
 
366
- gem 'DealMakerAPI', '~> 0.92.2'
366
+ gem 'DealMakerAPI', '~> 0.93.1'
367
367
 
368
368
  ### Install from Git
369
369
 
@@ -554,6 +554,7 @@ Class | Method | HTTP request | Description
554
554
  - [DealMakerAPI::V1EntitiesInvestorProfileFieldsSigningOfficer](docs/V1EntitiesInvestorProfileFieldsSigningOfficer.md)
555
555
  - [DealMakerAPI::V1EntitiesInvestorProfileFieldsTrust](docs/V1EntitiesInvestorProfileFieldsTrust.md)
556
556
  - [DealMakerAPI::V1EntitiesInvestorProfileFieldsTrustee](docs/V1EntitiesInvestorProfileFieldsTrustee.md)
557
+ - [DealMakerAPI::V1EntitiesInvestorProfileId](docs/V1EntitiesInvestorProfileId.md)
557
558
  - [DealMakerAPI::V1EntitiesInvestorProfileIndividual](docs/V1EntitiesInvestorProfileIndividual.md)
558
559
  - [DealMakerAPI::V1EntitiesInvestorProfileItem](docs/V1EntitiesInvestorProfileItem.md)
559
560
  - [DealMakerAPI::V1EntitiesInvestorProfileJoint](docs/V1EntitiesInvestorProfileJoint.md)
@@ -20,7 +20,7 @@ All URIs are relative to *http://api.dealmaker.tech*
20
20
 
21
21
  ## create_corporation_profile
22
22
 
23
- > <V1EntitiesInvestorProfileCorporation> create_corporation_profile(investor_profiles_corporations)
23
+ > <V1EntitiesInvestorProfileId> create_corporation_profile(investor_profiles_corporations)
24
24
 
25
25
  Create new corporation investor profile.
26
26
 
@@ -50,7 +50,7 @@ end
50
50
 
51
51
  This returns an Array which contains the response data, status code and headers.
52
52
 
53
- > <Array(<V1EntitiesInvestorProfileCorporation>, Integer, Hash)> create_corporation_profile_with_http_info(investor_profiles_corporations)
53
+ > <Array(<V1EntitiesInvestorProfileId>, Integer, Hash)> create_corporation_profile_with_http_info(investor_profiles_corporations)
54
54
 
55
55
  ```ruby
56
56
  begin
@@ -58,7 +58,7 @@ begin
58
58
  data, status_code, headers = api_instance.create_corporation_profile_with_http_info(investor_profiles_corporations)
59
59
  p status_code # => 2xx
60
60
  p headers # => { ... }
61
- p data # => <V1EntitiesInvestorProfileCorporation>
61
+ p data # => <V1EntitiesInvestorProfileId>
62
62
  rescue DealMakerAPI::ApiError => e
63
63
  puts "Error when calling InvestorProfileApi->create_corporation_profile_with_http_info: #{e}"
64
64
  end
@@ -72,7 +72,7 @@ end
72
72
 
73
73
  ### Return type
74
74
 
75
- [**V1EntitiesInvestorProfileCorporation**](V1EntitiesInvestorProfileCorporation.md)
75
+ [**V1EntitiesInvestorProfileId**](V1EntitiesInvestorProfileId.md)
76
76
 
77
77
  ### Authorization
78
78
 
@@ -86,7 +86,7 @@ No authorization required
86
86
 
87
87
  ## create_individual_profile
88
88
 
89
- > <V1EntitiesInvestorProfileIndividual> create_individual_profile(investor_profiles_individuals)
89
+ > <V1EntitiesInvestorProfileId> create_individual_profile(investor_profiles_individuals)
90
90
 
91
91
  Create new individual investor profile
92
92
 
@@ -116,7 +116,7 @@ end
116
116
 
117
117
  This returns an Array which contains the response data, status code and headers.
118
118
 
119
- > <Array(<V1EntitiesInvestorProfileIndividual>, Integer, Hash)> create_individual_profile_with_http_info(investor_profiles_individuals)
119
+ > <Array(<V1EntitiesInvestorProfileId>, Integer, Hash)> create_individual_profile_with_http_info(investor_profiles_individuals)
120
120
 
121
121
  ```ruby
122
122
  begin
@@ -124,7 +124,7 @@ begin
124
124
  data, status_code, headers = api_instance.create_individual_profile_with_http_info(investor_profiles_individuals)
125
125
  p status_code # => 2xx
126
126
  p headers # => { ... }
127
- p data # => <V1EntitiesInvestorProfileIndividual>
127
+ p data # => <V1EntitiesInvestorProfileId>
128
128
  rescue DealMakerAPI::ApiError => e
129
129
  puts "Error when calling InvestorProfileApi->create_individual_profile_with_http_info: #{e}"
130
130
  end
@@ -138,7 +138,7 @@ end
138
138
 
139
139
  ### Return type
140
140
 
141
- [**V1EntitiesInvestorProfileIndividual**](V1EntitiesInvestorProfileIndividual.md)
141
+ [**V1EntitiesInvestorProfileId**](V1EntitiesInvestorProfileId.md)
142
142
 
143
143
  ### Authorization
144
144
 
@@ -152,7 +152,7 @@ No authorization required
152
152
 
153
153
  ## create_joint_profile
154
154
 
155
- > <V1EntitiesInvestorProfileJoint> create_joint_profile(investor_profiles_joints)
155
+ > <V1EntitiesInvestorProfileId> create_joint_profile(investor_profiles_joints)
156
156
 
157
157
  Create new joint investor profile
158
158
 
@@ -182,7 +182,7 @@ end
182
182
 
183
183
  This returns an Array which contains the response data, status code and headers.
184
184
 
185
- > <Array(<V1EntitiesInvestorProfileJoint>, Integer, Hash)> create_joint_profile_with_http_info(investor_profiles_joints)
185
+ > <Array(<V1EntitiesInvestorProfileId>, Integer, Hash)> create_joint_profile_with_http_info(investor_profiles_joints)
186
186
 
187
187
  ```ruby
188
188
  begin
@@ -190,7 +190,7 @@ begin
190
190
  data, status_code, headers = api_instance.create_joint_profile_with_http_info(investor_profiles_joints)
191
191
  p status_code # => 2xx
192
192
  p headers # => { ... }
193
- p data # => <V1EntitiesInvestorProfileJoint>
193
+ p data # => <V1EntitiesInvestorProfileId>
194
194
  rescue DealMakerAPI::ApiError => e
195
195
  puts "Error when calling InvestorProfileApi->create_joint_profile_with_http_info: #{e}"
196
196
  end
@@ -204,7 +204,7 @@ end
204
204
 
205
205
  ### Return type
206
206
 
207
- [**V1EntitiesInvestorProfileJoint**](V1EntitiesInvestorProfileJoint.md)
207
+ [**V1EntitiesInvestorProfileId**](V1EntitiesInvestorProfileId.md)
208
208
 
209
209
  ### Authorization
210
210
 
@@ -218,7 +218,7 @@ No authorization required
218
218
 
219
219
  ## create_managed_profile
220
220
 
221
- > <V1EntitiesInvestorProfileManaged> create_managed_profile(investor_profiles_managed)
221
+ > <V1EntitiesInvestorProfileId> create_managed_profile(investor_profiles_managed)
222
222
 
223
223
  Create new managed investor profile.
224
224
 
@@ -248,7 +248,7 @@ end
248
248
 
249
249
  This returns an Array which contains the response data, status code and headers.
250
250
 
251
- > <Array(<V1EntitiesInvestorProfileManaged>, Integer, Hash)> create_managed_profile_with_http_info(investor_profiles_managed)
251
+ > <Array(<V1EntitiesInvestorProfileId>, Integer, Hash)> create_managed_profile_with_http_info(investor_profiles_managed)
252
252
 
253
253
  ```ruby
254
254
  begin
@@ -256,7 +256,7 @@ begin
256
256
  data, status_code, headers = api_instance.create_managed_profile_with_http_info(investor_profiles_managed)
257
257
  p status_code # => 2xx
258
258
  p headers # => { ... }
259
- p data # => <V1EntitiesInvestorProfileManaged>
259
+ p data # => <V1EntitiesInvestorProfileId>
260
260
  rescue DealMakerAPI::ApiError => e
261
261
  puts "Error when calling InvestorProfileApi->create_managed_profile_with_http_info: #{e}"
262
262
  end
@@ -270,7 +270,7 @@ end
270
270
 
271
271
  ### Return type
272
272
 
273
- [**V1EntitiesInvestorProfileManaged**](V1EntitiesInvestorProfileManaged.md)
273
+ [**V1EntitiesInvestorProfileId**](V1EntitiesInvestorProfileId.md)
274
274
 
275
275
  ### Authorization
276
276
 
@@ -284,7 +284,7 @@ No authorization required
284
284
 
285
285
  ## create_trust_profile
286
286
 
287
- > <V1EntitiesInvestorProfileTrust> create_trust_profile(investor_profiles_trusts)
287
+ > <V1EntitiesInvestorProfileId> create_trust_profile(investor_profiles_trusts)
288
288
 
289
289
  Create new trust investor profile.
290
290
 
@@ -314,7 +314,7 @@ end
314
314
 
315
315
  This returns an Array which contains the response data, status code and headers.
316
316
 
317
- > <Array(<V1EntitiesInvestorProfileTrust>, Integer, Hash)> create_trust_profile_with_http_info(investor_profiles_trusts)
317
+ > <Array(<V1EntitiesInvestorProfileId>, Integer, Hash)> create_trust_profile_with_http_info(investor_profiles_trusts)
318
318
 
319
319
  ```ruby
320
320
  begin
@@ -322,7 +322,7 @@ begin
322
322
  data, status_code, headers = api_instance.create_trust_profile_with_http_info(investor_profiles_trusts)
323
323
  p status_code # => 2xx
324
324
  p headers # => { ... }
325
- p data # => <V1EntitiesInvestorProfileTrust>
325
+ p data # => <V1EntitiesInvestorProfileId>
326
326
  rescue DealMakerAPI::ApiError => e
327
327
  puts "Error when calling InvestorProfileApi->create_trust_profile_with_http_info: #{e}"
328
328
  end
@@ -336,7 +336,7 @@ end
336
336
 
337
337
  ### Return type
338
338
 
339
- [**V1EntitiesInvestorProfileTrust**](V1EntitiesInvestorProfileTrust.md)
339
+ [**V1EntitiesInvestorProfileId**](V1EntitiesInvestorProfileId.md)
340
340
 
341
341
  ### Authorization
342
342
 
@@ -564,7 +564,7 @@ No authorization required
564
564
 
565
565
  ## patch_corporation_profile
566
566
 
567
- > <V1EntitiesInvestorProfileCorporation> patch_corporation_profile(investor_profile_id, investor_profiles_corporations)
567
+ > <V1EntitiesInvestorProfileId> patch_corporation_profile(investor_profile_id, investor_profiles_corporations)
568
568
 
569
569
  Patch a corporation investor profile
570
570
 
@@ -595,7 +595,7 @@ end
595
595
 
596
596
  This returns an Array which contains the response data, status code and headers.
597
597
 
598
- > <Array(<V1EntitiesInvestorProfileCorporation>, Integer, Hash)> patch_corporation_profile_with_http_info(investor_profile_id, investor_profiles_corporations)
598
+ > <Array(<V1EntitiesInvestorProfileId>, Integer, Hash)> patch_corporation_profile_with_http_info(investor_profile_id, investor_profiles_corporations)
599
599
 
600
600
  ```ruby
601
601
  begin
@@ -603,7 +603,7 @@ begin
603
603
  data, status_code, headers = api_instance.patch_corporation_profile_with_http_info(investor_profile_id, investor_profiles_corporations)
604
604
  p status_code # => 2xx
605
605
  p headers # => { ... }
606
- p data # => <V1EntitiesInvestorProfileCorporation>
606
+ p data # => <V1EntitiesInvestorProfileId>
607
607
  rescue DealMakerAPI::ApiError => e
608
608
  puts "Error when calling InvestorProfileApi->patch_corporation_profile_with_http_info: #{e}"
609
609
  end
@@ -618,7 +618,7 @@ end
618
618
 
619
619
  ### Return type
620
620
 
621
- [**V1EntitiesInvestorProfileCorporation**](V1EntitiesInvestorProfileCorporation.md)
621
+ [**V1EntitiesInvestorProfileId**](V1EntitiesInvestorProfileId.md)
622
622
 
623
623
  ### Authorization
624
624
 
@@ -632,7 +632,7 @@ No authorization required
632
632
 
633
633
  ## patch_individual_profile
634
634
 
635
- > <V1EntitiesInvestorProfileIndividual> patch_individual_profile(investor_profile_id, investor_profiles_individuals)
635
+ > <V1EntitiesInvestorProfileId> patch_individual_profile(investor_profile_id, investor_profiles_individuals)
636
636
 
637
637
  Patch an individual investor profile.
638
638
 
@@ -663,7 +663,7 @@ end
663
663
 
664
664
  This returns an Array which contains the response data, status code and headers.
665
665
 
666
- > <Array(<V1EntitiesInvestorProfileIndividual>, Integer, Hash)> patch_individual_profile_with_http_info(investor_profile_id, investor_profiles_individuals)
666
+ > <Array(<V1EntitiesInvestorProfileId>, Integer, Hash)> patch_individual_profile_with_http_info(investor_profile_id, investor_profiles_individuals)
667
667
 
668
668
  ```ruby
669
669
  begin
@@ -671,7 +671,7 @@ begin
671
671
  data, status_code, headers = api_instance.patch_individual_profile_with_http_info(investor_profile_id, investor_profiles_individuals)
672
672
  p status_code # => 2xx
673
673
  p headers # => { ... }
674
- p data # => <V1EntitiesInvestorProfileIndividual>
674
+ p data # => <V1EntitiesInvestorProfileId>
675
675
  rescue DealMakerAPI::ApiError => e
676
676
  puts "Error when calling InvestorProfileApi->patch_individual_profile_with_http_info: #{e}"
677
677
  end
@@ -686,7 +686,7 @@ end
686
686
 
687
687
  ### Return type
688
688
 
689
- [**V1EntitiesInvestorProfileIndividual**](V1EntitiesInvestorProfileIndividual.md)
689
+ [**V1EntitiesInvestorProfileId**](V1EntitiesInvestorProfileId.md)
690
690
 
691
691
  ### Authorization
692
692
 
@@ -700,7 +700,7 @@ No authorization required
700
700
 
701
701
  ## patch_joint_profile
702
702
 
703
- > <V1EntitiesInvestorProfileJoint> patch_joint_profile(investor_profile_id, investor_profiles_joints)
703
+ > <V1EntitiesInvestorProfileId> patch_joint_profile(investor_profile_id, investor_profiles_joints)
704
704
 
705
705
  Patch a joint investor profile
706
706
 
@@ -731,7 +731,7 @@ end
731
731
 
732
732
  This returns an Array which contains the response data, status code and headers.
733
733
 
734
- > <Array(<V1EntitiesInvestorProfileJoint>, Integer, Hash)> patch_joint_profile_with_http_info(investor_profile_id, investor_profiles_joints)
734
+ > <Array(<V1EntitiesInvestorProfileId>, Integer, Hash)> patch_joint_profile_with_http_info(investor_profile_id, investor_profiles_joints)
735
735
 
736
736
  ```ruby
737
737
  begin
@@ -739,7 +739,7 @@ begin
739
739
  data, status_code, headers = api_instance.patch_joint_profile_with_http_info(investor_profile_id, investor_profiles_joints)
740
740
  p status_code # => 2xx
741
741
  p headers # => { ... }
742
- p data # => <V1EntitiesInvestorProfileJoint>
742
+ p data # => <V1EntitiesInvestorProfileId>
743
743
  rescue DealMakerAPI::ApiError => e
744
744
  puts "Error when calling InvestorProfileApi->patch_joint_profile_with_http_info: #{e}"
745
745
  end
@@ -754,7 +754,7 @@ end
754
754
 
755
755
  ### Return type
756
756
 
757
- [**V1EntitiesInvestorProfileJoint**](V1EntitiesInvestorProfileJoint.md)
757
+ [**V1EntitiesInvestorProfileId**](V1EntitiesInvestorProfileId.md)
758
758
 
759
759
  ### Authorization
760
760
 
@@ -768,7 +768,7 @@ No authorization required
768
768
 
769
769
  ## patch_trust_profile
770
770
 
771
- > <V1EntitiesInvestorProfileTrust> patch_trust_profile(investor_profile_id, investor_profiles_trusts)
771
+ > <V1EntitiesInvestorProfileId> patch_trust_profile(investor_profile_id, investor_profiles_trusts)
772
772
 
773
773
  Patch a trust investor profile
774
774
 
@@ -799,7 +799,7 @@ end
799
799
 
800
800
  This returns an Array which contains the response data, status code and headers.
801
801
 
802
- > <Array(<V1EntitiesInvestorProfileTrust>, Integer, Hash)> patch_trust_profile_with_http_info(investor_profile_id, investor_profiles_trusts)
802
+ > <Array(<V1EntitiesInvestorProfileId>, Integer, Hash)> patch_trust_profile_with_http_info(investor_profile_id, investor_profiles_trusts)
803
803
 
804
804
  ```ruby
805
805
  begin
@@ -807,7 +807,7 @@ begin
807
807
  data, status_code, headers = api_instance.patch_trust_profile_with_http_info(investor_profile_id, investor_profiles_trusts)
808
808
  p status_code # => 2xx
809
809
  p headers # => { ... }
810
- p data # => <V1EntitiesInvestorProfileTrust>
810
+ p data # => <V1EntitiesInvestorProfileId>
811
811
  rescue DealMakerAPI::ApiError => e
812
812
  puts "Error when calling InvestorProfileApi->patch_trust_profile_with_http_info: #{e}"
813
813
  end
@@ -822,7 +822,7 @@ end
822
822
 
823
823
  ### Return type
824
824
 
825
- [**V1EntitiesInvestorProfileTrust**](V1EntitiesInvestorProfileTrust.md)
825
+ [**V1EntitiesInvestorProfileId**](V1EntitiesInvestorProfileId.md)
826
826
 
827
827
  ### Authorization
828
828
 
@@ -7,6 +7,7 @@
7
7
  | **id** | **Integer** | The incentive tier id. | [optional] |
8
8
  | **incentive_percentage** | **Float** | The incentive tier percentage. | [optional] |
9
9
  | **end_at** | **Time** | The incentive tier end date. | [optional] |
10
+ | **funded_by** | **Time** | The incentive tier funded by date, it is computed from the end at and plan funded by offset. | [optional] |
10
11
  | **created_at** | **Time** | The creation time. | [optional] |
11
12
  | **updated_at** | **Time** | The last update time. | [optional] |
12
13
 
@@ -19,6 +20,7 @@ instance = DealMakerAPI::V1EntitiesDealsIncentivePlansIncentiveTier.new(
19
20
  id: null,
20
21
  incentive_percentage: null,
21
22
  end_at: null,
23
+ funded_by: null,
22
24
  created_at: null,
23
25
  updated_at: null
24
26
  )
@@ -0,0 +1,18 @@
1
+ # DealMakerAPI::V1EntitiesInvestorProfileId
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | Investor Profile id | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'DealMakerAPI'
13
+
14
+ instance = DealMakerAPI::V1EntitiesInvestorProfileId.new(
15
+ id: null
16
+ )
17
+ ```
18
+
@@ -23,7 +23,7 @@ module DealMakerAPI
23
23
  # Create new corporation investor profile associated to the user by email.
24
24
  # @param investor_profiles_corporations [PostInvestorProfilesCorporations]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [V1EntitiesInvestorProfileCorporation]
26
+ # @return [V1EntitiesInvestorProfileId]
27
27
  def create_corporation_profile(investor_profiles_corporations, opts = {})
28
28
  data, _status_code, _headers = create_corporation_profile_with_http_info(investor_profiles_corporations, opts)
29
29
  data
@@ -33,7 +33,7 @@ module DealMakerAPI
33
33
  # Create new corporation investor profile associated to the user by email.
34
34
  # @param investor_profiles_corporations [PostInvestorProfilesCorporations]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(V1EntitiesInvestorProfileCorporation, Integer, Hash)>] V1EntitiesInvestorProfileCorporation data, response status code and response headers
36
+ # @return [Array<(V1EntitiesInvestorProfileId, Integer, Hash)>] V1EntitiesInvestorProfileId data, response status code and response headers
37
37
  def create_corporation_profile_with_http_info(investor_profiles_corporations, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: InvestorProfileApi.create_corporation_profile ...'
@@ -65,7 +65,7 @@ module DealMakerAPI
65
65
  post_body = opts[:debug_body] || @api_client.object_to_http_body(investor_profiles_corporations)
66
66
 
67
67
  # return_type
68
- return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileCorporation'
68
+ return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileId'
69
69
 
70
70
  # auth_names
71
71
  auth_names = opts[:debug_auth_names] || []
@@ -91,7 +91,7 @@ module DealMakerAPI
91
91
  # Create new individual investor profile associated to the user by email.
92
92
  # @param investor_profiles_individuals [PostInvestorProfilesIndividuals]
93
93
  # @param [Hash] opts the optional parameters
94
- # @return [V1EntitiesInvestorProfileIndividual]
94
+ # @return [V1EntitiesInvestorProfileId]
95
95
  def create_individual_profile(investor_profiles_individuals, opts = {})
96
96
  data, _status_code, _headers = create_individual_profile_with_http_info(investor_profiles_individuals, opts)
97
97
  data
@@ -101,7 +101,7 @@ module DealMakerAPI
101
101
  # Create new individual investor profile associated to the user by email.
102
102
  # @param investor_profiles_individuals [PostInvestorProfilesIndividuals]
103
103
  # @param [Hash] opts the optional parameters
104
- # @return [Array<(V1EntitiesInvestorProfileIndividual, Integer, Hash)>] V1EntitiesInvestorProfileIndividual data, response status code and response headers
104
+ # @return [Array<(V1EntitiesInvestorProfileId, Integer, Hash)>] V1EntitiesInvestorProfileId data, response status code and response headers
105
105
  def create_individual_profile_with_http_info(investor_profiles_individuals, opts = {})
106
106
  if @api_client.config.debugging
107
107
  @api_client.config.logger.debug 'Calling API: InvestorProfileApi.create_individual_profile ...'
@@ -133,7 +133,7 @@ module DealMakerAPI
133
133
  post_body = opts[:debug_body] || @api_client.object_to_http_body(investor_profiles_individuals)
134
134
 
135
135
  # return_type
136
- return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileIndividual'
136
+ return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileId'
137
137
 
138
138
  # auth_names
139
139
  auth_names = opts[:debug_auth_names] || []
@@ -159,7 +159,7 @@ module DealMakerAPI
159
159
  # Create new joint investor profile associated to the user by email.
160
160
  # @param investor_profiles_joints [PostInvestorProfilesJoints]
161
161
  # @param [Hash] opts the optional parameters
162
- # @return [V1EntitiesInvestorProfileJoint]
162
+ # @return [V1EntitiesInvestorProfileId]
163
163
  def create_joint_profile(investor_profiles_joints, opts = {})
164
164
  data, _status_code, _headers = create_joint_profile_with_http_info(investor_profiles_joints, opts)
165
165
  data
@@ -169,7 +169,7 @@ module DealMakerAPI
169
169
  # Create new joint investor profile associated to the user by email.
170
170
  # @param investor_profiles_joints [PostInvestorProfilesJoints]
171
171
  # @param [Hash] opts the optional parameters
172
- # @return [Array<(V1EntitiesInvestorProfileJoint, Integer, Hash)>] V1EntitiesInvestorProfileJoint data, response status code and response headers
172
+ # @return [Array<(V1EntitiesInvestorProfileId, Integer, Hash)>] V1EntitiesInvestorProfileId data, response status code and response headers
173
173
  def create_joint_profile_with_http_info(investor_profiles_joints, opts = {})
174
174
  if @api_client.config.debugging
175
175
  @api_client.config.logger.debug 'Calling API: InvestorProfileApi.create_joint_profile ...'
@@ -201,7 +201,7 @@ module DealMakerAPI
201
201
  post_body = opts[:debug_body] || @api_client.object_to_http_body(investor_profiles_joints)
202
202
 
203
203
  # return_type
204
- return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileJoint'
204
+ return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileId'
205
205
 
206
206
  # auth_names
207
207
  auth_names = opts[:debug_auth_names] || []
@@ -227,7 +227,7 @@ module DealMakerAPI
227
227
  # Create new managed investor profile associated to the user by email.
228
228
  # @param investor_profiles_managed [PostInvestorProfilesManaged]
229
229
  # @param [Hash] opts the optional parameters
230
- # @return [V1EntitiesInvestorProfileManaged]
230
+ # @return [V1EntitiesInvestorProfileId]
231
231
  def create_managed_profile(investor_profiles_managed, opts = {})
232
232
  data, _status_code, _headers = create_managed_profile_with_http_info(investor_profiles_managed, opts)
233
233
  data
@@ -237,7 +237,7 @@ module DealMakerAPI
237
237
  # Create new managed investor profile associated to the user by email.
238
238
  # @param investor_profiles_managed [PostInvestorProfilesManaged]
239
239
  # @param [Hash] opts the optional parameters
240
- # @return [Array<(V1EntitiesInvestorProfileManaged, Integer, Hash)>] V1EntitiesInvestorProfileManaged data, response status code and response headers
240
+ # @return [Array<(V1EntitiesInvestorProfileId, Integer, Hash)>] V1EntitiesInvestorProfileId data, response status code and response headers
241
241
  def create_managed_profile_with_http_info(investor_profiles_managed, opts = {})
242
242
  if @api_client.config.debugging
243
243
  @api_client.config.logger.debug 'Calling API: InvestorProfileApi.create_managed_profile ...'
@@ -269,7 +269,7 @@ module DealMakerAPI
269
269
  post_body = opts[:debug_body] || @api_client.object_to_http_body(investor_profiles_managed)
270
270
 
271
271
  # return_type
272
- return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileManaged'
272
+ return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileId'
273
273
 
274
274
  # auth_names
275
275
  auth_names = opts[:debug_auth_names] || []
@@ -295,7 +295,7 @@ module DealMakerAPI
295
295
  # Create new trust investor profile associated to the user by email.
296
296
  # @param investor_profiles_trusts [PostInvestorProfilesTrusts]
297
297
  # @param [Hash] opts the optional parameters
298
- # @return [V1EntitiesInvestorProfileTrust]
298
+ # @return [V1EntitiesInvestorProfileId]
299
299
  def create_trust_profile(investor_profiles_trusts, opts = {})
300
300
  data, _status_code, _headers = create_trust_profile_with_http_info(investor_profiles_trusts, opts)
301
301
  data
@@ -305,7 +305,7 @@ module DealMakerAPI
305
305
  # Create new trust investor profile associated to the user by email.
306
306
  # @param investor_profiles_trusts [PostInvestorProfilesTrusts]
307
307
  # @param [Hash] opts the optional parameters
308
- # @return [Array<(V1EntitiesInvestorProfileTrust, Integer, Hash)>] V1EntitiesInvestorProfileTrust data, response status code and response headers
308
+ # @return [Array<(V1EntitiesInvestorProfileId, Integer, Hash)>] V1EntitiesInvestorProfileId data, response status code and response headers
309
309
  def create_trust_profile_with_http_info(investor_profiles_trusts, opts = {})
310
310
  if @api_client.config.debugging
311
311
  @api_client.config.logger.debug 'Calling API: InvestorProfileApi.create_trust_profile ...'
@@ -337,7 +337,7 @@ module DealMakerAPI
337
337
  post_body = opts[:debug_body] || @api_client.object_to_http_body(investor_profiles_trusts)
338
338
 
339
339
  # return_type
340
- return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileTrust'
340
+ return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileId'
341
341
 
342
342
  # auth_names
343
343
  auth_names = opts[:debug_auth_names] || []
@@ -568,7 +568,7 @@ module DealMakerAPI
568
568
  # @param investor_profile_id [Integer]
569
569
  # @param investor_profiles_corporations [PatchInvestorProfilesCorporations]
570
570
  # @param [Hash] opts the optional parameters
571
- # @return [V1EntitiesInvestorProfileCorporation]
571
+ # @return [V1EntitiesInvestorProfileId]
572
572
  def patch_corporation_profile(investor_profile_id, investor_profiles_corporations, opts = {})
573
573
  data, _status_code, _headers = patch_corporation_profile_with_http_info(investor_profile_id, investor_profiles_corporations, opts)
574
574
  data
@@ -579,7 +579,7 @@ module DealMakerAPI
579
579
  # @param investor_profile_id [Integer]
580
580
  # @param investor_profiles_corporations [PatchInvestorProfilesCorporations]
581
581
  # @param [Hash] opts the optional parameters
582
- # @return [Array<(V1EntitiesInvestorProfileCorporation, Integer, Hash)>] V1EntitiesInvestorProfileCorporation data, response status code and response headers
582
+ # @return [Array<(V1EntitiesInvestorProfileId, Integer, Hash)>] V1EntitiesInvestorProfileId data, response status code and response headers
583
583
  def patch_corporation_profile_with_http_info(investor_profile_id, investor_profiles_corporations, opts = {})
584
584
  if @api_client.config.debugging
585
585
  @api_client.config.logger.debug 'Calling API: InvestorProfileApi.patch_corporation_profile ...'
@@ -615,7 +615,7 @@ module DealMakerAPI
615
615
  post_body = opts[:debug_body] || @api_client.object_to_http_body(investor_profiles_corporations)
616
616
 
617
617
  # return_type
618
- return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileCorporation'
618
+ return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileId'
619
619
 
620
620
  # auth_names
621
621
  auth_names = opts[:debug_auth_names] || []
@@ -642,7 +642,7 @@ module DealMakerAPI
642
642
  # @param investor_profile_id [Integer]
643
643
  # @param investor_profiles_individuals [PatchInvestorProfilesIndividuals]
644
644
  # @param [Hash] opts the optional parameters
645
- # @return [V1EntitiesInvestorProfileIndividual]
645
+ # @return [V1EntitiesInvestorProfileId]
646
646
  def patch_individual_profile(investor_profile_id, investor_profiles_individuals, opts = {})
647
647
  data, _status_code, _headers = patch_individual_profile_with_http_info(investor_profile_id, investor_profiles_individuals, opts)
648
648
  data
@@ -653,7 +653,7 @@ module DealMakerAPI
653
653
  # @param investor_profile_id [Integer]
654
654
  # @param investor_profiles_individuals [PatchInvestorProfilesIndividuals]
655
655
  # @param [Hash] opts the optional parameters
656
- # @return [Array<(V1EntitiesInvestorProfileIndividual, Integer, Hash)>] V1EntitiesInvestorProfileIndividual data, response status code and response headers
656
+ # @return [Array<(V1EntitiesInvestorProfileId, Integer, Hash)>] V1EntitiesInvestorProfileId data, response status code and response headers
657
657
  def patch_individual_profile_with_http_info(investor_profile_id, investor_profiles_individuals, opts = {})
658
658
  if @api_client.config.debugging
659
659
  @api_client.config.logger.debug 'Calling API: InvestorProfileApi.patch_individual_profile ...'
@@ -689,7 +689,7 @@ module DealMakerAPI
689
689
  post_body = opts[:debug_body] || @api_client.object_to_http_body(investor_profiles_individuals)
690
690
 
691
691
  # return_type
692
- return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileIndividual'
692
+ return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileId'
693
693
 
694
694
  # auth_names
695
695
  auth_names = opts[:debug_auth_names] || []
@@ -716,7 +716,7 @@ module DealMakerAPI
716
716
  # @param investor_profile_id [Integer]
717
717
  # @param investor_profiles_joints [PatchInvestorProfilesJoints]
718
718
  # @param [Hash] opts the optional parameters
719
- # @return [V1EntitiesInvestorProfileJoint]
719
+ # @return [V1EntitiesInvestorProfileId]
720
720
  def patch_joint_profile(investor_profile_id, investor_profiles_joints, opts = {})
721
721
  data, _status_code, _headers = patch_joint_profile_with_http_info(investor_profile_id, investor_profiles_joints, opts)
722
722
  data
@@ -727,7 +727,7 @@ module DealMakerAPI
727
727
  # @param investor_profile_id [Integer]
728
728
  # @param investor_profiles_joints [PatchInvestorProfilesJoints]
729
729
  # @param [Hash] opts the optional parameters
730
- # @return [Array<(V1EntitiesInvestorProfileJoint, Integer, Hash)>] V1EntitiesInvestorProfileJoint data, response status code and response headers
730
+ # @return [Array<(V1EntitiesInvestorProfileId, Integer, Hash)>] V1EntitiesInvestorProfileId data, response status code and response headers
731
731
  def patch_joint_profile_with_http_info(investor_profile_id, investor_profiles_joints, opts = {})
732
732
  if @api_client.config.debugging
733
733
  @api_client.config.logger.debug 'Calling API: InvestorProfileApi.patch_joint_profile ...'
@@ -763,7 +763,7 @@ module DealMakerAPI
763
763
  post_body = opts[:debug_body] || @api_client.object_to_http_body(investor_profiles_joints)
764
764
 
765
765
  # return_type
766
- return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileJoint'
766
+ return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileId'
767
767
 
768
768
  # auth_names
769
769
  auth_names = opts[:debug_auth_names] || []
@@ -790,7 +790,7 @@ module DealMakerAPI
790
790
  # @param investor_profile_id [Integer]
791
791
  # @param investor_profiles_trusts [PatchInvestorProfilesTrusts]
792
792
  # @param [Hash] opts the optional parameters
793
- # @return [V1EntitiesInvestorProfileTrust]
793
+ # @return [V1EntitiesInvestorProfileId]
794
794
  def patch_trust_profile(investor_profile_id, investor_profiles_trusts, opts = {})
795
795
  data, _status_code, _headers = patch_trust_profile_with_http_info(investor_profile_id, investor_profiles_trusts, opts)
796
796
  data
@@ -801,7 +801,7 @@ module DealMakerAPI
801
801
  # @param investor_profile_id [Integer]
802
802
  # @param investor_profiles_trusts [PatchInvestorProfilesTrusts]
803
803
  # @param [Hash] opts the optional parameters
804
- # @return [Array<(V1EntitiesInvestorProfileTrust, Integer, Hash)>] V1EntitiesInvestorProfileTrust data, response status code and response headers
804
+ # @return [Array<(V1EntitiesInvestorProfileId, Integer, Hash)>] V1EntitiesInvestorProfileId data, response status code and response headers
805
805
  def patch_trust_profile_with_http_info(investor_profile_id, investor_profiles_trusts, opts = {})
806
806
  if @api_client.config.debugging
807
807
  @api_client.config.logger.debug 'Calling API: InvestorProfileApi.patch_trust_profile ...'
@@ -837,7 +837,7 @@ module DealMakerAPI
837
837
  post_body = opts[:debug_body] || @api_client.object_to_http_body(investor_profiles_trusts)
838
838
 
839
839
  # return_type
840
- return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileTrust'
840
+ return_type = opts[:debug_return_type] || 'V1EntitiesInvestorProfileId'
841
841
 
842
842
  # auth_names
843
843
  auth_names = opts[:debug_auth_names] || []
@@ -187,14 +187,16 @@ module DealMakerAPI
187
187
  chunk.force_encoding(encoding)
188
188
  tempfile.write(chunk)
189
189
  end
190
- request.on_complete do |response|
191
- if tempfile
192
- tempfile.close
193
- @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
194
- "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
195
- "will be deleted automatically with GC. It's also recommended to delete the temp file "\
196
- "explicitly with `tempfile.delete`"
197
- end
190
+ # run the request to ensure the tempfile is created successfully before returning it
191
+ request.run
192
+ if tempfile
193
+ tempfile.close
194
+ @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
195
+ "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
196
+ "will be deleted automatically with GC. It's also recommended to delete the temp file "\
197
+ "explicitly with `tempfile.delete`"
198
+ else
199
+ fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
198
200
  end
199
201
 
200
202
  tempfile