DealMakerAPI 0.0.2 → 0.68.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/DealMakerAPI.gemspec +4 -4
  3. data/README.md +221 -127
  4. data/docs/CompanyApi.md +214 -0
  5. data/docs/CreateCompanyRequest.md +32 -0
  6. data/docs/CreateCorporationProfileRequest.md +82 -0
  7. data/docs/CreateDealSetupRequest.md +30 -0
  8. data/docs/CreateIndividualProfileRequest.md +44 -0
  9. data/docs/CreateInvestorRequest.md +40 -0
  10. data/docs/CreateJointProfileRequest.md +68 -0
  11. data/docs/CreateTrustProfileRequest.md +60 -0
  12. data/docs/DealApi.md +21 -165
  13. data/docs/DealSetupApi.md +74 -0
  14. data/docs/DefaultApi.md +413 -0
  15. data/docs/InvestorApi.md +368 -0
  16. data/docs/InvestorProfileApi.md +573 -15
  17. data/docs/PatchCorporationProfileRequest.md +58 -0
  18. data/docs/PatchIndividualProfileRequest.md +42 -0
  19. data/docs/PatchInvestorRequest.md +18 -0
  20. data/docs/PatchJointProfileRequest.md +66 -0
  21. data/docs/PatchTrustProfileRequest.md +58 -0
  22. data/docs/PostWebhooksRequest.md +26 -0
  23. data/docs/PutWebhooksIdRequest.md +30 -0
  24. data/docs/UpdateInvestorRequest.md +24 -0
  25. data/docs/V1EntitiesAddress.md +28 -0
  26. data/docs/V1EntitiesAddresses.md +18 -0
  27. data/docs/V1EntitiesCompany.md +34 -0
  28. data/docs/V1EntitiesCompanyDeal.md +20 -0
  29. data/docs/V1EntitiesCompanyDeals.md +18 -0
  30. data/docs/V1EntitiesDealSetup.md +34 -0
  31. data/docs/V1EntitiesDealSetupUser.md +20 -0
  32. data/docs/V1EntitiesDeals.md +18 -0
  33. data/docs/V1EntitiesInvestor.md +10 -4
  34. data/docs/V1EntitiesInvestorProfileAddress.md +28 -0
  35. data/docs/V1EntitiesInvestorProfileCorporation.md +34 -0
  36. data/docs/V1EntitiesInvestorProfileFieldsAccountHolder.md +28 -0
  37. data/docs/V1EntitiesInvestorProfileFieldsCorporation.md +24 -0
  38. data/docs/V1EntitiesInvestorProfileFieldsPrimaryHolder.md +30 -0
  39. data/docs/V1EntitiesInvestorProfileFieldsTrust.md +24 -0
  40. data/docs/V1EntitiesInvestorProfileIndividual.md +6 -16
  41. data/docs/V1EntitiesInvestorProfileItem.md +18 -0
  42. data/docs/V1EntitiesInvestorProfileJoint.md +34 -0
  43. data/docs/V1EntitiesInvestorProfileTrust.md +32 -0
  44. data/docs/V1EntitiesInvestorProfiles.md +18 -0
  45. data/docs/V1EntitiesWebhooksDeal.md +22 -0
  46. data/docs/V1EntitiesWebhooksSecurityToken.md +18 -0
  47. data/docs/V1EntitiesWebhooksSubscription.md +28 -0
  48. data/docs/V1EntitiesWebhooksSubscriptionDeal.md +24 -0
  49. data/docs/V1EntitiesWebhooksSubscriptionDeals.md +18 -0
  50. data/lib/DealMakerAPI/api/company_api.rb +219 -0
  51. data/lib/DealMakerAPI/api/deal_api.rb +23 -174
  52. data/lib/DealMakerAPI/api/deal_setup_api.rb +90 -0
  53. data/lib/DealMakerAPI/api/default_api.rb +403 -0
  54. data/lib/DealMakerAPI/api/investor_api.rb +399 -0
  55. data/lib/DealMakerAPI/api/investor_profile_api.rb +570 -16
  56. data/lib/DealMakerAPI/api_client.rb +5 -3
  57. data/lib/DealMakerAPI/api_error.rb +3 -2
  58. data/lib/DealMakerAPI/configuration.rb +4 -3
  59. data/lib/DealMakerAPI/models/create_company_request.rb +320 -0
  60. data/lib/DealMakerAPI/models/create_corporation_profile_request.rb +601 -0
  61. data/lib/DealMakerAPI/models/create_deal_setup_request.rb +364 -0
  62. data/lib/DealMakerAPI/models/create_individual_profile_request.rb +389 -0
  63. data/lib/DealMakerAPI/models/create_investor_request.rb +386 -0
  64. data/lib/DealMakerAPI/models/create_joint_profile_request.rb +521 -0
  65. data/lib/DealMakerAPI/models/create_trust_profile_request.rb +491 -0
  66. data/lib/DealMakerAPI/models/patch_corporation_profile_request.rb +454 -0
  67. data/lib/DealMakerAPI/models/patch_individual_profile_request.rb +374 -0
  68. data/lib/DealMakerAPI/models/patch_investor_request.rb +225 -0
  69. data/lib/DealMakerAPI/models/patch_joint_profile_request.rb +506 -0
  70. data/lib/DealMakerAPI/models/patch_trust_profile_request.rb +454 -0
  71. data/lib/DealMakerAPI/models/post_webhooks_request.rb +277 -0
  72. data/lib/DealMakerAPI/models/put_webhooks_id_request.rb +286 -0
  73. data/lib/DealMakerAPI/models/update_investor_request.rb +286 -0
  74. data/lib/DealMakerAPI/models/v1_entities_address.rb +270 -0
  75. data/lib/DealMakerAPI/models/v1_entities_addresses.rb +219 -0
  76. data/lib/DealMakerAPI/models/v1_entities_attachment.rb +3 -2
  77. data/lib/DealMakerAPI/models/v1_entities_background_check_search.rb +3 -2
  78. data/lib/DealMakerAPI/models/v1_entities_company.rb +299 -0
  79. data/lib/DealMakerAPI/models/v1_entities_company_deal.rb +230 -0
  80. data/lib/DealMakerAPI/models/v1_entities_company_deals.rb +219 -0
  81. data/lib/DealMakerAPI/models/v1_entities_deal.rb +5 -4
  82. data/lib/DealMakerAPI/models/v1_entities_deal_enterprise.rb +3 -2
  83. data/lib/DealMakerAPI/models/v1_entities_deal_funding_metrics.rb +3 -2
  84. data/lib/DealMakerAPI/models/v1_entities_deal_investor_metrics.rb +3 -2
  85. data/lib/DealMakerAPI/models/v1_entities_deal_issuer.rb +3 -2
  86. data/lib/DealMakerAPI/models/v1_entities_deal_setup.rb +300 -0
  87. data/lib/DealMakerAPI/models/v1_entities_deal_setup_user.rb +230 -0
  88. data/lib/DealMakerAPI/models/v1_entities_deals.rb +220 -0
  89. data/lib/DealMakerAPI/models/v1_entities_investor.rb +50 -20
  90. data/lib/DealMakerAPI/models/v1_entities_investor_profile_address.rb +270 -0
  91. data/lib/DealMakerAPI/models/v1_entities_investor_profile_corporation.rb +332 -0
  92. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_account_holder.rb +269 -0
  93. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_corporation.rb +249 -0
  94. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_primary_holder.rb +279 -0
  95. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_trust.rb +249 -0
  96. data/lib/DealMakerAPI/models/v1_entities_investor_profile_individual.rb +26 -76
  97. data/lib/DealMakerAPI/models/v1_entities_investor_profile_item.rb +219 -0
  98. data/lib/DealMakerAPI/models/v1_entities_investor_profile_joint.rb +333 -0
  99. data/lib/DealMakerAPI/models/v1_entities_investor_profile_trust.rb +323 -0
  100. data/lib/DealMakerAPI/models/v1_entities_investor_profiles.rb +220 -0
  101. data/lib/DealMakerAPI/models/v1_entities_investor_user.rb +3 -2
  102. data/lib/DealMakerAPI/models/v1_entities_investors.rb +3 -2
  103. data/lib/DealMakerAPI/models/v1_entities_subscription_agreement.rb +3 -2
  104. data/lib/DealMakerAPI/models/v1_entities_webhooks_deal.rb +241 -0
  105. data/lib/DealMakerAPI/models/v1_entities_webhooks_security_token.rb +221 -0
  106. data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription.rb +270 -0
  107. data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deal.rb +250 -0
  108. data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deals.rb +219 -0
  109. data/lib/DealMakerAPI/version.rb +3 -3
  110. data/lib/DealMakerAPI.rb +44 -2
  111. data/spec/api/company_api_spec.rb +73 -0
  112. data/spec/api/deal_api_spec.rb +9 -37
  113. data/spec/api/deal_setup_api_spec.rb +47 -0
  114. data/spec/api/default_api_spec.rb +108 -0
  115. data/spec/api/investor_api_spec.rb +106 -0
  116. data/spec/api/investor_profile_api_spec.rb +109 -7
  117. data/spec/api_client_spec.rb +2 -2
  118. data/spec/configuration_spec.rb +2 -2
  119. data/spec/models/create_company_request_spec.rb +76 -0
  120. data/spec/models/create_corporation_profile_request_spec.rb +230 -0
  121. data/spec/models/create_deal_setup_request_spec.rb +82 -0
  122. data/spec/models/create_individual_profile_request_spec.rb +116 -0
  123. data/spec/models/create_investor_request_spec.rb +108 -0
  124. data/spec/models/create_joint_profile_request_spec.rb +192 -0
  125. data/spec/models/create_trust_profile_request_spec.rb +164 -0
  126. data/spec/models/patch_corporation_profile_request_spec.rb +158 -0
  127. data/spec/models/patch_individual_profile_request_spec.rb +110 -0
  128. data/spec/models/patch_investor_request_spec.rb +34 -0
  129. data/spec/models/patch_joint_profile_request_spec.rb +186 -0
  130. data/spec/models/patch_trust_profile_request_spec.rb +158 -0
  131. data/spec/models/post_webhooks_request_spec.rb +58 -0
  132. data/spec/models/put_webhooks_id_request_spec.rb +70 -0
  133. data/spec/models/update_investor_request_spec.rb +56 -0
  134. data/spec/models/v1_entities_address_spec.rb +64 -0
  135. data/spec/models/v1_entities_addresses_spec.rb +34 -0
  136. data/spec/models/v1_entities_attachment_spec.rb +2 -2
  137. data/spec/models/v1_entities_background_check_search_spec.rb +2 -2
  138. data/spec/models/v1_entities_company_deal_spec.rb +40 -0
  139. data/spec/models/v1_entities_company_deals_spec.rb +34 -0
  140. data/spec/models/v1_entities_company_spec.rb +82 -0
  141. data/spec/models/v1_entities_deal_enterprise_spec.rb +2 -2
  142. data/spec/models/v1_entities_deal_funding_metrics_spec.rb +2 -2
  143. data/spec/models/v1_entities_deal_investor_metrics_spec.rb +2 -2
  144. data/spec/models/v1_entities_deal_issuer_spec.rb +2 -2
  145. data/spec/models/v1_entities_deal_setup_spec.rb +82 -0
  146. data/spec/models/v1_entities_deal_setup_user_spec.rb +40 -0
  147. data/spec/models/v1_entities_deal_spec.rb +76 -2
  148. data/spec/models/v1_entities_deals_spec.rb +34 -0
  149. data/spec/models/v1_entities_investor_profile_address_spec.rb +64 -0
  150. data/spec/models/v1_entities_investor_profile_corporation_spec.rb +86 -0
  151. data/spec/models/v1_entities_investor_profile_fields_account_holder_spec.rb +64 -0
  152. data/spec/models/v1_entities_investor_profile_fields_corporation_spec.rb +52 -0
  153. data/spec/models/v1_entities_investor_profile_fields_primary_holder_spec.rb +70 -0
  154. data/spec/models/v1_entities_investor_profile_fields_trust_spec.rb +52 -0
  155. data/spec/models/v1_entities_investor_profile_individual_spec.rb +6 -36
  156. data/spec/models/v1_entities_investor_profile_item_spec.rb +34 -0
  157. data/spec/models/v1_entities_investor_profile_joint_spec.rb +86 -0
  158. data/spec/models/v1_entities_investor_profile_trust_spec.rb +80 -0
  159. data/spec/models/v1_entities_investor_profiles_spec.rb +34 -0
  160. data/spec/models/v1_entities_investor_spec.rb +29 -5
  161. data/spec/models/v1_entities_investor_user_spec.rb +2 -2
  162. data/spec/models/v1_entities_investors_spec.rb +2 -2
  163. data/spec/models/v1_entities_subscription_agreement_spec.rb +2 -2
  164. data/spec/models/v1_entities_webhooks_deal_spec.rb +46 -0
  165. data/spec/models/v1_entities_webhooks_security_token_spec.rb +34 -0
  166. data/spec/models/v1_entities_webhooks_subscription_deal_spec.rb +52 -0
  167. data/spec/models/v1_entities_webhooks_subscription_deals_spec.rb +34 -0
  168. data/spec/models/v1_entities_webhooks_subscription_spec.rb +64 -0
  169. data/spec/spec_helper.rb +2 -2
  170. metadata +180 -12
data/docs/DealApi.md CHANGED
@@ -4,87 +4,17 @@ All URIs are relative to *http://api.dealmaker.tech*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**create_investor**](DealApi.md#create_investor) | **POST** /deals/{id}/investors | Create a deal investor |
8
- | [**get_deal**](DealApi.md#get_deal) | **GET** /deals/{id} | Get a deal by id |
9
- | [**get_investor**](DealApi.md#get_investor) | **GET** /deals/{id}/investors/{investor_id} | Get a deal investor by id |
10
- | [**list_investors**](DealApi.md#list_investors) | **GET** /deals/{id}/investors | List deal investors |
11
-
12
-
13
- ## create_investor
14
-
15
- > <V1EntitiesInvestor> create_investor(id, unknown_base_type)
16
-
17
- Create a deal investor
18
-
19
- Create a single deal investor.
20
-
21
- ### Examples
22
-
23
- ```ruby
24
- require 'time'
25
- require 'DealMakerAPI'
26
- # setup authorization
27
- DealMakerAPI.configure do |config|end
28
-
29
- api_instance = DealMakerAPI::DealApi.new
30
- id = 56 # Integer | The deal id.
31
- unknown_base_type = TODO # UNKNOWN_BASE_TYPE |
32
-
33
- begin
34
- # Create a deal investor
35
- result = api_instance.create_investor(id, unknown_base_type)
36
- p result
37
- rescue DealMakerAPI::ApiError => e
38
- puts "Error when calling DealApi->create_investor: #{e}"
39
- end
40
- ```
41
-
42
- #### Using the create_investor_with_http_info variant
43
-
44
- This returns an Array which contains the response data, status code and headers.
45
-
46
- > <Array(<V1EntitiesInvestor>, Integer, Hash)> create_investor_with_http_info(id, unknown_base_type)
47
-
48
- ```ruby
49
- begin
50
- # Create a deal investor
51
- data, status_code, headers = api_instance.create_investor_with_http_info(id, unknown_base_type)
52
- p status_code # => 2xx
53
- p headers # => { ... }
54
- p data # => <V1EntitiesInvestor>
55
- rescue DealMakerAPI::ApiError => e
56
- puts "Error when calling DealApi->create_investor_with_http_info: #{e}"
57
- end
58
- ```
59
-
60
- ### Parameters
61
-
62
- | Name | Type | Description | Notes |
63
- | ---- | ---- | ----------- | ----- |
64
- | **id** | **Integer** | The deal id. | |
65
- | **unknown_base_type** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md) | | |
66
-
67
- ### Return type
68
-
69
- [**V1EntitiesInvestor**](V1EntitiesInvestor.md)
70
-
71
- ### Authorization
72
-
73
- No authorization required
74
-
75
- ### HTTP request headers
76
-
77
- - **Content-Type**: application/json
78
- - **Accept**: application/json
7
+ | [**get_deal**](DealApi.md#get_deal) | **GET** /deals/{id} | Get deal by Deal ID |
8
+ | [**list_deals**](DealApi.md#list_deals) | **GET** /deals | List available deals |
79
9
 
80
10
 
81
11
  ## get_deal
82
12
 
83
13
  > <V1EntitiesDeal> get_deal(id)
84
14
 
85
- Get a deal by id
15
+ Get deal by Deal ID
86
16
 
87
- Get a deal
17
+ Gets a single deal using the Deal ID
88
18
 
89
19
  ### Examples
90
20
 
@@ -98,7 +28,7 @@ api_instance = DealMakerAPI::DealApi.new
98
28
  id = 56 # Integer | The deal id.
99
29
 
100
30
  begin
101
- # Get a deal by id
31
+ # Get deal by Deal ID
102
32
  result = api_instance.get_deal(id)
103
33
  p result
104
34
  rescue DealMakerAPI::ApiError => e
@@ -114,7 +44,7 @@ This returns an Array which contains the response data, status code and headers.
114
44
 
115
45
  ```ruby
116
46
  begin
117
- # Get a deal by id
47
+ # Get deal by Deal ID
118
48
  data, status_code, headers = api_instance.get_deal_with_http_info(id)
119
49
  p status_code # => 2xx
120
50
  p headers # => { ... }
@@ -144,13 +74,13 @@ No authorization required
144
74
  - **Accept**: application/json
145
75
 
146
76
 
147
- ## get_investor
77
+ ## list_deals
148
78
 
149
- > <V1EntitiesInvestor> get_investor(id, investor_id)
79
+ > <V1EntitiesDeals> list_deals(opts)
150
80
 
151
- Get a deal investor by id
81
+ List available deals
152
82
 
153
- Gets a single investor by the id.
83
+ List available deals
154
84
 
155
85
  ### Examples
156
86
 
@@ -161,107 +91,36 @@ require 'DealMakerAPI'
161
91
  DealMakerAPI.configure do |config|end
162
92
 
163
93
  api_instance = DealMakerAPI::DealApi.new
164
- id = 56 # Integer | The deal id.
165
- investor_id = 56 # Integer | The investor id.
166
-
167
- begin
168
- # Get a deal investor by id
169
- result = api_instance.get_investor(id, investor_id)
170
- p result
171
- rescue DealMakerAPI::ApiError => e
172
- puts "Error when calling DealApi->get_investor: #{e}"
173
- end
174
- ```
175
-
176
- #### Using the get_investor_with_http_info variant
177
-
178
- This returns an Array which contains the response data, status code and headers.
179
-
180
- > <Array(<V1EntitiesInvestor>, Integer, Hash)> get_investor_with_http_info(id, investor_id)
181
-
182
- ```ruby
183
- begin
184
- # Get a deal investor by id
185
- data, status_code, headers = api_instance.get_investor_with_http_info(id, investor_id)
186
- p status_code # => 2xx
187
- p headers # => { ... }
188
- p data # => <V1EntitiesInvestor>
189
- rescue DealMakerAPI::ApiError => e
190
- puts "Error when calling DealApi->get_investor_with_http_info: #{e}"
191
- end
192
- ```
193
-
194
- ### Parameters
195
-
196
- | Name | Type | Description | Notes |
197
- | ---- | ---- | ----------- | ----- |
198
- | **id** | **Integer** | The deal id. | |
199
- | **investor_id** | **Integer** | The investor id. | |
200
-
201
- ### Return type
202
-
203
- [**V1EntitiesInvestor**](V1EntitiesInvestor.md)
204
-
205
- ### Authorization
206
-
207
- No authorization required
208
-
209
- ### HTTP request headers
210
-
211
- - **Content-Type**: Not defined
212
- - **Accept**: application/json
213
-
214
-
215
- ## list_investors
216
-
217
- > <V1EntitiesInvestors> list_investors(id, opts)
218
-
219
- List deal investors
220
-
221
- List deal investors according to the specified search criteria.
222
-
223
- ### Examples
224
-
225
- ```ruby
226
- require 'time'
227
- require 'DealMakerAPI'
228
- # setup authorization
229
- DealMakerAPI.configure do |config|end
230
-
231
- api_instance = DealMakerAPI::DealApi.new
232
- id = 56 # Integer | The deal id.
233
94
  opts = {
234
95
  page: 56, # Integer | Page offset to fetch.
235
96
  per_page: 56, # Integer | Number of results to return per page.
236
- offset: 56, # Integer | Pad a number of results.
237
- investor_ids: [37], # Array<Integer> | An array of investor ids.
238
- q: 'q_example' # String | The search query for investors.
97
+ offset: 56 # Integer | Pad a number of results.
239
98
  }
240
99
 
241
100
  begin
242
- # List deal investors
243
- result = api_instance.list_investors(id, opts)
101
+ # List available deals
102
+ result = api_instance.list_deals(opts)
244
103
  p result
245
104
  rescue DealMakerAPI::ApiError => e
246
- puts "Error when calling DealApi->list_investors: #{e}"
105
+ puts "Error when calling DealApi->list_deals: #{e}"
247
106
  end
248
107
  ```
249
108
 
250
- #### Using the list_investors_with_http_info variant
109
+ #### Using the list_deals_with_http_info variant
251
110
 
252
111
  This returns an Array which contains the response data, status code and headers.
253
112
 
254
- > <Array(<V1EntitiesInvestors>, Integer, Hash)> list_investors_with_http_info(id, opts)
113
+ > <Array(<V1EntitiesDeals>, Integer, Hash)> list_deals_with_http_info(opts)
255
114
 
256
115
  ```ruby
257
116
  begin
258
- # List deal investors
259
- data, status_code, headers = api_instance.list_investors_with_http_info(id, opts)
117
+ # List available deals
118
+ data, status_code, headers = api_instance.list_deals_with_http_info(opts)
260
119
  p status_code # => 2xx
261
120
  p headers # => { ... }
262
- p data # => <V1EntitiesInvestors>
121
+ p data # => <V1EntitiesDeals>
263
122
  rescue DealMakerAPI::ApiError => e
264
- puts "Error when calling DealApi->list_investors_with_http_info: #{e}"
123
+ puts "Error when calling DealApi->list_deals_with_http_info: #{e}"
265
124
  end
266
125
  ```
267
126
 
@@ -269,16 +128,13 @@ end
269
128
 
270
129
  | Name | Type | Description | Notes |
271
130
  | ---- | ---- | ----------- | ----- |
272
- | **id** | **Integer** | The deal id. | |
273
131
  | **page** | **Integer** | Page offset to fetch. | [optional][default to 1] |
274
132
  | **per_page** | **Integer** | Number of results to return per page. | [optional][default to 25] |
275
133
  | **offset** | **Integer** | Pad a number of results. | [optional][default to 0] |
276
- | **investor_ids** | [**Array&lt;Integer&gt;**](Integer.md) | An array of investor ids. | [optional] |
277
- | **q** | **String** | The search query for investors. | [optional] |
278
134
 
279
135
  ### Return type
280
136
 
281
- [**V1EntitiesInvestors**](V1EntitiesInvestors.md)
137
+ [**V1EntitiesDeals**](V1EntitiesDeals.md)
282
138
 
283
139
  ### Authorization
284
140
 
@@ -0,0 +1,74 @@
1
+ # DealMakerAPI::DealSetupApi
2
+
3
+ All URIs are relative to *http://api.dealmaker.tech*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_deal_setup**](DealSetupApi.md#create_deal_setup) | **POST** /deal_setups | Create deal setup |
8
+
9
+
10
+ ## create_deal_setup
11
+
12
+ > <V1EntitiesDealSetup> create_deal_setup(create_deal_setup_request)
13
+
14
+ Create deal setup
15
+
16
+ Create deal setup
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'DealMakerAPI'
23
+ # setup authorization
24
+ DealMakerAPI.configure do |config|end
25
+
26
+ api_instance = DealMakerAPI::DealSetupApi.new
27
+ create_deal_setup_request = DealMakerAPI::CreateDealSetupRequest.new({invoicing_email: 'invoicing_email_example', offering_type: 'other', title: 'title_example', company_id: 37}) # CreateDealSetupRequest |
28
+
29
+ begin
30
+ # Create deal setup
31
+ result = api_instance.create_deal_setup(create_deal_setup_request)
32
+ p result
33
+ rescue DealMakerAPI::ApiError => e
34
+ puts "Error when calling DealSetupApi->create_deal_setup: #{e}"
35
+ end
36
+ ```
37
+
38
+ #### Using the create_deal_setup_with_http_info variant
39
+
40
+ This returns an Array which contains the response data, status code and headers.
41
+
42
+ > <Array(<V1EntitiesDealSetup>, Integer, Hash)> create_deal_setup_with_http_info(create_deal_setup_request)
43
+
44
+ ```ruby
45
+ begin
46
+ # Create deal setup
47
+ data, status_code, headers = api_instance.create_deal_setup_with_http_info(create_deal_setup_request)
48
+ p status_code # => 2xx
49
+ p headers # => { ... }
50
+ p data # => <V1EntitiesDealSetup>
51
+ rescue DealMakerAPI::ApiError => e
52
+ puts "Error when calling DealSetupApi->create_deal_setup_with_http_info: #{e}"
53
+ end
54
+ ```
55
+
56
+ ### Parameters
57
+
58
+ | Name | Type | Description | Notes |
59
+ | ---- | ---- | ----------- | ----- |
60
+ | **create_deal_setup_request** | [**CreateDealSetupRequest**](CreateDealSetupRequest.md) | | |
61
+
62
+ ### Return type
63
+
64
+ [**V1EntitiesDealSetup**](V1EntitiesDealSetup.md)
65
+
66
+ ### Authorization
67
+
68
+ No authorization required
69
+
70
+ ### HTTP request headers
71
+
72
+ - **Content-Type**: application/json
73
+ - **Accept**: application/json
74
+