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

Helper Class.
Afficher le fichier Open project: atomia/OrderPage

Méthodes publiques

Méthode 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 méthode

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
Résultat List

GetDefaultCountryCodeFromConfig() public static méthode

Gets the default country code from config.
public static GetDefaultCountryCodeFromConfig ( ) : string
Résultat string

GetDefaultCurrencyCodeFromConfig() public static méthode

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.
Résultat string

GetEUCountryCodes() public static méthode

Gets the EU country codes.
public static GetEUCountryCodes ( List countries ) : List
countries List The countries.
Résultat List

GetSupportedCountriesSelectList() public static méthode

Gets the supported countries select list.
public static GetSupportedCountriesSelectList ( List countries ) : List
countries List The countries.
Résultat List