cloudmersive-validate-api-client 2.0.6 → 2.0.7
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/README.md +5 -4
- data/docs/AddressApi.md +55 -0
- data/docs/CountryDetails.md +3 -0
- data/docs/ValidateCountryResponse.md +3 -0
- data/lib/cloudmersive-validate-api-client/api/address_api.rb +54 -0
- data/lib/cloudmersive-validate-api-client/models/country_details.rb +34 -4
- data/lib/cloudmersive-validate-api-client/models/validate_country_response.rb +34 -4
- data/lib/cloudmersive-validate-api-client/version.rb +1 -1
- data/spec/api/address_api_spec.rb +12 -0
- data/spec/models/country_details_spec.rb +18 -0
- data/spec/models/validate_country_response_spec.rb +18 -0
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: d14d3b1a082f8d1d2ae4b50a65512242ca9b152d4b29c5e42ba42473e71f2996
         | 
| 4 | 
            +
              data.tar.gz: 5f569c749b74e3d990631780d331f8cefeb120becfe22b64adf24f7dfb9c01ed
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 2a5e2ca62a6ff43f583cd766070f99f965049e91c0d3641b7a28353cb6d9713988742cffb7adbfd92cf18da3226fd9d87abe6a0d6431a726c8b40c9cd43c20fc
         | 
| 7 | 
            +
              data.tar.gz: 4e3e9e3bf3784121b61b33181e12e50bf1fd5844882ff14665ea59283d6ce1df2387c0d4ce701e3eb9af8137b9abe987dbfbf9940d422e468a1c49b26a323850
         | 
    
        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: 2.0. | 
| 10 | 
            +
            - Package version: 2.0.7
         | 
| 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-2.0. | 
| 26 | 
            +
            gem install ./cloudmersive-validate-api-client-2.0.7.gem
         | 
| 27 27 | 
             
            ```
         | 
| 28 | 
            -
            (for development, run `gem install --dev ./cloudmersive-validate-api-client-2.0. | 
| 28 | 
            +
            (for development, run `gem install --dev ./cloudmersive-validate-api-client-2.0.7.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', '~> 2.0. | 
| 34 | 
            +
                gem 'cloudmersive-validate-api-client', '~> 2.0.7'
         | 
| 35 35 |  | 
| 36 36 | 
             
            ### Install from Git
         | 
| 37 37 |  | 
| @@ -86,6 +86,7 @@ Class | Method | HTTP request | Description | |
| 86 86 | 
             
            *CloudmersiveValidateApiClient::AddressApi* | [**address_check_eu_membership**](docs/AddressApi.md#address_check_eu_membership) | **POST** /validate/address/country/check-eu-membership | Check if a country is a member of the European Union (EU)
         | 
| 87 87 | 
             
            *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
         | 
| 88 88 | 
             
            *CloudmersiveValidateApiClient::AddressApi* | [**address_country_list**](docs/AddressApi.md#address_country_list) | **POST** /validate/address/country/list | Get a list of ISO 3166-1 countries
         | 
| 89 | 
            +
            *CloudmersiveValidateApiClient::AddressApi* | [**address_get_country_currency**](docs/AddressApi.md#address_get_country_currency) | **POST** /validate/address/country/get-currency | Get the currency of the input country
         | 
| 89 90 | 
             
            *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
         | 
| 90 91 | 
             
            *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
         | 
| 91 92 | 
             
            *CloudmersiveValidateApiClient::AddressApi* | [**address_validate_address**](docs/AddressApi.md#address_validate_address) | **POST** /validate/address/street-address | Validate a street address
         | 
    
        data/docs/AddressApi.md
    CHANGED
    
    | @@ -7,6 +7,7 @@ Method | HTTP request | Description | |
| 7 7 | 
             
            [**address_check_eu_membership**](AddressApi.md#address_check_eu_membership) | **POST** /validate/address/country/check-eu-membership | Check if a country is a member of the European Union (EU)
         | 
| 8 8 | 
             
            [**address_country**](AddressApi.md#address_country) | **POST** /validate/address/country | Validate and normalize country information, return ISO 3166-1 country codes and country name
         | 
| 9 9 | 
             
            [**address_country_list**](AddressApi.md#address_country_list) | **POST** /validate/address/country/list | Get a list of ISO 3166-1 countries
         | 
| 10 | 
            +
            [**address_get_country_currency**](AddressApi.md#address_get_country_currency) | **POST** /validate/address/country/get-currency | Get the currency of the input country
         | 
| 10 11 | 
             
            [**address_get_timezone**](AddressApi.md#address_get_timezone) | **POST** /validate/address/country/get-timezones | Gets IANA/Olsen time zones for a country
         | 
| 11 12 | 
             
            [**address_parse_string**](AddressApi.md#address_parse_string) | **POST** /validate/address/parse | Parse an unstructured input text string into an international, formatted address
         | 
| 12 13 | 
             
            [**address_validate_address**](AddressApi.md#address_validate_address) | **POST** /validate/address/street-address | Validate a street address
         | 
| @@ -171,6 +172,60 @@ This endpoint does not need any parameter. | |
| 171 172 |  | 
| 172 173 |  | 
| 173 174 |  | 
| 175 | 
            +
            # **address_get_country_currency**
         | 
| 176 | 
            +
            > ValidateCountryResponse address_get_country_currency(input)
         | 
| 177 | 
            +
             | 
| 178 | 
            +
            Get the currency of the input country
         | 
| 179 | 
            +
             | 
| 180 | 
            +
            Gets the currency information for the input country, including the ISO three-letter country code, currency symbol, and English currency name.
         | 
| 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::ValidateCountryRequest.new # ValidateCountryRequest | Input request
         | 
| 197 | 
            +
             | 
| 198 | 
            +
             | 
| 199 | 
            +
            begin
         | 
| 200 | 
            +
              #Get the currency of the input country
         | 
| 201 | 
            +
              result = api_instance.address_get_country_currency(input)
         | 
| 202 | 
            +
              p result
         | 
| 203 | 
            +
            rescue CloudmersiveValidateApiClient::ApiError => e
         | 
| 204 | 
            +
              puts "Exception when calling AddressApi->address_get_country_currency: #{e}"
         | 
| 205 | 
            +
            end
         | 
| 206 | 
            +
            ```
         | 
| 207 | 
            +
             | 
| 208 | 
            +
            ### Parameters
         | 
| 209 | 
            +
             | 
| 210 | 
            +
            Name | Type | Description  | Notes
         | 
| 211 | 
            +
            ------------- | ------------- | ------------- | -------------
         | 
| 212 | 
            +
             **input** | [**ValidateCountryRequest**](ValidateCountryRequest.md)| Input request | 
         | 
| 213 | 
            +
             | 
| 214 | 
            +
            ### Return type
         | 
| 215 | 
            +
             | 
| 216 | 
            +
            [**ValidateCountryResponse**](ValidateCountryResponse.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 | 
            +
             | 
| 174 229 | 
             
            # **address_get_timezone**
         | 
| 175 230 | 
             
            > GetTimezonesResponse address_get_timezone(input)
         | 
| 176 231 |  | 
    
        data/docs/CountryDetails.md
    CHANGED
    
    | @@ -7,5 +7,8 @@ Name | Type | Description | Notes | |
| 7 7 | 
             
            **three_letter_code** | **String** | Three-letter ISO 3166-1 country code | [optional] 
         | 
| 8 8 | 
             
            **iso_two_letter_code** | **String** | Two-letter ISO 3166-1 country code | [optional] 
         | 
| 9 9 | 
             
            **is_european_union_member** | **BOOLEAN** | True if this country is currently a member of the European Union (EU), false otherwise | [optional] 
         | 
| 10 | 
            +
            **iso_currency_code** | **String** | ISO 4217 currency three-letter code associated with the country | [optional] 
         | 
| 11 | 
            +
            **currency_symbol** | **String** | Symbol associated with the currency | [optional] 
         | 
| 12 | 
            +
            **currency_english_name** | **String** | Full name of the currency | [optional] 
         | 
| 10 13 |  | 
| 11 14 |  | 
| @@ -10,5 +10,8 @@ Name | Type | Description | Notes | |
| 10 10 | 
             
            **three_letter_code** | **String** | Three-letter ISO 3166-1 country code | [optional] 
         | 
| 11 11 | 
             
            **is_european_union_member** | **BOOLEAN** | True if this country is currently a member of the European Union (EU), false otherwise | [optional] 
         | 
| 12 12 | 
             
            **timezones** | [**Array<Timezone>**](Timezone.md) | Time zones (IANA/Olsen) in the country | [optional] 
         | 
| 13 | 
            +
            **iso_currency_code** | **String** | ISO 4217 currency three-letter code associated with the country | [optional] 
         | 
| 14 | 
            +
            **currency_symbol** | **String** | Symbol associated with the currency | [optional] 
         | 
| 15 | 
            +
            **currency_english_name** | **String** | Full name of the currency | [optional] 
         | 
| 13 16 |  | 
| 14 17 |  | 
| @@ -173,6 +173,60 @@ module CloudmersiveValidateApiClient | |
| 173 173 | 
             
                  end
         | 
| 174 174 | 
             
                  return data, status_code, headers
         | 
| 175 175 | 
             
                end
         | 
| 176 | 
            +
                # Get the currency of the input country
         | 
| 177 | 
            +
                # Gets the currency information for the input country, including the ISO three-letter country code, currency symbol, and English currency name.
         | 
| 178 | 
            +
                # @param input Input request
         | 
| 179 | 
            +
                # @param [Hash] opts the optional parameters
         | 
| 180 | 
            +
                # @return [ValidateCountryResponse]
         | 
| 181 | 
            +
                def address_get_country_currency(input, opts = {})
         | 
| 182 | 
            +
                  data, _status_code, _headers = address_get_country_currency_with_http_info(input, opts)
         | 
| 183 | 
            +
                  data
         | 
| 184 | 
            +
                end
         | 
| 185 | 
            +
             | 
| 186 | 
            +
                # Get the currency of the input country
         | 
| 187 | 
            +
                # Gets the currency information for the input country, including the ISO three-letter country code, currency symbol, and English currency name.
         | 
| 188 | 
            +
                # @param input Input request
         | 
| 189 | 
            +
                # @param [Hash] opts the optional parameters
         | 
| 190 | 
            +
                # @return [Array<(ValidateCountryResponse, Fixnum, Hash)>] ValidateCountryResponse data, response status code and response headers
         | 
| 191 | 
            +
                def address_get_country_currency_with_http_info(input, opts = {})
         | 
| 192 | 
            +
                  if @api_client.config.debugging
         | 
| 193 | 
            +
                    @api_client.config.logger.debug 'Calling API: AddressApi.address_get_country_currency ...'
         | 
| 194 | 
            +
                  end
         | 
| 195 | 
            +
                  # verify the required parameter 'input' is set
         | 
| 196 | 
            +
                  if @api_client.config.client_side_validation && input.nil?
         | 
| 197 | 
            +
                    fail ArgumentError, "Missing the required parameter 'input' when calling AddressApi.address_get_country_currency"
         | 
| 198 | 
            +
                  end
         | 
| 199 | 
            +
                  # resource path
         | 
| 200 | 
            +
                  local_var_path = '/validate/address/country/get-currency'
         | 
| 201 | 
            +
             | 
| 202 | 
            +
                  # query parameters
         | 
| 203 | 
            +
                  query_params = {}
         | 
| 204 | 
            +
             | 
| 205 | 
            +
                  # header parameters
         | 
| 206 | 
            +
                  header_params = {}
         | 
| 207 | 
            +
                  # HTTP header 'Accept' (if needed)
         | 
| 208 | 
            +
                  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
         | 
| 209 | 
            +
                  # HTTP header 'Content-Type'
         | 
| 210 | 
            +
                  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
         | 
| 211 | 
            +
             | 
| 212 | 
            +
                  # form parameters
         | 
| 213 | 
            +
                  form_params = {}
         | 
| 214 | 
            +
             | 
| 215 | 
            +
                  # http body (model)
         | 
| 216 | 
            +
                  post_body = @api_client.object_to_http_body(input)
         | 
| 217 | 
            +
                  auth_names = ['Apikey']
         | 
| 218 | 
            +
                  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
         | 
| 219 | 
            +
                    :header_params => header_params,
         | 
| 220 | 
            +
                    :query_params => query_params,
         | 
| 221 | 
            +
                    :form_params => form_params,
         | 
| 222 | 
            +
                    :body => post_body,
         | 
| 223 | 
            +
                    :auth_names => auth_names,
         | 
| 224 | 
            +
                    :return_type => 'ValidateCountryResponse')
         | 
| 225 | 
            +
                  if @api_client.config.debugging
         | 
| 226 | 
            +
                    @api_client.config.logger.debug "API called: AddressApi#address_get_country_currency\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
         | 
| 227 | 
            +
                  end
         | 
| 228 | 
            +
                  return data, status_code, headers
         | 
| 229 | 
            +
                end
         | 
| 176 230 | 
             
                # Gets IANA/Olsen time zones for a country
         | 
| 177 231 | 
             
                # Gets the IANA/Olsen time zones for a country.
         | 
| 178 232 | 
             
                # @param input Input request
         | 
| @@ -27,13 +27,25 @@ module CloudmersiveValidateApiClient | |
| 27 27 | 
             
                # True if this country is currently a member of the European Union (EU), false otherwise
         | 
| 28 28 | 
             
                attr_accessor :is_european_union_member
         | 
| 29 29 |  | 
| 30 | 
            +
                # ISO 4217 currency three-letter code associated with the country
         | 
| 31 | 
            +
                attr_accessor :iso_currency_code
         | 
| 32 | 
            +
             | 
| 33 | 
            +
                # Symbol associated with the currency
         | 
| 34 | 
            +
                attr_accessor :currency_symbol
         | 
| 35 | 
            +
             | 
| 36 | 
            +
                # Full name of the currency
         | 
| 37 | 
            +
                attr_accessor :currency_english_name
         | 
| 38 | 
            +
             | 
| 30 39 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 31 40 | 
             
                def self.attribute_map
         | 
| 32 41 | 
             
                  {
         | 
| 33 42 | 
             
                    :'country_name' => :'CountryName',
         | 
| 34 43 | 
             
                    :'three_letter_code' => :'ThreeLetterCode',
         | 
| 35 44 | 
             
                    :'iso_two_letter_code' => :'ISOTwoLetterCode',
         | 
| 36 | 
            -
                    :'is_european_union_member' => :'IsEuropeanUnionMember'
         | 
| 45 | 
            +
                    :'is_european_union_member' => :'IsEuropeanUnionMember',
         | 
| 46 | 
            +
                    :'iso_currency_code' => :'ISOCurrencyCode',
         | 
| 47 | 
            +
                    :'currency_symbol' => :'CurrencySymbol',
         | 
| 48 | 
            +
                    :'currency_english_name' => :'CurrencyEnglishName'
         | 
| 37 49 | 
             
                  }
         | 
| 38 50 | 
             
                end
         | 
| 39 51 |  | 
| @@ -43,7 +55,10 @@ module CloudmersiveValidateApiClient | |
| 43 55 | 
             
                    :'country_name' => :'String',
         | 
| 44 56 | 
             
                    :'three_letter_code' => :'String',
         | 
| 45 57 | 
             
                    :'iso_two_letter_code' => :'String',
         | 
| 46 | 
            -
                    :'is_european_union_member' => :'BOOLEAN'
         | 
| 58 | 
            +
                    :'is_european_union_member' => :'BOOLEAN',
         | 
| 59 | 
            +
                    :'iso_currency_code' => :'String',
         | 
| 60 | 
            +
                    :'currency_symbol' => :'String',
         | 
| 61 | 
            +
                    :'currency_english_name' => :'String'
         | 
| 47 62 | 
             
                  }
         | 
| 48 63 | 
             
                end
         | 
| 49 64 |  | 
| @@ -70,6 +85,18 @@ module CloudmersiveValidateApiClient | |
| 70 85 | 
             
                  if attributes.has_key?(:'IsEuropeanUnionMember')
         | 
| 71 86 | 
             
                    self.is_european_union_member = attributes[:'IsEuropeanUnionMember']
         | 
| 72 87 | 
             
                  end
         | 
| 88 | 
            +
             | 
| 89 | 
            +
                  if attributes.has_key?(:'ISOCurrencyCode')
         | 
| 90 | 
            +
                    self.iso_currency_code = attributes[:'ISOCurrencyCode']
         | 
| 91 | 
            +
                  end
         | 
| 92 | 
            +
             | 
| 93 | 
            +
                  if attributes.has_key?(:'CurrencySymbol')
         | 
| 94 | 
            +
                    self.currency_symbol = attributes[:'CurrencySymbol']
         | 
| 95 | 
            +
                  end
         | 
| 96 | 
            +
             | 
| 97 | 
            +
                  if attributes.has_key?(:'CurrencyEnglishName')
         | 
| 98 | 
            +
                    self.currency_english_name = attributes[:'CurrencyEnglishName']
         | 
| 99 | 
            +
                  end
         | 
| 73 100 | 
             
                end
         | 
| 74 101 |  | 
| 75 102 | 
             
                # Show invalid properties with the reasons. Usually used together with valid?
         | 
| @@ -93,7 +120,10 @@ module CloudmersiveValidateApiClient | |
| 93 120 | 
             
                      country_name == o.country_name &&
         | 
| 94 121 | 
             
                      three_letter_code == o.three_letter_code &&
         | 
| 95 122 | 
             
                      iso_two_letter_code == o.iso_two_letter_code &&
         | 
| 96 | 
            -
                      is_european_union_member == o.is_european_union_member
         | 
| 123 | 
            +
                      is_european_union_member == o.is_european_union_member &&
         | 
| 124 | 
            +
                      iso_currency_code == o.iso_currency_code &&
         | 
| 125 | 
            +
                      currency_symbol == o.currency_symbol &&
         | 
| 126 | 
            +
                      currency_english_name == o.currency_english_name
         | 
| 97 127 | 
             
                end
         | 
| 98 128 |  | 
| 99 129 | 
             
                # @see the `==` method
         | 
| @@ -105,7 +135,7 @@ module CloudmersiveValidateApiClient | |
| 105 135 | 
             
                # Calculates hash code according to all attributes.
         | 
| 106 136 | 
             
                # @return [Fixnum] Hash code
         | 
| 107 137 | 
             
                def hash
         | 
| 108 | 
            -
                  [country_name, three_letter_code, iso_two_letter_code, is_european_union_member].hash
         | 
| 138 | 
            +
                  [country_name, three_letter_code, iso_two_letter_code, is_european_union_member, iso_currency_code, currency_symbol, currency_english_name].hash
         | 
| 109 139 | 
             
                end
         | 
| 110 140 |  | 
| 111 141 | 
             
                # Builds the object from hash
         | 
| @@ -36,6 +36,15 @@ module CloudmersiveValidateApiClient | |
| 36 36 | 
             
                # Time zones (IANA/Olsen) in the country
         | 
| 37 37 | 
             
                attr_accessor :timezones
         | 
| 38 38 |  | 
| 39 | 
            +
                # ISO 4217 currency three-letter code associated with the country
         | 
| 40 | 
            +
                attr_accessor :iso_currency_code
         | 
| 41 | 
            +
             | 
| 42 | 
            +
                # Symbol associated with the currency
         | 
| 43 | 
            +
                attr_accessor :currency_symbol
         | 
| 44 | 
            +
             | 
| 45 | 
            +
                # Full name of the currency
         | 
| 46 | 
            +
                attr_accessor :currency_english_name
         | 
| 47 | 
            +
             | 
| 39 48 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 40 49 | 
             
                def self.attribute_map
         | 
| 41 50 | 
             
                  {
         | 
| @@ -45,7 +54,10 @@ module CloudmersiveValidateApiClient | |
| 45 54 | 
             
                    :'fips_two_letter_code' => :'FIPSTwoLetterCode',
         | 
| 46 55 | 
             
                    :'three_letter_code' => :'ThreeLetterCode',
         | 
| 47 56 | 
             
                    :'is_european_union_member' => :'IsEuropeanUnionMember',
         | 
| 48 | 
            -
                    :'timezones' => :'Timezones'
         | 
| 57 | 
            +
                    :'timezones' => :'Timezones',
         | 
| 58 | 
            +
                    :'iso_currency_code' => :'ISOCurrencyCode',
         | 
| 59 | 
            +
                    :'currency_symbol' => :'CurrencySymbol',
         | 
| 60 | 
            +
                    :'currency_english_name' => :'CurrencyEnglishName'
         | 
| 49 61 | 
             
                  }
         | 
| 50 62 | 
             
                end
         | 
| 51 63 |  | 
| @@ -58,7 +70,10 @@ module CloudmersiveValidateApiClient | |
| 58 70 | 
             
                    :'fips_two_letter_code' => :'String',
         | 
| 59 71 | 
             
                    :'three_letter_code' => :'String',
         | 
| 60 72 | 
             
                    :'is_european_union_member' => :'BOOLEAN',
         | 
| 61 | 
            -
                    :'timezones' => :'Array<Timezone>'
         | 
| 73 | 
            +
                    :'timezones' => :'Array<Timezone>',
         | 
| 74 | 
            +
                    :'iso_currency_code' => :'String',
         | 
| 75 | 
            +
                    :'currency_symbol' => :'String',
         | 
| 76 | 
            +
                    :'currency_english_name' => :'String'
         | 
| 62 77 | 
             
                  }
         | 
| 63 78 | 
             
                end
         | 
| 64 79 |  | 
| @@ -99,6 +114,18 @@ module CloudmersiveValidateApiClient | |
| 99 114 | 
             
                      self.timezones = value
         | 
| 100 115 | 
             
                    end
         | 
| 101 116 | 
             
                  end
         | 
| 117 | 
            +
             | 
| 118 | 
            +
                  if attributes.has_key?(:'ISOCurrencyCode')
         | 
| 119 | 
            +
                    self.iso_currency_code = attributes[:'ISOCurrencyCode']
         | 
| 120 | 
            +
                  end
         | 
| 121 | 
            +
             | 
| 122 | 
            +
                  if attributes.has_key?(:'CurrencySymbol')
         | 
| 123 | 
            +
                    self.currency_symbol = attributes[:'CurrencySymbol']
         | 
| 124 | 
            +
                  end
         | 
| 125 | 
            +
             | 
| 126 | 
            +
                  if attributes.has_key?(:'CurrencyEnglishName')
         | 
| 127 | 
            +
                    self.currency_english_name = attributes[:'CurrencyEnglishName']
         | 
| 128 | 
            +
                  end
         | 
| 102 129 | 
             
                end
         | 
| 103 130 |  | 
| 104 131 | 
             
                # Show invalid properties with the reasons. Usually used together with valid?
         | 
| @@ -125,7 +152,10 @@ module CloudmersiveValidateApiClient | |
| 125 152 | 
             
                      fips_two_letter_code == o.fips_two_letter_code &&
         | 
| 126 153 | 
             
                      three_letter_code == o.three_letter_code &&
         | 
| 127 154 | 
             
                      is_european_union_member == o.is_european_union_member &&
         | 
| 128 | 
            -
                      timezones == o.timezones
         | 
| 155 | 
            +
                      timezones == o.timezones &&
         | 
| 156 | 
            +
                      iso_currency_code == o.iso_currency_code &&
         | 
| 157 | 
            +
                      currency_symbol == o.currency_symbol &&
         | 
| 158 | 
            +
                      currency_english_name == o.currency_english_name
         | 
| 129 159 | 
             
                end
         | 
| 130 160 |  | 
| 131 161 | 
             
                # @see the `==` method
         | 
| @@ -137,7 +167,7 @@ module CloudmersiveValidateApiClient | |
| 137 167 | 
             
                # Calculates hash code according to all attributes.
         | 
| 138 168 | 
             
                # @return [Fixnum] Hash code
         | 
| 139 169 | 
             
                def hash
         | 
| 140 | 
            -
                  [successful, country_full_name, iso_two_letter_code, fips_two_letter_code, three_letter_code, is_european_union_member, timezones].hash
         | 
| 170 | 
            +
                  [successful, country_full_name, iso_two_letter_code, fips_two_letter_code, three_letter_code, is_european_union_member, timezones, iso_currency_code, currency_symbol, currency_english_name].hash
         | 
| 141 171 | 
             
                end
         | 
| 142 172 |  | 
| 143 173 | 
             
                # Builds the object from hash
         | 
| @@ -67,6 +67,18 @@ describe 'AddressApi' do | |
| 67 67 | 
             
                end
         | 
| 68 68 | 
             
              end
         | 
| 69 69 |  | 
| 70 | 
            +
              # unit tests for address_get_country_currency
         | 
| 71 | 
            +
              # Get the currency of the input country
         | 
| 72 | 
            +
              # Gets the currency information for the input country, including the ISO three-letter country code, currency symbol, and English currency name.
         | 
| 73 | 
            +
              # @param input Input request
         | 
| 74 | 
            +
              # @param [Hash] opts the optional parameters
         | 
| 75 | 
            +
              # @return [ValidateCountryResponse]
         | 
| 76 | 
            +
              describe 'address_get_country_currency test' do
         | 
| 77 | 
            +
                it 'should work' do
         | 
| 78 | 
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         | 
| 79 | 
            +
                end
         | 
| 80 | 
            +
              end
         | 
| 81 | 
            +
             | 
| 70 82 | 
             
              # unit tests for address_get_timezone
         | 
| 71 83 | 
             
              # Gets IANA/Olsen time zones for a country
         | 
| 72 84 | 
             
              # Gets the IANA/Olsen time zones for a country.
         | 
| @@ -56,4 +56,22 @@ describe 'CountryDetails' do | |
| 56 56 | 
             
                end
         | 
| 57 57 | 
             
              end
         | 
| 58 58 |  | 
| 59 | 
            +
              describe 'test attribute "iso_currency_code"' 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 "currency_symbol"' 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 | 
            +
              describe 'test attribute "currency_english_name"' do
         | 
| 72 | 
            +
                it 'should work' do
         | 
| 73 | 
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         | 
| 74 | 
            +
                end
         | 
| 75 | 
            +
              end
         | 
| 76 | 
            +
             | 
| 59 77 | 
             
            end
         | 
| @@ -74,4 +74,22 @@ describe 'ValidateCountryResponse' do | |
| 74 74 | 
             
                end
         | 
| 75 75 | 
             
              end
         | 
| 76 76 |  | 
| 77 | 
            +
              describe 'test attribute "iso_currency_code"' 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 | 
            +
             | 
| 83 | 
            +
              describe 'test attribute "currency_symbol"' do
         | 
| 84 | 
            +
                it 'should work' do
         | 
| 85 | 
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         | 
| 86 | 
            +
                end
         | 
| 87 | 
            +
              end
         | 
| 88 | 
            +
             | 
| 89 | 
            +
              describe 'test attribute "currency_english_name"' do
         | 
| 90 | 
            +
                it 'should work' do
         | 
| 91 | 
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         | 
| 92 | 
            +
                end
         | 
| 93 | 
            +
              end
         | 
| 94 | 
            +
             | 
| 77 95 | 
             
            end
         |