Skip to content

Releases: EasyPost/easypost-ruby

v5.1.0

28 Jul 16:10
c4a59d5
Compare
Choose a tag to compare
  • Adds hooks to introspect the request and response of API calls (see HTTP Hooks section in the README for more details)
  • Maps 400 status code responses to the new BadRequestError class

v5.0.1

20 Jun 16:39
682d065
Compare
Choose a tag to compare
  • Fixes a bug where the params of a customs_info on create weren't wrapped properly which led to an empty set of customs_items

v5.0.0

06 Jun 21:48
bf684cd
Compare
Choose a tag to compare

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

v4.13.1

18 Apr 21:27
6aa713a
Compare
Choose a tag to compare
  • Improves Error Deserialization to dynamically handle edge cases that have a bad format

v4.13.0

04 Apr 16:13
05070c2
Compare
Choose a tag to compare
  • Adds get_next_page function to each object which retrieves the next page of a collection when the has_more key is present in the response

v4.12.0

21 Feb 18:14
50c531a
Compare
Choose a tag to compare
  • Adds beta retrieve_stateless_rates function
  • Adds get_lowest_stateless_rate utility

v4.11.0

18 Jan 18:06
bc77f40
Compare
Choose a tag to compare
  • Added function to retrieve all pickups, accessible via EasyPost::Pickup.all
  • Added payload functions retrieve_all_payloads and retrieve_payload to retrieve all payloads or a specific payload for an event.

v4.10.0

11 Jan 17:16
bce2d7f
Compare
Choose a tag to compare
  • Added new beta billing functionality for referral customer users, accessible via EasyPost::Beta::Referral
    • add_payment_method to add an existing Stripe bank account or credit card to your EasyPost account
    • refund_by_amount refunds you wallet balance by a specified amount
    • refund_by_payment_log refunds you wallet balance by a specified payment log
  • Fix bug where bank account and credit card payment methods were not deserializing to the EasyPost::PaymentMethod class

v4.9.0

07 Dec 17:40
35dfc7c
Compare
Choose a tag to compare
  • Routes requests for creating a carrier account with a custom workflow (eg: FedEx, UPS) to the correct endpoint when using the create function

v4.8.1

24 Oct 19:03
e021894
Compare
Choose a tag to compare
  • Concatenates error.message if it incorrectly comes back from the API as an array
  • Treats any HTTP status outside the 2xx range as an error. Impact expected is minimal as this change only affects 1xx and 3xx HTTP status codes