Skip to content

Releases: EasyPost/easypost-python

v8.1.1

05 Sep 21:54
4bc2545
Compare
Choose a tag to compare
  • Fix endpoint for creating a FedEx Smartpost carrier account

v8.1.0

28 Jul 16:10
374dc92
Compare
Choose a tag to compare
  • Adds new RequestHook and ResponseHook events. (un)subscribe to them with the new subscribe_to_request_hook, subscribe_to_response_hook, unsubscribe_from_request_hook, or unsubscribe_from_response_hook methods of an EasyPostClient
  • Maps 400 status codes to new BadRequestError class

v8.0.0

06 Jun 21:46
a1340f0
Compare
Choose a tag to compare

See our Upgrade Guide for more details.

  • New EasyPostClient object
    • Logic is grouped together in Services and each EasyPost object has a new model (eg: client.shipment.create())
  • Error handling overhaul
    • Introduces ~2 dozen new error types that extend from either ApiError or EasyPostError
    • ApiErrors behave like the previous Error class did. They will include a message, http_status, and http_body. Additionally, a new code and errors keys are present and populate when available
  • Beta namespace changed from easypost.beta.x to client.beta_x
  • Empty API response functions return None instead of True
  • Corrected naming conventions
    • 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
    • References to Scanform are now ScanForm and scan_form
    • primary_or_secondary paramater name for billing functions is now called priority to match the API and docs
  • The update_email function of the referral_customer service had the parameter order switched so id (previously called user_id) is first which matches the rest of the library
  • Retrieving carrier metadata is now in GA
  • Dropped Python 3.6 support
  • Bumps all dependencies

v7.13.0

02 May 16:04
f74826e
Compare
Choose a tag to compare
  • Adds retrieve_estimated_delivery_date function to the Shipment class

v7.12.0

18 Apr 21:25
ca9aa2b
Compare
Choose a tag to compare
  • Adds beta retrieve_carrier_metadata function
  • Improves error deserialization to handle bad format returned from the JSON

v7.11.0

04 Apr 16:12
c62cdc5
Compare
Choose a tag to compare
  • Add get_next_page function that retrieves the next page of results for a paginated collection

v7.10.0

21 Feb 18:10
d2cf421
Compare
Choose a tag to compare
  • Adds beta retrieve_stateless_rates function
  • Adds get_lowest_stateless_rate function to filter the lowest stateless rate

v7.9.0

18 Jan 18:05
69b6987
Compare
Choose a tag to compare
  • Adds all function to Pickup to retrieve all pickups
  • Adds retrieve_payload and retrieve_all_payloads functions to Event

v7.8.0

11 Jan 17:14
c377276
Compare
Choose a tag to compare
  • Adds new beta billing functionality for ReferralCustomer users
    • add_payment_method can add a pre-existing Stripe bank account or credit card to your EasyPost account
    • refund_by_amount refunds your wallet by a dollar amount
    • refund_by_payment_log refunds you wallet by a PaymentLog ID

v7.7.0

07 Dec 17:39
d6d977d
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