Methods
getCountryCodeFromName
- getCountryCodeFromName(name: string): Promise<string>
-
Returns Promise<string>
getCountryNameFromAbbreviation
- getCountryNameFromAbbreviation(abbreviation: string): Promise<string>
-
Returns Promise<string>
getShippingCountries
- getShippingCountries(): Promise<readonly ShippingCountry[]>
-
getShippingStates
- getShippingStates(): Promise<readonly ShippingState[]>
-
Returns Promise<readonly ShippingState[]>
getShippingStatesForCountry
- getShippingStatesForCountry(__namedParameters: {
countryQuery: string;
}): Promise<readonly ShippingState[]>
-
Parameters
-
__namedParameters: {
countryQuery: string;
}
Returns Promise<readonly ShippingState[]>
Use this method to get the abbreviation/code of a country from its name. If no match is found, it falls back to the input name.