Releases: EasyPost/easypost-go
Releases · EasyPost/easypost-go
v2.6.0
- Adds Carbon Offset support
- Adds the ability to create a shipment with carbon offset
- Adds the ability to buy a shipment with carbon offset
- Adds the ability to one-call-buy a shipment with carbon offset
- Adds the ability to re-rate a shipment with carbon offset
- Adds
ValidateWebhook
function that returns your webhook or raises an error if there is awebhook_secret
mismatch
v2.5.0
- Add support for generating shipment forms via
GenerateShipmentForm
function
v2.4.0
- Adds
RetrievePaymentMethods
,FundWallet
andDeletePaymentMethod
functions - Adds
BillingType
in CarrierAccount and Rate structs - Adds new lowest rate functions for Shipments, Orders and Pickups
- Adds new lowest smartrate functions for Shipments
- Adds OS details to the User-Agent header
- Adds support for webhook secrets
- Update methods now use
patch
instead ofput
behind the scenes to better match the API expectation and documentation. Update functions should still behave the same as before - Enforces passing an API key on each request (the library will now fail fast instead of sending an impossible-to-service HTTP request)
v2.3.0
- Adds
Columns
andAdditionalColumns
params toReport
struct - Adds
Declaration
attribute inCustomsInfo
struct
v2.2.0
- Adds missing
CreateAndVerifyAddress
andCreateAndVerifyAddressWithContext
functions
v2.1.0
- Adds
CreateRefund
,CreateRefundWithContext
,ListRefunds
,ListRefundsWithContext
,GetRefund
, andGetRefundWithContext
in the Refund file - Adds missing
ID
attribute toBrand
struct - Fixes a bug where the
AddShipmentsToBatch
, andAddShipmentsToBatchWithContext
functions wouldn't allow a Shipment object to be passed by changing the params fromstring
tointerface{}
- Fixes a bug where the
RemoveShipmentsFromBatch
, andRemoveShipmentsFromBatchWithContext
functions wouldn't allow a Shipment IDs to be passed by changing the params from*Shipment
tointerface{}
- Fixes the return type of
ListBatchesResult
frombatch
toinsurance
- Fixes the HTTP method from
GET
toPOST
forGetBatchLabels
andGetBatchLabelsWithContext
- Adds comprehensive test coverage
v2.0.1
- Corrects namespace for v2 release from
github.com/EasyPost/easypost-go
togithub.com/EasyPost/easypost-go/v2
v2.0.0
NOTE: Do not use this release, use v2.0.1 or later due to this release being incorrectly packaged.
- Bumps minimum Go version from
1.12
to1.15
- Bumps dependencies
- Lints the entire project
- adds a
client.RetrieveMe()
function to retrieve the authenticated user - Adds support to one-call buy an order by passing a
Service
andCarrierAccount
- Adds support to update user brand via
client.UpdateBrand()
- Adds support to create a list of trackers via
client.CreateTrackerList()
- Adds support for getting the lowest rate of a shipment via
client.LowestRate()
- Adds support to rerate a shipment via the
client.RerateShipment()
method - Adds a default timeout of 60 seconds to requests. This can be overridden by by setting the
Client.Timeout
option in milliseconds - Fixed a spelling error for
origin_location
on the Tracker struct - Removed
GetShipmentRates()
andGetShipmentRatesWithContext()
methods since the shipment struct already has rates. If you need to get new rates for a shipment, please use theRerateShipment()
method instead - Adds a
SmartRate
struct since the structure of theRate
andSmartRate
objects are different (previously the SmartRate object borrowed the Rate struct)
v1.4.0
- Adds support for
TaxIdentifiers
- Remove experimental undocumented methods
ListTrackersUpdated
andListTrackersUpdatedWithContext
v1.3.1
- Corrects
CODAmount
from afloat64
to astring