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