Setting the country can lead to changes in the LineItem prices.

interface CartSetCountryAction {
    action: "setCountry";
    country?: string;
}

Properties

Properties

action: "setCountry"
country?: string

Value to set. If empty, any existing value is removed.

If the Cart is bound to a `store`, the provided value must be included in the [Store's](ctp:api:type:Store) `countries`.
Otherwise a [CountryNotConfiguredInStore](ctp:api:type:CountryNotConfiguredInStoreError) error is returned.

Generated using TypeDoc