DealMakerAPI 0.81.3 → 0.83.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -8
- data/docs/Add506cDocumentRequest.md +20 -0
- data/docs/CompanyApi.md +140 -0
- data/docs/CreateBulkUploadDetailRequest.md +22 -0
- data/docs/CreateBulkUploadRequest.md +20 -0
- data/docs/DefaultApi.md +136 -0
- data/docs/GenerateUrlRequest.md +18 -0
- data/docs/InvestorApi.md +139 -0
- data/docs/UpdateInvestorRequest.md +3 -1
- data/docs/UploadApi.md +74 -0
- data/docs/V1EntitiesBulkUpload.md +30 -0
- data/docs/V1EntitiesBulkUploadDetail.md +30 -0
- data/docs/V1EntitiesExpressWireInstruction.md +32 -0
- data/docs/V1EntitiesExpressWireInstructions.md +18 -0
- data/docs/V1EntitiesPresignedUrlResult.md +20 -0
- data/lib/DealMakerAPI/api/company_api.rb +154 -0
- data/lib/DealMakerAPI/api/default_api.rb +132 -0
- data/lib/DealMakerAPI/api/investor_api.rb +147 -0
- data/lib/DealMakerAPI/api/upload_api.rb +90 -0
- data/lib/DealMakerAPI/models/add506c_document_request.rb +235 -0
- data/lib/DealMakerAPI/models/create_bulk_upload_detail_request.rb +250 -0
- data/lib/DealMakerAPI/models/create_bulk_upload_request.rb +240 -0
- data/lib/DealMakerAPI/models/generate_url_request.rb +225 -0
- data/lib/DealMakerAPI/models/update_investor_request.rb +14 -4
- data/lib/DealMakerAPI/models/v1_entities_bulk_upload.rb +281 -0
- data/lib/DealMakerAPI/models/v1_entities_bulk_upload_detail.rb +281 -0
- data/lib/DealMakerAPI/models/v1_entities_express_wire_instruction.rb +291 -0
- data/lib/DealMakerAPI/models/v1_entities_express_wire_instructions.rb +220 -0
- data/lib/DealMakerAPI/models/v1_entities_presigned_url_result.rb +231 -0
- data/lib/DealMakerAPI/version.rb +1 -1
- data/lib/DealMakerAPI.rb +10 -0
- data/spec/api/company_api_spec.rb +27 -0
- data/spec/api/default_api_spec.rb +25 -0
- data/spec/api/investor_api_spec.rb +27 -0
- data/spec/api/upload_api_spec.rb +47 -0
- data/spec/models/add506c_document_request_spec.rb +40 -0
- data/spec/models/create_bulk_upload_detail_request_spec.rb +46 -0
- data/spec/models/create_bulk_upload_request_spec.rb +40 -0
- data/spec/models/generate_url_request_spec.rb +34 -0
- data/spec/models/update_investor_request_spec.rb +6 -0
- data/spec/models/v1_entities_bulk_upload_detail_spec.rb +70 -0
- data/spec/models/v1_entities_bulk_upload_spec.rb +70 -0
- data/spec/models/v1_entities_express_wire_instruction_spec.rb +76 -0
- data/spec/models/v1_entities_express_wire_instructions_spec.rb +34 -0
- data/spec/models/v1_entities_presigned_url_result_spec.rb +40 -0
- metadata +90 -50
data/docs/InvestorApi.md
CHANGED
@@ -4,9 +4,11 @@ All URIs are relative to *http://api.dealmaker.tech*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
+
| [**add506c_document**](InvestorApi.md#add506c_document) | **POST** /deals/{id}/investors/{investor_id}/add_506c_document | Add 506c document for deal investor |
|
7
8
|
| [**add_document**](InvestorApi.md#add_document) | **POST** /deals/{id}/investors/{investor_id}/add_document | Add document for deal investor |
|
8
9
|
| [**create_investor**](InvestorApi.md#create_investor) | **POST** /deals/{id}/investors | Create a deal investor |
|
9
10
|
| [**delete_document**](InvestorApi.md#delete_document) | **DELETE** /deals/{id}/investors/{investor_id}/delete_document/{document_id} | Delete document for deal investor |
|
11
|
+
| [**delete_investor_profile**](InvestorApi.md#delete_investor_profile) | **DELETE** /investor_profiles/{type}/{id} | Delete investor profile. |
|
10
12
|
| [**edit_investor_tags**](InvestorApi.md#edit_investor_tags) | **POST** /deals/{id}/investors/{investor_id}/edit_tags | Append or replace tag(s) for a specific investor |
|
11
13
|
| [**get_investor**](InvestorApi.md#get_investor) | **GET** /deals/{id}/investors/{investor_id} | Get a deal investor by id |
|
12
14
|
| [**get_investor_otp_link**](InvestorApi.md#get_investor_otp_link) | **GET** /deals/{id}/investors/{investor_id}/otp_access_link | Get OTP access link for deal investor |
|
@@ -15,6 +17,76 @@ All URIs are relative to *http://api.dealmaker.tech*
|
|
15
17
|
| [**update_investor**](InvestorApi.md#update_investor) | **PUT** /deals/{id}/investors/{investor_id} | Update a deal investor |
|
16
18
|
|
17
19
|
|
20
|
+
## add506c_document
|
21
|
+
|
22
|
+
> <V1EntitiesInvestor> add506c_document(id, investor_id, add506c_document_request)
|
23
|
+
|
24
|
+
Add 506c document for deal investor
|
25
|
+
|
26
|
+
Add 506c document for deal investor
|
27
|
+
|
28
|
+
### Examples
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
require 'time'
|
32
|
+
require 'DealMakerAPI'
|
33
|
+
# setup authorization
|
34
|
+
DealMakerAPI.configure do |config|end
|
35
|
+
|
36
|
+
api_instance = DealMakerAPI::InvestorApi.new
|
37
|
+
id = 56 # Integer | The deal id.
|
38
|
+
investor_id = 56 # Integer | The investor id.
|
39
|
+
add506c_document_request = DealMakerAPI::Add506cDocumentRequest.new({file: File.new('/path/to/some/file')}) # Add506cDocumentRequest |
|
40
|
+
|
41
|
+
begin
|
42
|
+
# Add 506c document for deal investor
|
43
|
+
result = api_instance.add506c_document(id, investor_id, add506c_document_request)
|
44
|
+
p result
|
45
|
+
rescue DealMakerAPI::ApiError => e
|
46
|
+
puts "Error when calling InvestorApi->add506c_document: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
#### Using the add506c_document_with_http_info variant
|
51
|
+
|
52
|
+
This returns an Array which contains the response data, status code and headers.
|
53
|
+
|
54
|
+
> <Array(<V1EntitiesInvestor>, Integer, Hash)> add506c_document_with_http_info(id, investor_id, add506c_document_request)
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
begin
|
58
|
+
# Add 506c document for deal investor
|
59
|
+
data, status_code, headers = api_instance.add506c_document_with_http_info(id, investor_id, add506c_document_request)
|
60
|
+
p status_code # => 2xx
|
61
|
+
p headers # => { ... }
|
62
|
+
p data # => <V1EntitiesInvestor>
|
63
|
+
rescue DealMakerAPI::ApiError => e
|
64
|
+
puts "Error when calling InvestorApi->add506c_document_with_http_info: #{e}"
|
65
|
+
end
|
66
|
+
```
|
67
|
+
|
68
|
+
### Parameters
|
69
|
+
|
70
|
+
| Name | Type | Description | Notes |
|
71
|
+
| ---- | ---- | ----------- | ----- |
|
72
|
+
| **id** | **Integer** | The deal id. | |
|
73
|
+
| **investor_id** | **Integer** | The investor id. | |
|
74
|
+
| **add506c_document_request** | [**Add506cDocumentRequest**](Add506cDocumentRequest.md) | | |
|
75
|
+
|
76
|
+
### Return type
|
77
|
+
|
78
|
+
[**V1EntitiesInvestor**](V1EntitiesInvestor.md)
|
79
|
+
|
80
|
+
### Authorization
|
81
|
+
|
82
|
+
No authorization required
|
83
|
+
|
84
|
+
### HTTP request headers
|
85
|
+
|
86
|
+
- **Content-Type**: application/json
|
87
|
+
- **Accept**: application/json
|
88
|
+
|
89
|
+
|
18
90
|
## add_document
|
19
91
|
|
20
92
|
> <V1EntitiesInvestor> add_document(id, investor_id, add_document_request)
|
@@ -222,6 +294,73 @@ No authorization required
|
|
222
294
|
- **Accept**: Not defined
|
223
295
|
|
224
296
|
|
297
|
+
## delete_investor_profile
|
298
|
+
|
299
|
+
> delete_investor_profile(type, id)
|
300
|
+
|
301
|
+
Delete investor profile.
|
302
|
+
|
303
|
+
Deletes the investor profile.
|
304
|
+
|
305
|
+
### Examples
|
306
|
+
|
307
|
+
```ruby
|
308
|
+
require 'time'
|
309
|
+
require 'DealMakerAPI'
|
310
|
+
# setup authorization
|
311
|
+
DealMakerAPI.configure do |config|end
|
312
|
+
|
313
|
+
api_instance = DealMakerAPI::InvestorApi.new
|
314
|
+
type = 56 # Integer |
|
315
|
+
id = 56 # Integer |
|
316
|
+
|
317
|
+
begin
|
318
|
+
# Delete investor profile.
|
319
|
+
api_instance.delete_investor_profile(type, id)
|
320
|
+
rescue DealMakerAPI::ApiError => e
|
321
|
+
puts "Error when calling InvestorApi->delete_investor_profile: #{e}"
|
322
|
+
end
|
323
|
+
```
|
324
|
+
|
325
|
+
#### Using the delete_investor_profile_with_http_info variant
|
326
|
+
|
327
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
328
|
+
|
329
|
+
> <Array(nil, Integer, Hash)> delete_investor_profile_with_http_info(type, id)
|
330
|
+
|
331
|
+
```ruby
|
332
|
+
begin
|
333
|
+
# Delete investor profile.
|
334
|
+
data, status_code, headers = api_instance.delete_investor_profile_with_http_info(type, id)
|
335
|
+
p status_code # => 2xx
|
336
|
+
p headers # => { ... }
|
337
|
+
p data # => nil
|
338
|
+
rescue DealMakerAPI::ApiError => e
|
339
|
+
puts "Error when calling InvestorApi->delete_investor_profile_with_http_info: #{e}"
|
340
|
+
end
|
341
|
+
```
|
342
|
+
|
343
|
+
### Parameters
|
344
|
+
|
345
|
+
| Name | Type | Description | Notes |
|
346
|
+
| ---- | ---- | ----------- | ----- |
|
347
|
+
| **type** | **Integer** | | |
|
348
|
+
| **id** | **Integer** | | |
|
349
|
+
|
350
|
+
### Return type
|
351
|
+
|
352
|
+
nil (empty response body)
|
353
|
+
|
354
|
+
### Authorization
|
355
|
+
|
356
|
+
No authorization required
|
357
|
+
|
358
|
+
### HTTP request headers
|
359
|
+
|
360
|
+
- **Content-Type**: Not defined
|
361
|
+
- **Accept**: Not defined
|
362
|
+
|
363
|
+
|
225
364
|
## edit_investor_tags
|
226
365
|
|
227
366
|
> <V1EntitiesInvestor> edit_investor_tags(id, investor_id, edit_investor_tags_request)
|
@@ -9,6 +9,7 @@
|
|
9
9
|
| **allocated_amount** | **Float** | The allocation amount of the investor. | [optional] |
|
10
10
|
| **allocation_unit** | **String** | The allocation unit of the investor. | [optional][default to 'securities'] |
|
11
11
|
| **investment_value** | **Float** | The investment value of the investor. | [optional] |
|
12
|
+
| **notes** | **String** | The notes of the investor. | [optional] |
|
12
13
|
|
13
14
|
## Example
|
14
15
|
|
@@ -20,7 +21,8 @@ instance = DealMakerAPI::UpdateInvestorRequest.new(
|
|
20
21
|
warrant_certificate_number: null,
|
21
22
|
allocated_amount: null,
|
22
23
|
allocation_unit: null,
|
23
|
-
investment_value: null
|
24
|
+
investment_value: null,
|
25
|
+
notes: null
|
24
26
|
)
|
25
27
|
```
|
26
28
|
|
data/docs/UploadApi.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# DealMakerAPI::UploadApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://api.dealmaker.tech*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**generate_url**](UploadApi.md#generate_url) | **POST** /uploads/generate_url | Create a presigned URL for Amazon S3 |
|
8
|
+
|
9
|
+
|
10
|
+
## generate_url
|
11
|
+
|
12
|
+
> <V1EntitiesPresignedUrlResult> generate_url(generate_url_request)
|
13
|
+
|
14
|
+
Create a presigned URL for Amazon S3
|
15
|
+
|
16
|
+
Create a presigned URL for uploading file to Amazon S3 bucket
|
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::UploadApi.new
|
27
|
+
generate_url_request = DealMakerAPI::GenerateUrlRequest.new({filename: 'filename_example'}) # GenerateUrlRequest |
|
28
|
+
|
29
|
+
begin
|
30
|
+
# Create a presigned URL for Amazon S3
|
31
|
+
result = api_instance.generate_url(generate_url_request)
|
32
|
+
p result
|
33
|
+
rescue DealMakerAPI::ApiError => e
|
34
|
+
puts "Error when calling UploadApi->generate_url: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
#### Using the generate_url_with_http_info variant
|
39
|
+
|
40
|
+
This returns an Array which contains the response data, status code and headers.
|
41
|
+
|
42
|
+
> <Array(<V1EntitiesPresignedUrlResult>, Integer, Hash)> generate_url_with_http_info(generate_url_request)
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
begin
|
46
|
+
# Create a presigned URL for Amazon S3
|
47
|
+
data, status_code, headers = api_instance.generate_url_with_http_info(generate_url_request)
|
48
|
+
p status_code # => 2xx
|
49
|
+
p headers # => { ... }
|
50
|
+
p data # => <V1EntitiesPresignedUrlResult>
|
51
|
+
rescue DealMakerAPI::ApiError => e
|
52
|
+
puts "Error when calling UploadApi->generate_url_with_http_info: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
### Parameters
|
57
|
+
|
58
|
+
| Name | Type | Description | Notes |
|
59
|
+
| ---- | ---- | ----------- | ----- |
|
60
|
+
| **generate_url_request** | [**GenerateUrlRequest**](GenerateUrlRequest.md) | | |
|
61
|
+
|
62
|
+
### Return type
|
63
|
+
|
64
|
+
[**V1EntitiesPresignedUrlResult**](V1EntitiesPresignedUrlResult.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
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# DealMakerAPI::V1EntitiesBulkUpload
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | The bulk upload ID | [optional] |
|
8
|
+
| **company_id** | **Integer** | The company ID | [optional] |
|
9
|
+
| **file_identifier** | **String** | The file identifier [shareholder, investor] | [optional] |
|
10
|
+
| **document_type** | **String** | The document type [drs_statement, shareholder_statement, book_entry_statement] | [optional] |
|
11
|
+
| **status** | **String** | The status [pending, processing, completed, failed] | [optional] |
|
12
|
+
| **created_at** | **String** | The created at timestamp | [optional] |
|
13
|
+
| **updated_at** | **String** | The updated at timestamp | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'DealMakerAPI'
|
19
|
+
|
20
|
+
instance = DealMakerAPI::V1EntitiesBulkUpload.new(
|
21
|
+
id: null,
|
22
|
+
company_id: null,
|
23
|
+
file_identifier: null,
|
24
|
+
document_type: null,
|
25
|
+
status: null,
|
26
|
+
created_at: null,
|
27
|
+
updated_at: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# DealMakerAPI::V1EntitiesBulkUploadDetail
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | The ID for the bulk upload detail | [optional] |
|
8
|
+
| **bulk_upload_id** | **Integer** | The bulk upload ID | [optional] |
|
9
|
+
| **file_key** | **String** | The generated identifier for the file | [optional] |
|
10
|
+
| **file_name** | **String** | The name of the file | [optional] |
|
11
|
+
| **status** | **Integer** | The status of the bulk upload detail | [optional] |
|
12
|
+
| **created_at** | **String** | The created at date | [optional] |
|
13
|
+
| **updated_at** | **String** | The updated at date | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'DealMakerAPI'
|
19
|
+
|
20
|
+
instance = DealMakerAPI::V1EntitiesBulkUploadDetail.new(
|
21
|
+
id: null,
|
22
|
+
bulk_upload_id: null,
|
23
|
+
file_key: null,
|
24
|
+
file_name: null,
|
25
|
+
status: null,
|
26
|
+
created_at: null,
|
27
|
+
updated_at: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# DealMakerAPI::V1EntitiesExpressWireInstruction
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **investor_id** | **String** | The id of the investor | [optional] |
|
8
|
+
| **bank_name** | **String** | Name of the bank for the payment | [optional] |
|
9
|
+
| **bank_address** | **String** | Address of the bank for the payment | [optional] |
|
10
|
+
| **beneficiary_address** | **String** | Address of the beneficiary for the payment | [optional] |
|
11
|
+
| **beneficiary_name** | **String** | Name of the beneficiary for the payment | [optional] |
|
12
|
+
| **account_number** | **String** | Account number for the payment | [optional] |
|
13
|
+
| **aba_routing** | **String** | Aba routing number for the payment | [optional] |
|
14
|
+
| **swift_code** | **String** | Swift code for the payment | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'DealMakerAPI'
|
20
|
+
|
21
|
+
instance = DealMakerAPI::V1EntitiesExpressWireInstruction.new(
|
22
|
+
investor_id: null,
|
23
|
+
bank_name: null,
|
24
|
+
bank_address: null,
|
25
|
+
beneficiary_address: null,
|
26
|
+
beneficiary_name: null,
|
27
|
+
account_number: null,
|
28
|
+
aba_routing: null,
|
29
|
+
swift_code: null
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# DealMakerAPI::V1EntitiesExpressWireInstructions
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **items** | [**V1EntitiesExpressWireInstruction**](V1EntitiesExpressWireInstruction.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'DealMakerAPI'
|
13
|
+
|
14
|
+
instance = DealMakerAPI::V1EntitiesExpressWireInstructions.new(
|
15
|
+
items: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# DealMakerAPI::V1EntitiesPresignedUrlResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **file_key** | **String** | The file UUID generated value. | [optional] |
|
8
|
+
| **presigned_url** | **String** | A pre-signed url by aws for interacting with a S3 bucket. | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'DealMakerAPI'
|
14
|
+
|
15
|
+
instance = DealMakerAPI::V1EntitiesPresignedUrlResult.new(
|
16
|
+
file_key: null,
|
17
|
+
presigned_url: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -19,6 +19,160 @@ module DealMakerAPI
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Create bulk upload record
|
23
|
+
# Create bulk upload record
|
24
|
+
# @param id [Integer] The company id
|
25
|
+
# @param create_bulk_upload_request [CreateBulkUploadRequest]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [V1EntitiesBulkUpload]
|
28
|
+
def create_bulk_upload(id, create_bulk_upload_request, opts = {})
|
29
|
+
data, _status_code, _headers = create_bulk_upload_with_http_info(id, create_bulk_upload_request, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Create bulk upload record
|
34
|
+
# Create bulk upload record
|
35
|
+
# @param id [Integer] The company id
|
36
|
+
# @param create_bulk_upload_request [CreateBulkUploadRequest]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(V1EntitiesBulkUpload, Integer, Hash)>] V1EntitiesBulkUpload data, response status code and response headers
|
39
|
+
def create_bulk_upload_with_http_info(id, create_bulk_upload_request, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: CompanyApi.create_bulk_upload ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'id' is set
|
44
|
+
if @api_client.config.client_side_validation && id.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompanyApi.create_bulk_upload"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'create_bulk_upload_request' is set
|
48
|
+
if @api_client.config.client_side_validation && create_bulk_upload_request.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'create_bulk_upload_request' when calling CompanyApi.create_bulk_upload"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/companies/{id}/documents/bulk_uploads'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = opts[:header_params] || {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
+
# HTTP header 'Content-Type'
|
62
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
63
|
+
if !content_type.nil?
|
64
|
+
header_params['Content-Type'] = content_type
|
65
|
+
end
|
66
|
+
|
67
|
+
# form parameters
|
68
|
+
form_params = opts[:form_params] || {}
|
69
|
+
|
70
|
+
# http body (model)
|
71
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_bulk_upload_request)
|
72
|
+
|
73
|
+
# return_type
|
74
|
+
return_type = opts[:debug_return_type] || 'V1EntitiesBulkUpload'
|
75
|
+
|
76
|
+
# auth_names
|
77
|
+
auth_names = opts[:debug_auth_names] || []
|
78
|
+
|
79
|
+
new_options = opts.merge(
|
80
|
+
:operation => :"CompanyApi.create_bulk_upload",
|
81
|
+
:header_params => header_params,
|
82
|
+
:query_params => query_params,
|
83
|
+
:form_params => form_params,
|
84
|
+
:body => post_body,
|
85
|
+
:auth_names => auth_names,
|
86
|
+
:return_type => return_type
|
87
|
+
)
|
88
|
+
|
89
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
90
|
+
if @api_client.config.debugging
|
91
|
+
@api_client.config.logger.debug "API called: CompanyApi#create_bulk_upload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
92
|
+
end
|
93
|
+
return data, status_code, headers
|
94
|
+
end
|
95
|
+
|
96
|
+
# Create a BulkUploadDetail class record
|
97
|
+
# Create a BulkUploadDetail class record
|
98
|
+
# @param bulk_upload_id [String] The Bulk upload ID from which detail is associated with
|
99
|
+
# @param company_id [Integer]
|
100
|
+
# @param create_bulk_upload_detail_request [CreateBulkUploadDetailRequest]
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [V1EntitiesBulkUploadDetail]
|
103
|
+
def create_bulk_upload_detail(bulk_upload_id, company_id, create_bulk_upload_detail_request, opts = {})
|
104
|
+
data, _status_code, _headers = create_bulk_upload_detail_with_http_info(bulk_upload_id, company_id, create_bulk_upload_detail_request, opts)
|
105
|
+
data
|
106
|
+
end
|
107
|
+
|
108
|
+
# Create a BulkUploadDetail class record
|
109
|
+
# Create a BulkUploadDetail class record
|
110
|
+
# @param bulk_upload_id [String] The Bulk upload ID from which detail is associated with
|
111
|
+
# @param company_id [Integer]
|
112
|
+
# @param create_bulk_upload_detail_request [CreateBulkUploadDetailRequest]
|
113
|
+
# @param [Hash] opts the optional parameters
|
114
|
+
# @return [Array<(V1EntitiesBulkUploadDetail, Integer, Hash)>] V1EntitiesBulkUploadDetail data, response status code and response headers
|
115
|
+
def create_bulk_upload_detail_with_http_info(bulk_upload_id, company_id, create_bulk_upload_detail_request, opts = {})
|
116
|
+
if @api_client.config.debugging
|
117
|
+
@api_client.config.logger.debug 'Calling API: CompanyApi.create_bulk_upload_detail ...'
|
118
|
+
end
|
119
|
+
# verify the required parameter 'bulk_upload_id' is set
|
120
|
+
if @api_client.config.client_side_validation && bulk_upload_id.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'bulk_upload_id' when calling CompanyApi.create_bulk_upload_detail"
|
122
|
+
end
|
123
|
+
# verify the required parameter 'company_id' is set
|
124
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
125
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompanyApi.create_bulk_upload_detail"
|
126
|
+
end
|
127
|
+
# verify the required parameter 'create_bulk_upload_detail_request' is set
|
128
|
+
if @api_client.config.client_side_validation && create_bulk_upload_detail_request.nil?
|
129
|
+
fail ArgumentError, "Missing the required parameter 'create_bulk_upload_detail_request' when calling CompanyApi.create_bulk_upload_detail"
|
130
|
+
end
|
131
|
+
# resource path
|
132
|
+
local_var_path = '/companies/{company_id}/documents/bulk_uploads/{bulk_upload_id}/details'.sub('{' + 'bulk_upload_id' + '}', CGI.escape(bulk_upload_id.to_s)).sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
133
|
+
|
134
|
+
# query parameters
|
135
|
+
query_params = opts[:query_params] || {}
|
136
|
+
|
137
|
+
# header parameters
|
138
|
+
header_params = opts[:header_params] || {}
|
139
|
+
# HTTP header 'Accept' (if needed)
|
140
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
141
|
+
# HTTP header 'Content-Type'
|
142
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
143
|
+
if !content_type.nil?
|
144
|
+
header_params['Content-Type'] = content_type
|
145
|
+
end
|
146
|
+
|
147
|
+
# form parameters
|
148
|
+
form_params = opts[:form_params] || {}
|
149
|
+
|
150
|
+
# http body (model)
|
151
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_bulk_upload_detail_request)
|
152
|
+
|
153
|
+
# return_type
|
154
|
+
return_type = opts[:debug_return_type] || 'V1EntitiesBulkUploadDetail'
|
155
|
+
|
156
|
+
# auth_names
|
157
|
+
auth_names = opts[:debug_auth_names] || []
|
158
|
+
|
159
|
+
new_options = opts.merge(
|
160
|
+
:operation => :"CompanyApi.create_bulk_upload_detail",
|
161
|
+
:header_params => header_params,
|
162
|
+
:query_params => query_params,
|
163
|
+
:form_params => form_params,
|
164
|
+
:body => post_body,
|
165
|
+
:auth_names => auth_names,
|
166
|
+
:return_type => return_type
|
167
|
+
)
|
168
|
+
|
169
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
170
|
+
if @api_client.config.debugging
|
171
|
+
@api_client.config.logger.debug "API called: CompanyApi#create_bulk_upload_detail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
172
|
+
end
|
173
|
+
return data, status_code, headers
|
174
|
+
end
|
175
|
+
|
22
176
|
# Create new company
|
23
177
|
# Creates a new company.
|
24
178
|
# @param create_company_request [CreateCompanyRequest]
|
@@ -19,6 +19,138 @@ module DealMakerAPI
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Displays the express wire instructions for an investor on a deal
|
23
|
+
# Get express wire instructions
|
24
|
+
# @param id [Integer]
|
25
|
+
# @param investor_id [Integer]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [V1EntitiesExpressWireInstruction]
|
28
|
+
def get_deals_id_investors_investor_id_payments_express_wire_instructions(id, investor_id, opts = {})
|
29
|
+
data, _status_code, _headers = get_deals_id_investors_investor_id_payments_express_wire_instructions_with_http_info(id, investor_id, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Displays the express wire instructions for an investor on a deal
|
34
|
+
# Get express wire instructions
|
35
|
+
# @param id [Integer]
|
36
|
+
# @param investor_id [Integer]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(V1EntitiesExpressWireInstruction, Integer, Hash)>] V1EntitiesExpressWireInstruction data, response status code and response headers
|
39
|
+
def get_deals_id_investors_investor_id_payments_express_wire_instructions_with_http_info(id, investor_id, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_deals_id_investors_investor_id_payments_express_wire_instructions ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'id' is set
|
44
|
+
if @api_client.config.client_side_validation && id.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_deals_id_investors_investor_id_payments_express_wire_instructions"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'investor_id' is set
|
48
|
+
if @api_client.config.client_side_validation && investor_id.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'investor_id' when calling DefaultApi.get_deals_id_investors_investor_id_payments_express_wire_instructions"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/deals/{id}/investors/{investor_id}/payments/express_wire/instructions'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'investor_id' + '}', CGI.escape(investor_id.to_s))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = opts[:header_params] || {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
+
|
62
|
+
# form parameters
|
63
|
+
form_params = opts[:form_params] || {}
|
64
|
+
|
65
|
+
# http body (model)
|
66
|
+
post_body = opts[:debug_body]
|
67
|
+
|
68
|
+
# return_type
|
69
|
+
return_type = opts[:debug_return_type] || 'V1EntitiesExpressWireInstruction'
|
70
|
+
|
71
|
+
# auth_names
|
72
|
+
auth_names = opts[:debug_auth_names] || []
|
73
|
+
|
74
|
+
new_options = opts.merge(
|
75
|
+
:operation => :"DefaultApi.get_deals_id_investors_investor_id_payments_express_wire_instructions",
|
76
|
+
:header_params => header_params,
|
77
|
+
:query_params => query_params,
|
78
|
+
:form_params => form_params,
|
79
|
+
:body => post_body,
|
80
|
+
:auth_names => auth_names,
|
81
|
+
:return_type => return_type
|
82
|
+
)
|
83
|
+
|
84
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
85
|
+
if @api_client.config.debugging
|
86
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_deals_id_investors_investor_id_payments_express_wire_instructions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
+
end
|
88
|
+
return data, status_code, headers
|
89
|
+
end
|
90
|
+
|
91
|
+
# Displays the express wire instructions for all the investors on a deal
|
92
|
+
# Get list of express wire instructions
|
93
|
+
# @param id [Integer]
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [V1EntitiesExpressWireInstructions]
|
96
|
+
def get_deals_id_investors_payments_express_wire_instructions(id, opts = {})
|
97
|
+
data, _status_code, _headers = get_deals_id_investors_payments_express_wire_instructions_with_http_info(id, opts)
|
98
|
+
data
|
99
|
+
end
|
100
|
+
|
101
|
+
# Displays the express wire instructions for all the investors on a deal
|
102
|
+
# Get list of express wire instructions
|
103
|
+
# @param id [Integer]
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @return [Array<(V1EntitiesExpressWireInstructions, Integer, Hash)>] V1EntitiesExpressWireInstructions data, response status code and response headers
|
106
|
+
def get_deals_id_investors_payments_express_wire_instructions_with_http_info(id, opts = {})
|
107
|
+
if @api_client.config.debugging
|
108
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_deals_id_investors_payments_express_wire_instructions ...'
|
109
|
+
end
|
110
|
+
# verify the required parameter 'id' is set
|
111
|
+
if @api_client.config.client_side_validation && id.nil?
|
112
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_deals_id_investors_payments_express_wire_instructions"
|
113
|
+
end
|
114
|
+
# resource path
|
115
|
+
local_var_path = '/deals/{id}/investors/payments/express_wire/instructions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
116
|
+
|
117
|
+
# query parameters
|
118
|
+
query_params = opts[:query_params] || {}
|
119
|
+
|
120
|
+
# header parameters
|
121
|
+
header_params = opts[:header_params] || {}
|
122
|
+
# HTTP header 'Accept' (if needed)
|
123
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
124
|
+
|
125
|
+
# form parameters
|
126
|
+
form_params = opts[:form_params] || {}
|
127
|
+
|
128
|
+
# http body (model)
|
129
|
+
post_body = opts[:debug_body]
|
130
|
+
|
131
|
+
# return_type
|
132
|
+
return_type = opts[:debug_return_type] || 'V1EntitiesExpressWireInstructions'
|
133
|
+
|
134
|
+
# auth_names
|
135
|
+
auth_names = opts[:debug_auth_names] || []
|
136
|
+
|
137
|
+
new_options = opts.merge(
|
138
|
+
:operation => :"DefaultApi.get_deals_id_investors_payments_express_wire_instructions",
|
139
|
+
:header_params => header_params,
|
140
|
+
:query_params => query_params,
|
141
|
+
:form_params => form_params,
|
142
|
+
:body => post_body,
|
143
|
+
:auth_names => auth_names,
|
144
|
+
:return_type => return_type
|
145
|
+
)
|
146
|
+
|
147
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
148
|
+
if @api_client.config.debugging
|
149
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_deals_id_investors_payments_express_wire_instructions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
150
|
+
end
|
151
|
+
return data, status_code, headers
|
152
|
+
end
|
153
|
+
|
22
154
|
# Returns a list of webhook subscription which is associated to the user
|
23
155
|
# Returns a list of webhook subscription
|
24
156
|
# @param [Hash] opts the optional parameters
|