import { ShopifyDeliveryAddressValidationStrategy } from '@daffodil/driver/shopify'
Defines the types of available validation strategies for delivery addresses.
enum ShopifyDeliveryAddressValidationStrategy {
CountryCodeOnly = ShopifyDeliveryAddressValidationStrategy.CountryCodeOnly,
Strict = ShopifyDeliveryAddressValidationStrategy.Strict,
}
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. |