View Source UspsEx.Shipment (usps_ex v2023.1.27)

A Shipment represents everything needed to fetch rates from carriers: an origin, a destination, and a list of packages. An optional :id field is provided in the struct, which may be used by the end user to represent the user's internal identifier for the shipment. The id is not used by UspsEx.

Shipments are created by shipment/3.

Link to this section Summary

Functions

Builds a Shipment. Raises on failure.

Link to this section Functions

Link to this function

new(from, to, packages \\ [], opts \\ [])

View Source

Builds a Shipment.

Link to this function

new!(from, to, packages, opts \\ [])

View Source

Builds a Shipment. Raises on failure.