Skip to content

v5.0.0

Compare
Choose a tag to compare
@Justintime50 Justintime50 released this 06 Jun 21:48
· 63 commits to master since this release
bf684cd

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 and Models
      • 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)
  • Beta namespace changed from easypost.beta.x to client.beta_x
  • References to Referral are now ReferralCustomer and referral_customer to match the API and docs
  • References to smartrate are now SmartRate and smart_rate to match the API and docs
    • Rename function get_smartrates to get_smart_rates
    • Rename function get_lowest_smartrate to get_lowest_smart_rate
  • Empty API response functions for delete return true 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 one EasyPost::Services::EndShipper