GitHub

ShopifyCartPreferences

interface

import { ShopifyCartPreferences } 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 ShopifyCartPreferences {
  __typename: "CartPreferences"
  delivery: ShopifyCartDeliveryPreference
  wallet: string[]
}

Properties

__typename
"CartPreferences"
delivery
ShopifyCartDeliveryPreference

Delivery preferences can be used to prefill the delivery section in at checkout.

wallet
string[]

Wallet preferences are used to populate relevant payment fields in the checkout flow. Accepted value: ["shop_pay"].