DealMakerAPI 0.0.2 → 0.68.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/DealMakerAPI.gemspec +4 -4
- data/README.md +221 -127
- data/docs/CompanyApi.md +214 -0
- data/docs/CreateCompanyRequest.md +32 -0
- data/docs/CreateCorporationProfileRequest.md +82 -0
- data/docs/CreateDealSetupRequest.md +30 -0
- data/docs/CreateIndividualProfileRequest.md +44 -0
- data/docs/CreateInvestorRequest.md +40 -0
- data/docs/CreateJointProfileRequest.md +68 -0
- data/docs/CreateTrustProfileRequest.md +60 -0
- data/docs/DealApi.md +21 -165
- data/docs/DealSetupApi.md +74 -0
- data/docs/DefaultApi.md +413 -0
- data/docs/InvestorApi.md +368 -0
- data/docs/InvestorProfileApi.md +573 -15
- data/docs/PatchCorporationProfileRequest.md +58 -0
- data/docs/PatchIndividualProfileRequest.md +42 -0
- data/docs/PatchInvestorRequest.md +18 -0
- data/docs/PatchJointProfileRequest.md +66 -0
- data/docs/PatchTrustProfileRequest.md +58 -0
- data/docs/PostWebhooksRequest.md +26 -0
- data/docs/PutWebhooksIdRequest.md +30 -0
- data/docs/UpdateInvestorRequest.md +24 -0
- data/docs/V1EntitiesAddress.md +28 -0
- data/docs/V1EntitiesAddresses.md +18 -0
- data/docs/V1EntitiesCompany.md +34 -0
- data/docs/V1EntitiesCompanyDeal.md +20 -0
- data/docs/V1EntitiesCompanyDeals.md +18 -0
- data/docs/V1EntitiesDealSetup.md +34 -0
- data/docs/V1EntitiesDealSetupUser.md +20 -0
- data/docs/V1EntitiesDeals.md +18 -0
- data/docs/V1EntitiesInvestor.md +10 -4
- data/docs/V1EntitiesInvestorProfileAddress.md +28 -0
- data/docs/V1EntitiesInvestorProfileCorporation.md +34 -0
- data/docs/V1EntitiesInvestorProfileFieldsAccountHolder.md +28 -0
- data/docs/V1EntitiesInvestorProfileFieldsCorporation.md +24 -0
- data/docs/V1EntitiesInvestorProfileFieldsPrimaryHolder.md +30 -0
- data/docs/V1EntitiesInvestorProfileFieldsTrust.md +24 -0
- data/docs/V1EntitiesInvestorProfileIndividual.md +6 -16
- data/docs/V1EntitiesInvestorProfileItem.md +18 -0
- data/docs/V1EntitiesInvestorProfileJoint.md +34 -0
- data/docs/V1EntitiesInvestorProfileTrust.md +32 -0
- data/docs/V1EntitiesInvestorProfiles.md +18 -0
- data/docs/V1EntitiesWebhooksDeal.md +22 -0
- data/docs/V1EntitiesWebhooksSecurityToken.md +18 -0
- data/docs/V1EntitiesWebhooksSubscription.md +28 -0
- data/docs/V1EntitiesWebhooksSubscriptionDeal.md +24 -0
- data/docs/V1EntitiesWebhooksSubscriptionDeals.md +18 -0
- data/lib/DealMakerAPI/api/company_api.rb +219 -0
- data/lib/DealMakerAPI/api/deal_api.rb +23 -174
- data/lib/DealMakerAPI/api/deal_setup_api.rb +90 -0
- data/lib/DealMakerAPI/api/default_api.rb +403 -0
- data/lib/DealMakerAPI/api/investor_api.rb +399 -0
- data/lib/DealMakerAPI/api/investor_profile_api.rb +570 -16
- data/lib/DealMakerAPI/api_client.rb +5 -3
- data/lib/DealMakerAPI/api_error.rb +3 -2
- data/lib/DealMakerAPI/configuration.rb +4 -3
- data/lib/DealMakerAPI/models/create_company_request.rb +320 -0
- data/lib/DealMakerAPI/models/create_corporation_profile_request.rb +601 -0
- data/lib/DealMakerAPI/models/create_deal_setup_request.rb +364 -0
- data/lib/DealMakerAPI/models/create_individual_profile_request.rb +389 -0
- data/lib/DealMakerAPI/models/create_investor_request.rb +386 -0
- data/lib/DealMakerAPI/models/create_joint_profile_request.rb +521 -0
- data/lib/DealMakerAPI/models/create_trust_profile_request.rb +491 -0
- data/lib/DealMakerAPI/models/patch_corporation_profile_request.rb +454 -0
- data/lib/DealMakerAPI/models/patch_individual_profile_request.rb +374 -0
- data/lib/DealMakerAPI/models/patch_investor_request.rb +225 -0
- data/lib/DealMakerAPI/models/patch_joint_profile_request.rb +506 -0
- data/lib/DealMakerAPI/models/patch_trust_profile_request.rb +454 -0
- data/lib/DealMakerAPI/models/post_webhooks_request.rb +277 -0
- data/lib/DealMakerAPI/models/put_webhooks_id_request.rb +286 -0
- data/lib/DealMakerAPI/models/update_investor_request.rb +286 -0
- data/lib/DealMakerAPI/models/v1_entities_address.rb +270 -0
- data/lib/DealMakerAPI/models/v1_entities_addresses.rb +219 -0
- data/lib/DealMakerAPI/models/v1_entities_attachment.rb +3 -2
- data/lib/DealMakerAPI/models/v1_entities_background_check_search.rb +3 -2
- data/lib/DealMakerAPI/models/v1_entities_company.rb +299 -0
- data/lib/DealMakerAPI/models/v1_entities_company_deal.rb +230 -0
- data/lib/DealMakerAPI/models/v1_entities_company_deals.rb +219 -0
- data/lib/DealMakerAPI/models/v1_entities_deal.rb +5 -4
- data/lib/DealMakerAPI/models/v1_entities_deal_enterprise.rb +3 -2
- data/lib/DealMakerAPI/models/v1_entities_deal_funding_metrics.rb +3 -2
- data/lib/DealMakerAPI/models/v1_entities_deal_investor_metrics.rb +3 -2
- data/lib/DealMakerAPI/models/v1_entities_deal_issuer.rb +3 -2
- data/lib/DealMakerAPI/models/v1_entities_deal_setup.rb +300 -0
- data/lib/DealMakerAPI/models/v1_entities_deal_setup_user.rb +230 -0
- data/lib/DealMakerAPI/models/v1_entities_deals.rb +220 -0
- data/lib/DealMakerAPI/models/v1_entities_investor.rb +50 -20
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_address.rb +270 -0
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_corporation.rb +332 -0
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_account_holder.rb +269 -0
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_corporation.rb +249 -0
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_primary_holder.rb +279 -0
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_trust.rb +249 -0
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_individual.rb +26 -76
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_item.rb +219 -0
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_joint.rb +333 -0
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_trust.rb +323 -0
- data/lib/DealMakerAPI/models/v1_entities_investor_profiles.rb +220 -0
- data/lib/DealMakerAPI/models/v1_entities_investor_user.rb +3 -2
- data/lib/DealMakerAPI/models/v1_entities_investors.rb +3 -2
- data/lib/DealMakerAPI/models/v1_entities_subscription_agreement.rb +3 -2
- data/lib/DealMakerAPI/models/v1_entities_webhooks_deal.rb +241 -0
- data/lib/DealMakerAPI/models/v1_entities_webhooks_security_token.rb +221 -0
- data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription.rb +270 -0
- data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deal.rb +250 -0
- data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deals.rb +219 -0
- data/lib/DealMakerAPI/version.rb +3 -3
- data/lib/DealMakerAPI.rb +44 -2
- data/spec/api/company_api_spec.rb +73 -0
- data/spec/api/deal_api_spec.rb +9 -37
- data/spec/api/deal_setup_api_spec.rb +47 -0
- data/spec/api/default_api_spec.rb +108 -0
- data/spec/api/investor_api_spec.rb +106 -0
- data/spec/api/investor_profile_api_spec.rb +109 -7
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/create_company_request_spec.rb +76 -0
- data/spec/models/create_corporation_profile_request_spec.rb +230 -0
- data/spec/models/create_deal_setup_request_spec.rb +82 -0
- data/spec/models/create_individual_profile_request_spec.rb +116 -0
- data/spec/models/create_investor_request_spec.rb +108 -0
- data/spec/models/create_joint_profile_request_spec.rb +192 -0
- data/spec/models/create_trust_profile_request_spec.rb +164 -0
- data/spec/models/patch_corporation_profile_request_spec.rb +158 -0
- data/spec/models/patch_individual_profile_request_spec.rb +110 -0
- data/spec/models/patch_investor_request_spec.rb +34 -0
- data/spec/models/patch_joint_profile_request_spec.rb +186 -0
- data/spec/models/patch_trust_profile_request_spec.rb +158 -0
- data/spec/models/post_webhooks_request_spec.rb +58 -0
- data/spec/models/put_webhooks_id_request_spec.rb +70 -0
- data/spec/models/update_investor_request_spec.rb +56 -0
- data/spec/models/v1_entities_address_spec.rb +64 -0
- data/spec/models/v1_entities_addresses_spec.rb +34 -0
- data/spec/models/v1_entities_attachment_spec.rb +2 -2
- data/spec/models/v1_entities_background_check_search_spec.rb +2 -2
- data/spec/models/v1_entities_company_deal_spec.rb +40 -0
- data/spec/models/v1_entities_company_deals_spec.rb +34 -0
- data/spec/models/v1_entities_company_spec.rb +82 -0
- data/spec/models/v1_entities_deal_enterprise_spec.rb +2 -2
- data/spec/models/v1_entities_deal_funding_metrics_spec.rb +2 -2
- data/spec/models/v1_entities_deal_investor_metrics_spec.rb +2 -2
- data/spec/models/v1_entities_deal_issuer_spec.rb +2 -2
- data/spec/models/v1_entities_deal_setup_spec.rb +82 -0
- data/spec/models/v1_entities_deal_setup_user_spec.rb +40 -0
- data/spec/models/v1_entities_deal_spec.rb +76 -2
- data/spec/models/v1_entities_deals_spec.rb +34 -0
- data/spec/models/v1_entities_investor_profile_address_spec.rb +64 -0
- data/spec/models/v1_entities_investor_profile_corporation_spec.rb +86 -0
- data/spec/models/v1_entities_investor_profile_fields_account_holder_spec.rb +64 -0
- data/spec/models/v1_entities_investor_profile_fields_corporation_spec.rb +52 -0
- data/spec/models/v1_entities_investor_profile_fields_primary_holder_spec.rb +70 -0
- data/spec/models/v1_entities_investor_profile_fields_trust_spec.rb +52 -0
- data/spec/models/v1_entities_investor_profile_individual_spec.rb +6 -36
- data/spec/models/v1_entities_investor_profile_item_spec.rb +34 -0
- data/spec/models/v1_entities_investor_profile_joint_spec.rb +86 -0
- data/spec/models/v1_entities_investor_profile_trust_spec.rb +80 -0
- data/spec/models/v1_entities_investor_profiles_spec.rb +34 -0
- data/spec/models/v1_entities_investor_spec.rb +29 -5
- data/spec/models/v1_entities_investor_user_spec.rb +2 -2
- data/spec/models/v1_entities_investors_spec.rb +2 -2
- data/spec/models/v1_entities_subscription_agreement_spec.rb +2 -2
- data/spec/models/v1_entities_webhooks_deal_spec.rb +46 -0
- data/spec/models/v1_entities_webhooks_security_token_spec.rb +34 -0
- data/spec/models/v1_entities_webhooks_subscription_deal_spec.rb +52 -0
- data/spec/models/v1_entities_webhooks_subscription_deals_spec.rb +34 -0
- data/spec/models/v1_entities_webhooks_subscription_spec.rb +64 -0
- data/spec/spec_helper.rb +2 -2
- 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
|
-
| [**
|
8
|
-
| [**
|
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
|
15
|
+
Get deal by Deal ID
|
86
16
|
|
87
|
-
|
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
|
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
|
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
|
-
##
|
77
|
+
## list_deals
|
148
78
|
|
149
|
-
> <
|
79
|
+
> <V1EntitiesDeals> list_deals(opts)
|
150
80
|
|
151
|
-
|
81
|
+
List available deals
|
152
82
|
|
153
|
-
|
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
|
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
|
243
|
-
result = api_instance.
|
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->
|
105
|
+
puts "Error when calling DealApi->list_deals: #{e}"
|
247
106
|
end
|
248
107
|
```
|
249
108
|
|
250
|
-
#### Using the
|
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(<
|
113
|
+
> <Array(<V1EntitiesDeals>, Integer, Hash)> list_deals_with_http_info(opts)
|
255
114
|
|
256
115
|
```ruby
|
257
116
|
begin
|
258
|
-
# List
|
259
|
-
data, status_code, headers = api_instance.
|
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 # => <
|
121
|
+
p data # => <V1EntitiesDeals>
|
263
122
|
rescue DealMakerAPI::ApiError => e
|
264
|
-
puts "Error when calling DealApi->
|
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<Integer>**](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
|
-
[**
|
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
|
+
|