Interface: UseAvailableShippingMethodsResult
Properties
error
error:
Error|null
Transport failure (network, timeout). Business reasons live in userErrors.
freeShippingProgress
freeShippingProgress:
Maybe<FreeShippingProgress> |undefined
Progress towards free shipping, when the merchant configured a threshold.
isLoading
isLoading:
boolean
methods
methods:
AvailableShippingMethod[]
Methods for the destination, in the order the API returned them. Empty until loaded.
refetch
refetch: () =>
Promise<void>
Returns
Promise<void>
userErrors
userErrors:
UserError[]
Reasons no method is offered, straight from the API — e.g. a digital-only cart, or no
carrier covering the address. Render message as-is; it arrives already translated.