@avvyr/storefront-sdk - v0.19.0
    Preparing search index...

    Class MarketResource

    Index
    • The public shape of the market this client is configured for.

      Mainly here for deliveryCountries. The API refuses a delivery address the market does not serve — each country belongs to exactly one market — and without this a checkout can only find out by trying: the shopper fills in an address, submits, and is told no. Fetch it up front and the form can disable the countries that will not be accepted, and point at the right market instead.

      Deliberately a small allow-listed object rather than the market document. Merchandising rules and internal ids stay on the server.

      Returns Promise<StorefrontMarket>