GitHub

ShopifyDeliveryAddressValidationStrategy

Type

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

Controls how delivery addresses are validated during cart operations. The default validation checks only the country code, while strict validation verifies all address fields against Shopify's checkout rules and rejects invalid addresses.

Used by DeliveryAddressInput when setting buyer identity preferences, and by CartSelectableAddressInput and CartSelectableAddressUpdateInput when managing cart delivery addresses.

Properties

CountryCodeOnly
ShopifyDeliveryAddressValidationStrategy.CountryCodeOnly

Only the country code is validated.

Strict
ShopifyDeliveryAddressValidationStrategy.Strict

Strict validation is performed, i.e. all fields in the address are validated according to Shopify's checkout rules. If the address fails validation, the cart will not be updated.