Represents country information during checkout. Provides access to country details for geographic-based pricing and shipping calculations.

Hierarchy

  • CheckoutCountry

Properties

Name: string

Full country name.

Example

console("Shipping to country: " + CheckoutItem.CountryFrom.Name);
NumericIsoCode: number

Numeric ISO country code.

Example

console("Numeric country code: " + CheckoutItem.CountryFrom.NumericIsoCode);
ThreeLetterIsoCode: string

Three-letter ISO country code.

Example

console("Country code: " + CheckoutItem.CountryFrom.ThreeLetterIsoCode);
TwoLetterIsoCode: string

Two-letter ISO country code.

Example

if (CheckoutItem.CountryFrom.TwoLetterIsoCode === "US") {
console("Domestic US shipping");
}

Generated using TypeDoc