cloudmersive-validate-api-client 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -0
  3. data/README.md +171 -0
  4. data/Rakefile +8 -0
  5. data/cloudmersive-validate-api-client.gemspec +45 -0
  6. data/docs/AddressApi.md +497 -0
  7. data/docs/AddressGetServersResponse.md +9 -0
  8. data/docs/AddressVerifySyntaxOnlyResponse.md +11 -0
  9. data/docs/CheckResponse.md +8 -0
  10. data/docs/CountryDetails.md +11 -0
  11. data/docs/CountryListResult.md +9 -0
  12. data/docs/DomainApi.md +228 -0
  13. data/docs/EmailApi.md +173 -0
  14. data/docs/FirstNameValidationRequest.md +8 -0
  15. data/docs/FirstNameValidationResponse.md +9 -0
  16. data/docs/FullEmailValidationResponse.md +16 -0
  17. data/docs/FullNameValidationRequest.md +8 -0
  18. data/docs/FullNameValidationResponse.md +17 -0
  19. data/docs/GeolocateResponse.md +16 -0
  20. data/docs/GetGenderRequest.md +9 -0
  21. data/docs/GetGenderResponse.md +9 -0
  22. data/docs/GetTimezonesRequest.md +8 -0
  23. data/docs/GetTimezonesResponse.md +13 -0
  24. data/docs/IPAddressApi.md +63 -0
  25. data/docs/LastNameValidationRequest.md +8 -0
  26. data/docs/LastNameValidationResponse.md +9 -0
  27. data/docs/LeadEnrichmentApi.md +61 -0
  28. data/docs/LeadEnrichmentRequest.md +21 -0
  29. data/docs/LeadEnrichmentResponse.md +25 -0
  30. data/docs/NameApi.md +283 -0
  31. data/docs/ParseAddressRequest.md +9 -0
  32. data/docs/ParseAddressResponse.md +16 -0
  33. data/docs/PhoneNumberApi.md +63 -0
  34. data/docs/PhoneNumberValidateRequest.md +9 -0
  35. data/docs/PhoneNumberValidationResponse.md +15 -0
  36. data/docs/Timezone.md +10 -0
  37. data/docs/UserAgentApi.md +63 -0
  38. data/docs/UserAgentValidateRequest.md +8 -0
  39. data/docs/UserAgentValidateResponse.md +21 -0
  40. data/docs/ValidateAddressRequest.md +13 -0
  41. data/docs/ValidateAddressResponse.md +10 -0
  42. data/docs/ValidateCityRequest.md +11 -0
  43. data/docs/ValidateCityResponse.md +12 -0
  44. data/docs/ValidateCountryRequest.md +8 -0
  45. data/docs/ValidateCountryResponse.md +14 -0
  46. data/docs/ValidateIdentifierRequest.md +15 -0
  47. data/docs/ValidateIdentifierResponse.md +9 -0
  48. data/docs/ValidatePostalCodeRequest.md +10 -0
  49. data/docs/ValidatePostalCodeResponse.md +12 -0
  50. data/docs/ValidateStateRequest.md +10 -0
  51. data/docs/ValidateStateResponse.md +11 -0
  52. data/docs/ValidateUrlRequestFull.md +8 -0
  53. data/docs/ValidateUrlRequestSyntaxOnly.md +8 -0
  54. data/docs/ValidateUrlResponseFull.md +12 -0
  55. data/docs/ValidateUrlResponseSyntaxOnly.md +9 -0
  56. data/docs/VatApi.md +63 -0
  57. data/docs/VatLookupRequest.md +8 -0
  58. data/docs/VatLookupResponse.md +19 -0
  59. data/docs/WhoisResponse.md +22 -0
  60. data/git_push.sh +55 -0
  61. data/lib/cloudmersive-validate-api-client.rb +93 -0
  62. data/lib/cloudmersive-validate-api-client/api/address_api.rb +501 -0
  63. data/lib/cloudmersive-validate-api-client/api/domain_api.rb +239 -0
  64. data/lib/cloudmersive-validate-api-client/api/email_api.rb +185 -0
  65. data/lib/cloudmersive-validate-api-client/api/ip_address_api.rb +77 -0
  66. data/lib/cloudmersive-validate-api-client/api/lead_enrichment_api.rb +75 -0
  67. data/lib/cloudmersive-validate-api-client/api/name_api.rb +293 -0
  68. data/lib/cloudmersive-validate-api-client/api/phone_number_api.rb +77 -0
  69. data/lib/cloudmersive-validate-api-client/api/user_agent_api.rb +77 -0
  70. data/lib/cloudmersive-validate-api-client/api/vat_api.rb +77 -0
  71. data/lib/cloudmersive-validate-api-client/api_client.rb +391 -0
  72. data/lib/cloudmersive-validate-api-client/api_error.rb +38 -0
  73. data/lib/cloudmersive-validate-api-client/configuration.rb +209 -0
  74. data/lib/cloudmersive-validate-api-client/models/address_get_servers_response.rb +198 -0
  75. data/lib/cloudmersive-validate-api-client/models/address_verify_syntax_only_response.rb +216 -0
  76. data/lib/cloudmersive-validate-api-client/models/check_response.rb +186 -0
  77. data/lib/cloudmersive-validate-api-client/models/country_details.rb +216 -0
  78. data/lib/cloudmersive-validate-api-client/models/country_list_result.rb +198 -0
  79. data/lib/cloudmersive-validate-api-client/models/first_name_validation_request.rb +186 -0
  80. data/lib/cloudmersive-validate-api-client/models/first_name_validation_response.rb +196 -0
  81. data/lib/cloudmersive-validate-api-client/models/full_email_validation_response.rb +266 -0
  82. data/lib/cloudmersive-validate-api-client/models/full_name_validation_request.rb +186 -0
  83. data/lib/cloudmersive-validate-api-client/models/full_name_validation_response.rb +276 -0
  84. data/lib/cloudmersive-validate-api-client/models/geolocate_response.rb +266 -0
  85. data/lib/cloudmersive-validate-api-client/models/get_gender_request.rb +196 -0
  86. data/lib/cloudmersive-validate-api-client/models/get_gender_response.rb +196 -0
  87. data/lib/cloudmersive-validate-api-client/models/get_timezones_request.rb +186 -0
  88. data/lib/cloudmersive-validate-api-client/models/get_timezones_response.rb +238 -0
  89. data/lib/cloudmersive-validate-api-client/models/last_name_validation_request.rb +186 -0
  90. data/lib/cloudmersive-validate-api-client/models/last_name_validation_response.rb +196 -0
  91. data/lib/cloudmersive-validate-api-client/models/lead_enrichment_request.rb +316 -0
  92. data/lib/cloudmersive-validate-api-client/models/lead_enrichment_response.rb +356 -0
  93. data/lib/cloudmersive-validate-api-client/models/parse_address_request.rb +196 -0
  94. data/lib/cloudmersive-validate-api-client/models/parse_address_response.rb +266 -0
  95. data/lib/cloudmersive-validate-api-client/models/phone_number_validate_request.rb +196 -0
  96. data/lib/cloudmersive-validate-api-client/models/phone_number_validation_response.rb +256 -0
  97. data/lib/cloudmersive-validate-api-client/models/timezone.rb +206 -0
  98. data/lib/cloudmersive-validate-api-client/models/user_agent_validate_request.rb +186 -0
  99. data/lib/cloudmersive-validate-api-client/models/user_agent_validate_response.rb +316 -0
  100. data/lib/cloudmersive-validate-api-client/models/validate_address_request.rb +236 -0
  101. data/lib/cloudmersive-validate-api-client/models/validate_address_response.rb +206 -0
  102. data/lib/cloudmersive-validate-api-client/models/validate_city_request.rb +216 -0
  103. data/lib/cloudmersive-validate-api-client/models/validate_city_response.rb +226 -0
  104. data/lib/cloudmersive-validate-api-client/models/validate_country_request.rb +186 -0
  105. data/lib/cloudmersive-validate-api-client/models/validate_country_response.rb +248 -0
  106. data/lib/cloudmersive-validate-api-client/models/validate_identifier_request.rb +256 -0
  107. data/lib/cloudmersive-validate-api-client/models/validate_identifier_response.rb +196 -0
  108. data/lib/cloudmersive-validate-api-client/models/validate_postal_code_request.rb +206 -0
  109. data/lib/cloudmersive-validate-api-client/models/validate_postal_code_response.rb +226 -0
  110. data/lib/cloudmersive-validate-api-client/models/validate_state_request.rb +206 -0
  111. data/lib/cloudmersive-validate-api-client/models/validate_state_response.rb +216 -0
  112. data/lib/cloudmersive-validate-api-client/models/validate_url_request_full.rb +186 -0
  113. data/lib/cloudmersive-validate-api-client/models/validate_url_request_syntax_only.rb +186 -0
  114. data/lib/cloudmersive-validate-api-client/models/validate_url_response_full.rb +226 -0
  115. data/lib/cloudmersive-validate-api-client/models/validate_url_response_syntax_only.rb +196 -0
  116. data/lib/cloudmersive-validate-api-client/models/vat_lookup_request.rb +186 -0
  117. data/lib/cloudmersive-validate-api-client/models/vat_lookup_response.rb +295 -0
  118. data/lib/cloudmersive-validate-api-client/models/whois_response.rb +326 -0
  119. data/lib/cloudmersive-validate-api-client/version.rb +15 -0
  120. data/spec/api/address_api_spec.rb +142 -0
  121. data/spec/api/domain_api_spec.rb +83 -0
  122. data/spec/api/email_api_spec.rb +71 -0
  123. data/spec/api/ip_address_api_spec.rb +47 -0
  124. data/spec/api/lead_enrichment_api_spec.rb +46 -0
  125. data/spec/api/name_api_spec.rb +95 -0
  126. data/spec/api/phone_number_api_spec.rb +47 -0
  127. data/spec/api/user_agent_api_spec.rb +47 -0
  128. data/spec/api/vat_api_spec.rb +47 -0
  129. data/spec/api_client_spec.rb +243 -0
  130. data/spec/configuration_spec.rb +42 -0
  131. data/spec/models/address_get_servers_response_spec.rb +47 -0
  132. data/spec/models/address_verify_syntax_only_response_spec.rb +59 -0
  133. data/spec/models/check_response_spec.rb +41 -0
  134. data/spec/models/country_details_spec.rb +59 -0
  135. data/spec/models/country_list_result_spec.rb +47 -0
  136. data/spec/models/first_name_validation_request_spec.rb +41 -0
  137. data/spec/models/first_name_validation_response_spec.rb +47 -0
  138. data/spec/models/full_email_validation_response_spec.rb +89 -0
  139. data/spec/models/full_name_validation_request_spec.rb +41 -0
  140. data/spec/models/full_name_validation_response_spec.rb +95 -0
  141. data/spec/models/geolocate_response_spec.rb +89 -0
  142. data/spec/models/get_gender_request_spec.rb +47 -0
  143. data/spec/models/get_gender_response_spec.rb +47 -0
  144. data/spec/models/get_timezones_request_spec.rb +41 -0
  145. data/spec/models/get_timezones_response_spec.rb +71 -0
  146. data/spec/models/last_name_validation_request_spec.rb +41 -0
  147. data/spec/models/last_name_validation_response_spec.rb +47 -0
  148. data/spec/models/lead_enrichment_request_spec.rb +119 -0
  149. data/spec/models/lead_enrichment_response_spec.rb +143 -0
  150. data/spec/models/parse_address_request_spec.rb +47 -0
  151. data/spec/models/parse_address_response_spec.rb +89 -0
  152. data/spec/models/phone_number_validate_request_spec.rb +47 -0
  153. data/spec/models/phone_number_validation_response_spec.rb +83 -0
  154. data/spec/models/timezone_spec.rb +53 -0
  155. data/spec/models/user_agent_validate_request_spec.rb +41 -0
  156. data/spec/models/user_agent_validate_response_spec.rb +119 -0
  157. data/spec/models/validate_address_request_spec.rb +71 -0
  158. data/spec/models/validate_address_response_spec.rb +53 -0
  159. data/spec/models/validate_city_request_spec.rb +59 -0
  160. data/spec/models/validate_city_response_spec.rb +65 -0
  161. data/spec/models/validate_country_request_spec.rb +41 -0
  162. data/spec/models/validate_country_response_spec.rb +77 -0
  163. data/spec/models/validate_identifier_request_spec.rb +83 -0
  164. data/spec/models/validate_identifier_response_spec.rb +47 -0
  165. data/spec/models/validate_postal_code_request_spec.rb +53 -0
  166. data/spec/models/validate_postal_code_response_spec.rb +65 -0
  167. data/spec/models/validate_state_request_spec.rb +53 -0
  168. data/spec/models/validate_state_response_spec.rb +59 -0
  169. data/spec/models/validate_url_request_full_spec.rb +41 -0
  170. data/spec/models/validate_url_request_syntax_only_spec.rb +41 -0
  171. data/spec/models/validate_url_response_full_spec.rb +65 -0
  172. data/spec/models/validate_url_response_syntax_only_spec.rb +47 -0
  173. data/spec/models/vat_lookup_request_spec.rb +41 -0
  174. data/spec/models/vat_lookup_response_spec.rb +107 -0
  175. data/spec/models/whois_response_spec.rb +125 -0
  176. data/spec/spec_helper.rb +111 -0
  177. metadata +177 -2
@@ -0,0 +1,9 @@
1
+ # CloudmersiveValidateApiClient::ParseAddressRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **address_string** | **String** | A mailing address or street address formatted as a single text string; this will be parsed into its components | [optional]
7
+ **capitalization_mode** | **String** | Optional; indicates how the parsed output should be capitalized; default is Title Case; possible values are: \"Uppercase\" will set the capitalization to UPPER CASE; \"Lowercase\" will set the capitalization to lower case; \"Titlecase\" will set the capitalization to Title Case; and \"Originalcase\" will preserve the original casing as much as possible | [optional]
8
+
9
+
@@ -0,0 +1,16 @@
1
+ # CloudmersiveValidateApiClient::ParseAddressResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the parsing operation was successful, false otherwise | [optional]
7
+ **building** | **String** | The name of the building, house or structure if applicable, such as \"Cloudmersive Building 2\". This will often by null. | [optional]
8
+ **street_number** | **String** | The street number or house number of the address. For example, in the address \"1600 Pennsylvania Avenue NW\" the street number would be \"1600\". This value will typically be populated for most addresses. | [optional]
9
+ **street** | **String** | The name of the street or road of the address. For example, in the address \"1600 Pennsylvania Avenue NW\" the street number would be \"Pennsylvania Avenue NW\". | [optional]
10
+ **city** | **String** | The city of the address. | [optional]
11
+ **state_or_province** | **String** | The state or province of the address. | [optional]
12
+ **postal_code** | **String** | The postal code or zip code of the address. | [optional]
13
+ **country_full_name** | **String** | Country of the address, if present in the address. If not included in the address it will be null. | [optional]
14
+ **iso_two_letter_code** | **String** | Two-letter ISO 3166-1 country code | [optional]
15
+
16
+
@@ -0,0 +1,63 @@
1
+ # CloudmersiveValidateApiClient::PhoneNumberApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**phone_number_syntax_only**](PhoneNumberApi.md#phone_number_syntax_only) | **POST** /validate/phonenumber/basic | Validate phone number (basic)
8
+
9
+
10
+ # **phone_number_syntax_only**
11
+ > PhoneNumberValidationResponse phone_number_syntax_only(value)
12
+
13
+ Validate phone number (basic)
14
+
15
+ Validate a phone number by analyzing the syntax
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'cloudmersive-validate-api-client'
21
+ # setup authorization
22
+ CloudmersiveValidateApiClient.configure do |config|
23
+ # Configure API key authorization: Apikey
24
+ config.api_key['Apikey'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['Apikey'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = CloudmersiveValidateApiClient::PhoneNumberApi.new
30
+
31
+ value = CloudmersiveValidateApiClient::PhoneNumberValidateRequest.new # PhoneNumberValidateRequest | Phone number to validate in a PhoneNumberValidateRequest object. Try a phone number such as \"1.800.463.3339\", and either leave DefaultCountryCode blank or use \"US\".
32
+
33
+
34
+ begin
35
+ #Validate phone number (basic)
36
+ result = api_instance.phone_number_syntax_only(value)
37
+ p result
38
+ rescue CloudmersiveValidateApiClient::ApiError => e
39
+ puts "Exception when calling PhoneNumberApi->phone_number_syntax_only: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **value** | [**PhoneNumberValidateRequest**](PhoneNumberValidateRequest.md)| Phone number to validate in a PhoneNumberValidateRequest object. Try a phone number such as \"1.800.463.3339\", and either leave DefaultCountryCode blank or use \"US\". |
48
+
49
+ ### Return type
50
+
51
+ [**PhoneNumberValidationResponse**](PhoneNumberValidationResponse.md)
52
+
53
+ ### Authorization
54
+
55
+ [Apikey](../README.md#Apikey)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: application/json, text/json
60
+ - **Accept**: application/json, text/json, application/xml, text/xml
61
+
62
+
63
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveValidateApiClient::PhoneNumberValidateRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **phone_number** | **String** | Raw phone number string to parse as input for validation | [optional]
7
+ **default_country_code** | **String** | Optional, default country code. If left blank, will default to \"US\". | [optional]
8
+
9
+
@@ -0,0 +1,15 @@
1
+ # CloudmersiveValidateApiClient::PhoneNumberValidationResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **is_valid** | **BOOLEAN** | True if the phone number is valid, false otherwise | [optional]
7
+ **successful** | **BOOLEAN** | True if the operation was successful, false if there was an error during validation. See IsValid for validation result. | [optional]
8
+ **phone_number_type** | **String** | Type of phone number; possible values are: FixedLine, Mobile, FixedLineOrMobile, TollFree, PremiumRate, SharedCost, Voip, PersonalNumber, Pager, Uan, Voicemail, Unknown | [optional]
9
+ **e164_format** | **String** | E.164 format of the phone number | [optional]
10
+ **international_format** | **String** | Internaltional format of the phone number | [optional]
11
+ **national_format** | **String** | National format of the phone number | [optional]
12
+ **country_code** | **String** | Two digit country code of the phone number | [optional]
13
+ **country_name** | **String** | User-friendly long name of the country for the phone number | [optional]
14
+
15
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveValidateApiClient::Timezone
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | Name of the Time Zone | [optional]
7
+ **base_utc_offset** | **String** | UTC offset for this time zone | [optional]
8
+ **now** | **DateTime** | The current time (Now) in this time zone | [optional]
9
+
10
+
@@ -0,0 +1,63 @@
1
+ # CloudmersiveValidateApiClient::UserAgentApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**user_agent_parse**](UserAgentApi.md#user_agent_parse) | **POST** /validate/useragent/parse | Parse an HTTP User-Agent string, identify robots
8
+
9
+
10
+ # **user_agent_parse**
11
+ > UserAgentValidateResponse user_agent_parse(request)
12
+
13
+ Parse an HTTP User-Agent string, identify robots
14
+
15
+ Uses a parsing system and database to parse the User-Agent into its structured component parts, such as Browser, Browser Version, Browser Engine, Operating System, and importantly, Robot identification.
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'cloudmersive-validate-api-client'
21
+ # setup authorization
22
+ CloudmersiveValidateApiClient.configure do |config|
23
+ # Configure API key authorization: Apikey
24
+ config.api_key['Apikey'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['Apikey'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = CloudmersiveValidateApiClient::UserAgentApi.new
30
+
31
+ request = CloudmersiveValidateApiClient::UserAgentValidateRequest.new # UserAgentValidateRequest | Input parse request
32
+
33
+
34
+ begin
35
+ #Parse an HTTP User-Agent string, identify robots
36
+ result = api_instance.user_agent_parse(request)
37
+ p result
38
+ rescue CloudmersiveValidateApiClient::ApiError => e
39
+ puts "Exception when calling UserAgentApi->user_agent_parse: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **request** | [**UserAgentValidateRequest**](UserAgentValidateRequest.md)| Input parse request |
48
+
49
+ ### Return type
50
+
51
+ [**UserAgentValidateResponse**](UserAgentValidateResponse.md)
52
+
53
+ ### Authorization
54
+
55
+ [Apikey](../README.md#Apikey)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: application/json, text/json
60
+ - **Accept**: application/json, text/json, application/xml, text/xml
61
+
62
+
63
+
@@ -0,0 +1,8 @@
1
+ # CloudmersiveValidateApiClient::UserAgentValidateRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **user_agent_string** | **String** | The user agent string you wish to parse and validate | [optional]
7
+
8
+
@@ -0,0 +1,21 @@
1
+ # CloudmersiveValidateApiClient::UserAgentValidateResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
+ **is_bot** | **BOOLEAN** | True if the request is a known robot, false otherwise | [optional]
8
+ **bot_name** | **String** | Optional; name of the robot if the request was from a known robot, otherwise null | [optional]
9
+ **bot_url** | **String** | Optional; if available, the URL to the robot | [optional]
10
+ **operating_system** | **String** | Operating System of the User-Agent (e.g. Windows) | [optional]
11
+ **operating_system_cpu_platform** | **String** | The CPU platform of the User-Agent (e.g. x64) | [optional]
12
+ **operating_system_version** | **String** | The version of the operating system of the User-Agent (e.g. \"10\" for Windows 10) | [optional]
13
+ **device_type** | **String** | Device type of the User-Agent; possible values are \"DESKTOP\", \"SMARTPHONE\", \"TABLET\" | [optional]
14
+ **device_brand_name** | **String** | Brand name of the User-Agent | [optional]
15
+ **device_model** | **String** | Model name or number of the User-Agent | [optional]
16
+ **browser_name** | **String** | Name of the Browser | [optional]
17
+ **browser_version** | **String** | Version of the Browser | [optional]
18
+ **browser_engine_name** | **String** | Name of the Browser Engine | [optional]
19
+ **browser_engine_version** | **String** | Version of the Browser Engine | [optional]
20
+
21
+
@@ -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
+
@@ -0,0 +1,11 @@
1
+ # CloudmersiveValidateApiClient::ValidateCityRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **city** | **String** | Required: City of the address to validate, such as 'San Francisco' or 'London' | [optional]
7
+ **state_or_province** | **String** | Required: State or province of the address to validate, such as 'California' or 'CA' | [optional]
8
+ **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]
9
+ **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]
10
+
11
+
@@ -0,0 +1,12 @@
1
+ # CloudmersiveValidateApiClient::ValidateCityResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **valid_city** | **BOOLEAN** | True if the city is valid, false otherwise | [optional]
7
+ **city** | **String** | If valid, City corresponding to the input postal code, such as 'Walnut Creek' | [optional]
8
+ **state_or_province** | **String** | If valid; State or province corresponding to the input state name, such as 'CA' or 'California' | [optional]
9
+ **latitude** | **Float** | If the postal code is valid, the degrees latitude of the centroid of the state, null otherwise | [optional]
10
+ **longitude** | **Float** | If the postal code is valid, the degrees longitude of the centroid of the state, null otherwise | [optional]
11
+
12
+
@@ -0,0 +1,8 @@
1
+ # CloudmersiveValidateApiClient::ValidateCountryRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **raw_country_input** | **String** | Raw country input - can be a two-letter code (FIPS 10-4 or ISO 3166-1), three-letter code (ISO 3166-1) or country name | [optional]
7
+
8
+
@@ -0,0 +1,14 @@
1
+ # CloudmersiveValidateApiClient::ValidateCountryResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **country_full_name** | **String** | Full name of the country | [optional]
8
+ **iso_two_letter_code** | **String** | Two-letter ISO 3166-1 country code | [optional]
9
+ **fips_two_letter_code** | **String** | Two-letter FIPS 10-4 country code | [optional]
10
+ **three_letter_code** | **String** | Three-letter ISO 3166-1 country code | [optional]
11
+ **is_european_union_member** | **BOOLEAN** | True if this country is currently a member of the European Union (EU), false otherwise | [optional]
12
+ **timezones** | [**Array<Timezone>**](Timezone.md) | Time zones (IANA/Olsen) in the country | [optional]
13
+
14
+
@@ -0,0 +1,15 @@
1
+ # CloudmersiveValidateApiClient::ValidateIdentifierRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **input** | **String** | Text string identifier input | [optional]
7
+ **allow_whitespace** | **BOOLEAN** | True if whitespace is allowed in the identifier, false otherwise | [optional]
8
+ **allow_hyphens** | **BOOLEAN** | True if hyphens are allowd in the identifier, false otherwise | [optional]
9
+ **allow_underscore** | **BOOLEAN** | True if underscores are allowed in the identifier, false otherwise | [optional]
10
+ **allow_numbers** | **BOOLEAN** | True if numbers are allowed in the identifier, false otherwise | [optional]
11
+ **allow_periods** | **BOOLEAN** | True if periods are allowed in the identifier, false otherwise | [optional]
12
+ **max_length** | **Integer** | Optional; maximum length, if any, of the identifier | [optional]
13
+ **min_length** | **Integer** | Optional; minimum length, if any, of the identifier | [optional]
14
+
15
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveValidateApiClient::ValidateIdentifierResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **valid_identifier** | **BOOLEAN** | True if the input identifier is valid, false otherwise | [optional]
7
+ **error** | **String** | Resulting error from the identifier validation; possible errors are: \"InputIsEmpty\", \"ContainsWhitespace\", \"ContainsNumbers\", \"ContainsHyphen\", \"ContainsUnderscore\", \"ContainsPeriod\", \"TooShort\", \"TooLong\", \"ContainsSpecialCharacters\" | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveValidateApiClient::ValidatePostalCodeRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **postal_code** | **String** | Required: Zip code or postal code of the address to validate, such as '94597' | [optional]
7
+ **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]
8
+ **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]
9
+
10
+
@@ -0,0 +1,12 @@
1
+ # CloudmersiveValidateApiClient::ValidatePostalCodeResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **valid_postal_code** | **BOOLEAN** | True if the Postal Code is valid, false otherwise | [optional]
7
+ **city** | **String** | If valid, City corresponding to the input postal code, such as 'Walnut Creek' | [optional]
8
+ **state_or_province** | **String** | If valid; State or province corresponding to the input postal code, such as 'CA' or 'California' | [optional]
9
+ **latitude** | **Float** | If the postal code is valid, the degrees latitude of the centroid of the postal code, null otherwise | [optional]
10
+ **longitude** | **Float** | If the postal code is valid, the degrees longitude of the centroid of the postal code, null otherwise | [optional]
11
+
12
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveValidateApiClient::ValidateStateRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **state_or_province** | **String** | Required: State or province of the address to validate, such as 'California' or 'CA' | [optional]
7
+ **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]
8
+ **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]
9
+
10
+
@@ -0,0 +1,11 @@
1
+ # CloudmersiveValidateApiClient::ValidateStateResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **valid_state** | **BOOLEAN** | True if the address is valid, false otherwise | [optional]
7
+ **state_or_province** | **String** | If valid; State or province corresponding to the input state name, such as 'CA' or 'California' | [optional]
8
+ **latitude** | **Float** | If the postal code is valid, the degrees latitude of the centroid of the state, null otherwise | [optional]
9
+ **longitude** | **Float** | If the postal code is valid, the degrees longitude of the centroid of the state, null otherwise | [optional]
10
+
11
+
@@ -0,0 +1,8 @@
1
+ # CloudmersiveValidateApiClient::ValidateUrlRequestFull
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **url** | **String** | URL to validate | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # CloudmersiveValidateApiClient::ValidateUrlRequestSyntaxOnly
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **url** | **String** | URL to validate | [optional]
7
+
8
+
@@ -0,0 +1,12 @@
1
+ # CloudmersiveValidateApiClient::ValidateUrlResponseFull
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **valid_url** | **BOOLEAN** | True if the URL has valid syntax, a valid domain, a valid endpoint, and passes virus scan checks; false otherwise | [optional]
7
+ **valid_syntax** | **BOOLEAN** | True if the URL has valid syntax, false otherwise | [optional]
8
+ **valid_domain** | **BOOLEAN** | True if the domain name is valid and exists, false otherwise | [optional]
9
+ **valid_endpoint** | **BOOLEAN** | True if the endpoint is up and responsive and passes a virus scan check, false otherwise | [optional]
10
+ **well_formed_url** | **String** | Well-formed version of the URL | [optional]
11
+
12
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveValidateApiClient::ValidateUrlResponseSyntaxOnly
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **valid_url** | **BOOLEAN** | True if the URL is valid, false otherwise | [optional]
7
+ **well_formed_url** | **String** | Well-formed version of the URL | [optional]
8
+
9
+
@@ -0,0 +1,63 @@
1
+ # CloudmersiveValidateApiClient::VatApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**vat_vat_lookup**](VatApi.md#vat_vat_lookup) | **POST** /validate/vat/lookup | Validate a VAT number
8
+
9
+
10
+ # **vat_vat_lookup**
11
+ > VatLookupResponse vat_vat_lookup(input)
12
+
13
+ Validate a VAT number
14
+
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
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'cloudmersive-validate-api-client'
21
+ # setup authorization
22
+ CloudmersiveValidateApiClient.configure do |config|
23
+ # Configure API key authorization: Apikey
24
+ config.api_key['Apikey'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['Apikey'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = CloudmersiveValidateApiClient::VatApi.new
30
+
31
+ input = CloudmersiveValidateApiClient::VatLookupRequest.new # VatLookupRequest | Input VAT code
32
+
33
+
34
+ begin
35
+ #Validate a VAT number
36
+ result = api_instance.vat_vat_lookup(input)
37
+ p result
38
+ rescue CloudmersiveValidateApiClient::ApiError => e
39
+ puts "Exception when calling VatApi->vat_vat_lookup: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **input** | [**VatLookupRequest**](VatLookupRequest.md)| Input VAT code |
48
+
49
+ ### Return type
50
+
51
+ [**VatLookupResponse**](VatLookupResponse.md)
52
+
53
+ ### Authorization
54
+
55
+ [Apikey](../README.md#Apikey)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: application/json, text/json
60
+ - **Accept**: application/json, text/json, application/xml, text/xml
61
+
62
+
63
+