DealMakerAPI 0.83.0 → 0.83.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -4
- data/docs/CompanyApi.md +213 -0
- data/docs/V1EntitiesBulkUploadDetails.md +18 -0
- data/docs/V1EntitiesBulkUploads.md +18 -0
- data/lib/DealMakerAPI/api/company_api.rb +210 -0
- data/lib/DealMakerAPI/configuration.rb +9 -7
- 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_bulk_upload_details.rb +215 -0
- data/lib/DealMakerAPI/models/v1_entities_bulk_uploads.rb +215 -0
- 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
- data/lib/DealMakerAPI.rb +2 -0
- data/spec/api/company_api_spec.rb +41 -0
- data/spec/models/v1_entities_bulk_upload_details_spec.rb +34 -0
- data/spec/models/v1_entities_bulk_uploads_spec.rb +34 -0
- metadata +10 -2
@@ -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)
|
@@ -167,6 +167,8 @@ module DealMakerAPI
|
|
167
167
|
|
168
168
|
if attributes.key?(:'email')
|
169
169
|
self.email = attributes[:'email']
|
170
|
+
else
|
171
|
+
self.email = nil
|
170
172
|
end
|
171
173
|
|
172
174
|
if attributes.key?(:'us_accredited_category')
|
@@ -241,6 +243,7 @@ module DealMakerAPI
|
|
241
243
|
# Show invalid properties with the reasons. Usually used together with valid?
|
242
244
|
# @return Array for valid properties with the reasons
|
243
245
|
def list_invalid_properties
|
246
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
244
247
|
invalid_properties = Array.new
|
245
248
|
if @email.nil?
|
246
249
|
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
@@ -252,6 +255,7 @@ module DealMakerAPI
|
|
252
255
|
# Check to see if the all the properties in the model are valid
|
253
256
|
# @return true if the model is valid
|
254
257
|
def valid?
|
258
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
255
259
|
return false if @email.nil?
|
256
260
|
us_accredited_category_validator = EnumAttributeValidator.new('String', ["income_individual", "assets_individual", "director", "knowledgable_employee", "broker_or_dealer", "investment_advisor_registered", "investment_advisor_relying", "designated_accredited_investor", "not_accredited"])
|
257
261
|
return false unless us_accredited_category_validator.valid?(@us_accredited_category)
|
@@ -321,37 +325,30 @@ module DealMakerAPI
|
|
321
325
|
# @param [Hash] attributes Model attributes in the form of hash
|
322
326
|
# @return [Object] Returns the model itself
|
323
327
|
def self.build_from_hash(attributes)
|
324
|
-
new.build_from_hash(attributes)
|
325
|
-
end
|
326
|
-
|
327
|
-
# Builds the object from hash
|
328
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
329
|
-
# @return [Object] Returns the model itself
|
330
|
-
def build_from_hash(attributes)
|
331
328
|
return nil unless attributes.is_a?(Hash)
|
332
329
|
attributes = attributes.transform_keys(&:to_sym)
|
333
|
-
|
334
|
-
|
335
|
-
|
330
|
+
transformed_hash = {}
|
331
|
+
openapi_types.each_pair do |key, type|
|
332
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
333
|
+
transformed_hash["#{key}"] = nil
|
336
334
|
elsif type =~ /\AArray<(.*)>/i
|
337
335
|
# check to ensure the input is an array given that the attribute
|
338
336
|
# is documented as an array but the input is not
|
339
|
-
if attributes[
|
340
|
-
|
337
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
338
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
341
339
|
end
|
342
|
-
elsif !attributes[
|
343
|
-
|
340
|
+
elsif !attributes[attribute_map[key]].nil?
|
341
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
344
342
|
end
|
345
343
|
end
|
346
|
-
|
347
|
-
self
|
344
|
+
new(transformed_hash)
|
348
345
|
end
|
349
346
|
|
350
347
|
# Deserializes the data based on type
|
351
348
|
# @param string type Data type
|
352
349
|
# @param string value Value to be deserialized
|
353
350
|
# @return [Object] Deserialized data
|
354
|
-
def _deserialize(type, value)
|
351
|
+
def self._deserialize(type, value)
|
355
352
|
case type.to_sym
|
356
353
|
when :Time
|
357
354
|
Time.parse(value)
|
@@ -141,6 +141,8 @@ module DealMakerAPI
|
|
141
141
|
|
142
142
|
if attributes.key?(:'email')
|
143
143
|
self.email = attributes[:'email']
|
144
|
+
else
|
145
|
+
self.email = nil
|
144
146
|
end
|
145
147
|
|
146
148
|
if attributes.key?(:'investor_profile_id')
|
@@ -201,6 +203,7 @@ module DealMakerAPI
|
|
201
203
|
# Show invalid properties with the reasons. Usually used together with valid?
|
202
204
|
# @return Array for valid properties with the reasons
|
203
205
|
def list_invalid_properties
|
206
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
204
207
|
invalid_properties = Array.new
|
205
208
|
if @email.nil?
|
206
209
|
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
@@ -212,6 +215,7 @@ module DealMakerAPI
|
|
212
215
|
# Check to see if the all the properties in the model are valid
|
213
216
|
# @return true if the model is valid
|
214
217
|
def valid?
|
218
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
215
219
|
return false if @email.nil?
|
216
220
|
allocation_unit_validator = EnumAttributeValidator.new('String', ["securities", "amount"])
|
217
221
|
return false unless allocation_unit_validator.valid?(@allocation_unit)
|
@@ -276,37 +280,30 @@ module DealMakerAPI
|
|
276
280
|
# @param [Hash] attributes Model attributes in the form of hash
|
277
281
|
# @return [Object] Returns the model itself
|
278
282
|
def self.build_from_hash(attributes)
|
279
|
-
new.build_from_hash(attributes)
|
280
|
-
end
|
281
|
-
|
282
|
-
# Builds the object from hash
|
283
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
284
|
-
# @return [Object] Returns the model itself
|
285
|
-
def build_from_hash(attributes)
|
286
283
|
return nil unless attributes.is_a?(Hash)
|
287
284
|
attributes = attributes.transform_keys(&:to_sym)
|
288
|
-
|
289
|
-
|
290
|
-
|
285
|
+
transformed_hash = {}
|
286
|
+
openapi_types.each_pair do |key, type|
|
287
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
288
|
+
transformed_hash["#{key}"] = nil
|
291
289
|
elsif type =~ /\AArray<(.*)>/i
|
292
290
|
# check to ensure the input is an array given that the attribute
|
293
291
|
# is documented as an array but the input is not
|
294
|
-
if attributes[
|
295
|
-
|
292
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
293
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
296
294
|
end
|
297
|
-
elsif !attributes[
|
298
|
-
|
295
|
+
elsif !attributes[attribute_map[key]].nil?
|
296
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
299
297
|
end
|
300
298
|
end
|
301
|
-
|
302
|
-
self
|
299
|
+
new(transformed_hash)
|
303
300
|
end
|
304
301
|
|
305
302
|
# Deserializes the data based on type
|
306
303
|
# @param string type Data type
|
307
304
|
# @param string value Value to be deserialized
|
308
305
|
# @return [Object] Deserialized data
|
309
|
-
def _deserialize(type, value)
|
306
|
+
def self._deserialize(type, value)
|
310
307
|
case type.to_sym
|
311
308
|
when :Time
|
312
309
|
Time.parse(value)
|