GitHub

ShopifyCartSelectableAddressInput

Type

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

The input fields for a selectable delivery address to present to the buyer. Used by CartDeliveryInput when creating a cart with the cartCreate mutation.

You can pre-select an address for the buyer, mark it as one-time use so it isn't saved after checkout, and specify how strictly the address should be validated.

interface ShopifyCartSelectableAddressInput {
  address: ShopifyCartAddressInput
  oneTimeUse: boolean
  selected: boolean
  validationStrategy: ShopifyDeliveryAddressValidationStrategy
}

Properties

address
ShopifyCartAddressInput

Exactly one kind of delivery address.

oneTimeUse
boolean

When true, this delivery address will not be associated with the buyer after a successful checkout.

selected
boolean

Sets exactly one address as pre-selected for the buyer.

validationStrategy
ShopifyDeliveryAddressValidationStrategy

Defines what kind of address validation is requested.