v5.0.0
See our Upgrade Guide for more details.
- Library is now thread-safe. Closes GitHub Issue (#183)
- Initialize a
Clientobject with an API key. Optionally set open and read timeout params - Previous classes have been diverted into
ServicesandModels- All methods (i.e.
create,retrieve,all) exist in services, accessed via property of the client (eg:client.shipment.create())- E.g.
bought_shipment = client.shipment.buy(shipment_id, rate)
- E.g.
- All methods (i.e.
- Initialize a
- Beta namespace changed from
easypost.beta.xtoclient.beta_x - References to
Referralare nowReferralCustomerandreferral_customerto match the API and docs - References to
smartrateare nowSmartRateandsmart_rateto match the API and docs- Rename function
get_smartratestoget_smart_rates - Rename function
get_lowest_smartratetoget_lowest_smart_rate
- Rename function
- Empty API response functions for
deletereturntrueinstead of empty object - Drops support for Ruby 2.5
- Bumps all dev dependencies
- Improves Error Deserialization to dynamically handle edge cases that have a bad format
- Adds
retrieve_estimated_delivery_datefunction in Shipment - Removes deprecated
endshipperbeta class, please use the GA oneEasyPost::Services::EndShipper