Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- `EnableAPIKey`
- `DisableAPIKey`
- Adds `DeleteTracker` function
- Adds `LineItems` to `Shipment` object

## v5.5.0 (2025-11-24)

Expand Down
6 changes: 6 additions & 0 deletions shipment.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ type PostageLabel struct {
LabelZPLURL string `json:"label_zpl_url,omitempty" url:"label_zpl_url,omitempty"`
}

type LineItem struct {
TotalLineValue string `json:"total_line_value,omitempty" url:"total_line_value,omitempty"`
ItemDescription string `json:"item_description,omitempty" url:"item_description,omitempty"`
}

// A Shipment represents its namesake, and is made up of a "to" and "from"
// addresses, the Parcel being shipped, and any customs forms required for
// international deliveries.
Expand Down Expand Up @@ -73,6 +78,7 @@ type Shipment struct {
BatchStatus string `json:"batch_status,omitempty" url:"batch_status,omitempty"`
BatchMessage string `json:"batch_message,omitempty" url:"batch_message,omitempty"`
TaxIdentifiers []*TaxIdentifier `json:"tax_identifiers,omitempty" url:"tax_identifiers,omitempty"`
LineItems []*LineItem `json:"line_items,omitempty" url:"line_items,omitempty"`
}

// ListShipmentsOptions is used to specify query parameters for listing Shipment
Expand Down