Releases: EasyPost/easypost-python
Releases · EasyPost/easypost-python
v8.1.1
- Fix endpoint for creating a FedEx Smartpost carrier account
v8.1.0
- Adds new
RequestHook
andResponseHook
events. (un)subscribe to them with the newsubscribe_to_request_hook
,subscribe_to_response_hook
,unsubscribe_from_request_hook
, orunsubscribe_from_response_hook
methods of anEasyPostClient
- Maps 400 status codes to new
BadRequestError
class
v8.0.0
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()
)
- Logic is grouped together in Services and each EasyPost object has a new model (eg:
- Error handling overhaul
- Introduces ~2 dozen new error types that extend from either
ApiError
orEasyPostError
- ApiErrors behave like the previous
Error
class did. They will include amessage
,http_status
, andhttp_body
. Additionally, a newcode
anderrors
keys are present and populate when available
- Introduces ~2 dozen new error types that extend from either
- Beta namespace changed from
easypost.beta.x
toclient.beta_x
- Empty API response functions return
None
instead ofTrue
- Corrected naming conventions
- 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 - References to
Scanform
are nowScanForm
andscan_form
primary_or_secondary
paramater name for billing functions is now calledpriority
to match the API and docs
- References to
- The
update_email
function of thereferral_customer
service had the parameter order switched soid
(previously calleduser_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
- Adds
retrieve_estimated_delivery_date
function to the Shipment class
v7.12.0
- Adds beta
retrieve_carrier_metadata
function - Improves error deserialization to handle bad format returned from the JSON
v7.11.0
- Add
get_next_page
function that retrieves the next page of results for a paginated collection
v7.10.0
- Adds beta
retrieve_stateless_rates
function - Adds
get_lowest_stateless_rate
function to filter the lowest stateless rate
v7.9.0
- Adds
all
function toPickup
to retrieve all pickups - Adds
retrieve_payload
andretrieve_all_payloads
functions toEvent
v7.8.0
- 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 accountrefund_by_amount
refunds your wallet by a dollar amountrefund_by_payment_log
refunds you wallet by a PaymentLog ID
v7.7.0
- Routes requests for creating a carrier account with a custom workflow (eg: FedEx, UPS) to the correct endpoint when using the
create
function