shippex v0.6.8 Shippex.Label

Defines the struct for storing a returned Rate, along with the tracking number, base64-encoded image and its format.

%Shippex.Label{rate: %Shippex.Rate{},
               tracking_number: "ABCDEF1234",
               format: :gif,
               image: "iVBORw0K..."}

Note that :image is always a pure base64 string, and doesn’t contain common prefixes like "data:image/gif;base64," and so on.

Currently, UPS returns GIF labels, and USPS returns PDF labels.

Link to this section Summary

Link to this section Types

Link to this type t()
t() :: %Shippex.Label{format: term, image: term, tracking_number: term}