Skip to content

Releases: EasyPost/easypost-go

v4.3.0

15 Apr 16:37
d64837e
Compare
Choose a tag to compare
  • Adds ContentDescription, DropoffMaxDatetime, and PickupMaxDatetime shipment options

v4.2.0

10 Apr 19:58
e4d3a91
Compare
Choose a tag to compare
  • Fix payment method funding and deletion failures due to undetermined payment method type
  • Adds RefundInsurance function in the Insurance service for requesting a refund for a standalone insurance

v4.1.1

26 Mar 16:34
bf20d9c
Compare
Choose a tag to compare
  • Fix DateTime-type parameters not being included in GET requests

v4.1.0

08 Jan 22:09
b98116b
Compare
Choose a tag to compare
  • Add ListChildUsers and GetNextChildUserPage functions to User service

v4.0.0

06 Dec 18:36
6a911d3
Compare
Choose a tag to compare
  • Removes the undocumented CreateAndBuy function from the Batch service. The proper usage is to create a batch first and buy it separately
  • Removed CarbonOffset parameter from createShipmentRequest, buyShipmentRequest, and buyShipmentRequest structs as EasyPost now offers Carbon Neutral shipments by default for free

v3.2.0

11 Oct 17:38
5466456
Compare
Choose a tag to compare
  • Add GetAPIKeysForUser under API Key service to retrieve API keys for a specific user ID

v3.1.0

29 Sep 20:01
52d8ebb
Compare
Choose a tag to compare
  • Adds CommercialInvoiceSignature and CommercialInvoiceLetterhead shipment options

v3.0.1

05 Sep 21:48
335017e
Compare
Choose a tag to compare
  • Fix endpoint for creating a FedEx Smartpost carrier account

v3.0.0

16 Aug 21:06
Compare
Choose a tag to compare

What's Changed

  • Drop support for Go 1.15
    • Minimum supported version is now Go 1.16
  • Adds specific error types for API and local errors
    • All errors inherit the LibraryError interface
      • API errors inherit the APIError interface, which inherits the LibraryError interface
      • Local errors inherit the LocalError interface, which inherits the LibraryError interface
    • Common error messages are now available as constants for parsing (e.g. regex)
  • All uses of *time.Time have been replaced with new easypost.DateTime class
    • DateTime is a wrapper around time.Time that handles unexpected date formats from the API
  • Previously-marked deprecated functions and structs have been removed:
    • ListReportOptions struct -> use ListOptions struct instead
    • Beta carrier metadata functions -> use non-beta functions instead
    • LowestRate shipment functions -> use LowestShipmentRate functions instead
    • CreateWebhook function -> use CreateWebhookWithDetails function instead
    • EnableWebhook function -> use UpdateWebhook function instead
  • TrackingCodes string array on ListTrackersOptions struct is now TrackingCode single string
  • AddShipmentsToBatch and RemoveShipmentsFromBatch functions now explicitly accept Shipment structs instead of generic interface{} types
    • Functions will no longer accept solely IDs; users will need to provide whole Shipment structs

Please view our Upgrade Guide for details on how to upgrade from 2.x to 3.0.

Full Changelog: v2.20.0...v3.0.0

v2.20.0

28 Jul 16:02
efac0bc
Compare
Choose a tag to compare
  • Adds hooks to introspect the request and response of an API call (see HTTP Hooks section of the README for more information)