Hierarchy

  • GeographyService

Constructors

Methods

  • 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.

    Parameters

    • name: string

    Returns Promise<string>

  • Use this method to get the name of a country from its abbreviation. If no match is found, it falls back to the input abbreviation.

    Parameters

    • abbreviation: string

    Returns Promise<string>

  • Use this method to get all countries.

    Returns Promise<readonly ShippingCountry[]>

  • Use this method to get all states/provinces.

    Returns Promise<readonly ShippingState[]>

  • Use this method to get all states/provinces for a given country.

    Parameters

    • __namedParameters: {
          countryQuery: string;
      }
      • countryQuery: string

    Returns Promise<readonly ShippingState[]>

Generated using TypeDoc