DealMakerAPI 0.100.4 → 0.101.1
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/README.md +5 -5
- data/docs/InvestorApi.md +2 -2
- data/docs/RequestNewDocumentRequest.md +3 -1
- data/lib/DealMakerAPI/api/investor_api.rb +1 -1
- data/lib/DealMakerAPI/models/request_new_document_request.rb +50 -6
- data/lib/DealMakerAPI/version.rb +1 -1
- data/spec/models/request_new_document_request_spec.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16f9cf4fc2be2858fb92b92b42dfc6f3e1fa4ac1db1167587099131729f00f7c
|
4
|
+
data.tar.gz: a549857df951b1330d3ffa272d2093989f3b53ca8b5a63748ec61998653a0207
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e6a47d8abab6a8abdf88756e4355a1a8a720ff59e6468ff2ac360fe5f6bc86b25a56384fcbb6c619a3d83f208521096520beaca95182595537cf0ee7b0bc98f
|
7
|
+
data.tar.gz: 06a20c4babfc5f6fd8a9423101c5a9a6e4d8275de3ae47432a49b1ac091b4659ff252929232742dce77896e4d099b80b9ce3b1de7efbab9ea2f853981b618d59
|
data/README.md
CHANGED
@@ -338,7 +338,7 @@ Given the high number of updates our platform performs on any investor, we’ve
|
|
338
338
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
339
339
|
|
340
340
|
- API version: 1.75.0
|
341
|
-
- Package version: 0.
|
341
|
+
- Package version: 0.101.1
|
342
342
|
- Generator version: 7.5.0-SNAPSHOT
|
343
343
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
344
344
|
|
@@ -355,16 +355,16 @@ gem build DealMakerAPI.gemspec
|
|
355
355
|
Then either install the gem locally:
|
356
356
|
|
357
357
|
```shell
|
358
|
-
gem install ./DealMakerAPI-0.
|
358
|
+
gem install ./DealMakerAPI-0.101.1.gem
|
359
359
|
```
|
360
360
|
|
361
|
-
(for development, run `gem install --dev ./DealMakerAPI-0.
|
361
|
+
(for development, run `gem install --dev ./DealMakerAPI-0.101.1.gem` to install the development dependencies)
|
362
362
|
|
363
363
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
364
364
|
|
365
365
|
Finally add this to the Gemfile:
|
366
366
|
|
367
|
-
gem 'DealMakerAPI', '~> 0.
|
367
|
+
gem 'DealMakerAPI', '~> 0.101.1'
|
368
368
|
|
369
369
|
### Install from Git
|
370
370
|
|
@@ -472,7 +472,7 @@ Class | Method | HTTP request | Description
|
|
472
472
|
*DealMakerAPI::InvestorApi* | [**get_investor_otp_link**](docs/InvestorApi.md#get_investor_otp_link) | **GET** /deals/{id}/investors/{investor_id}/otp_access_link | Get OTP access link for deal investor
|
473
473
|
*DealMakerAPI::InvestorApi* | [**list_investors**](docs/InvestorApi.md#list_investors) | **GET** /deals/{id}/investors | List deal investors
|
474
474
|
*DealMakerAPI::InvestorApi* | [**patch_investor**](docs/InvestorApi.md#patch_investor) | **PATCH** /deals/{id}/investors/{investor_id} | Patch a deal investor
|
475
|
-
*DealMakerAPI::InvestorApi* | [**request_new_document**](docs/InvestorApi.md#request_new_document) | **POST** /deals/{id}/investors/{investor_id}/background_checks/{search_entity_id}/
|
475
|
+
*DealMakerAPI::InvestorApi* | [**request_new_document**](docs/InvestorApi.md#request_new_document) | **POST** /deals/{id}/investors/{investor_id}/background_checks/{search_entity_id}/send_review | Request new document for a specific entity
|
476
476
|
*DealMakerAPI::InvestorApi* | [**run_background_search**](docs/InvestorApi.md#run_background_search) | **POST** /deals/{id}/investors/{investor_id}/background_checks/run | Run Alloy background search for the investor
|
477
477
|
*DealMakerAPI::InvestorApi* | [**update_investor**](docs/InvestorApi.md#update_investor) | **PUT** /deals/{id}/investors/{investor_id} | Update a deal investor
|
478
478
|
*DealMakerAPI::InvestorProfileApi* | [**create_corporation_profile**](docs/InvestorProfileApi.md#create_corporation_profile) | **POST** /investor_profiles/corporations | Create new corporation investor profile.
|
data/docs/InvestorApi.md
CHANGED
@@ -18,7 +18,7 @@ All URIs are relative to *http://api.dealmaker.tech*
|
|
18
18
|
| [**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 |
|
19
19
|
| [**list_investors**](InvestorApi.md#list_investors) | **GET** /deals/{id}/investors | List deal investors |
|
20
20
|
| [**patch_investor**](InvestorApi.md#patch_investor) | **PATCH** /deals/{id}/investors/{investor_id} | Patch a deal investor |
|
21
|
-
| [**request_new_document**](InvestorApi.md#request_new_document) | **POST** /deals/{id}/investors/{investor_id}/background_checks/{search_entity_id}/
|
21
|
+
| [**request_new_document**](InvestorApi.md#request_new_document) | **POST** /deals/{id}/investors/{investor_id}/background_checks/{search_entity_id}/send_review | Request new document for a specific entity |
|
22
22
|
| [**run_background_search**](InvestorApi.md#run_background_search) | **POST** /deals/{id}/investors/{investor_id}/background_checks/run | Run Alloy background search for the investor |
|
23
23
|
| [**update_investor**](InvestorApi.md#update_investor) | **PUT** /deals/{id}/investors/{investor_id} | Update a deal investor |
|
24
24
|
|
@@ -1015,7 +1015,7 @@ api_instance = DealMakerAPI::InvestorApi.new
|
|
1015
1015
|
id = 56 # Integer |
|
1016
1016
|
investor_id = 56 # Integer |
|
1017
1017
|
search_entity_id = 56 # Integer |
|
1018
|
-
request_new_document_request = DealMakerAPI::RequestNewDocumentRequest.new({
|
1018
|
+
request_new_document_request = DealMakerAPI::RequestNewDocumentRequest.new({type: 'incomplete'}) # RequestNewDocumentRequest |
|
1019
1019
|
|
1020
1020
|
begin
|
1021
1021
|
# Request new document for a specific entity
|
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
7
|
+
| **type** | **String** | The type of request. | |
|
8
|
+
| **message** | **String** | The message added by the reviewer. | [optional] |
|
8
9
|
|
9
10
|
## Example
|
10
11
|
|
@@ -12,6 +13,7 @@
|
|
12
13
|
require 'DealMakerAPI'
|
13
14
|
|
14
15
|
instance = DealMakerAPI::RequestNewDocumentRequest.new(
|
16
|
+
type: null,
|
15
17
|
message: null
|
16
18
|
)
|
17
19
|
```
|
@@ -1098,7 +1098,7 @@ module DealMakerAPI
|
|
1098
1098
|
fail ArgumentError, "Missing the required parameter 'request_new_document_request' when calling InvestorApi.request_new_document"
|
1099
1099
|
end
|
1100
1100
|
# resource path
|
1101
|
-
local_var_path = '/deals/{id}/investors/{investor_id}/background_checks/{search_entity_id}/
|
1101
|
+
local_var_path = '/deals/{id}/investors/{investor_id}/background_checks/{search_entity_id}/send_review'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'investor_id' + '}', CGI.escape(investor_id.to_s)).sub('{' + 'search_entity_id' + '}', CGI.escape(search_entity_id.to_s))
|
1102
1102
|
|
1103
1103
|
# query parameters
|
1104
1104
|
query_params = opts[:query_params] || {}
|
@@ -15,12 +15,38 @@ require 'time'
|
|
15
15
|
|
16
16
|
module DealMakerAPI
|
17
17
|
class RequestNewDocumentRequest
|
18
|
+
# The type of request.
|
19
|
+
attr_accessor :type
|
20
|
+
|
18
21
|
# The message added by the reviewer.
|
19
22
|
attr_accessor :message
|
20
23
|
|
24
|
+
class EnumAttributeValidator
|
25
|
+
attr_reader :datatype
|
26
|
+
attr_reader :allowable_values
|
27
|
+
|
28
|
+
def initialize(datatype, allowable_values)
|
29
|
+
@allowable_values = allowable_values.map do |value|
|
30
|
+
case datatype.to_s
|
31
|
+
when /Integer/i
|
32
|
+
value.to_i
|
33
|
+
when /Float/i
|
34
|
+
value.to_f
|
35
|
+
else
|
36
|
+
value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
def valid?(value)
|
42
|
+
!value || allowable_values.include?(value)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
21
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
47
|
def self.attribute_map
|
23
48
|
{
|
49
|
+
:'type' => :'type',
|
24
50
|
:'message' => :'message'
|
25
51
|
}
|
26
52
|
end
|
@@ -33,6 +59,7 @@ module DealMakerAPI
|
|
33
59
|
# Attribute type mapping.
|
34
60
|
def self.openapi_types
|
35
61
|
{
|
62
|
+
:'type' => :'String',
|
36
63
|
:'message' => :'String'
|
37
64
|
}
|
38
65
|
end
|
@@ -58,10 +85,14 @@ module DealMakerAPI
|
|
58
85
|
h[k.to_sym] = v
|
59
86
|
}
|
60
87
|
|
88
|
+
if attributes.key?(:'type')
|
89
|
+
self.type = attributes[:'type']
|
90
|
+
else
|
91
|
+
self.type = nil
|
92
|
+
end
|
93
|
+
|
61
94
|
if attributes.key?(:'message')
|
62
95
|
self.message = attributes[:'message']
|
63
|
-
else
|
64
|
-
self.message = nil
|
65
96
|
end
|
66
97
|
end
|
67
98
|
|
@@ -70,8 +101,8 @@ module DealMakerAPI
|
|
70
101
|
def list_invalid_properties
|
71
102
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
72
103
|
invalid_properties = Array.new
|
73
|
-
if @
|
74
|
-
invalid_properties.push('invalid value for "
|
104
|
+
if @type.nil?
|
105
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
75
106
|
end
|
76
107
|
|
77
108
|
invalid_properties
|
@@ -81,15 +112,28 @@ module DealMakerAPI
|
|
81
112
|
# @return true if the model is valid
|
82
113
|
def valid?
|
83
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
84
|
-
return false if @
|
115
|
+
return false if @type.nil?
|
116
|
+
type_validator = EnumAttributeValidator.new('String', ["incomplete", "approved", "additional_docs_requested", "flagged"])
|
117
|
+
return false unless type_validator.valid?(@type)
|
85
118
|
true
|
86
119
|
end
|
87
120
|
|
121
|
+
# Custom attribute writer method checking allowed values (enum).
|
122
|
+
# @param [Object] type Object to be assigned
|
123
|
+
def type=(type)
|
124
|
+
validator = EnumAttributeValidator.new('String', ["incomplete", "approved", "additional_docs_requested", "flagged"])
|
125
|
+
unless validator.valid?(type)
|
126
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
127
|
+
end
|
128
|
+
@type = type
|
129
|
+
end
|
130
|
+
|
88
131
|
# Checks equality by comparing each attribute.
|
89
132
|
# @param [Object] Object to be compared
|
90
133
|
def ==(o)
|
91
134
|
return true if self.equal?(o)
|
92
135
|
self.class == o.class &&
|
136
|
+
type == o.type &&
|
93
137
|
message == o.message
|
94
138
|
end
|
95
139
|
|
@@ -102,7 +146,7 @@ module DealMakerAPI
|
|
102
146
|
# Calculates hash code according to all attributes.
|
103
147
|
# @return [Integer] Hash code
|
104
148
|
def hash
|
105
|
-
[message].hash
|
149
|
+
[type, message].hash
|
106
150
|
end
|
107
151
|
|
108
152
|
# Builds the object from hash
|
data/lib/DealMakerAPI/version.rb
CHANGED
@@ -27,6 +27,16 @@ describe DealMakerAPI::RequestNewDocumentRequest do
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
+
describe 'test attribute "type"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["incomplete", "approved", "additional_docs_requested", "flagged"])
|
34
|
+
# validator.allowable_values.each do |value|
|
35
|
+
# expect { instance.type = value }.not_to raise_error
|
36
|
+
# end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
30
40
|
describe 'test attribute "message"' do
|
31
41
|
it 'should work' do
|
32
42
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: DealMakerAPI
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.101.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DealMaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|