GitHub

ShopifyCartDeliveryPreference

interface

import { ShopifyCartDeliveryPreference } from '@daffodil/driver/shopify'

A set of preferences tied to the buyer interacting with the cart. Preferences are used to prefill fields in at checkout to streamline information collection. Preferences are not synced back to the cart if they are overwritten.

interface ShopifyCartDeliveryPreference {
  __typename: "CartDeliveryPreference"
  coordinates: ShopifyCartDeliveryCoordinatesPreference
  deliveryMethod: ShopifyPreferenceDeliveryMethodType[]
  pickupHandle: string[]
}

Properties

__typename
"CartDeliveryPreference"
coordinates
ShopifyCartDeliveryCoordinatesPreference

Preferred location used to find the closest pick up point based on coordinates.

deliveryMethod
ShopifyPreferenceDeliveryMethodType[]

The preferred delivery methods such as shipping, local pickup or through pickup points.

pickupHandle
string[]

The pickup handle prefills checkout fields with the location for either local pickup or pickup points delivery methods. It accepts both location ID for local pickup and external IDs for pickup points.