DealMakerAPI 0.83.0 → 0.83.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 +4 -4
- data/lib/DealMakerAPI/models/add506c_document_request.rb +14 -17
- data/lib/DealMakerAPI/models/add_document_request.rb +14 -17
- data/lib/DealMakerAPI/models/create_bulk_upload_detail_request.rb +16 -17
- data/lib/DealMakerAPI/models/create_bulk_upload_request.rb +16 -17
- data/lib/DealMakerAPI/models/create_company_request.rb +24 -17
- data/lib/DealMakerAPI/models/create_corporation_profile_request.rb +14 -17
- data/lib/DealMakerAPI/models/create_deal_setup_request.rb +18 -17
- data/lib/DealMakerAPI/models/create_individual_profile_request.rb +14 -17
- data/lib/DealMakerAPI/models/create_investor_request.rb +14 -17
- data/lib/DealMakerAPI/models/create_joint_profile_request.rb +14 -17
- data/lib/DealMakerAPI/models/create_trust_profile_request.rb +14 -17
- data/lib/DealMakerAPI/models/edit_investor_tags_request.rb +14 -17
- data/lib/DealMakerAPI/models/generate_url_request.rb +14 -17
- data/lib/DealMakerAPI/models/patch_corporation_profile_request.rb +12 -17
- data/lib/DealMakerAPI/models/patch_individual_profile_request.rb +12 -17
- data/lib/DealMakerAPI/models/patch_investor_request.rb +14 -17
- data/lib/DealMakerAPI/models/patch_joint_profile_request.rb +12 -17
- data/lib/DealMakerAPI/models/patch_trust_profile_request.rb +12 -17
- data/lib/DealMakerAPI/models/post_webhooks_request.rb +18 -17
- data/lib/DealMakerAPI/models/put_webhooks_id_request.rb +12 -17
- data/lib/DealMakerAPI/models/update_investor_request.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_address.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_addresses.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_attachment.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_background_check_search.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_bulk_upload.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_bulk_upload_detail.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_company.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_company_deal.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_company_deals.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_deal.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_deal_enterprise.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_deal_funding_metrics.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_deal_investor_metrics.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_deal_issuer.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_deal_setup.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_deal_setup_user.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_deals.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_express_wire_instruction.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_express_wire_instructions.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investor.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investor_otp_access_link.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_address.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_corporation.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_account_holder.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_corporation.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_primary_holder.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_trust.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_individual.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_item.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_joint.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_owner.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_trust.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investor_profiles.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investor_user.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_investors.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_presigned_url_result.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_shareholder.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_shareholders.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_shareholders_tags.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_subscription_agreement.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_webhooks_deal.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_webhooks_security_token.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deal.rb +12 -17
- data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deals.rb +12 -17
- data/lib/DealMakerAPI/version.rb +1 -1
- 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: e5f0ffcaf8bf577649326bcf9df32dd4019be5ecf2912a4c60940d6c54683731
|
|
4
|
+
data.tar.gz: e5a0bfb8b170fc909bca7b52f44a52f001123d5126140678cfdf74fd72f90c3b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bccd73585348198e6021bc53419bc72afe56824095692986f91263a631b7945b0f16302d5c08b1bd46f942ee45efe1f158d5217abbd0ea4b84e0a24f847ce71c
|
|
7
|
+
data.tar.gz: bc363564f7b151a5972c7bda5ce319c69ab6d04705675aa2b264592ca9d24a6e26a47e59c67db7cf2d85cdb5235cb9d020ec56acf260d954c10644dacf2fd429
|
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.83.
|
|
341
|
+
- Package version: 0.83.1
|
|
342
342
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
343
343
|
|
|
344
344
|
## Installation
|
|
@@ -354,16 +354,16 @@ gem build DealMakerAPI.gemspec
|
|
|
354
354
|
Then either install the gem locally:
|
|
355
355
|
|
|
356
356
|
```shell
|
|
357
|
-
gem install ./DealMakerAPI-0.83.
|
|
357
|
+
gem install ./DealMakerAPI-0.83.1.gem
|
|
358
358
|
```
|
|
359
359
|
|
|
360
|
-
(for development, run `gem install --dev ./DealMakerAPI-0.83.
|
|
360
|
+
(for development, run `gem install --dev ./DealMakerAPI-0.83.1.gem` to install the development dependencies)
|
|
361
361
|
|
|
362
362
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
363
363
|
|
|
364
364
|
Finally add this to the Gemfile:
|
|
365
365
|
|
|
366
|
-
gem 'DealMakerAPI', '~> 0.83.
|
|
366
|
+
gem 'DealMakerAPI', '~> 0.83.1'
|
|
367
367
|
|
|
368
368
|
### Install from Git
|
|
369
369
|
|
|
@@ -65,6 +65,8 @@ module DealMakerAPI
|
|
|
65
65
|
|
|
66
66
|
if attributes.key?(:'file')
|
|
67
67
|
self.file = attributes[:'file']
|
|
68
|
+
else
|
|
69
|
+
self.file = nil
|
|
68
70
|
end
|
|
69
71
|
|
|
70
72
|
if attributes.key?(:'caption')
|
|
@@ -75,6 +77,7 @@ module DealMakerAPI
|
|
|
75
77
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
76
78
|
# @return Array for valid properties with the reasons
|
|
77
79
|
def list_invalid_properties
|
|
80
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
78
81
|
invalid_properties = Array.new
|
|
79
82
|
if @file.nil?
|
|
80
83
|
invalid_properties.push('invalid value for "file", file cannot be nil.')
|
|
@@ -86,6 +89,7 @@ module DealMakerAPI
|
|
|
86
89
|
# Check to see if the all the properties in the model are valid
|
|
87
90
|
# @return true if the model is valid
|
|
88
91
|
def valid?
|
|
92
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
89
93
|
return false if @file.nil?
|
|
90
94
|
true
|
|
91
95
|
end
|
|
@@ -115,37 +119,30 @@ module DealMakerAPI
|
|
|
115
119
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
116
120
|
# @return [Object] Returns the model itself
|
|
117
121
|
def self.build_from_hash(attributes)
|
|
118
|
-
new.build_from_hash(attributes)
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
# Builds the object from hash
|
|
122
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
123
|
-
# @return [Object] Returns the model itself
|
|
124
|
-
def build_from_hash(attributes)
|
|
125
122
|
return nil unless attributes.is_a?(Hash)
|
|
126
123
|
attributes = attributes.transform_keys(&:to_sym)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
transformed_hash = {}
|
|
125
|
+
openapi_types.each_pair do |key, type|
|
|
126
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
127
|
+
transformed_hash["#{key}"] = nil
|
|
130
128
|
elsif type =~ /\AArray<(.*)>/i
|
|
131
129
|
# check to ensure the input is an array given that the attribute
|
|
132
130
|
# is documented as an array but the input is not
|
|
133
|
-
if attributes[
|
|
134
|
-
|
|
131
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
132
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
135
133
|
end
|
|
136
|
-
elsif !attributes[
|
|
137
|
-
|
|
134
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
135
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
138
136
|
end
|
|
139
137
|
end
|
|
140
|
-
|
|
141
|
-
self
|
|
138
|
+
new(transformed_hash)
|
|
142
139
|
end
|
|
143
140
|
|
|
144
141
|
# Deserializes the data based on type
|
|
145
142
|
# @param string type Data type
|
|
146
143
|
# @param string value Value to be deserialized
|
|
147
144
|
# @return [Object] Deserialized data
|
|
148
|
-
def _deserialize(type, value)
|
|
145
|
+
def self._deserialize(type, value)
|
|
149
146
|
case type.to_sym
|
|
150
147
|
when :Time
|
|
151
148
|
Time.parse(value)
|
|
@@ -103,6 +103,8 @@ module DealMakerAPI
|
|
|
103
103
|
|
|
104
104
|
if attributes.key?(:'file')
|
|
105
105
|
self.file = attributes[:'file']
|
|
106
|
+
else
|
|
107
|
+
self.file = nil
|
|
106
108
|
end
|
|
107
109
|
|
|
108
110
|
if attributes.key?(:'caption')
|
|
@@ -117,6 +119,7 @@ module DealMakerAPI
|
|
|
117
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
118
120
|
# @return Array for valid properties with the reasons
|
|
119
121
|
def list_invalid_properties
|
|
122
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
120
123
|
invalid_properties = Array.new
|
|
121
124
|
if @type.nil?
|
|
122
125
|
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
@@ -132,6 +135,7 @@ module DealMakerAPI
|
|
|
132
135
|
# Check to see if the all the properties in the model are valid
|
|
133
136
|
# @return true if the model is valid
|
|
134
137
|
def valid?
|
|
138
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
135
139
|
return false if @type.nil?
|
|
136
140
|
type_validator = EnumAttributeValidator.new('String', ["regular", "AML/KYC"])
|
|
137
141
|
return false unless type_validator.valid?(@type)
|
|
@@ -176,37 +180,30 @@ module DealMakerAPI
|
|
|
176
180
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
177
181
|
# @return [Object] Returns the model itself
|
|
178
182
|
def self.build_from_hash(attributes)
|
|
179
|
-
new.build_from_hash(attributes)
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
# Builds the object from hash
|
|
183
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
184
|
-
# @return [Object] Returns the model itself
|
|
185
|
-
def build_from_hash(attributes)
|
|
186
183
|
return nil unless attributes.is_a?(Hash)
|
|
187
184
|
attributes = attributes.transform_keys(&:to_sym)
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
185
|
+
transformed_hash = {}
|
|
186
|
+
openapi_types.each_pair do |key, type|
|
|
187
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
188
|
+
transformed_hash["#{key}"] = nil
|
|
191
189
|
elsif type =~ /\AArray<(.*)>/i
|
|
192
190
|
# check to ensure the input is an array given that the attribute
|
|
193
191
|
# is documented as an array but the input is not
|
|
194
|
-
if attributes[
|
|
195
|
-
|
|
192
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
193
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
196
194
|
end
|
|
197
|
-
elsif !attributes[
|
|
198
|
-
|
|
195
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
196
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
199
197
|
end
|
|
200
198
|
end
|
|
201
|
-
|
|
202
|
-
self
|
|
199
|
+
new(transformed_hash)
|
|
203
200
|
end
|
|
204
201
|
|
|
205
202
|
# Deserializes the data based on type
|
|
206
203
|
# @param string type Data type
|
|
207
204
|
# @param string value Value to be deserialized
|
|
208
205
|
# @return [Object] Deserialized data
|
|
209
|
-
def _deserialize(type, value)
|
|
206
|
+
def self._deserialize(type, value)
|
|
210
207
|
case type.to_sym
|
|
211
208
|
when :Time
|
|
212
209
|
Time.parse(value)
|
|
@@ -70,10 +70,14 @@ module DealMakerAPI
|
|
|
70
70
|
|
|
71
71
|
if attributes.key?(:'file_key')
|
|
72
72
|
self.file_key = attributes[:'file_key']
|
|
73
|
+
else
|
|
74
|
+
self.file_key = nil
|
|
73
75
|
end
|
|
74
76
|
|
|
75
77
|
if attributes.key?(:'file_name')
|
|
76
78
|
self.file_name = attributes[:'file_name']
|
|
79
|
+
else
|
|
80
|
+
self.file_name = nil
|
|
77
81
|
end
|
|
78
82
|
|
|
79
83
|
if attributes.key?(:'status')
|
|
@@ -84,6 +88,7 @@ module DealMakerAPI
|
|
|
84
88
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
85
89
|
# @return Array for valid properties with the reasons
|
|
86
90
|
def list_invalid_properties
|
|
91
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
87
92
|
invalid_properties = Array.new
|
|
88
93
|
if @file_key.nil?
|
|
89
94
|
invalid_properties.push('invalid value for "file_key", file_key cannot be nil.')
|
|
@@ -99,6 +104,7 @@ module DealMakerAPI
|
|
|
99
104
|
# Check to see if the all the properties in the model are valid
|
|
100
105
|
# @return true if the model is valid
|
|
101
106
|
def valid?
|
|
107
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
102
108
|
return false if @file_key.nil?
|
|
103
109
|
return false if @file_name.nil?
|
|
104
110
|
true
|
|
@@ -130,37 +136,30 @@ module DealMakerAPI
|
|
|
130
136
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
137
|
# @return [Object] Returns the model itself
|
|
132
138
|
def self.build_from_hash(attributes)
|
|
133
|
-
new.build_from_hash(attributes)
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
# Builds the object from hash
|
|
137
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
138
|
-
# @return [Object] Returns the model itself
|
|
139
|
-
def build_from_hash(attributes)
|
|
140
139
|
return nil unless attributes.is_a?(Hash)
|
|
141
140
|
attributes = attributes.transform_keys(&:to_sym)
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
transformed_hash = {}
|
|
142
|
+
openapi_types.each_pair do |key, type|
|
|
143
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
144
|
+
transformed_hash["#{key}"] = nil
|
|
145
145
|
elsif type =~ /\AArray<(.*)>/i
|
|
146
146
|
# check to ensure the input is an array given that the attribute
|
|
147
147
|
# is documented as an array but the input is not
|
|
148
|
-
if attributes[
|
|
149
|
-
|
|
148
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
149
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
150
150
|
end
|
|
151
|
-
elsif !attributes[
|
|
152
|
-
|
|
151
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
152
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
153
153
|
end
|
|
154
154
|
end
|
|
155
|
-
|
|
156
|
-
self
|
|
155
|
+
new(transformed_hash)
|
|
157
156
|
end
|
|
158
157
|
|
|
159
158
|
# Deserializes the data based on type
|
|
160
159
|
# @param string type Data type
|
|
161
160
|
# @param string value Value to be deserialized
|
|
162
161
|
# @return [Object] Deserialized data
|
|
163
|
-
def _deserialize(type, value)
|
|
162
|
+
def self._deserialize(type, value)
|
|
164
163
|
case type.to_sym
|
|
165
164
|
when :Time
|
|
166
165
|
Time.parse(value)
|
|
@@ -65,16 +65,21 @@ module DealMakerAPI
|
|
|
65
65
|
|
|
66
66
|
if attributes.key?(:'file_identifier')
|
|
67
67
|
self.file_identifier = attributes[:'file_identifier']
|
|
68
|
+
else
|
|
69
|
+
self.file_identifier = nil
|
|
68
70
|
end
|
|
69
71
|
|
|
70
72
|
if attributes.key?(:'document_type')
|
|
71
73
|
self.document_type = attributes[:'document_type']
|
|
74
|
+
else
|
|
75
|
+
self.document_type = nil
|
|
72
76
|
end
|
|
73
77
|
end
|
|
74
78
|
|
|
75
79
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
76
80
|
# @return Array for valid properties with the reasons
|
|
77
81
|
def list_invalid_properties
|
|
82
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
78
83
|
invalid_properties = Array.new
|
|
79
84
|
if @file_identifier.nil?
|
|
80
85
|
invalid_properties.push('invalid value for "file_identifier", file_identifier cannot be nil.')
|
|
@@ -90,6 +95,7 @@ module DealMakerAPI
|
|
|
90
95
|
# Check to see if the all the properties in the model are valid
|
|
91
96
|
# @return true if the model is valid
|
|
92
97
|
def valid?
|
|
98
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
93
99
|
return false if @file_identifier.nil?
|
|
94
100
|
return false if @document_type.nil?
|
|
95
101
|
true
|
|
@@ -120,37 +126,30 @@ module DealMakerAPI
|
|
|
120
126
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
121
127
|
# @return [Object] Returns the model itself
|
|
122
128
|
def self.build_from_hash(attributes)
|
|
123
|
-
new.build_from_hash(attributes)
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
# Builds the object from hash
|
|
127
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
128
|
-
# @return [Object] Returns the model itself
|
|
129
|
-
def build_from_hash(attributes)
|
|
130
129
|
return nil unless attributes.is_a?(Hash)
|
|
131
130
|
attributes = attributes.transform_keys(&:to_sym)
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
transformed_hash = {}
|
|
132
|
+
openapi_types.each_pair do |key, type|
|
|
133
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
134
|
+
transformed_hash["#{key}"] = nil
|
|
135
135
|
elsif type =~ /\AArray<(.*)>/i
|
|
136
136
|
# check to ensure the input is an array given that the attribute
|
|
137
137
|
# is documented as an array but the input is not
|
|
138
|
-
if attributes[
|
|
139
|
-
|
|
138
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
139
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
140
140
|
end
|
|
141
|
-
elsif !attributes[
|
|
142
|
-
|
|
141
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
142
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
143
143
|
end
|
|
144
144
|
end
|
|
145
|
-
|
|
146
|
-
self
|
|
145
|
+
new(transformed_hash)
|
|
147
146
|
end
|
|
148
147
|
|
|
149
148
|
# Deserializes the data based on type
|
|
150
149
|
# @param string type Data type
|
|
151
150
|
# @param string value Value to be deserialized
|
|
152
151
|
# @return [Object] Deserialized data
|
|
153
|
-
def _deserialize(type, value)
|
|
152
|
+
def self._deserialize(type, value)
|
|
154
153
|
case type.to_sym
|
|
155
154
|
when :Time
|
|
156
155
|
Time.parse(value)
|
|
@@ -95,14 +95,20 @@ module DealMakerAPI
|
|
|
95
95
|
|
|
96
96
|
if attributes.key?(:'name')
|
|
97
97
|
self.name = attributes[:'name']
|
|
98
|
+
else
|
|
99
|
+
self.name = nil
|
|
98
100
|
end
|
|
99
101
|
|
|
100
102
|
if attributes.key?(:'country')
|
|
101
103
|
self.country = attributes[:'country']
|
|
104
|
+
else
|
|
105
|
+
self.country = nil
|
|
102
106
|
end
|
|
103
107
|
|
|
104
108
|
if attributes.key?(:'street')
|
|
105
109
|
self.street = attributes[:'street']
|
|
110
|
+
else
|
|
111
|
+
self.street = nil
|
|
106
112
|
end
|
|
107
113
|
|
|
108
114
|
if attributes.key?(:'line_2')
|
|
@@ -111,14 +117,20 @@ module DealMakerAPI
|
|
|
111
117
|
|
|
112
118
|
if attributes.key?(:'city')
|
|
113
119
|
self.city = attributes[:'city']
|
|
120
|
+
else
|
|
121
|
+
self.city = nil
|
|
114
122
|
end
|
|
115
123
|
|
|
116
124
|
if attributes.key?(:'state')
|
|
117
125
|
self.state = attributes[:'state']
|
|
126
|
+
else
|
|
127
|
+
self.state = nil
|
|
118
128
|
end
|
|
119
129
|
|
|
120
130
|
if attributes.key?(:'postal_code')
|
|
121
131
|
self.postal_code = attributes[:'postal_code']
|
|
132
|
+
else
|
|
133
|
+
self.postal_code = nil
|
|
122
134
|
end
|
|
123
135
|
|
|
124
136
|
if attributes.key?(:'primary_color')
|
|
@@ -129,6 +141,7 @@ module DealMakerAPI
|
|
|
129
141
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
130
142
|
# @return Array for valid properties with the reasons
|
|
131
143
|
def list_invalid_properties
|
|
144
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
132
145
|
invalid_properties = Array.new
|
|
133
146
|
if @name.nil?
|
|
134
147
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
@@ -160,6 +173,7 @@ module DealMakerAPI
|
|
|
160
173
|
# Check to see if the all the properties in the model are valid
|
|
161
174
|
# @return true if the model is valid
|
|
162
175
|
def valid?
|
|
176
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
163
177
|
return false if @name.nil?
|
|
164
178
|
return false if @country.nil?
|
|
165
179
|
return false if @street.nil?
|
|
@@ -200,37 +214,30 @@ module DealMakerAPI
|
|
|
200
214
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
201
215
|
# @return [Object] Returns the model itself
|
|
202
216
|
def self.build_from_hash(attributes)
|
|
203
|
-
new.build_from_hash(attributes)
|
|
204
|
-
end
|
|
205
|
-
|
|
206
|
-
# Builds the object from hash
|
|
207
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
208
|
-
# @return [Object] Returns the model itself
|
|
209
|
-
def build_from_hash(attributes)
|
|
210
217
|
return nil unless attributes.is_a?(Hash)
|
|
211
218
|
attributes = attributes.transform_keys(&:to_sym)
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
219
|
+
transformed_hash = {}
|
|
220
|
+
openapi_types.each_pair do |key, type|
|
|
221
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
222
|
+
transformed_hash["#{key}"] = nil
|
|
215
223
|
elsif type =~ /\AArray<(.*)>/i
|
|
216
224
|
# check to ensure the input is an array given that the attribute
|
|
217
225
|
# is documented as an array but the input is not
|
|
218
|
-
if attributes[
|
|
219
|
-
|
|
226
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
227
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
220
228
|
end
|
|
221
|
-
elsif !attributes[
|
|
222
|
-
|
|
229
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
230
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
223
231
|
end
|
|
224
232
|
end
|
|
225
|
-
|
|
226
|
-
self
|
|
233
|
+
new(transformed_hash)
|
|
227
234
|
end
|
|
228
235
|
|
|
229
236
|
# Deserializes the data based on type
|
|
230
237
|
# @param string type Data type
|
|
231
238
|
# @param string value Value to be deserialized
|
|
232
239
|
# @return [Object] Deserialized data
|
|
233
|
-
def _deserialize(type, value)
|
|
240
|
+
def self._deserialize(type, value)
|
|
234
241
|
case type.to_sym
|
|
235
242
|
when :Time
|
|
236
243
|
Time.parse(value)
|
|
@@ -262,6 +262,8 @@ module DealMakerAPI
|
|
|
262
262
|
|
|
263
263
|
if attributes.key?(:'email')
|
|
264
264
|
self.email = attributes[:'email']
|
|
265
|
+
else
|
|
266
|
+
self.email = nil
|
|
265
267
|
end
|
|
266
268
|
|
|
267
269
|
if attributes.key?(:'us_accredited_category')
|
|
@@ -434,6 +436,7 @@ module DealMakerAPI
|
|
|
434
436
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
435
437
|
# @return Array for valid properties with the reasons
|
|
436
438
|
def list_invalid_properties
|
|
439
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
437
440
|
invalid_properties = Array.new
|
|
438
441
|
if @email.nil?
|
|
439
442
|
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
|
@@ -445,6 +448,7 @@ module DealMakerAPI
|
|
|
445
448
|
# Check to see if the all the properties in the model are valid
|
|
446
449
|
# @return true if the model is valid
|
|
447
450
|
def valid?
|
|
451
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
448
452
|
return false if @email.nil?
|
|
449
453
|
us_accredited_category_validator = EnumAttributeValidator.new('String', ["entity_owned_by_accredited_investors", "assets_other", "assets_family_office", "assets_benefit_plan", "assets_state_plan", "assets_501_c_3", "assets_corporation", "broker_or_dealer", "bank_3_a_2", "business_development_company", "private_business_development_company", "investment_company", "rural_business_investment_company", "insurance_company", "family_client", "not_accredited"])
|
|
450
454
|
return false unless us_accredited_category_validator.valid?(@us_accredited_category)
|
|
@@ -533,37 +537,30 @@ module DealMakerAPI
|
|
|
533
537
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
534
538
|
# @return [Object] Returns the model itself
|
|
535
539
|
def self.build_from_hash(attributes)
|
|
536
|
-
new.build_from_hash(attributes)
|
|
537
|
-
end
|
|
538
|
-
|
|
539
|
-
# Builds the object from hash
|
|
540
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
541
|
-
# @return [Object] Returns the model itself
|
|
542
|
-
def build_from_hash(attributes)
|
|
543
540
|
return nil unless attributes.is_a?(Hash)
|
|
544
541
|
attributes = attributes.transform_keys(&:to_sym)
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
542
|
+
transformed_hash = {}
|
|
543
|
+
openapi_types.each_pair do |key, type|
|
|
544
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
545
|
+
transformed_hash["#{key}"] = nil
|
|
548
546
|
elsif type =~ /\AArray<(.*)>/i
|
|
549
547
|
# check to ensure the input is an array given that the attribute
|
|
550
548
|
# is documented as an array but the input is not
|
|
551
|
-
if attributes[
|
|
552
|
-
|
|
549
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
550
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
553
551
|
end
|
|
554
|
-
elsif !attributes[
|
|
555
|
-
|
|
552
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
553
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
556
554
|
end
|
|
557
555
|
end
|
|
558
|
-
|
|
559
|
-
self
|
|
556
|
+
new(transformed_hash)
|
|
560
557
|
end
|
|
561
558
|
|
|
562
559
|
# Deserializes the data based on type
|
|
563
560
|
# @param string type Data type
|
|
564
561
|
# @param string value Value to be deserialized
|
|
565
562
|
# @return [Object] Deserialized data
|
|
566
|
-
def _deserialize(type, value)
|
|
563
|
+
def self._deserialize(type, value)
|
|
567
564
|
case type.to_sym
|
|
568
565
|
when :Time
|
|
569
566
|
Time.parse(value)
|
|
@@ -112,6 +112,8 @@ module DealMakerAPI
|
|
|
112
112
|
|
|
113
113
|
if attributes.key?(:'invoicing_email')
|
|
114
114
|
self.invoicing_email = attributes[:'invoicing_email']
|
|
115
|
+
else
|
|
116
|
+
self.invoicing_email = nil
|
|
115
117
|
end
|
|
116
118
|
|
|
117
119
|
if attributes.key?(:'issuer_industry')
|
|
@@ -134,10 +136,14 @@ module DealMakerAPI
|
|
|
134
136
|
|
|
135
137
|
if attributes.key?(:'title')
|
|
136
138
|
self.title = attributes[:'title']
|
|
139
|
+
else
|
|
140
|
+
self.title = nil
|
|
137
141
|
end
|
|
138
142
|
|
|
139
143
|
if attributes.key?(:'company_id')
|
|
140
144
|
self.company_id = attributes[:'company_id']
|
|
145
|
+
else
|
|
146
|
+
self.company_id = nil
|
|
141
147
|
end
|
|
142
148
|
|
|
143
149
|
if attributes.key?(:'representative')
|
|
@@ -148,6 +154,7 @@ module DealMakerAPI
|
|
|
148
154
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
149
155
|
# @return Array for valid properties with the reasons
|
|
150
156
|
def list_invalid_properties
|
|
157
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
151
158
|
invalid_properties = Array.new
|
|
152
159
|
if @invoicing_email.nil?
|
|
153
160
|
invalid_properties.push('invalid value for "invoicing_email", invoicing_email cannot be nil.')
|
|
@@ -171,6 +178,7 @@ module DealMakerAPI
|
|
|
171
178
|
# Check to see if the all the properties in the model are valid
|
|
172
179
|
# @return true if the model is valid
|
|
173
180
|
def valid?
|
|
181
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
174
182
|
return false if @invoicing_email.nil?
|
|
175
183
|
issuer_industry_validator = EnumAttributeValidator.new('String', ["other", "beverage", "blockchain", "cannabis", "cpc", "gaming", "health", "industry", "mining", "real_estate", "retail", "tech", "psychedelics", "office_of_life_sciences", "office_of_energy_and_transportation", "office_of_real_estate_and_construction", "office_of_manufacturing", "office_of_technology", "office_of_trade_and_services", "office_of_finance", "office_of_international_corp_fin"])
|
|
176
184
|
return false unless issuer_industry_validator.valid?(@issuer_industry)
|
|
@@ -244,37 +252,30 @@ module DealMakerAPI
|
|
|
244
252
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
245
253
|
# @return [Object] Returns the model itself
|
|
246
254
|
def self.build_from_hash(attributes)
|
|
247
|
-
new.build_from_hash(attributes)
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
# Builds the object from hash
|
|
251
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
252
|
-
# @return [Object] Returns the model itself
|
|
253
|
-
def build_from_hash(attributes)
|
|
254
255
|
return nil unless attributes.is_a?(Hash)
|
|
255
256
|
attributes = attributes.transform_keys(&:to_sym)
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
transformed_hash = {}
|
|
258
|
+
openapi_types.each_pair do |key, type|
|
|
259
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
260
|
+
transformed_hash["#{key}"] = nil
|
|
259
261
|
elsif type =~ /\AArray<(.*)>/i
|
|
260
262
|
# check to ensure the input is an array given that the attribute
|
|
261
263
|
# is documented as an array but the input is not
|
|
262
|
-
if attributes[
|
|
263
|
-
|
|
264
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
265
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
264
266
|
end
|
|
265
|
-
elsif !attributes[
|
|
266
|
-
|
|
267
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
268
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
267
269
|
end
|
|
268
270
|
end
|
|
269
|
-
|
|
270
|
-
self
|
|
271
|
+
new(transformed_hash)
|
|
271
272
|
end
|
|
272
273
|
|
|
273
274
|
# Deserializes the data based on type
|
|
274
275
|
# @param string type Data type
|
|
275
276
|
# @param string value Value to be deserialized
|
|
276
277
|
# @return [Object] Deserialized data
|
|
277
|
-
def _deserialize(type, value)
|
|
278
|
+
def self._deserialize(type, value)
|
|
278
279
|
case type.to_sym
|
|
279
280
|
when :Time
|
|
280
281
|
Time.parse(value)
|