Releases: EasyPost/easypost-ruby
Releases · EasyPost/easypost-ruby
v5.1.0
- 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
- Fixes a bug where the params of a
customs_info
on create weren't wrapped properly which led to an empty set ofcustoms_items
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
v4.13.1
- Improves Error Deserialization to dynamically handle edge cases that have a bad format
v4.13.0
- Adds
get_next_page
function to each object which retrieves the next page of a collection when thehas_more
key is present in the response
v4.12.0
- Adds beta
retrieve_stateless_rates
function - Adds
get_lowest_stateless_rate
utility
v4.11.0
- Added function to retrieve all pickups, accessible via
EasyPost::Pickup.all
- Added payload functions
retrieve_all_payloads
andretrieve_payload
to retrieve all payloads or a specific payload for an event.
v4.10.0
- 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 accountrefund_by_amount
refunds you wallet balance by a specified amountrefund_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
- 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
- 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 affects1xx
and3xx
HTTP status codes