Shippex.fetch_rates
You're seeing just the function
fetch_rates
, go back to Shippex module for more information.
Specs
fetch_rates(Shippex.Shipment.t(), Keyword.t()) :: [{atom(), Shippex.Rate.t()}]
Fetches rates for a given shipment
. Possible options:
carriers
- Fetches rates for all services for the given carriersservices
- Fetches rates only for the given services
These may be used in combination. To fetch rates for all UPS services, as well as USPS Priority, for example:
Shippex.fetch_rates(shipment, carriers: :ups, services: [:usps_priority])
If no options are provided, Shippex will fetch rates for every service from every available carrier.