DealMakerAPI 0.100.4 → 0.101.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d444975581e57c29f803fd811637c14a5d54485538a422328db1e1f8670252ba
4
- data.tar.gz: 8ce279b1d7a89c437dbd028dc5454cddc9384d02d6d75d94c5882c267ec5b442
3
+ metadata.gz: b07b09510ffc5abbfaf6ce4fca554fd01c2ecb1aa00f815b85de2b7cd7830452
4
+ data.tar.gz: ceed1aa79cf61997a0b42100ff54bc9a4590eaa90efdcb26ecf9dc98f1525d8b
5
5
  SHA512:
6
- metadata.gz: 9b38ddbb7bf107cfb1c8e8d1d4e03bded896023386ee475e95f3de3a0aaa9c98261a16c3c8326dc319bf8ae8e6fcfc62d31e3b352c9a83d629da8926517a50f1
7
- data.tar.gz: 7bd76dff04199e42f388b12b0c4704055ac8e87a388e0ddbd7ac9b80a322550b7504a54b29bcaebe0f5e329e3df1506594f73559ec9986661cad57b79c30204a
6
+ metadata.gz: b1c1018a9795db6216910f421d9790fb99494a08ea3453ad6be49e92b8d2bbd5c4d8e617067b3677d8aa727ef08fa30b77360875f49cb2b97c766a152797a90e
7
+ data.tar.gz: 653ca54a5fc6b2a52b780a45d789d916dac2e05d1aa7509000f4ee26e51bc89f18820afce3db6211cfa7e00e066c113ca43c2fd48ea21056ff445bdc7644141d
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.100.4
341
+ - Package version: 0.101.0
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.100.4.gem
358
+ gem install ./DealMakerAPI-0.101.0.gem
359
359
  ```
360
360
 
361
- (for development, run `gem install --dev ./DealMakerAPI-0.100.4.gem` to install the development dependencies)
361
+ (for development, run `gem install --dev ./DealMakerAPI-0.101.0.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.100.4'
367
+ gem 'DealMakerAPI', '~> 0.101.0'
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}/request_new_document | Request new document for a specific entity
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}/request_new_document | Request new document for a specific entity |
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({message: 'message_example'}) # RequestNewDocumentRequest |
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
- | **message** | **String** | The message added by the reviewer. | |
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}/request_new_document'.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))
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 @message.nil?
74
- invalid_properties.push('invalid value for "message", message cannot be nil.')
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 @message.nil?
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
@@ -11,5 +11,5 @@ Generator version: 7.5.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module DealMakerAPI
14
- VERSION = '0.100.4'
14
+ VERSION = '0.101.0'
15
15
  end
@@ -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.100.4
4
+ version: 0.101.0
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-09 00:00:00.000000000 Z
11
+ date: 2024-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus