C# Class Atomia.Web.Plugin.PublicOrder.Helpers.CountriesHelper

Helper Class.
Show file Open project: atomia/OrderPage

Public Methods

Method Description
GetAllCountries ( System httpContextBase, OrderServiceReferences service ) : List

Get all countries from Billing API, wrapping with a process cache.

GetDefaultCountryCodeFromConfig ( ) : string

Gets the default country code from config.

GetDefaultCurrencyCodeFromConfig ( string countryCode ) : string

Gets the default currency code from config.

If no code is set to default, currency code is determined by country code.

GetEUCountryCodes ( List countries ) : List

Gets the EU country codes.

GetSupportedCountriesSelectList ( List countries ) : List

Gets the supported countries select list.

Method Details

GetAllCountries() public static method

Get all countries from Billing API, wrapping with a process cache.
public static GetAllCountries ( System httpContextBase, OrderServiceReferences service ) : List
httpContextBase System HttpContext to cache in
service OrderServiceReferences Billing API endpoint
return List

GetDefaultCountryCodeFromConfig() public static method

Gets the default country code from config.
public static GetDefaultCountryCodeFromConfig ( ) : string
return string

GetDefaultCurrencyCodeFromConfig() public static method

Gets the default currency code from config.
If no code is set to default, currency code is determined by country code.
public static GetDefaultCurrencyCodeFromConfig ( string countryCode ) : string
countryCode string The country code.
return string

GetEUCountryCodes() public static method

Gets the EU country codes.
public static GetEUCountryCodes ( List countries ) : List
countries List The countries.
return List

GetSupportedCountriesSelectList() public static method

Gets the supported countries select list.
public static GetSupportedCountriesSelectList ( List countries ) : List
countries List The countries.
return List