v5.0.0
See our Upgrade Guide for more details.
- Library is now thread-safe. Closes GitHub Issue (#183)
- Initialize a
Client
object with an API key. Optionally set open and read timeout params - Previous classes have been diverted into
Services
andModels
- 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.x
toclient.beta_x
- References to
Referral
are nowReferralCustomer
andreferral_customer
to match the API and docs - References to
smartrate
are nowSmartRate
andsmart_rate
to match the API and docs- Rename function
get_smartrates
toget_smart_rates
- Rename function
get_lowest_smartrate
toget_lowest_smart_rate
- Rename function
- Empty API response functions for
delete
returntrue
instead 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_date
function in Shipment - Removes deprecated
endshipper
beta class, please use the GA oneEasyPost::Services::EndShipper