From bc96d5c16463f898c14a37966902d76ce169abde Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Wed, 26 Apr 2023 12:55:40 -0600 Subject: [PATCH] feat: adds SuppressETD to ShipmentOptions (closes #171) --- CHANGELOG.md | 4 ++++ shipment_options.go | 5 +++-- version.go | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e0247d..6035bac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## v2.17.0 (2023-04-26) + +- Adds `SuppressETD` to `ShipmentOptions` + ## v2.16.0 (2023-04-26) - Adds missing `CustomsInfo` to the Order struct diff --git a/shipment_options.go b/shipment_options.go index 3579385..6024956 100644 --- a/shipment_options.go +++ b/shipment_options.go @@ -22,7 +22,7 @@ type ShipmentOptions struct { CODAddressID string `json:"cod_address_id,omitempty"` Currency string `json:"currency,omitempty"` DeliveryConfirmation string `json:"delivery_confirmation,omitempty"` - DeliveryMaxDatetime *time.Time `json:"delivery_max_datetime,omitempty"` + DeliveryMaxDatetime *time.Time `json:"delivery_max_datetime,omitempty"` DutyPayment *Payment `json:"duty_payment,omitempty"` DutyPaymentAccount string `json:"duty_payment_account,omitempty"` DropoffType string `json:"dropoff_type,omitempty"` @@ -42,7 +42,7 @@ type ShipmentOptions struct { LabelSize string `json:"label_size,omitempty"` Machinable bool `json:"machinable,omitempty"` Payment *Payment `json:"payment,omitempty"` - PickupMinDatetime *time.Time `json:"pickup_min_datetime,omitempty"` + PickupMinDatetime *time.Time `json:"pickup_min_datetime,omitempty"` PrintCustom1 string `json:"print_custom_1,omitempty"` PrintCustom2 string `json:"print_custom_2,omitempty"` PrintCustom3 string `json:"print_custom_3,omitempty"` @@ -59,6 +59,7 @@ type ShipmentOptions struct { SpecialRatesEligibility string `json:"special_rates_eligibility,omitempty"` SmartpostHub string `json:"smartpost_hub,omitempty"` SmartpostManifest string `json:"smartpost_manifest,omitempty"` + SuppressETD bool `json:"suppress_etd,omitempty"` } // Payment provides information on how a shipment is billed. diff --git a/version.go b/version.go index 5a986fb..db9c076 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package easypost -const Version = "2.16.0" +const Version = "2.17.0"