Class CountryViewModel
- Namespace
- Dynamicweb.Ecommerce.Frontend
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a ViewModelBase for country information, containing details about a specific currency used within Dynamicweb. This class includes properties for the country such as its codes, names, culture, and VAT rates.
public class CountryViewModel : ViewModelBase
- Inheritance
-
CountryViewModel
- Inherited Members
- Extension Methods
Properties
Code2
The two-character ISO 3166 code representing the country, such as "DK" for Denmark. This property is widely used for country identification, TwoLetterISORegionName.
public string? Code2 { get; set; }
Property Value
- string
The two-character country code.
Code3
The three-character ISO 3166 code representing the country, such as "DNK" for Denmark. This code provides a slightly longer, yet still concise, ThreeLetterISORegionName.
public string? Code3 { get; set; }
Property Value
- string
The three-character country code.
Culture
The IETF BCP 47 language tag representing the culture of the country, such as "da-DK" for Danish culture in Denmark.
public string? Culture { get; set; }
Property Value
Name
The full, official name of the country, providing clear identification. This name will be the translated name depending on the language used.
public string? Name { get; set; }
Property Value
- string
The official name of the country.
RegionCode
The RegionCode is an optional property, as it should only be used if applicable. Used together with "US", it could be "AZ". It will usually be displayed as an empty string, if not set.
public string? RegionCode { get; set; }
Property Value
Vat
The standard VAT rate applicable within the country, expressed as a percentage.
public double Vat { get; set; }