GitHub

ShopifyCartDeliveryGroup

Type

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

Groups cart line items that share the same delivery destination. Each group provides the available CartDeliveryOption choices for that address, along with the customer's selected option.

Access through the Cart object's deliveryGroups field. Items are grouped by merchandise type (one-time purchase vs subscription), allowing different delivery methods for each.

interface ShopifyCartDeliveryGroup {
  __typename: "CartDeliveryGroup"
  cartLines: ShopifyBaseCartLineConnection
  deliveryAddress: ShopifyMailingAddress
  deliveryOptions: ShopifyCartDeliveryOption[]
  groupType: ShopifyCartDeliveryGroupType
  id: string
  selectedDeliveryOption: ShopifyCartDeliveryOption
}

Properties

__typename
"CartDeliveryGroup"
cartLines
ShopifyBaseCartLineConnection

A list of cart lines for the delivery group.

deliveryAddress
ShopifyMailingAddress

The destination address for the delivery group.

deliveryOptions
ShopifyCartDeliveryOption[]

The delivery options available for the delivery group.

groupType
ShopifyCartDeliveryGroupType

The type of merchandise in the delivery group.

id
string

The ID for the delivery group.

selectedDeliveryOption
ShopifyCartDeliveryOption

The selected delivery option for the delivery group.