DealMakerAPI 0.0.3 → 0.68.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/DealMakerAPI.gemspec +3 -3
- data/README.md +75 -20
- 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 +5 -222
- 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/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 +9 -226
- 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 +3 -2
- 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 +43 -2
- data/spec/api/company_api_spec.rb +73 -0
- data/spec/api/deal_api_spec.rb +4 -47
- 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 +3 -3
- data/spec/models/v1_entities_deals_spec.rb +2 -2
- 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 +22 -4
- 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 +176 -12
data/docs/DefaultApi.md
ADDED
@@ -0,0 +1,413 @@
|
|
1
|
+
# DealMakerAPI::DefaultApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://api.dealmaker.tech*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**get_webhooks**](DefaultApi.md#get_webhooks) | **GET** /webhooks | Returns a list of webhook subscription which is associated to the user |
|
8
|
+
| [**get_webhooks_deal_id**](DefaultApi.md#get_webhooks_deal_id) | **GET** /webhooks/deal/{id} | Finds a deal using the id |
|
9
|
+
| [**get_webhooks_deals_search**](DefaultApi.md#get_webhooks_deals_search) | **GET** /webhooks/deals/search | Searches for deals for a given user |
|
10
|
+
| [**get_webhooks_security_token**](DefaultApi.md#get_webhooks_security_token) | **GET** /webhooks/security_token | Creates a new security token for webhook subscription |
|
11
|
+
| [**post_webhooks**](DefaultApi.md#post_webhooks) | **POST** /webhooks | Creates a webhook subscription which is associated to the user |
|
12
|
+
| [**put_webhooks_id**](DefaultApi.md#put_webhooks_id) | **PUT** /webhooks/{id} | Updates webhook subscription and webhooks subcription deals |
|
13
|
+
|
14
|
+
|
15
|
+
## get_webhooks
|
16
|
+
|
17
|
+
> <V1EntitiesWebhooksSubscription> get_webhooks(opts)
|
18
|
+
|
19
|
+
Returns a list of webhook subscription which is associated to the user
|
20
|
+
|
21
|
+
Returns a list of webhook subscription
|
22
|
+
|
23
|
+
### Examples
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
require 'time'
|
27
|
+
require 'DealMakerAPI'
|
28
|
+
# setup authorization
|
29
|
+
DealMakerAPI.configure do |config|end
|
30
|
+
|
31
|
+
api_instance = DealMakerAPI::DefaultApi.new
|
32
|
+
opts = {
|
33
|
+
page: 56, # Integer | Page offset to fetch.
|
34
|
+
per_page: 56, # Integer | Number of results to return per page.
|
35
|
+
offset: 56 # Integer | Pad a number of results.
|
36
|
+
}
|
37
|
+
|
38
|
+
begin
|
39
|
+
# Returns a list of webhook subscription which is associated to the user
|
40
|
+
result = api_instance.get_webhooks(opts)
|
41
|
+
p result
|
42
|
+
rescue DealMakerAPI::ApiError => e
|
43
|
+
puts "Error when calling DefaultApi->get_webhooks: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
#### Using the get_webhooks_with_http_info variant
|
48
|
+
|
49
|
+
This returns an Array which contains the response data, status code and headers.
|
50
|
+
|
51
|
+
> <Array(<V1EntitiesWebhooksSubscription>, Integer, Hash)> get_webhooks_with_http_info(opts)
|
52
|
+
|
53
|
+
```ruby
|
54
|
+
begin
|
55
|
+
# Returns a list of webhook subscription which is associated to the user
|
56
|
+
data, status_code, headers = api_instance.get_webhooks_with_http_info(opts)
|
57
|
+
p status_code # => 2xx
|
58
|
+
p headers # => { ... }
|
59
|
+
p data # => <V1EntitiesWebhooksSubscription>
|
60
|
+
rescue DealMakerAPI::ApiError => e
|
61
|
+
puts "Error when calling DefaultApi->get_webhooks_with_http_info: #{e}"
|
62
|
+
end
|
63
|
+
```
|
64
|
+
|
65
|
+
### Parameters
|
66
|
+
|
67
|
+
| Name | Type | Description | Notes |
|
68
|
+
| ---- | ---- | ----------- | ----- |
|
69
|
+
| **page** | **Integer** | Page offset to fetch. | [optional][default to 1] |
|
70
|
+
| **per_page** | **Integer** | Number of results to return per page. | [optional][default to 25] |
|
71
|
+
| **offset** | **Integer** | Pad a number of results. | [optional][default to 0] |
|
72
|
+
|
73
|
+
### Return type
|
74
|
+
|
75
|
+
[**V1EntitiesWebhooksSubscription**](V1EntitiesWebhooksSubscription.md)
|
76
|
+
|
77
|
+
### Authorization
|
78
|
+
|
79
|
+
No authorization required
|
80
|
+
|
81
|
+
### HTTP request headers
|
82
|
+
|
83
|
+
- **Content-Type**: Not defined
|
84
|
+
- **Accept**: application/json
|
85
|
+
|
86
|
+
|
87
|
+
## get_webhooks_deal_id
|
88
|
+
|
89
|
+
> <V1EntitiesWebhooksDeal> get_webhooks_deal_id(id)
|
90
|
+
|
91
|
+
Finds a deal using the id
|
92
|
+
|
93
|
+
Returns a deal
|
94
|
+
|
95
|
+
### Examples
|
96
|
+
|
97
|
+
```ruby
|
98
|
+
require 'time'
|
99
|
+
require 'DealMakerAPI'
|
100
|
+
# setup authorization
|
101
|
+
DealMakerAPI.configure do |config|end
|
102
|
+
|
103
|
+
api_instance = DealMakerAPI::DefaultApi.new
|
104
|
+
id = 56 # Integer |
|
105
|
+
|
106
|
+
begin
|
107
|
+
# Finds a deal using the id
|
108
|
+
result = api_instance.get_webhooks_deal_id(id)
|
109
|
+
p result
|
110
|
+
rescue DealMakerAPI::ApiError => e
|
111
|
+
puts "Error when calling DefaultApi->get_webhooks_deal_id: #{e}"
|
112
|
+
end
|
113
|
+
```
|
114
|
+
|
115
|
+
#### Using the get_webhooks_deal_id_with_http_info variant
|
116
|
+
|
117
|
+
This returns an Array which contains the response data, status code and headers.
|
118
|
+
|
119
|
+
> <Array(<V1EntitiesWebhooksDeal>, Integer, Hash)> get_webhooks_deal_id_with_http_info(id)
|
120
|
+
|
121
|
+
```ruby
|
122
|
+
begin
|
123
|
+
# Finds a deal using the id
|
124
|
+
data, status_code, headers = api_instance.get_webhooks_deal_id_with_http_info(id)
|
125
|
+
p status_code # => 2xx
|
126
|
+
p headers # => { ... }
|
127
|
+
p data # => <V1EntitiesWebhooksDeal>
|
128
|
+
rescue DealMakerAPI::ApiError => e
|
129
|
+
puts "Error when calling DefaultApi->get_webhooks_deal_id_with_http_info: #{e}"
|
130
|
+
end
|
131
|
+
```
|
132
|
+
|
133
|
+
### Parameters
|
134
|
+
|
135
|
+
| Name | Type | Description | Notes |
|
136
|
+
| ---- | ---- | ----------- | ----- |
|
137
|
+
| **id** | **Integer** | | |
|
138
|
+
|
139
|
+
### Return type
|
140
|
+
|
141
|
+
[**V1EntitiesWebhooksDeal**](V1EntitiesWebhooksDeal.md)
|
142
|
+
|
143
|
+
### Authorization
|
144
|
+
|
145
|
+
No authorization required
|
146
|
+
|
147
|
+
### HTTP request headers
|
148
|
+
|
149
|
+
- **Content-Type**: Not defined
|
150
|
+
- **Accept**: application/json
|
151
|
+
|
152
|
+
|
153
|
+
## get_webhooks_deals_search
|
154
|
+
|
155
|
+
> <V1EntitiesWebhooksSecurityToken> get_webhooks_deals_search
|
156
|
+
|
157
|
+
Searches for deals for a given user
|
158
|
+
|
159
|
+
Searches for deals for a given user
|
160
|
+
|
161
|
+
### Examples
|
162
|
+
|
163
|
+
```ruby
|
164
|
+
require 'time'
|
165
|
+
require 'DealMakerAPI'
|
166
|
+
# setup authorization
|
167
|
+
DealMakerAPI.configure do |config|end
|
168
|
+
|
169
|
+
api_instance = DealMakerAPI::DefaultApi.new
|
170
|
+
|
171
|
+
begin
|
172
|
+
# Searches for deals for a given user
|
173
|
+
result = api_instance.get_webhooks_deals_search
|
174
|
+
p result
|
175
|
+
rescue DealMakerAPI::ApiError => e
|
176
|
+
puts "Error when calling DefaultApi->get_webhooks_deals_search: #{e}"
|
177
|
+
end
|
178
|
+
```
|
179
|
+
|
180
|
+
#### Using the get_webhooks_deals_search_with_http_info variant
|
181
|
+
|
182
|
+
This returns an Array which contains the response data, status code and headers.
|
183
|
+
|
184
|
+
> <Array(<V1EntitiesWebhooksSecurityToken>, Integer, Hash)> get_webhooks_deals_search_with_http_info
|
185
|
+
|
186
|
+
```ruby
|
187
|
+
begin
|
188
|
+
# Searches for deals for a given user
|
189
|
+
data, status_code, headers = api_instance.get_webhooks_deals_search_with_http_info
|
190
|
+
p status_code # => 2xx
|
191
|
+
p headers # => { ... }
|
192
|
+
p data # => <V1EntitiesWebhooksSecurityToken>
|
193
|
+
rescue DealMakerAPI::ApiError => e
|
194
|
+
puts "Error when calling DefaultApi->get_webhooks_deals_search_with_http_info: #{e}"
|
195
|
+
end
|
196
|
+
```
|
197
|
+
|
198
|
+
### Parameters
|
199
|
+
|
200
|
+
This endpoint does not need any parameter.
|
201
|
+
|
202
|
+
### Return type
|
203
|
+
|
204
|
+
[**V1EntitiesWebhooksSecurityToken**](V1EntitiesWebhooksSecurityToken.md)
|
205
|
+
|
206
|
+
### Authorization
|
207
|
+
|
208
|
+
No authorization required
|
209
|
+
|
210
|
+
### HTTP request headers
|
211
|
+
|
212
|
+
- **Content-Type**: Not defined
|
213
|
+
- **Accept**: application/json
|
214
|
+
|
215
|
+
|
216
|
+
## get_webhooks_security_token
|
217
|
+
|
218
|
+
> <V1EntitiesWebhooksSecurityToken> get_webhooks_security_token
|
219
|
+
|
220
|
+
Creates a new security token for webhook subscription
|
221
|
+
|
222
|
+
Creates a new security token for webhook subscription
|
223
|
+
|
224
|
+
### Examples
|
225
|
+
|
226
|
+
```ruby
|
227
|
+
require 'time'
|
228
|
+
require 'DealMakerAPI'
|
229
|
+
# setup authorization
|
230
|
+
DealMakerAPI.configure do |config|end
|
231
|
+
|
232
|
+
api_instance = DealMakerAPI::DefaultApi.new
|
233
|
+
|
234
|
+
begin
|
235
|
+
# Creates a new security token for webhook subscription
|
236
|
+
result = api_instance.get_webhooks_security_token
|
237
|
+
p result
|
238
|
+
rescue DealMakerAPI::ApiError => e
|
239
|
+
puts "Error when calling DefaultApi->get_webhooks_security_token: #{e}"
|
240
|
+
end
|
241
|
+
```
|
242
|
+
|
243
|
+
#### Using the get_webhooks_security_token_with_http_info variant
|
244
|
+
|
245
|
+
This returns an Array which contains the response data, status code and headers.
|
246
|
+
|
247
|
+
> <Array(<V1EntitiesWebhooksSecurityToken>, Integer, Hash)> get_webhooks_security_token_with_http_info
|
248
|
+
|
249
|
+
```ruby
|
250
|
+
begin
|
251
|
+
# Creates a new security token for webhook subscription
|
252
|
+
data, status_code, headers = api_instance.get_webhooks_security_token_with_http_info
|
253
|
+
p status_code # => 2xx
|
254
|
+
p headers # => { ... }
|
255
|
+
p data # => <V1EntitiesWebhooksSecurityToken>
|
256
|
+
rescue DealMakerAPI::ApiError => e
|
257
|
+
puts "Error when calling DefaultApi->get_webhooks_security_token_with_http_info: #{e}"
|
258
|
+
end
|
259
|
+
```
|
260
|
+
|
261
|
+
### Parameters
|
262
|
+
|
263
|
+
This endpoint does not need any parameter.
|
264
|
+
|
265
|
+
### Return type
|
266
|
+
|
267
|
+
[**V1EntitiesWebhooksSecurityToken**](V1EntitiesWebhooksSecurityToken.md)
|
268
|
+
|
269
|
+
### Authorization
|
270
|
+
|
271
|
+
No authorization required
|
272
|
+
|
273
|
+
### HTTP request headers
|
274
|
+
|
275
|
+
- **Content-Type**: Not defined
|
276
|
+
- **Accept**: application/json
|
277
|
+
|
278
|
+
|
279
|
+
## post_webhooks
|
280
|
+
|
281
|
+
> <V1EntitiesWebhooksSubscription> post_webhooks(post_webhooks_request)
|
282
|
+
|
283
|
+
Creates a webhook subscription which is associated to the user
|
284
|
+
|
285
|
+
Creates new webhook subscription
|
286
|
+
|
287
|
+
### Examples
|
288
|
+
|
289
|
+
```ruby
|
290
|
+
require 'time'
|
291
|
+
require 'DealMakerAPI'
|
292
|
+
# setup authorization
|
293
|
+
DealMakerAPI.configure do |config|end
|
294
|
+
|
295
|
+
api_instance = DealMakerAPI::DefaultApi.new
|
296
|
+
post_webhooks_request = DealMakerAPI::PostWebhooksRequest.new({name: 'name_example', enabled: false, webhook_subscription_deals_deal_id: [37]}) # PostWebhooksRequest |
|
297
|
+
|
298
|
+
begin
|
299
|
+
# Creates a webhook subscription which is associated to the user
|
300
|
+
result = api_instance.post_webhooks(post_webhooks_request)
|
301
|
+
p result
|
302
|
+
rescue DealMakerAPI::ApiError => e
|
303
|
+
puts "Error when calling DefaultApi->post_webhooks: #{e}"
|
304
|
+
end
|
305
|
+
```
|
306
|
+
|
307
|
+
#### Using the post_webhooks_with_http_info variant
|
308
|
+
|
309
|
+
This returns an Array which contains the response data, status code and headers.
|
310
|
+
|
311
|
+
> <Array(<V1EntitiesWebhooksSubscription>, Integer, Hash)> post_webhooks_with_http_info(post_webhooks_request)
|
312
|
+
|
313
|
+
```ruby
|
314
|
+
begin
|
315
|
+
# Creates a webhook subscription which is associated to the user
|
316
|
+
data, status_code, headers = api_instance.post_webhooks_with_http_info(post_webhooks_request)
|
317
|
+
p status_code # => 2xx
|
318
|
+
p headers # => { ... }
|
319
|
+
p data # => <V1EntitiesWebhooksSubscription>
|
320
|
+
rescue DealMakerAPI::ApiError => e
|
321
|
+
puts "Error when calling DefaultApi->post_webhooks_with_http_info: #{e}"
|
322
|
+
end
|
323
|
+
```
|
324
|
+
|
325
|
+
### Parameters
|
326
|
+
|
327
|
+
| Name | Type | Description | Notes |
|
328
|
+
| ---- | ---- | ----------- | ----- |
|
329
|
+
| **post_webhooks_request** | [**PostWebhooksRequest**](PostWebhooksRequest.md) | | |
|
330
|
+
|
331
|
+
### Return type
|
332
|
+
|
333
|
+
[**V1EntitiesWebhooksSubscription**](V1EntitiesWebhooksSubscription.md)
|
334
|
+
|
335
|
+
### Authorization
|
336
|
+
|
337
|
+
No authorization required
|
338
|
+
|
339
|
+
### HTTP request headers
|
340
|
+
|
341
|
+
- **Content-Type**: application/json
|
342
|
+
- **Accept**: application/json
|
343
|
+
|
344
|
+
|
345
|
+
## put_webhooks_id
|
346
|
+
|
347
|
+
> <V1EntitiesWebhooksSubscription> put_webhooks_id(id, opts)
|
348
|
+
|
349
|
+
Updates webhook subscription and webhooks subcription deals
|
350
|
+
|
351
|
+
Updates webhook subscription
|
352
|
+
|
353
|
+
### Examples
|
354
|
+
|
355
|
+
```ruby
|
356
|
+
require 'time'
|
357
|
+
require 'DealMakerAPI'
|
358
|
+
# setup authorization
|
359
|
+
DealMakerAPI.configure do |config|end
|
360
|
+
|
361
|
+
api_instance = DealMakerAPI::DefaultApi.new
|
362
|
+
id = 56 # Integer |
|
363
|
+
opts = {
|
364
|
+
put_webhooks_id_request: DealMakerAPI::PutWebhooksIdRequest.new # PutWebhooksIdRequest |
|
365
|
+
}
|
366
|
+
|
367
|
+
begin
|
368
|
+
# Updates webhook subscription and webhooks subcription deals
|
369
|
+
result = api_instance.put_webhooks_id(id, opts)
|
370
|
+
p result
|
371
|
+
rescue DealMakerAPI::ApiError => e
|
372
|
+
puts "Error when calling DefaultApi->put_webhooks_id: #{e}"
|
373
|
+
end
|
374
|
+
```
|
375
|
+
|
376
|
+
#### Using the put_webhooks_id_with_http_info variant
|
377
|
+
|
378
|
+
This returns an Array which contains the response data, status code and headers.
|
379
|
+
|
380
|
+
> <Array(<V1EntitiesWebhooksSubscription>, Integer, Hash)> put_webhooks_id_with_http_info(id, opts)
|
381
|
+
|
382
|
+
```ruby
|
383
|
+
begin
|
384
|
+
# Updates webhook subscription and webhooks subcription deals
|
385
|
+
data, status_code, headers = api_instance.put_webhooks_id_with_http_info(id, opts)
|
386
|
+
p status_code # => 2xx
|
387
|
+
p headers # => { ... }
|
388
|
+
p data # => <V1EntitiesWebhooksSubscription>
|
389
|
+
rescue DealMakerAPI::ApiError => e
|
390
|
+
puts "Error when calling DefaultApi->put_webhooks_id_with_http_info: #{e}"
|
391
|
+
end
|
392
|
+
```
|
393
|
+
|
394
|
+
### Parameters
|
395
|
+
|
396
|
+
| Name | Type | Description | Notes |
|
397
|
+
| ---- | ---- | ----------- | ----- |
|
398
|
+
| **id** | **Integer** | | |
|
399
|
+
| **put_webhooks_id_request** | [**PutWebhooksIdRequest**](PutWebhooksIdRequest.md) | | [optional] |
|
400
|
+
|
401
|
+
### Return type
|
402
|
+
|
403
|
+
[**V1EntitiesWebhooksSubscription**](V1EntitiesWebhooksSubscription.md)
|
404
|
+
|
405
|
+
### Authorization
|
406
|
+
|
407
|
+
No authorization required
|
408
|
+
|
409
|
+
### HTTP request headers
|
410
|
+
|
411
|
+
- **Content-Type**: application/json
|
412
|
+
- **Accept**: application/json
|
413
|
+
|