cloudmersive-validate-api-client 1.4.1 → 1.4.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 +8 -5
- data/docs/AddressApi.md +55 -0
- data/docs/ValidateAddressRequest.md +13 -0
- data/docs/ValidateAddressResponse.md +10 -0
- data/docs/VatApi.md +4 -4
- data/lib/cloudmersive-validate-api-client.rb +2 -0
- data/lib/cloudmersive-validate-api-client/api/address_api.rb +55 -0
- data/lib/cloudmersive-validate-api-client/api/vat_api.rb +4 -4
- data/lib/cloudmersive-validate-api-client/models/validate_address_request.rb +239 -0
- data/lib/cloudmersive-validate-api-client/models/validate_address_response.rb +209 -0
- data/lib/cloudmersive-validate-api-client/version.rb +1 -1
- data/spec/api/address_api_spec.rb +12 -0
- data/spec/api/vat_api_spec.rb +2 -2
- data/spec/models/validate_address_request_spec.rb +72 -0
- data/spec/models/validate_address_response_spec.rb +54 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dd31c396fb2d49d594cb0acf9389b9d9eafb01730cdde578e076b02399126a2
|
4
|
+
data.tar.gz: 19351b79a40f5fd76e00d9959cd663fb2cbb071974c9ff649c036ac3ef4c8dc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2f4e4d201eb955b6dcd9d546f3569ed794734a351b1d3fd4e5753b6f49d7f429e112daeeecf731c23ba33014c886d0587082d8ce8085bcdcb82649d35419585
|
7
|
+
data.tar.gz: 11895ff892a925b1a5376b1cb743e3abb859610c06640d509b714845a945f20f41503fca85369e4f0ca0c911279a1ba8d7f39fa0f2c1950b8cea9dd6c441e939
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ The validation APIs help you validate data. Check if an E-mail address is real.
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: v1
|
10
|
-
- Package version: 1.4.
|
10
|
+
- Package version: 1.4.2
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build cloudmersive-validate-api-client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./cloudmersive-validate-api-client-1.4.
|
26
|
+
gem install ./cloudmersive-validate-api-client-1.4.2.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-validate-api-client-1.4.
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-validate-api-client-1.4.2.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'cloudmersive-validate-api-client', '~> 1.4.
|
34
|
+
gem 'cloudmersive-validate-api-client', '~> 1.4.2'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -86,6 +86,7 @@ Class | Method | HTTP request | Description
|
|
86
86
|
*CloudmersiveValidateApiClient::AddressApi* | [**address_country**](docs/AddressApi.md#address_country) | **POST** /validate/address/country | Validate and normalize country information, return ISO 3166-1 country codes and country name
|
87
87
|
*CloudmersiveValidateApiClient::AddressApi* | [**address_get_timezone**](docs/AddressApi.md#address_get_timezone) | **POST** /validate/address/country/get-timezones | Gets IANA/Olsen time zones for a country
|
88
88
|
*CloudmersiveValidateApiClient::AddressApi* | [**address_parse_string**](docs/AddressApi.md#address_parse_string) | **POST** /validate/address/parse | Parse an unstructured input text string into an international, formatted address
|
89
|
+
*CloudmersiveValidateApiClient::AddressApi* | [**address_validate_address**](docs/AddressApi.md#address_validate_address) | **POST** /validate/address/street-address | Validate a street address
|
89
90
|
*CloudmersiveValidateApiClient::DomainApi* | [**domain_check**](docs/DomainApi.md#domain_check) | **POST** /validate/domain/check | Validate a domain name
|
90
91
|
*CloudmersiveValidateApiClient::DomainApi* | [**domain_post**](docs/DomainApi.md#domain_post) | **POST** /validate/domain/whois | Get WHOIS information for a domain
|
91
92
|
*CloudmersiveValidateApiClient::DomainApi* | [**domain_url_full**](docs/DomainApi.md#domain_url_full) | **POST** /validate/domain/url/full | Validate a URL fully
|
@@ -102,7 +103,7 @@ Class | Method | HTTP request | Description
|
|
102
103
|
*CloudmersiveValidateApiClient::NameApi* | [**name_validate_last_name**](docs/NameApi.md#name_validate_last_name) | **POST** /validate/name/last | Validate a last name
|
103
104
|
*CloudmersiveValidateApiClient::PhoneNumberApi* | [**phone_number_syntax_only**](docs/PhoneNumberApi.md#phone_number_syntax_only) | **POST** /validate/phonenumber/basic | Validate phone number (basic)
|
104
105
|
*CloudmersiveValidateApiClient::UserAgentApi* | [**user_agent_parse**](docs/UserAgentApi.md#user_agent_parse) | **POST** /validate/useragent/parse | Parse an HTTP User-Agent string, identify robots
|
105
|
-
*CloudmersiveValidateApiClient::VatApi* | [**vat_vat_lookup**](docs/VatApi.md#vat_vat_lookup) | **POST** /validate/vat/lookup |
|
106
|
+
*CloudmersiveValidateApiClient::VatApi* | [**vat_vat_lookup**](docs/VatApi.md#vat_vat_lookup) | **POST** /validate/vat/lookup | Validate a VAT number
|
106
107
|
|
107
108
|
|
108
109
|
## Documentation for Models
|
@@ -131,6 +132,8 @@ Class | Method | HTTP request | Description
|
|
131
132
|
- [CloudmersiveValidateApiClient::Timezone](docs/Timezone.md)
|
132
133
|
- [CloudmersiveValidateApiClient::UserAgentValidateRequest](docs/UserAgentValidateRequest.md)
|
133
134
|
- [CloudmersiveValidateApiClient::UserAgentValidateResponse](docs/UserAgentValidateResponse.md)
|
135
|
+
- [CloudmersiveValidateApiClient::ValidateAddressRequest](docs/ValidateAddressRequest.md)
|
136
|
+
- [CloudmersiveValidateApiClient::ValidateAddressResponse](docs/ValidateAddressResponse.md)
|
134
137
|
- [CloudmersiveValidateApiClient::ValidateCountryRequest](docs/ValidateCountryRequest.md)
|
135
138
|
- [CloudmersiveValidateApiClient::ValidateCountryResponse](docs/ValidateCountryResponse.md)
|
136
139
|
- [CloudmersiveValidateApiClient::ValidateIdentifierRequest](docs/ValidateIdentifierRequest.md)
|
data/docs/AddressApi.md
CHANGED
@@ -7,6 +7,7 @@ Method | HTTP request | Description
|
|
7
7
|
[**address_country**](AddressApi.md#address_country) | **POST** /validate/address/country | Validate and normalize country information, return ISO 3166-1 country codes and country name
|
8
8
|
[**address_get_timezone**](AddressApi.md#address_get_timezone) | **POST** /validate/address/country/get-timezones | Gets IANA/Olsen time zones for a country
|
9
9
|
[**address_parse_string**](AddressApi.md#address_parse_string) | **POST** /validate/address/parse | Parse an unstructured input text string into an international, formatted address
|
10
|
+
[**address_validate_address**](AddressApi.md#address_validate_address) | **POST** /validate/address/street-address | Validate a street address
|
10
11
|
|
11
12
|
|
12
13
|
# **address_country**
|
@@ -171,3 +172,57 @@ Name | Type | Description | Notes
|
|
171
172
|
|
172
173
|
|
173
174
|
|
175
|
+
# **address_validate_address**
|
176
|
+
> ValidateAddressResponse address_validate_address(input)
|
177
|
+
|
178
|
+
Validate a street address
|
179
|
+
|
180
|
+
Determines if an input structured street address is valid or invalid. If the address is valid, also returns the latitude and longitude of the address.
|
181
|
+
|
182
|
+
### Example
|
183
|
+
```ruby
|
184
|
+
# load the gem
|
185
|
+
require 'cloudmersive-validate-api-client'
|
186
|
+
# setup authorization
|
187
|
+
CloudmersiveValidateApiClient.configure do |config|
|
188
|
+
# Configure API key authorization: Apikey
|
189
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
190
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
191
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
192
|
+
end
|
193
|
+
|
194
|
+
api_instance = CloudmersiveValidateApiClient::AddressApi.new
|
195
|
+
|
196
|
+
input = CloudmersiveValidateApiClient::ValidateAddressRequest.new # ValidateAddressRequest | Input parse request
|
197
|
+
|
198
|
+
|
199
|
+
begin
|
200
|
+
#Validate a street address
|
201
|
+
result = api_instance.address_validate_address(input)
|
202
|
+
p result
|
203
|
+
rescue CloudmersiveValidateApiClient::ApiError => e
|
204
|
+
puts "Exception when calling AddressApi->address_validate_address: #{e}"
|
205
|
+
end
|
206
|
+
```
|
207
|
+
|
208
|
+
### Parameters
|
209
|
+
|
210
|
+
Name | Type | Description | Notes
|
211
|
+
------------- | ------------- | ------------- | -------------
|
212
|
+
**input** | [**ValidateAddressRequest**](ValidateAddressRequest.md)| Input parse request |
|
213
|
+
|
214
|
+
### Return type
|
215
|
+
|
216
|
+
[**ValidateAddressResponse**](ValidateAddressResponse.md)
|
217
|
+
|
218
|
+
### Authorization
|
219
|
+
|
220
|
+
[Apikey](../README.md#Apikey)
|
221
|
+
|
222
|
+
### HTTP request headers
|
223
|
+
|
224
|
+
- **Content-Type**: application/json, text/json
|
225
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
226
|
+
|
227
|
+
|
228
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# CloudmersiveValidateApiClient::ValidateAddressRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**street_address** | **String** | Required; Street address to validate, such as '2950 Buskirk Ave.' | [optional]
|
7
|
+
**city** | **String** | Required; City part of the addrerss to validate, such as 'Walnut Creek' | [optional]
|
8
|
+
**state_or_province** | **String** | Required; State or province of the address to validate, such as 'CA' or 'California' | [optional]
|
9
|
+
**postal_code** | **String** | Optional (recommended); Zip code or postal code of the address to validate, such as '94597' | [optional]
|
10
|
+
**country_full_name** | **String** | Optional (recommended); Name of the country, such as 'United States'. If left blank, and CountryCode is also left blank, will default to United States. Global countries are supported. | [optional]
|
11
|
+
**country_code** | **String** | Optional; two-letter country code (Two-letter ISO 3166-1 country code) of the country. If left blank, and CountryFullName is also left blank, will default to United States. Global countries are supported. | [optional]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# CloudmersiveValidateApiClient::ValidateAddressResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**valid_address** | **BOOLEAN** | True if the address is valid, false otherwise | [optional]
|
7
|
+
**latitude** | **Float** | If the address is valid, the degrees latitude of the validated address, null otherwise | [optional]
|
8
|
+
**longitude** | **Float** | If the address is valid, the degrees longitude of the validated address, null otherwise | [optional]
|
9
|
+
|
10
|
+
|
data/docs/VatApi.md
CHANGED
@@ -4,15 +4,15 @@ All URIs are relative to *https://api.cloudmersive.com*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**vat_vat_lookup**](VatApi.md#vat_vat_lookup) | **POST** /validate/vat/lookup |
|
7
|
+
[**vat_vat_lookup**](VatApi.md#vat_vat_lookup) | **POST** /validate/vat/lookup | Validate a VAT number
|
8
8
|
|
9
9
|
|
10
10
|
# **vat_vat_lookup**
|
11
11
|
> VatLookupResponse vat_vat_lookup(input)
|
12
12
|
|
13
|
-
|
13
|
+
Validate a VAT number
|
14
14
|
|
15
|
-
Checks if a VAT code is valid, and if it is, returns more information about it
|
15
|
+
Checks if a VAT code is valid, and if it is, returns more information about it. The first two letters of the VAT number must be letters that indicate the country, such as LU20260743. Possible country codes include Austria (AT), Belgium (BE), Bulgaria (BG), Cyprus (CY), Czech Republic (CZ), Germany (DE), Denmark (DK), Estonia (EE), Greece (EL), Spain (ES), Finland (FI), France (FR), United Kingdom (GB), Croatia (HR), Hungary (HU), Ireland (IE), Italy (IT), Lithuania (LT), Luxembourg (LU), Latvia (LV), Malta (MT), The Netherlands (NL), Poland (PL), Portugal (PT), Romania (RO), Sweden (SE), Slovenia (SI), Slovakia (SK).
|
16
16
|
|
17
17
|
### Example
|
18
18
|
```ruby
|
@@ -32,7 +32,7 @@ input = CloudmersiveValidateApiClient::VatLookupRequest.new # VatLookupRequest |
|
|
32
32
|
|
33
33
|
|
34
34
|
begin
|
35
|
-
#
|
35
|
+
#Validate a VAT number
|
36
36
|
result = api_instance.vat_vat_lookup(input)
|
37
37
|
p result
|
38
38
|
rescue CloudmersiveValidateApiClient::ApiError => e
|
@@ -41,6 +41,8 @@ require 'cloudmersive-validate-api-client/models/phone_number_validation_respons
|
|
41
41
|
require 'cloudmersive-validate-api-client/models/timezone'
|
42
42
|
require 'cloudmersive-validate-api-client/models/user_agent_validate_request'
|
43
43
|
require 'cloudmersive-validate-api-client/models/user_agent_validate_response'
|
44
|
+
require 'cloudmersive-validate-api-client/models/validate_address_request'
|
45
|
+
require 'cloudmersive-validate-api-client/models/validate_address_response'
|
44
46
|
require 'cloudmersive-validate-api-client/models/validate_country_request'
|
45
47
|
require 'cloudmersive-validate-api-client/models/validate_country_response'
|
46
48
|
require 'cloudmersive-validate-api-client/models/validate_identifier_request'
|
@@ -184,5 +184,60 @@ module CloudmersiveValidateApiClient
|
|
184
184
|
end
|
185
185
|
return data, status_code, headers
|
186
186
|
end
|
187
|
+
|
188
|
+
# Validate a street address
|
189
|
+
# Determines if an input structured street address is valid or invalid. If the address is valid, also returns the latitude and longitude of the address.
|
190
|
+
# @param input Input parse request
|
191
|
+
# @param [Hash] opts the optional parameters
|
192
|
+
# @return [ValidateAddressResponse]
|
193
|
+
def address_validate_address(input, opts = {})
|
194
|
+
data, _status_code, _headers = address_validate_address_with_http_info(input, opts)
|
195
|
+
return data
|
196
|
+
end
|
197
|
+
|
198
|
+
# Validate a street address
|
199
|
+
# Determines if an input structured street address is valid or invalid. If the address is valid, also returns the latitude and longitude of the address.
|
200
|
+
# @param input Input parse request
|
201
|
+
# @param [Hash] opts the optional parameters
|
202
|
+
# @return [Array<(ValidateAddressResponse, Fixnum, Hash)>] ValidateAddressResponse data, response status code and response headers
|
203
|
+
def address_validate_address_with_http_info(input, opts = {})
|
204
|
+
if @api_client.config.debugging
|
205
|
+
@api_client.config.logger.debug "Calling API: AddressApi.address_validate_address ..."
|
206
|
+
end
|
207
|
+
# verify the required parameter 'input' is set
|
208
|
+
if @api_client.config.client_side_validation && input.nil?
|
209
|
+
fail ArgumentError, "Missing the required parameter 'input' when calling AddressApi.address_validate_address"
|
210
|
+
end
|
211
|
+
# resource path
|
212
|
+
local_var_path = "/validate/address/street-address"
|
213
|
+
|
214
|
+
# query parameters
|
215
|
+
query_params = {}
|
216
|
+
|
217
|
+
# header parameters
|
218
|
+
header_params = {}
|
219
|
+
# HTTP header 'Accept' (if needed)
|
220
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
221
|
+
# HTTP header 'Content-Type'
|
222
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
|
223
|
+
|
224
|
+
# form parameters
|
225
|
+
form_params = {}
|
226
|
+
|
227
|
+
# http body (model)
|
228
|
+
post_body = @api_client.object_to_http_body(input)
|
229
|
+
auth_names = ['Apikey']
|
230
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
231
|
+
:header_params => header_params,
|
232
|
+
:query_params => query_params,
|
233
|
+
:form_params => form_params,
|
234
|
+
:body => post_body,
|
235
|
+
:auth_names => auth_names,
|
236
|
+
:return_type => 'ValidateAddressResponse')
|
237
|
+
if @api_client.config.debugging
|
238
|
+
@api_client.config.logger.debug "API called: AddressApi#address_validate_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
239
|
+
end
|
240
|
+
return data, status_code, headers
|
241
|
+
end
|
187
242
|
end
|
188
243
|
end
|
@@ -20,8 +20,8 @@ module CloudmersiveValidateApiClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
|
23
|
-
#
|
24
|
-
# Checks if a VAT code is valid, and if it is, returns more information about it
|
23
|
+
# Validate a VAT number
|
24
|
+
# Checks if a VAT code is valid, and if it is, returns more information about it. The first two letters of the VAT number must be letters that indicate the country, such as LU20260743. Possible country codes include Austria (AT), Belgium (BE), Bulgaria (BG), Cyprus (CY), Czech Republic (CZ), Germany (DE), Denmark (DK), Estonia (EE), Greece (EL), Spain (ES), Finland (FI), France (FR), United Kingdom (GB), Croatia (HR), Hungary (HU), Ireland (IE), Italy (IT), Lithuania (LT), Luxembourg (LU), Latvia (LV), Malta (MT), The Netherlands (NL), Poland (PL), Portugal (PT), Romania (RO), Sweden (SE), Slovenia (SI), Slovakia (SK).
|
25
25
|
# @param input Input VAT code
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [VatLookupResponse]
|
@@ -30,8 +30,8 @@ module CloudmersiveValidateApiClient
|
|
30
30
|
return data
|
31
31
|
end
|
32
32
|
|
33
|
-
#
|
34
|
-
# Checks if a VAT code is valid, and if it is, returns more information about it
|
33
|
+
# Validate a VAT number
|
34
|
+
# Checks if a VAT code is valid, and if it is, returns more information about it. The first two letters of the VAT number must be letters that indicate the country, such as LU20260743. Possible country codes include Austria (AT), Belgium (BE), Bulgaria (BG), Cyprus (CY), Czech Republic (CZ), Germany (DE), Denmark (DK), Estonia (EE), Greece (EL), Spain (ES), Finland (FI), France (FR), United Kingdom (GB), Croatia (HR), Hungary (HU), Ireland (IE), Italy (IT), Lithuania (LT), Luxembourg (LU), Latvia (LV), Malta (MT), The Netherlands (NL), Poland (PL), Portugal (PT), Romania (RO), Sweden (SE), Slovenia (SI), Slovakia (SK).
|
35
35
|
# @param input Input VAT code
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(VatLookupResponse, Fixnum, Hash)>] VatLookupResponse data, response status code and response headers
|
@@ -0,0 +1,239 @@
|
|
1
|
+
=begin
|
2
|
+
#validateapi
|
3
|
+
|
4
|
+
#The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CloudmersiveValidateApiClient
|
16
|
+
# Request to Validate a Street Address
|
17
|
+
class ValidateAddressRequest
|
18
|
+
# Required; Street address to validate, such as '2950 Buskirk Ave.'
|
19
|
+
attr_accessor :street_address
|
20
|
+
|
21
|
+
# Required; City part of the addrerss to validate, such as 'Walnut Creek'
|
22
|
+
attr_accessor :city
|
23
|
+
|
24
|
+
# Required; State or province of the address to validate, such as 'CA' or 'California'
|
25
|
+
attr_accessor :state_or_province
|
26
|
+
|
27
|
+
# Optional (recommended); Zip code or postal code of the address to validate, such as '94597'
|
28
|
+
attr_accessor :postal_code
|
29
|
+
|
30
|
+
# Optional (recommended); Name of the country, such as 'United States'. If left blank, and CountryCode is also left blank, will default to United States. Global countries are supported.
|
31
|
+
attr_accessor :country_full_name
|
32
|
+
|
33
|
+
# Optional; two-letter country code (Two-letter ISO 3166-1 country code) of the country. If left blank, and CountryFullName is also left blank, will default to United States. Global countries are supported.
|
34
|
+
attr_accessor :country_code
|
35
|
+
|
36
|
+
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
def self.attribute_map
|
39
|
+
{
|
40
|
+
:'street_address' => :'StreetAddress',
|
41
|
+
:'city' => :'City',
|
42
|
+
:'state_or_province' => :'StateOrProvince',
|
43
|
+
:'postal_code' => :'PostalCode',
|
44
|
+
:'country_full_name' => :'CountryFullName',
|
45
|
+
:'country_code' => :'CountryCode'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
def self.swagger_types
|
51
|
+
{
|
52
|
+
:'street_address' => :'String',
|
53
|
+
:'city' => :'String',
|
54
|
+
:'state_or_province' => :'String',
|
55
|
+
:'postal_code' => :'String',
|
56
|
+
:'country_full_name' => :'String',
|
57
|
+
:'country_code' => :'String'
|
58
|
+
}
|
59
|
+
end
|
60
|
+
|
61
|
+
# Initializes the object
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
63
|
+
def initialize(attributes = {})
|
64
|
+
return unless attributes.is_a?(Hash)
|
65
|
+
|
66
|
+
# convert string to symbol for hash key
|
67
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
68
|
+
|
69
|
+
if attributes.has_key?(:'StreetAddress')
|
70
|
+
self.street_address = attributes[:'StreetAddress']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.has_key?(:'City')
|
74
|
+
self.city = attributes[:'City']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'StateOrProvince')
|
78
|
+
self.state_or_province = attributes[:'StateOrProvince']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.has_key?(:'PostalCode')
|
82
|
+
self.postal_code = attributes[:'PostalCode']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.has_key?(:'CountryFullName')
|
86
|
+
self.country_full_name = attributes[:'CountryFullName']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.has_key?(:'CountryCode')
|
90
|
+
self.country_code = attributes[:'CountryCode']
|
91
|
+
end
|
92
|
+
|
93
|
+
end
|
94
|
+
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
96
|
+
# @return Array for valid properties with the reasons
|
97
|
+
def list_invalid_properties
|
98
|
+
invalid_properties = Array.new
|
99
|
+
return invalid_properties
|
100
|
+
end
|
101
|
+
|
102
|
+
# Check to see if the all the properties in the model are valid
|
103
|
+
# @return true if the model is valid
|
104
|
+
def valid?
|
105
|
+
return true
|
106
|
+
end
|
107
|
+
|
108
|
+
# Checks equality by comparing each attribute.
|
109
|
+
# @param [Object] Object to be compared
|
110
|
+
def ==(o)
|
111
|
+
return true if self.equal?(o)
|
112
|
+
self.class == o.class &&
|
113
|
+
street_address == o.street_address &&
|
114
|
+
city == o.city &&
|
115
|
+
state_or_province == o.state_or_province &&
|
116
|
+
postal_code == o.postal_code &&
|
117
|
+
country_full_name == o.country_full_name &&
|
118
|
+
country_code == o.country_code
|
119
|
+
end
|
120
|
+
|
121
|
+
# @see the `==` method
|
122
|
+
# @param [Object] Object to be compared
|
123
|
+
def eql?(o)
|
124
|
+
self == o
|
125
|
+
end
|
126
|
+
|
127
|
+
# Calculates hash code according to all attributes.
|
128
|
+
# @return [Fixnum] Hash code
|
129
|
+
def hash
|
130
|
+
[street_address, city, state_or_province, postal_code, country_full_name, country_code].hash
|
131
|
+
end
|
132
|
+
|
133
|
+
# Builds the object from hash
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
135
|
+
# @return [Object] Returns the model itself
|
136
|
+
def build_from_hash(attributes)
|
137
|
+
return nil unless attributes.is_a?(Hash)
|
138
|
+
self.class.swagger_types.each_pair do |key, type|
|
139
|
+
if type =~ /\AArray<(.*)>/i
|
140
|
+
# check to ensure the input is an array given that the the attribute
|
141
|
+
# is documented as an array but the input is not
|
142
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
143
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
144
|
+
end
|
145
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
146
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
147
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
148
|
+
end
|
149
|
+
|
150
|
+
self
|
151
|
+
end
|
152
|
+
|
153
|
+
# Deserializes the data based on type
|
154
|
+
# @param string type Data type
|
155
|
+
# @param string value Value to be deserialized
|
156
|
+
# @return [Object] Deserialized data
|
157
|
+
def _deserialize(type, value)
|
158
|
+
case type.to_sym
|
159
|
+
when :DateTime
|
160
|
+
DateTime.parse(value)
|
161
|
+
when :Date
|
162
|
+
Date.parse(value)
|
163
|
+
when :String
|
164
|
+
value.to_s
|
165
|
+
when :Integer
|
166
|
+
value.to_i
|
167
|
+
when :Float
|
168
|
+
value.to_f
|
169
|
+
when :BOOLEAN
|
170
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
171
|
+
true
|
172
|
+
else
|
173
|
+
false
|
174
|
+
end
|
175
|
+
when :Object
|
176
|
+
# generic object (usually a Hash), return directly
|
177
|
+
value
|
178
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
179
|
+
inner_type = Regexp.last_match[:inner_type]
|
180
|
+
value.map { |v| _deserialize(inner_type, v) }
|
181
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
182
|
+
k_type = Regexp.last_match[:k_type]
|
183
|
+
v_type = Regexp.last_match[:v_type]
|
184
|
+
{}.tap do |hash|
|
185
|
+
value.each do |k, v|
|
186
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
187
|
+
end
|
188
|
+
end
|
189
|
+
else # model
|
190
|
+
temp_model = CloudmersiveValidateApiClient.const_get(type).new
|
191
|
+
temp_model.build_from_hash(value)
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
# Returns the string representation of the object
|
196
|
+
# @return [String] String presentation of the object
|
197
|
+
def to_s
|
198
|
+
to_hash.to_s
|
199
|
+
end
|
200
|
+
|
201
|
+
# to_body is an alias to to_hash (backward compatibility)
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
203
|
+
def to_body
|
204
|
+
to_hash
|
205
|
+
end
|
206
|
+
|
207
|
+
# Returns the object in the form of hash
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
209
|
+
def to_hash
|
210
|
+
hash = {}
|
211
|
+
self.class.attribute_map.each_pair do |attr, param|
|
212
|
+
value = self.send(attr)
|
213
|
+
next if value.nil?
|
214
|
+
hash[param] = _to_hash(value)
|
215
|
+
end
|
216
|
+
hash
|
217
|
+
end
|
218
|
+
|
219
|
+
# Outputs non-array value in the form of hash
|
220
|
+
# For object, use to_hash. Otherwise, just return the value
|
221
|
+
# @param [Object] value Any valid value
|
222
|
+
# @return [Hash] Returns the value in the form of hash
|
223
|
+
def _to_hash(value)
|
224
|
+
if value.is_a?(Array)
|
225
|
+
value.compact.map{ |v| _to_hash(v) }
|
226
|
+
elsif value.is_a?(Hash)
|
227
|
+
{}.tap do |hash|
|
228
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
229
|
+
end
|
230
|
+
elsif value.respond_to? :to_hash
|
231
|
+
value.to_hash
|
232
|
+
else
|
233
|
+
value
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
end
|
238
|
+
|
239
|
+
end
|
@@ -0,0 +1,209 @@
|
|
1
|
+
=begin
|
2
|
+
#validateapi
|
3
|
+
|
4
|
+
#The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CloudmersiveValidateApiClient
|
16
|
+
# Result of validating a street address
|
17
|
+
class ValidateAddressResponse
|
18
|
+
# True if the address is valid, false otherwise
|
19
|
+
attr_accessor :valid_address
|
20
|
+
|
21
|
+
# If the address is valid, the degrees latitude of the validated address, null otherwise
|
22
|
+
attr_accessor :latitude
|
23
|
+
|
24
|
+
# If the address is valid, the degrees longitude of the validated address, null otherwise
|
25
|
+
attr_accessor :longitude
|
26
|
+
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'valid_address' => :'ValidAddress',
|
32
|
+
:'latitude' => :'Latitude',
|
33
|
+
:'longitude' => :'Longitude'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.swagger_types
|
39
|
+
{
|
40
|
+
:'valid_address' => :'BOOLEAN',
|
41
|
+
:'latitude' => :'Float',
|
42
|
+
:'longitude' => :'Float'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# Initializes the object
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
+
def initialize(attributes = {})
|
49
|
+
return unless attributes.is_a?(Hash)
|
50
|
+
|
51
|
+
# convert string to symbol for hash key
|
52
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
53
|
+
|
54
|
+
if attributes.has_key?(:'ValidAddress')
|
55
|
+
self.valid_address = attributes[:'ValidAddress']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes.has_key?(:'Latitude')
|
59
|
+
self.latitude = attributes[:'Latitude']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'Longitude')
|
63
|
+
self.longitude = attributes[:'Longitude']
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
|
68
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
69
|
+
# @return Array for valid properties with the reasons
|
70
|
+
def list_invalid_properties
|
71
|
+
invalid_properties = Array.new
|
72
|
+
return invalid_properties
|
73
|
+
end
|
74
|
+
|
75
|
+
# Check to see if the all the properties in the model are valid
|
76
|
+
# @return true if the model is valid
|
77
|
+
def valid?
|
78
|
+
return true
|
79
|
+
end
|
80
|
+
|
81
|
+
# Checks equality by comparing each attribute.
|
82
|
+
# @param [Object] Object to be compared
|
83
|
+
def ==(o)
|
84
|
+
return true if self.equal?(o)
|
85
|
+
self.class == o.class &&
|
86
|
+
valid_address == o.valid_address &&
|
87
|
+
latitude == o.latitude &&
|
88
|
+
longitude == o.longitude
|
89
|
+
end
|
90
|
+
|
91
|
+
# @see the `==` method
|
92
|
+
# @param [Object] Object to be compared
|
93
|
+
def eql?(o)
|
94
|
+
self == o
|
95
|
+
end
|
96
|
+
|
97
|
+
# Calculates hash code according to all attributes.
|
98
|
+
# @return [Fixnum] Hash code
|
99
|
+
def hash
|
100
|
+
[valid_address, latitude, longitude].hash
|
101
|
+
end
|
102
|
+
|
103
|
+
# Builds the object from hash
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
+
# @return [Object] Returns the model itself
|
106
|
+
def build_from_hash(attributes)
|
107
|
+
return nil unless attributes.is_a?(Hash)
|
108
|
+
self.class.swagger_types.each_pair do |key, type|
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
110
|
+
# check to ensure the input is an array given that the the attribute
|
111
|
+
# is documented as an array but the input is not
|
112
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
113
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
114
|
+
end
|
115
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
116
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
117
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
118
|
+
end
|
119
|
+
|
120
|
+
self
|
121
|
+
end
|
122
|
+
|
123
|
+
# Deserializes the data based on type
|
124
|
+
# @param string type Data type
|
125
|
+
# @param string value Value to be deserialized
|
126
|
+
# @return [Object] Deserialized data
|
127
|
+
def _deserialize(type, value)
|
128
|
+
case type.to_sym
|
129
|
+
when :DateTime
|
130
|
+
DateTime.parse(value)
|
131
|
+
when :Date
|
132
|
+
Date.parse(value)
|
133
|
+
when :String
|
134
|
+
value.to_s
|
135
|
+
when :Integer
|
136
|
+
value.to_i
|
137
|
+
when :Float
|
138
|
+
value.to_f
|
139
|
+
when :BOOLEAN
|
140
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
141
|
+
true
|
142
|
+
else
|
143
|
+
false
|
144
|
+
end
|
145
|
+
when :Object
|
146
|
+
# generic object (usually a Hash), return directly
|
147
|
+
value
|
148
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
149
|
+
inner_type = Regexp.last_match[:inner_type]
|
150
|
+
value.map { |v| _deserialize(inner_type, v) }
|
151
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
152
|
+
k_type = Regexp.last_match[:k_type]
|
153
|
+
v_type = Regexp.last_match[:v_type]
|
154
|
+
{}.tap do |hash|
|
155
|
+
value.each do |k, v|
|
156
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
else # model
|
160
|
+
temp_model = CloudmersiveValidateApiClient.const_get(type).new
|
161
|
+
temp_model.build_from_hash(value)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
# Returns the string representation of the object
|
166
|
+
# @return [String] String presentation of the object
|
167
|
+
def to_s
|
168
|
+
to_hash.to_s
|
169
|
+
end
|
170
|
+
|
171
|
+
# to_body is an alias to to_hash (backward compatibility)
|
172
|
+
# @return [Hash] Returns the object in the form of hash
|
173
|
+
def to_body
|
174
|
+
to_hash
|
175
|
+
end
|
176
|
+
|
177
|
+
# Returns the object in the form of hash
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
179
|
+
def to_hash
|
180
|
+
hash = {}
|
181
|
+
self.class.attribute_map.each_pair do |attr, param|
|
182
|
+
value = self.send(attr)
|
183
|
+
next if value.nil?
|
184
|
+
hash[param] = _to_hash(value)
|
185
|
+
end
|
186
|
+
hash
|
187
|
+
end
|
188
|
+
|
189
|
+
# Outputs non-array value in the form of hash
|
190
|
+
# For object, use to_hash. Otherwise, just return the value
|
191
|
+
# @param [Object] value Any valid value
|
192
|
+
# @return [Hash] Returns the value in the form of hash
|
193
|
+
def _to_hash(value)
|
194
|
+
if value.is_a?(Array)
|
195
|
+
value.compact.map{ |v| _to_hash(v) }
|
196
|
+
elsif value.is_a?(Hash)
|
197
|
+
{}.tap do |hash|
|
198
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
199
|
+
end
|
200
|
+
elsif value.respond_to? :to_hash
|
201
|
+
value.to_hash
|
202
|
+
else
|
203
|
+
value
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
end
|
208
|
+
|
209
|
+
end
|
@@ -68,4 +68,16 @@ describe 'AddressApi' do
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
+
# unit tests for address_validate_address
|
72
|
+
# Validate a street address
|
73
|
+
# Determines if an input structured street address is valid or invalid. If the address is valid, also returns the latitude and longitude of the address.
|
74
|
+
# @param input Input parse request
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @return [ValidateAddressResponse]
|
77
|
+
describe 'address_validate_address test' do
|
78
|
+
it "should work" do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
71
83
|
end
|
data/spec/api/vat_api_spec.rb
CHANGED
@@ -33,8 +33,8 @@ describe 'VatApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for vat_vat_lookup
|
36
|
-
#
|
37
|
-
# Checks if a VAT code is valid, and if it is, returns more information about it
|
36
|
+
# Validate a VAT number
|
37
|
+
# Checks if a VAT code is valid, and if it is, returns more information about it. The first two letters of the VAT number must be letters that indicate the country, such as LU20260743. Possible country codes include Austria (AT), Belgium (BE), Bulgaria (BG), Cyprus (CY), Czech Republic (CZ), Germany (DE), Denmark (DK), Estonia (EE), Greece (EL), Spain (ES), Finland (FI), France (FR), United Kingdom (GB), Croatia (HR), Hungary (HU), Ireland (IE), Italy (IT), Lithuania (LT), Luxembourg (LU), Latvia (LV), Malta (MT), The Netherlands (NL), Poland (PL), Portugal (PT), Romania (RO), Sweden (SE), Slovenia (SI), Slovakia (SK).
|
38
38
|
# @param input Input VAT code
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [VatLookupResponse]
|
@@ -0,0 +1,72 @@
|
|
1
|
+
=begin
|
2
|
+
#validateapi
|
3
|
+
|
4
|
+
#The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveValidateApiClient::ValidateAddressRequest
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'ValidateAddressRequest' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveValidateApiClient::ValidateAddressRequest.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of ValidateAddressRequest' do
|
31
|
+
it 'should create an instance of ValidateAddressRequest' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::ValidateAddressRequest)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "street_address"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "city"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "state_or_province"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "postal_code"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "country_full_name"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "country_code"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
72
|
+
|
@@ -0,0 +1,54 @@
|
|
1
|
+
=begin
|
2
|
+
#validateapi
|
3
|
+
|
4
|
+
#The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveValidateApiClient::ValidateAddressResponse
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'ValidateAddressResponse' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveValidateApiClient::ValidateAddressResponse.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of ValidateAddressResponse' do
|
31
|
+
it 'should create an instance of ValidateAddressResponse' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::ValidateAddressResponse)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "valid_address"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "latitude"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "longitude"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
54
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudmersive-validate-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloudmersive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -235,6 +235,8 @@ files:
|
|
235
235
|
- "./docs/UserAgentApi.md"
|
236
236
|
- "./docs/UserAgentValidateRequest.md"
|
237
237
|
- "./docs/UserAgentValidateResponse.md"
|
238
|
+
- "./docs/ValidateAddressRequest.md"
|
239
|
+
- "./docs/ValidateAddressResponse.md"
|
238
240
|
- "./docs/ValidateCountryRequest.md"
|
239
241
|
- "./docs/ValidateCountryResponse.md"
|
240
242
|
- "./docs/ValidateIdentifierRequest.md"
|
@@ -285,6 +287,8 @@ files:
|
|
285
287
|
- "./lib/cloudmersive-validate-api-client/models/timezone.rb"
|
286
288
|
- "./lib/cloudmersive-validate-api-client/models/user_agent_validate_request.rb"
|
287
289
|
- "./lib/cloudmersive-validate-api-client/models/user_agent_validate_response.rb"
|
290
|
+
- "./lib/cloudmersive-validate-api-client/models/validate_address_request.rb"
|
291
|
+
- "./lib/cloudmersive-validate-api-client/models/validate_address_response.rb"
|
288
292
|
- "./lib/cloudmersive-validate-api-client/models/validate_country_request.rb"
|
289
293
|
- "./lib/cloudmersive-validate-api-client/models/validate_country_response.rb"
|
290
294
|
- "./lib/cloudmersive-validate-api-client/models/validate_identifier_request.rb"
|
@@ -332,6 +336,8 @@ files:
|
|
332
336
|
- "./spec/models/timezone_spec.rb"
|
333
337
|
- "./spec/models/user_agent_validate_request_spec.rb"
|
334
338
|
- "./spec/models/user_agent_validate_response_spec.rb"
|
339
|
+
- "./spec/models/validate_address_request_spec.rb"
|
340
|
+
- "./spec/models/validate_address_response_spec.rb"
|
335
341
|
- "./spec/models/validate_country_request_spec.rb"
|
336
342
|
- "./spec/models/validate_country_response_spec.rb"
|
337
343
|
- "./spec/models/validate_identifier_request_spec.rb"
|