shippex v0.5.0 Shippex.Shipment

A Shipment represents everything needed to fetch rates from carriers: an origin, a destination, and a package description. 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.

Link to this section Summary

Functions

Returns whether or not the shipment is international. Simply compares the origin and destination countries

Link to this section Types

Link to this type t()
t() :: %Shippex.Shipment{from: term, id: term, package: term, to: term}

Link to this section Functions

Link to this function international?(shipment)
international?(Shippex.Shipment.t) :: boolean

Returns whether or not the shipment is international. Simply compares the origin and destination countries.