SoftLayer_Locale_Country


SoftLayer_Locale_Country

Description

This service provides methods to retrieve country locale information.

Methods

getAllVatCountryCodesAndVatIdRegexes

This method is to get the collection of VAT country codes and VAT ID Regexes.

getAvailableCountries

Use this method to retrieve a list of countries and locale information available to the current user.

getCountries

Use this method to retrieve a list of countries and locale information such as country code and state/provinces.

getCountriesAndStates

This method will return a collection of SoftLayer_Container_Collection_Locale_CountryCode objects. If the country has states, a SoftLayer_Container_Collection_Locale_StateCode collection will be provided with the country.

getObject

Retrieve a SoftLayer_Locale_Country record.

getPostalCodeRequiredCountryCodes

This method will return an array of country codes that require postal code

getStates

States that belong to this country.

getVatCountries

This method will return an array of ISO 3166 Alpha-2 country codes that use a Value-Added Tax (VAT) ID. Note the difference between SoftLayer_Locale_Country::getVatRequiredCountryCodes - this method will provide all country codes that use VAT ID, including those which are required.

getVatRequiredCountryCodes

This method will return an array of ISO 3166 Alpha-2 country codes that use a Value-Added Tax (VAT) ID. Note the difference between SoftLayer_Locale_Country::getVatCountries - this method will provide country codes where a VAT ID is required for onboarding to IBM Cloud.

isEuropeanUnionCountry

Returns true if the country code is in the European Union (EU), false otherwise.