Releases: EasyPost/easypost-go
Releases · EasyPost/easypost-go
v5.4.0
v5.3.1
- Corrects the type of
CarrierInsuranceAmountfrom string to float64
v5.3.0
- Adds
CarrierInsuranceAmounttoShipmentOptions
v5.2.1
v5.2.0
- Adds the following functions
CreateAndBuyLumaShipmentBuyLumaShipmentGetLumaPromise
- Corrects error message for Oauth carrier account creation
v5.1.0
- Add
Referenceto Claims
v5.0.1
- Corrects the endpoint used for creating/updating UPS accounts
v5.0.0
See our Upgrade Guide for more details.
- Adds
WebhookCustomHeadertype, allowingcustom_headers: []WebhookCustomHeaderto be passed when creating/updating a webhook. - Adds the following functions to assist ReferralCustomers add credit cards and bank accounts:
AddReferralCustomerCreditCardFromStripeAddReferralCustomerBankAccountFromStripeBetaCreateCreditCardClientSecretBetaCreateBankAccountClientSecretBetaCreateBankAccountClientSecretWithReturlUrl
- Routes
AmazonShippingAccountto correct endpoint on create - Adds
TrackingCodesto tracker list function - Adds
EstDeliveryDatetoTrackerDetail - Fixes error parsing
- Allows for alternative format of
errorsfield (previously we deserialized theerrorsfield into a list ofErrorobjects; however, sometimes the errors are simply a list of strings. This change makes theerrorsfield aninterface, allowing for either the renamedFieldErrorobject or a list of strings. Users will need to check for the type of error returned and handle appropriately) - Renamed the
Errorstruct toFieldErrorto better match API docs and language
- Allows for alternative format of
- Address
VerifyandVerifyStrictparams changed from lists of strings to bools - Swaps order of params for
UpdateBrandsoIDcomes first followed by params like every other function - Renames errors to match other error names
EndOfPaginationErrorTypetoEndOfPaginationErrorMissingWebhookSignatureErrorTypetoMissingWebhookSignatureErrorMismatchWebhookSignatureErrorTypetoMismatchWebhookSignatureError
- Renames
CreateWebhookWithDetailstoCreateWebhook - Removes the deprecated
create_listtracker endpoint function as it is no longer available via API
v4.6.0
What's Changed
- Add improved inheritance tree for error types, allowing end-user to properly cast and check for specific error types and sub-types
Related PRs
- [bug] Fix error type inheritance by @nwithan8 in #235
- chore: update webhook validation fixtures by @Justintime50 in #236
- [chore] Prep for v4.6.0 release by @nwithan8 in #237
Full Changelog: v4.5.1...v4.6.0
v4.5.1
- Update HTTP logic to use query for GET/DELETE requests and body for POST/PUT/PATCH requests
- Fix parameters for retrieving next page of child users