DealMakerAPI 0.83.0 → 0.83.1
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -138,6 +138,7 @@ module DealMakerAPI
|
|
138
138
|
# Show invalid properties with the reasons. Usually used together with valid?
|
139
139
|
# @return Array for valid properties with the reasons
|
140
140
|
def list_invalid_properties
|
141
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
141
142
|
invalid_properties = Array.new
|
142
143
|
invalid_properties
|
143
144
|
end
|
@@ -145,6 +146,7 @@ module DealMakerAPI
|
|
145
146
|
# Check to see if the all the properties in the model are valid
|
146
147
|
# @return true if the model is valid
|
147
148
|
def valid?
|
149
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
148
150
|
true
|
149
151
|
end
|
150
152
|
|
@@ -180,37 +182,30 @@ module DealMakerAPI
|
|
180
182
|
# @param [Hash] attributes Model attributes in the form of hash
|
181
183
|
# @return [Object] Returns the model itself
|
182
184
|
def self.build_from_hash(attributes)
|
183
|
-
new.build_from_hash(attributes)
|
184
|
-
end
|
185
|
-
|
186
|
-
# Builds the object from hash
|
187
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
188
|
-
# @return [Object] Returns the model itself
|
189
|
-
def build_from_hash(attributes)
|
190
185
|
return nil unless attributes.is_a?(Hash)
|
191
186
|
attributes = attributes.transform_keys(&:to_sym)
|
192
|
-
|
193
|
-
|
194
|
-
|
187
|
+
transformed_hash = {}
|
188
|
+
openapi_types.each_pair do |key, type|
|
189
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
190
|
+
transformed_hash["#{key}"] = nil
|
195
191
|
elsif type =~ /\AArray<(.*)>/i
|
196
192
|
# check to ensure the input is an array given that the attribute
|
197
193
|
# is documented as an array but the input is not
|
198
|
-
if attributes[
|
199
|
-
|
194
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
195
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
200
196
|
end
|
201
|
-
elsif !attributes[
|
202
|
-
|
197
|
+
elsif !attributes[attribute_map[key]].nil?
|
198
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
203
199
|
end
|
204
200
|
end
|
205
|
-
|
206
|
-
self
|
201
|
+
new(transformed_hash)
|
207
202
|
end
|
208
203
|
|
209
204
|
# Deserializes the data based on type
|
210
205
|
# @param string type Data type
|
211
206
|
# @param string value Value to be deserialized
|
212
207
|
# @return [Object] Deserialized data
|
213
|
-
def _deserialize(type, value)
|
208
|
+
def self._deserialize(type, value)
|
214
209
|
case type.to_sym
|
215
210
|
when :Time
|
216
211
|
Time.parse(value)
|
@@ -75,6 +75,7 @@ module DealMakerAPI
|
|
75
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
76
76
|
# @return Array for valid properties with the reasons
|
77
77
|
def list_invalid_properties
|
78
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
78
79
|
invalid_properties = Array.new
|
79
80
|
invalid_properties
|
80
81
|
end
|
@@ -82,6 +83,7 @@ module DealMakerAPI
|
|
82
83
|
# Check to see if the all the properties in the model are valid
|
83
84
|
# @return true if the model is valid
|
84
85
|
def valid?
|
86
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
85
87
|
true
|
86
88
|
end
|
87
89
|
|
@@ -110,37 +112,30 @@ module DealMakerAPI
|
|
110
112
|
# @param [Hash] attributes Model attributes in the form of hash
|
111
113
|
# @return [Object] Returns the model itself
|
112
114
|
def self.build_from_hash(attributes)
|
113
|
-
new.build_from_hash(attributes)
|
114
|
-
end
|
115
|
-
|
116
|
-
# Builds the object from hash
|
117
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
-
# @return [Object] Returns the model itself
|
119
|
-
def build_from_hash(attributes)
|
120
115
|
return nil unless attributes.is_a?(Hash)
|
121
116
|
attributes = attributes.transform_keys(&:to_sym)
|
122
|
-
|
123
|
-
|
124
|
-
|
117
|
+
transformed_hash = {}
|
118
|
+
openapi_types.each_pair do |key, type|
|
119
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
120
|
+
transformed_hash["#{key}"] = nil
|
125
121
|
elsif type =~ /\AArray<(.*)>/i
|
126
122
|
# check to ensure the input is an array given that the attribute
|
127
123
|
# is documented as an array but the input is not
|
128
|
-
if attributes[
|
129
|
-
|
124
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
125
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
130
126
|
end
|
131
|
-
elsif !attributes[
|
132
|
-
|
127
|
+
elsif !attributes[attribute_map[key]].nil?
|
128
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
133
129
|
end
|
134
130
|
end
|
135
|
-
|
136
|
-
self
|
131
|
+
new(transformed_hash)
|
137
132
|
end
|
138
133
|
|
139
134
|
# Deserializes the data based on type
|
140
135
|
# @param string type Data type
|
141
136
|
# @param string value Value to be deserialized
|
142
137
|
# @return [Object] Deserialized data
|
143
|
-
def _deserialize(type, value)
|
138
|
+
def self._deserialize(type, value)
|
144
139
|
case type.to_sym
|
145
140
|
when :Time
|
146
141
|
Time.parse(value)
|
@@ -66,6 +66,7 @@ module DealMakerAPI
|
|
66
66
|
# Show invalid properties with the reasons. Usually used together with valid?
|
67
67
|
# @return Array for valid properties with the reasons
|
68
68
|
def list_invalid_properties
|
69
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
69
70
|
invalid_properties = Array.new
|
70
71
|
invalid_properties
|
71
72
|
end
|
@@ -73,6 +74,7 @@ module DealMakerAPI
|
|
73
74
|
# Check to see if the all the properties in the model are valid
|
74
75
|
# @return true if the model is valid
|
75
76
|
def valid?
|
77
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
76
78
|
true
|
77
79
|
end
|
78
80
|
|
@@ -100,37 +102,30 @@ module DealMakerAPI
|
|
100
102
|
# @param [Hash] attributes Model attributes in the form of hash
|
101
103
|
# @return [Object] Returns the model itself
|
102
104
|
def self.build_from_hash(attributes)
|
103
|
-
new.build_from_hash(attributes)
|
104
|
-
end
|
105
|
-
|
106
|
-
# Builds the object from hash
|
107
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
-
# @return [Object] Returns the model itself
|
109
|
-
def build_from_hash(attributes)
|
110
105
|
return nil unless attributes.is_a?(Hash)
|
111
106
|
attributes = attributes.transform_keys(&:to_sym)
|
112
|
-
|
113
|
-
|
114
|
-
|
107
|
+
transformed_hash = {}
|
108
|
+
openapi_types.each_pair do |key, type|
|
109
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
110
|
+
transformed_hash["#{key}"] = nil
|
115
111
|
elsif type =~ /\AArray<(.*)>/i
|
116
112
|
# check to ensure the input is an array given that the attribute
|
117
113
|
# is documented as an array but the input is not
|
118
|
-
if attributes[
|
119
|
-
|
114
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
115
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
120
116
|
end
|
121
|
-
elsif !attributes[
|
122
|
-
|
117
|
+
elsif !attributes[attribute_map[key]].nil?
|
118
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
123
119
|
end
|
124
120
|
end
|
125
|
-
|
126
|
-
self
|
121
|
+
new(transformed_hash)
|
127
122
|
end
|
128
123
|
|
129
124
|
# Deserializes the data based on type
|
130
125
|
# @param string type Data type
|
131
126
|
# @param string value Value to be deserialized
|
132
127
|
# @return [Object] Deserialized data
|
133
|
-
def _deserialize(type, value)
|
128
|
+
def self._deserialize(type, value)
|
134
129
|
case type.to_sym
|
135
130
|
when :Time
|
136
131
|
Time.parse(value)
|
@@ -130,6 +130,7 @@ module DealMakerAPI
|
|
130
130
|
# Show invalid properties with the reasons. Usually used together with valid?
|
131
131
|
# @return Array for valid properties with the reasons
|
132
132
|
def list_invalid_properties
|
133
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
133
134
|
invalid_properties = Array.new
|
134
135
|
invalid_properties
|
135
136
|
end
|
@@ -137,6 +138,7 @@ module DealMakerAPI
|
|
137
138
|
# Check to see if the all the properties in the model are valid
|
138
139
|
# @return true if the model is valid
|
139
140
|
def valid?
|
141
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
140
142
|
true
|
141
143
|
end
|
142
144
|
|
@@ -171,37 +173,30 @@ module DealMakerAPI
|
|
171
173
|
# @param [Hash] attributes Model attributes in the form of hash
|
172
174
|
# @return [Object] Returns the model itself
|
173
175
|
def self.build_from_hash(attributes)
|
174
|
-
new.build_from_hash(attributes)
|
175
|
-
end
|
176
|
-
|
177
|
-
# Builds the object from hash
|
178
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
179
|
-
# @return [Object] Returns the model itself
|
180
|
-
def build_from_hash(attributes)
|
181
176
|
return nil unless attributes.is_a?(Hash)
|
182
177
|
attributes = attributes.transform_keys(&:to_sym)
|
183
|
-
|
184
|
-
|
185
|
-
|
178
|
+
transformed_hash = {}
|
179
|
+
openapi_types.each_pair do |key, type|
|
180
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
181
|
+
transformed_hash["#{key}"] = nil
|
186
182
|
elsif type =~ /\AArray<(.*)>/i
|
187
183
|
# check to ensure the input is an array given that the attribute
|
188
184
|
# is documented as an array but the input is not
|
189
|
-
if attributes[
|
190
|
-
|
185
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
186
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
191
187
|
end
|
192
|
-
elsif !attributes[
|
193
|
-
|
188
|
+
elsif !attributes[attribute_map[key]].nil?
|
189
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
194
190
|
end
|
195
191
|
end
|
196
|
-
|
197
|
-
self
|
192
|
+
new(transformed_hash)
|
198
193
|
end
|
199
194
|
|
200
195
|
# Deserializes the data based on type
|
201
196
|
# @param string type Data type
|
202
197
|
# @param string value Value to be deserialized
|
203
198
|
# @return [Object] Deserialized data
|
204
|
-
def _deserialize(type, value)
|
199
|
+
def self._deserialize(type, value)
|
205
200
|
case type.to_sym
|
206
201
|
when :Time
|
207
202
|
Time.parse(value)
|
@@ -66,6 +66,7 @@ module DealMakerAPI
|
|
66
66
|
# Show invalid properties with the reasons. Usually used together with valid?
|
67
67
|
# @return Array for valid properties with the reasons
|
68
68
|
def list_invalid_properties
|
69
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
69
70
|
invalid_properties = Array.new
|
70
71
|
invalid_properties
|
71
72
|
end
|
@@ -73,6 +74,7 @@ module DealMakerAPI
|
|
73
74
|
# Check to see if the all the properties in the model are valid
|
74
75
|
# @return true if the model is valid
|
75
76
|
def valid?
|
77
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
76
78
|
true
|
77
79
|
end
|
78
80
|
|
@@ -100,37 +102,30 @@ module DealMakerAPI
|
|
100
102
|
# @param [Hash] attributes Model attributes in the form of hash
|
101
103
|
# @return [Object] Returns the model itself
|
102
104
|
def self.build_from_hash(attributes)
|
103
|
-
new.build_from_hash(attributes)
|
104
|
-
end
|
105
|
-
|
106
|
-
# Builds the object from hash
|
107
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
-
# @return [Object] Returns the model itself
|
109
|
-
def build_from_hash(attributes)
|
110
105
|
return nil unless attributes.is_a?(Hash)
|
111
106
|
attributes = attributes.transform_keys(&:to_sym)
|
112
|
-
|
113
|
-
|
114
|
-
|
107
|
+
transformed_hash = {}
|
108
|
+
openapi_types.each_pair do |key, type|
|
109
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
110
|
+
transformed_hash["#{key}"] = nil
|
115
111
|
elsif type =~ /\AArray<(.*)>/i
|
116
112
|
# check to ensure the input is an array given that the attribute
|
117
113
|
# is documented as an array but the input is not
|
118
|
-
if attributes[
|
119
|
-
|
114
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
115
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
120
116
|
end
|
121
|
-
elsif !attributes[
|
122
|
-
|
117
|
+
elsif !attributes[attribute_map[key]].nil?
|
118
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
123
119
|
end
|
124
120
|
end
|
125
|
-
|
126
|
-
self
|
121
|
+
new(transformed_hash)
|
127
122
|
end
|
128
123
|
|
129
124
|
# Deserializes the data based on type
|
130
125
|
# @param string type Data type
|
131
126
|
# @param string value Value to be deserialized
|
132
127
|
# @return [Object] Deserialized data
|
133
|
-
def _deserialize(type, value)
|
128
|
+
def self._deserialize(type, value)
|
134
129
|
case type.to_sym
|
135
130
|
when :Time
|
136
131
|
Time.parse(value)
|
@@ -318,6 +318,7 @@ module DealMakerAPI
|
|
318
318
|
# Show invalid properties with the reasons. Usually used together with valid?
|
319
319
|
# @return Array for valid properties with the reasons
|
320
320
|
def list_invalid_properties
|
321
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
321
322
|
invalid_properties = Array.new
|
322
323
|
invalid_properties
|
323
324
|
end
|
@@ -325,6 +326,7 @@ module DealMakerAPI
|
|
325
326
|
# Check to see if the all the properties in the model are valid
|
326
327
|
# @return true if the model is valid
|
327
328
|
def valid?
|
329
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
328
330
|
allocation_unit_validator = EnumAttributeValidator.new('String', ["securities", "amount"])
|
329
331
|
return false unless allocation_unit_validator.valid?(@allocation_unit)
|
330
332
|
state_validator = EnumAttributeValidator.new('String', ["draft", "invited", "cosigning", "signed", "waiting", "accepted", "inactive"])
|
@@ -426,37 +428,30 @@ module DealMakerAPI
|
|
426
428
|
# @param [Hash] attributes Model attributes in the form of hash
|
427
429
|
# @return [Object] Returns the model itself
|
428
430
|
def self.build_from_hash(attributes)
|
429
|
-
new.build_from_hash(attributes)
|
430
|
-
end
|
431
|
-
|
432
|
-
# Builds the object from hash
|
433
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
434
|
-
# @return [Object] Returns the model itself
|
435
|
-
def build_from_hash(attributes)
|
436
431
|
return nil unless attributes.is_a?(Hash)
|
437
432
|
attributes = attributes.transform_keys(&:to_sym)
|
438
|
-
|
439
|
-
|
440
|
-
|
433
|
+
transformed_hash = {}
|
434
|
+
openapi_types.each_pair do |key, type|
|
435
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
436
|
+
transformed_hash["#{key}"] = nil
|
441
437
|
elsif type =~ /\AArray<(.*)>/i
|
442
438
|
# check to ensure the input is an array given that the attribute
|
443
439
|
# is documented as an array but the input is not
|
444
|
-
if attributes[
|
445
|
-
|
440
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
441
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
446
442
|
end
|
447
|
-
elsif !attributes[
|
448
|
-
|
443
|
+
elsif !attributes[attribute_map[key]].nil?
|
444
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
449
445
|
end
|
450
446
|
end
|
451
|
-
|
452
|
-
self
|
447
|
+
new(transformed_hash)
|
453
448
|
end
|
454
449
|
|
455
450
|
# Deserializes the data based on type
|
456
451
|
# @param string type Data type
|
457
452
|
# @param string value Value to be deserialized
|
458
453
|
# @return [Object] Deserialized data
|
459
|
-
def _deserialize(type, value)
|
454
|
+
def self._deserialize(type, value)
|
460
455
|
case type.to_sym
|
461
456
|
when :Time
|
462
457
|
Time.parse(value)
|
@@ -67,6 +67,7 @@ module DealMakerAPI
|
|
67
67
|
# Show invalid properties with the reasons. Usually used together with valid?
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
70
71
|
invalid_properties = Array.new
|
71
72
|
invalid_properties
|
72
73
|
end
|
@@ -74,6 +75,7 @@ module DealMakerAPI
|
|
74
75
|
# Check to see if the all the properties in the model are valid
|
75
76
|
# @return true if the model is valid
|
76
77
|
def valid?
|
78
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
77
79
|
true
|
78
80
|
end
|
79
81
|
|
@@ -101,37 +103,30 @@ module DealMakerAPI
|
|
101
103
|
# @param [Hash] attributes Model attributes in the form of hash
|
102
104
|
# @return [Object] Returns the model itself
|
103
105
|
def self.build_from_hash(attributes)
|
104
|
-
new.build_from_hash(attributes)
|
105
|
-
end
|
106
|
-
|
107
|
-
# Builds the object from hash
|
108
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
109
|
-
# @return [Object] Returns the model itself
|
110
|
-
def build_from_hash(attributes)
|
111
106
|
return nil unless attributes.is_a?(Hash)
|
112
107
|
attributes = attributes.transform_keys(&:to_sym)
|
113
|
-
|
114
|
-
|
115
|
-
|
108
|
+
transformed_hash = {}
|
109
|
+
openapi_types.each_pair do |key, type|
|
110
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
111
|
+
transformed_hash["#{key}"] = nil
|
116
112
|
elsif type =~ /\AArray<(.*)>/i
|
117
113
|
# check to ensure the input is an array given that the attribute
|
118
114
|
# is documented as an array but the input is not
|
119
|
-
if attributes[
|
120
|
-
|
115
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
116
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
121
117
|
end
|
122
|
-
elsif !attributes[
|
123
|
-
|
118
|
+
elsif !attributes[attribute_map[key]].nil?
|
119
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
124
120
|
end
|
125
121
|
end
|
126
|
-
|
127
|
-
self
|
122
|
+
new(transformed_hash)
|
128
123
|
end
|
129
124
|
|
130
125
|
# Deserializes the data based on type
|
131
126
|
# @param string type Data type
|
132
127
|
# @param string value Value to be deserialized
|
133
128
|
# @return [Object] Deserialized data
|
134
|
-
def _deserialize(type, value)
|
129
|
+
def self._deserialize(type, value)
|
135
130
|
case type.to_sym
|
136
131
|
when :Time
|
137
132
|
Time.parse(value)
|
@@ -111,6 +111,7 @@ module DealMakerAPI
|
|
111
111
|
# Show invalid properties with the reasons. Usually used together with valid?
|
112
112
|
# @return Array for valid properties with the reasons
|
113
113
|
def list_invalid_properties
|
114
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
114
115
|
invalid_properties = Array.new
|
115
116
|
invalid_properties
|
116
117
|
end
|
@@ -118,6 +119,7 @@ module DealMakerAPI
|
|
118
119
|
# Check to see if the all the properties in the model are valid
|
119
120
|
# @return true if the model is valid
|
120
121
|
def valid?
|
122
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
121
123
|
true
|
122
124
|
end
|
123
125
|
|
@@ -150,37 +152,30 @@ module DealMakerAPI
|
|
150
152
|
# @param [Hash] attributes Model attributes in the form of hash
|
151
153
|
# @return [Object] Returns the model itself
|
152
154
|
def self.build_from_hash(attributes)
|
153
|
-
new.build_from_hash(attributes)
|
154
|
-
end
|
155
|
-
|
156
|
-
# Builds the object from hash
|
157
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
158
|
-
# @return [Object] Returns the model itself
|
159
|
-
def build_from_hash(attributes)
|
160
155
|
return nil unless attributes.is_a?(Hash)
|
161
156
|
attributes = attributes.transform_keys(&:to_sym)
|
162
|
-
|
163
|
-
|
164
|
-
|
157
|
+
transformed_hash = {}
|
158
|
+
openapi_types.each_pair do |key, type|
|
159
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
160
|
+
transformed_hash["#{key}"] = nil
|
165
161
|
elsif type =~ /\AArray<(.*)>/i
|
166
162
|
# check to ensure the input is an array given that the attribute
|
167
163
|
# is documented as an array but the input is not
|
168
|
-
if attributes[
|
169
|
-
|
164
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
165
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
170
166
|
end
|
171
|
-
elsif !attributes[
|
172
|
-
|
167
|
+
elsif !attributes[attribute_map[key]].nil?
|
168
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
173
169
|
end
|
174
170
|
end
|
175
|
-
|
176
|
-
self
|
171
|
+
new(transformed_hash)
|
177
172
|
end
|
178
173
|
|
179
174
|
# Deserializes the data based on type
|
180
175
|
# @param string type Data type
|
181
176
|
# @param string value Value to be deserialized
|
182
177
|
# @return [Object] Deserialized data
|
183
|
-
def _deserialize(type, value)
|
178
|
+
def self._deserialize(type, value)
|
184
179
|
case type.to_sym
|
185
180
|
when :Time
|
186
181
|
Time.parse(value)
|
@@ -184,6 +184,7 @@ module DealMakerAPI
|
|
184
184
|
# Show invalid properties with the reasons. Usually used together with valid?
|
185
185
|
# @return Array for valid properties with the reasons
|
186
186
|
def list_invalid_properties
|
187
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
187
188
|
invalid_properties = Array.new
|
188
189
|
invalid_properties
|
189
190
|
end
|
@@ -191,6 +192,7 @@ module DealMakerAPI
|
|
191
192
|
# Check to see if the all the properties in the model are valid
|
192
193
|
# @return true if the model is valid
|
193
194
|
def valid?
|
195
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
194
196
|
type_validator = EnumAttributeValidator.new('String', ["individual", "joint", "corporation", "trust"])
|
195
197
|
return false unless type_validator.valid?(@type)
|
196
198
|
true
|
@@ -241,37 +243,30 @@ module DealMakerAPI
|
|
241
243
|
# @param [Hash] attributes Model attributes in the form of hash
|
242
244
|
# @return [Object] Returns the model itself
|
243
245
|
def self.build_from_hash(attributes)
|
244
|
-
new.build_from_hash(attributes)
|
245
|
-
end
|
246
|
-
|
247
|
-
# Builds the object from hash
|
248
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
249
|
-
# @return [Object] Returns the model itself
|
250
|
-
def build_from_hash(attributes)
|
251
246
|
return nil unless attributes.is_a?(Hash)
|
252
247
|
attributes = attributes.transform_keys(&:to_sym)
|
253
|
-
|
254
|
-
|
255
|
-
|
248
|
+
transformed_hash = {}
|
249
|
+
openapi_types.each_pair do |key, type|
|
250
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
251
|
+
transformed_hash["#{key}"] = nil
|
256
252
|
elsif type =~ /\AArray<(.*)>/i
|
257
253
|
# check to ensure the input is an array given that the attribute
|
258
254
|
# is documented as an array but the input is not
|
259
|
-
if attributes[
|
260
|
-
|
255
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
256
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
261
257
|
end
|
262
|
-
elsif !attributes[
|
263
|
-
|
258
|
+
elsif !attributes[attribute_map[key]].nil?
|
259
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
264
260
|
end
|
265
261
|
end
|
266
|
-
|
267
|
-
self
|
262
|
+
new(transformed_hash)
|
268
263
|
end
|
269
264
|
|
270
265
|
# Deserializes the data based on type
|
271
266
|
# @param string type Data type
|
272
267
|
# @param string value Value to be deserialized
|
273
268
|
# @return [Object] Deserialized data
|
274
|
-
def _deserialize(type, value)
|
269
|
+
def self._deserialize(type, value)
|
275
270
|
case type.to_sym
|
276
271
|
when :Time
|
277
272
|
Time.parse(value)
|
@@ -110,6 +110,7 @@ module DealMakerAPI
|
|
110
110
|
# Show invalid properties with the reasons. Usually used together with valid?
|
111
111
|
# @return Array for valid properties with the reasons
|
112
112
|
def list_invalid_properties
|
113
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
113
114
|
invalid_properties = Array.new
|
114
115
|
invalid_properties
|
115
116
|
end
|
@@ -117,6 +118,7 @@ module DealMakerAPI
|
|
117
118
|
# Check to see if the all the properties in the model are valid
|
118
119
|
# @return true if the model is valid
|
119
120
|
def valid?
|
121
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
120
122
|
true
|
121
123
|
end
|
122
124
|
|
@@ -149,37 +151,30 @@ module DealMakerAPI
|
|
149
151
|
# @param [Hash] attributes Model attributes in the form of hash
|
150
152
|
# @return [Object] Returns the model itself
|
151
153
|
def self.build_from_hash(attributes)
|
152
|
-
new.build_from_hash(attributes)
|
153
|
-
end
|
154
|
-
|
155
|
-
# Builds the object from hash
|
156
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
157
|
-
# @return [Object] Returns the model itself
|
158
|
-
def build_from_hash(attributes)
|
159
154
|
return nil unless attributes.is_a?(Hash)
|
160
155
|
attributes = attributes.transform_keys(&:to_sym)
|
161
|
-
|
162
|
-
|
163
|
-
|
156
|
+
transformed_hash = {}
|
157
|
+
openapi_types.each_pair do |key, type|
|
158
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
159
|
+
transformed_hash["#{key}"] = nil
|
164
160
|
elsif type =~ /\AArray<(.*)>/i
|
165
161
|
# check to ensure the input is an array given that the attribute
|
166
162
|
# is documented as an array but the input is not
|
167
|
-
if attributes[
|
168
|
-
|
163
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
164
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
169
165
|
end
|
170
|
-
elsif !attributes[
|
171
|
-
|
166
|
+
elsif !attributes[attribute_map[key]].nil?
|
167
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
172
168
|
end
|
173
169
|
end
|
174
|
-
|
175
|
-
self
|
170
|
+
new(transformed_hash)
|
176
171
|
end
|
177
172
|
|
178
173
|
# Deserializes the data based on type
|
179
174
|
# @param string type Data type
|
180
175
|
# @param string value Value to be deserialized
|
181
176
|
# @return [Object] Deserialized data
|
182
|
-
def _deserialize(type, value)
|
177
|
+
def self._deserialize(type, value)
|
183
178
|
case type.to_sym
|
184
179
|
when :Time
|
185
180
|
Time.parse(value)
|