Skip to content

Commit

Permalink
Merge pull request #172 from EasyPost/suppress_etd
Browse files Browse the repository at this point in the history
feat: adds SuppressETD to ShipmentOptions (closes #171)
  • Loading branch information
Justintime50 authored Apr 26, 2023
2 parents f588b60 + bc96d5c commit 8d6db2f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions shipment_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package easypost

const Version = "2.16.0"
const Version = "2.17.0"

0 comments on commit 8d6db2f

Please sign in to comment.