cloudmersive-validate-api-client 1.4.2 → 2.0.5
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/Gemfile +1 -1
- data/README.md +22 -7
- data/cloudmersive-validate-api-client.gemspec +3 -3
- data/docs/AddressApi.md +270 -1
- data/docs/CountryDetails.md +11 -0
- data/docs/CountryListResult.md +9 -0
- data/docs/DomainApi.md +2 -2
- data/docs/EmailApi.md +3 -3
- data/docs/IPAddressApi.md +56 -1
- data/docs/TorNodeResponse.md +8 -0
- data/docs/ValidateCityRequest.md +11 -0
- data/docs/ValidateCityResponse.md +12 -0
- data/docs/ValidateCountryResponse.md +1 -0
- data/docs/ValidatePostalCodeRequest.md +10 -0
- data/docs/ValidatePostalCodeResponse.md +12 -0
- data/docs/ValidateStateRequest.md +10 -0
- data/docs/ValidateStateResponse.md +11 -0
- data/lib/cloudmersive-validate-api-client.rb +10 -1
- data/lib/cloudmersive-validate-api-client/api/address_api.rb +276 -18
- data/lib/cloudmersive-validate-api-client/api/domain_api.rb +14 -18
- data/lib/cloudmersive-validate-api-client/api/email_api.rb +11 -14
- data/lib/cloudmersive-validate-api-client/api/ip_address_api.rb +58 -5
- data/lib/cloudmersive-validate-api-client/api/lead_enrichment_api.rb +5 -8
- data/lib/cloudmersive-validate-api-client/api/name_api.rb +17 -22
- data/lib/cloudmersive-validate-api-client/api/phone_number_api.rb +5 -6
- data/lib/cloudmersive-validate-api-client/api/user_agent_api.rb +5 -6
- data/lib/cloudmersive-validate-api-client/api/vat_api.rb +5 -6
- data/lib/cloudmersive-validate-api-client/api_client.rb +11 -9
- data/lib/cloudmersive-validate-api-client/api_error.rb +1 -1
- data/lib/cloudmersive-validate-api-client/configuration.rb +2 -2
- data/lib/cloudmersive-validate-api-client/models/address_get_servers_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/address_verify_syntax_only_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/check_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/country_details.rb +216 -0
- data/lib/cloudmersive-validate-api-client/models/country_list_result.rb +198 -0
- data/lib/cloudmersive-validate-api-client/models/first_name_validation_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/first_name_validation_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/full_email_validation_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/full_name_validation_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/full_name_validation_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/geolocate_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/get_gender_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/get_gender_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/get_timezones_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/get_timezones_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/last_name_validation_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/last_name_validation_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/lead_enrichment_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/lead_enrichment_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/parse_address_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/parse_address_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/phone_number_validate_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/phone_number_validation_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/timezone.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/tor_node_response.rb +186 -0
- data/lib/cloudmersive-validate-api-client/models/user_agent_validate_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/user_agent_validate_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_address_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_address_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_city_request.rb +216 -0
- data/lib/cloudmersive-validate-api-client/models/validate_city_response.rb +226 -0
- data/lib/cloudmersive-validate-api-client/models/validate_country_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_country_response.rb +18 -11
- data/lib/cloudmersive-validate-api-client/models/validate_identifier_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_identifier_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_postal_code_request.rb +206 -0
- data/lib/cloudmersive-validate-api-client/models/validate_postal_code_response.rb +226 -0
- data/lib/cloudmersive-validate-api-client/models/validate_state_request.rb +206 -0
- data/lib/cloudmersive-validate-api-client/models/validate_state_response.rb +216 -0
- data/lib/cloudmersive-validate-api-client/models/validate_url_request_full.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_url_request_syntax_only.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_url_response_full.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/validate_url_response_syntax_only.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/vat_lookup_request.rb +7 -10
- data/lib/cloudmersive-validate-api-client/models/vat_lookup_response.rb +7 -11
- data/lib/cloudmersive-validate-api-client/models/whois_response.rb +7 -10
- data/lib/cloudmersive-validate-api-client/version.rb +2 -2
- data/spec/api/address_api_spec.rb +65 -6
- data/spec/api/domain_api_spec.rb +5 -5
- data/spec/api/email_api_spec.rb +4 -4
- data/spec/api/ip_address_api_spec.rb +14 -2
- data/spec/api/lead_enrichment_api_spec.rb +2 -3
- data/spec/api/name_api_spec.rb +6 -6
- data/spec/api/phone_number_api_spec.rb +2 -2
- data/spec/api/user_agent_api_spec.rb +2 -2
- data/spec/api/vat_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +52 -35
- data/spec/configuration_spec.rb +9 -9
- data/spec/models/address_get_servers_response_spec.rb +3 -4
- data/spec/models/address_verify_syntax_only_response_spec.rb +5 -6
- data/spec/models/check_response_spec.rb +2 -3
- data/spec/models/country_details_spec.rb +59 -0
- data/spec/models/country_list_result_spec.rb +47 -0
- data/spec/models/first_name_validation_request_spec.rb +2 -3
- data/spec/models/first_name_validation_response_spec.rb +3 -4
- data/spec/models/full_email_validation_response_spec.rb +10 -11
- data/spec/models/full_name_validation_request_spec.rb +2 -3
- data/spec/models/full_name_validation_response_spec.rb +11 -12
- data/spec/models/geolocate_response_spec.rb +10 -11
- data/spec/models/get_gender_request_spec.rb +3 -4
- data/spec/models/get_gender_response_spec.rb +3 -4
- data/spec/models/get_timezones_request_spec.rb +2 -3
- data/spec/models/get_timezones_response_spec.rb +7 -8
- data/spec/models/last_name_validation_request_spec.rb +2 -3
- data/spec/models/last_name_validation_response_spec.rb +3 -4
- data/spec/models/lead_enrichment_request_spec.rb +15 -16
- data/spec/models/lead_enrichment_response_spec.rb +19 -20
- data/spec/models/parse_address_request_spec.rb +3 -4
- data/spec/models/parse_address_response_spec.rb +10 -11
- data/spec/models/phone_number_validate_request_spec.rb +3 -4
- data/spec/models/phone_number_validation_response_spec.rb +9 -10
- data/spec/models/timezone_spec.rb +4 -5
- data/spec/models/tor_node_response_spec.rb +41 -0
- data/spec/models/user_agent_validate_request_spec.rb +2 -3
- data/spec/models/user_agent_validate_response_spec.rb +15 -16
- data/spec/models/validate_address_request_spec.rb +7 -8
- data/spec/models/validate_address_response_spec.rb +4 -5
- data/spec/models/validate_city_request_spec.rb +59 -0
- data/spec/models/validate_city_response_spec.rb +65 -0
- data/spec/models/validate_country_request_spec.rb +2 -3
- data/spec/models/validate_country_response_spec.rb +13 -8
- data/spec/models/validate_identifier_request_spec.rb +9 -10
- data/spec/models/validate_identifier_response_spec.rb +3 -4
- data/spec/models/validate_postal_code_request_spec.rb +53 -0
- data/spec/models/validate_postal_code_response_spec.rb +65 -0
- data/spec/models/validate_state_request_spec.rb +53 -0
- data/spec/models/validate_state_response_spec.rb +59 -0
- data/spec/models/validate_url_request_full_spec.rb +2 -3
- data/spec/models/validate_url_request_syntax_only_spec.rb +2 -3
- data/spec/models/validate_url_response_full_spec.rb +6 -7
- data/spec/models/validate_url_response_syntax_only_spec.rb +3 -4
- data/spec/models/vat_lookup_request_spec.rb +2 -3
- data/spec/models/vat_lookup_response_spec.rb +13 -14
- data/spec/models/whois_response_spec.rb +16 -17
- data/spec/spec_helper.rb +1 -1
- metadata +29 -2
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,7 +18,6 @@ module CloudmersiveValidateApiClient
|
|
18
18
|
# URL to validate
|
19
19
|
attr_accessor :url
|
20
20
|
|
21
|
-
|
22
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
22
|
def self.attribute_map
|
24
23
|
{
|
@@ -39,25 +38,24 @@ module CloudmersiveValidateApiClient
|
|
39
38
|
return unless attributes.is_a?(Hash)
|
40
39
|
|
41
40
|
# convert string to symbol for hash key
|
42
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
41
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
43
42
|
|
44
43
|
if attributes.has_key?(:'URL')
|
45
44
|
self.url = attributes[:'URL']
|
46
45
|
end
|
47
|
-
|
48
46
|
end
|
49
47
|
|
50
48
|
# Show invalid properties with the reasons. Usually used together with valid?
|
51
49
|
# @return Array for valid properties with the reasons
|
52
50
|
def list_invalid_properties
|
53
51
|
invalid_properties = Array.new
|
54
|
-
|
52
|
+
invalid_properties
|
55
53
|
end
|
56
54
|
|
57
55
|
# Check to see if the all the properties in the model are valid
|
58
56
|
# @return true if the model is valid
|
59
57
|
def valid?
|
60
|
-
|
58
|
+
true
|
61
59
|
end
|
62
60
|
|
63
61
|
# Checks equality by comparing each attribute.
|
@@ -87,10 +85,10 @@ module CloudmersiveValidateApiClient
|
|
87
85
|
return nil unless attributes.is_a?(Hash)
|
88
86
|
self.class.swagger_types.each_pair do |key, type|
|
89
87
|
if type =~ /\AArray<(.*)>/i
|
90
|
-
# check to ensure the input is an array given that the
|
88
|
+
# check to ensure the input is an array given that the attribute
|
91
89
|
# is documented as an array but the input is not
|
92
90
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
93
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
91
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
94
92
|
end
|
95
93
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
96
94
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -172,7 +170,7 @@ module CloudmersiveValidateApiClient
|
|
172
170
|
# @return [Hash] Returns the value in the form of hash
|
173
171
|
def _to_hash(value)
|
174
172
|
if value.is_a?(Array)
|
175
|
-
value.compact.map{ |v| _to_hash(v) }
|
173
|
+
value.compact.map { |v| _to_hash(v) }
|
176
174
|
elsif value.is_a?(Hash)
|
177
175
|
{}.tap do |hash|
|
178
176
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -185,5 +183,4 @@ module CloudmersiveValidateApiClient
|
|
185
183
|
end
|
186
184
|
|
187
185
|
end
|
188
|
-
|
189
186
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -30,7 +30,6 @@ module CloudmersiveValidateApiClient
|
|
30
30
|
# Well-formed version of the URL
|
31
31
|
attr_accessor :well_formed_url
|
32
32
|
|
33
|
-
|
34
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
34
|
def self.attribute_map
|
36
35
|
{
|
@@ -59,7 +58,7 @@ module CloudmersiveValidateApiClient
|
|
59
58
|
return unless attributes.is_a?(Hash)
|
60
59
|
|
61
60
|
# convert string to symbol for hash key
|
62
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
63
62
|
|
64
63
|
if attributes.has_key?(:'ValidURL')
|
65
64
|
self.valid_url = attributes[:'ValidURL']
|
@@ -80,20 +79,19 @@ module CloudmersiveValidateApiClient
|
|
80
79
|
if attributes.has_key?(:'WellFormedURL')
|
81
80
|
self.well_formed_url = attributes[:'WellFormedURL']
|
82
81
|
end
|
83
|
-
|
84
82
|
end
|
85
83
|
|
86
84
|
# Show invalid properties with the reasons. Usually used together with valid?
|
87
85
|
# @return Array for valid properties with the reasons
|
88
86
|
def list_invalid_properties
|
89
87
|
invalid_properties = Array.new
|
90
|
-
|
88
|
+
invalid_properties
|
91
89
|
end
|
92
90
|
|
93
91
|
# Check to see if the all the properties in the model are valid
|
94
92
|
# @return true if the model is valid
|
95
93
|
def valid?
|
96
|
-
|
94
|
+
true
|
97
95
|
end
|
98
96
|
|
99
97
|
# Checks equality by comparing each attribute.
|
@@ -127,10 +125,10 @@ module CloudmersiveValidateApiClient
|
|
127
125
|
return nil unless attributes.is_a?(Hash)
|
128
126
|
self.class.swagger_types.each_pair do |key, type|
|
129
127
|
if type =~ /\AArray<(.*)>/i
|
130
|
-
# check to ensure the input is an array given that the
|
128
|
+
# check to ensure the input is an array given that the attribute
|
131
129
|
# is documented as an array but the input is not
|
132
130
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
133
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
131
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
134
132
|
end
|
135
133
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
136
134
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -212,7 +210,7 @@ module CloudmersiveValidateApiClient
|
|
212
210
|
# @return [Hash] Returns the value in the form of hash
|
213
211
|
def _to_hash(value)
|
214
212
|
if value.is_a?(Array)
|
215
|
-
value.compact.map{ |v| _to_hash(v) }
|
213
|
+
value.compact.map { |v| _to_hash(v) }
|
216
214
|
elsif value.is_a?(Hash)
|
217
215
|
{}.tap do |hash|
|
218
216
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -225,5 +223,4 @@ module CloudmersiveValidateApiClient
|
|
225
223
|
end
|
226
224
|
|
227
225
|
end
|
228
|
-
|
229
226
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,7 +21,6 @@ module CloudmersiveValidateApiClient
|
|
21
21
|
# Well-formed version of the URL
|
22
22
|
attr_accessor :well_formed_url
|
23
23
|
|
24
|
-
|
25
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
25
|
def self.attribute_map
|
27
26
|
{
|
@@ -44,7 +43,7 @@ module CloudmersiveValidateApiClient
|
|
44
43
|
return unless attributes.is_a?(Hash)
|
45
44
|
|
46
45
|
# convert string to symbol for hash key
|
47
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
46
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
48
47
|
|
49
48
|
if attributes.has_key?(:'ValidURL')
|
50
49
|
self.valid_url = attributes[:'ValidURL']
|
@@ -53,20 +52,19 @@ module CloudmersiveValidateApiClient
|
|
53
52
|
if attributes.has_key?(:'WellFormedURL')
|
54
53
|
self.well_formed_url = attributes[:'WellFormedURL']
|
55
54
|
end
|
56
|
-
|
57
55
|
end
|
58
56
|
|
59
57
|
# Show invalid properties with the reasons. Usually used together with valid?
|
60
58
|
# @return Array for valid properties with the reasons
|
61
59
|
def list_invalid_properties
|
62
60
|
invalid_properties = Array.new
|
63
|
-
|
61
|
+
invalid_properties
|
64
62
|
end
|
65
63
|
|
66
64
|
# Check to see if the all the properties in the model are valid
|
67
65
|
# @return true if the model is valid
|
68
66
|
def valid?
|
69
|
-
|
67
|
+
true
|
70
68
|
end
|
71
69
|
|
72
70
|
# Checks equality by comparing each attribute.
|
@@ -97,10 +95,10 @@ module CloudmersiveValidateApiClient
|
|
97
95
|
return nil unless attributes.is_a?(Hash)
|
98
96
|
self.class.swagger_types.each_pair do |key, type|
|
99
97
|
if type =~ /\AArray<(.*)>/i
|
100
|
-
# check to ensure the input is an array given that the
|
98
|
+
# check to ensure the input is an array given that the attribute
|
101
99
|
# is documented as an array but the input is not
|
102
100
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
103
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
101
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
104
102
|
end
|
105
103
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
106
104
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -182,7 +180,7 @@ module CloudmersiveValidateApiClient
|
|
182
180
|
# @return [Hash] Returns the value in the form of hash
|
183
181
|
def _to_hash(value)
|
184
182
|
if value.is_a?(Array)
|
185
|
-
value.compact.map{ |v| _to_hash(v) }
|
183
|
+
value.compact.map { |v| _to_hash(v) }
|
186
184
|
elsif value.is_a?(Hash)
|
187
185
|
{}.tap do |hash|
|
188
186
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -195,5 +193,4 @@ module CloudmersiveValidateApiClient
|
|
195
193
|
end
|
196
194
|
|
197
195
|
end
|
198
|
-
|
199
196
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,7 +18,6 @@ module CloudmersiveValidateApiClient
|
|
18
18
|
# VAT code to lookup; example \"CZ25123891\"
|
19
19
|
attr_accessor :vat_code
|
20
20
|
|
21
|
-
|
22
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
22
|
def self.attribute_map
|
24
23
|
{
|
@@ -39,25 +38,24 @@ module CloudmersiveValidateApiClient
|
|
39
38
|
return unless attributes.is_a?(Hash)
|
40
39
|
|
41
40
|
# convert string to symbol for hash key
|
42
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
41
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
43
42
|
|
44
43
|
if attributes.has_key?(:'VatCode')
|
45
44
|
self.vat_code = attributes[:'VatCode']
|
46
45
|
end
|
47
|
-
|
48
46
|
end
|
49
47
|
|
50
48
|
# Show invalid properties with the reasons. Usually used together with valid?
|
51
49
|
# @return Array for valid properties with the reasons
|
52
50
|
def list_invalid_properties
|
53
51
|
invalid_properties = Array.new
|
54
|
-
|
52
|
+
invalid_properties
|
55
53
|
end
|
56
54
|
|
57
55
|
# Check to see if the all the properties in the model are valid
|
58
56
|
# @return true if the model is valid
|
59
57
|
def valid?
|
60
|
-
|
58
|
+
true
|
61
59
|
end
|
62
60
|
|
63
61
|
# Checks equality by comparing each attribute.
|
@@ -87,10 +85,10 @@ module CloudmersiveValidateApiClient
|
|
87
85
|
return nil unless attributes.is_a?(Hash)
|
88
86
|
self.class.swagger_types.each_pair do |key, type|
|
89
87
|
if type =~ /\AArray<(.*)>/i
|
90
|
-
# check to ensure the input is an array given that the
|
88
|
+
# check to ensure the input is an array given that the attribute
|
91
89
|
# is documented as an array but the input is not
|
92
90
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
93
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
91
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
94
92
|
end
|
95
93
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
96
94
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -172,7 +170,7 @@ module CloudmersiveValidateApiClient
|
|
172
170
|
# @return [Hash] Returns the value in the form of hash
|
173
171
|
def _to_hash(value)
|
174
172
|
if value.is_a?(Array)
|
175
|
-
value.compact.map{ |v| _to_hash(v) }
|
173
|
+
value.compact.map { |v| _to_hash(v) }
|
176
174
|
elsif value.is_a?(Hash)
|
177
175
|
{}.tap do |hash|
|
178
176
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -185,5 +183,4 @@ module CloudmersiveValidateApiClient
|
|
185
183
|
end
|
186
184
|
|
187
185
|
end
|
188
|
-
|
189
186
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CloudmersiveValidateApiClient
|
16
|
-
|
17
16
|
class VatLookupResponse
|
18
17
|
# Two-letter country code
|
19
18
|
attr_accessor :country_code
|
@@ -51,7 +50,6 @@ module CloudmersiveValidateApiClient
|
|
51
50
|
# For the business address, country of the address, if present in the address. If not included in the address it will be null.
|
52
51
|
attr_accessor :business_country
|
53
52
|
|
54
|
-
|
55
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
54
|
def self.attribute_map
|
57
55
|
{
|
@@ -94,7 +92,7 @@ module CloudmersiveValidateApiClient
|
|
94
92
|
return unless attributes.is_a?(Hash)
|
95
93
|
|
96
94
|
# convert string to symbol for hash key
|
97
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
95
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
98
96
|
|
99
97
|
if attributes.has_key?(:'CountryCode')
|
100
98
|
self.country_code = attributes[:'CountryCode']
|
@@ -143,20 +141,19 @@ module CloudmersiveValidateApiClient
|
|
143
141
|
if attributes.has_key?(:'BusinessCountry')
|
144
142
|
self.business_country = attributes[:'BusinessCountry']
|
145
143
|
end
|
146
|
-
|
147
144
|
end
|
148
145
|
|
149
146
|
# Show invalid properties with the reasons. Usually used together with valid?
|
150
147
|
# @return Array for valid properties with the reasons
|
151
148
|
def list_invalid_properties
|
152
149
|
invalid_properties = Array.new
|
153
|
-
|
150
|
+
invalid_properties
|
154
151
|
end
|
155
152
|
|
156
153
|
# Check to see if the all the properties in the model are valid
|
157
154
|
# @return true if the model is valid
|
158
155
|
def valid?
|
159
|
-
|
156
|
+
true
|
160
157
|
end
|
161
158
|
|
162
159
|
# Checks equality by comparing each attribute.
|
@@ -197,10 +194,10 @@ module CloudmersiveValidateApiClient
|
|
197
194
|
return nil unless attributes.is_a?(Hash)
|
198
195
|
self.class.swagger_types.each_pair do |key, type|
|
199
196
|
if type =~ /\AArray<(.*)>/i
|
200
|
-
# check to ensure the input is an array given that the
|
197
|
+
# check to ensure the input is an array given that the attribute
|
201
198
|
# is documented as an array but the input is not
|
202
199
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
203
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
200
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
204
201
|
end
|
205
202
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
206
203
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -282,7 +279,7 @@ module CloudmersiveValidateApiClient
|
|
282
279
|
# @return [Hash] Returns the value in the form of hash
|
283
280
|
def _to_hash(value)
|
284
281
|
if value.is_a?(Array)
|
285
|
-
value.compact.map{ |v| _to_hash(v) }
|
282
|
+
value.compact.map { |v| _to_hash(v) }
|
286
283
|
elsif value.is_a?(Hash)
|
287
284
|
{}.tap do |hash|
|
288
285
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -295,5 +292,4 @@ module CloudmersiveValidateApiClient
|
|
295
292
|
end
|
296
293
|
|
297
294
|
end
|
298
|
-
|
299
295
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -60,7 +60,6 @@ module CloudmersiveValidateApiClient
|
|
60
60
|
# Creation date for the record
|
61
61
|
attr_accessor :created_dt
|
62
62
|
|
63
|
-
|
64
63
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
64
|
def self.attribute_map
|
66
65
|
{
|
@@ -109,7 +108,7 @@ module CloudmersiveValidateApiClient
|
|
109
108
|
return unless attributes.is_a?(Hash)
|
110
109
|
|
111
110
|
# convert string to symbol for hash key
|
112
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
111
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
113
112
|
|
114
113
|
if attributes.has_key?(:'ValidDomain')
|
115
114
|
self.valid_domain = attributes[:'ValidDomain']
|
@@ -170,20 +169,19 @@ module CloudmersiveValidateApiClient
|
|
170
169
|
if attributes.has_key?(:'CreatedDt')
|
171
170
|
self.created_dt = attributes[:'CreatedDt']
|
172
171
|
end
|
173
|
-
|
174
172
|
end
|
175
173
|
|
176
174
|
# Show invalid properties with the reasons. Usually used together with valid?
|
177
175
|
# @return Array for valid properties with the reasons
|
178
176
|
def list_invalid_properties
|
179
177
|
invalid_properties = Array.new
|
180
|
-
|
178
|
+
invalid_properties
|
181
179
|
end
|
182
180
|
|
183
181
|
# Check to see if the all the properties in the model are valid
|
184
182
|
# @return true if the model is valid
|
185
183
|
def valid?
|
186
|
-
|
184
|
+
true
|
187
185
|
end
|
188
186
|
|
189
187
|
# Checks equality by comparing each attribute.
|
@@ -227,10 +225,10 @@ module CloudmersiveValidateApiClient
|
|
227
225
|
return nil unless attributes.is_a?(Hash)
|
228
226
|
self.class.swagger_types.each_pair do |key, type|
|
229
227
|
if type =~ /\AArray<(.*)>/i
|
230
|
-
# check to ensure the input is an array given that the
|
228
|
+
# check to ensure the input is an array given that the attribute
|
231
229
|
# is documented as an array but the input is not
|
232
230
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
233
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
231
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
234
232
|
end
|
235
233
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
236
234
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -312,7 +310,7 @@ module CloudmersiveValidateApiClient
|
|
312
310
|
# @return [Hash] Returns the value in the form of hash
|
313
311
|
def _to_hash(value)
|
314
312
|
if value.is_a?(Array)
|
315
|
-
value.compact.map{ |v| _to_hash(v) }
|
313
|
+
value.compact.map { |v| _to_hash(v) }
|
316
314
|
elsif value.is_a?(Hash)
|
317
315
|
{}.tap do |hash|
|
318
316
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -325,5 +323,4 @@ module CloudmersiveValidateApiClient
|
|
325
323
|
end
|
326
324
|
|
327
325
|
end
|
328
|
-
|
329
326
|
end
|
@@ -6,10 +6,10 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module CloudmersiveValidateApiClient
|
14
|
-
VERSION =
|
14
|
+
VERSION = '2.0.5'
|
15
15
|
end
|