diff --git a/CHANGELOG.md b/CHANGELOG.md index 215d992b..8d4dec9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - `ApiKey.Enable` - `ApiKey.Disable` - Adds `Tracker.Delete` function +- Adds `LineItems` to the shipment/order create parameter set ## v7.4.0 (2025-11-24) diff --git a/EasyPost/Parameters/Shipment/Create.cs b/EasyPost/Parameters/Shipment/Create.cs index 5f9526e2..8ca6b635 100644 --- a/EasyPost/Parameters/Shipment/Create.cs +++ b/EasyPost/Parameters/Shipment/Create.cs @@ -154,6 +154,29 @@ public class Create : BaseParameters, IShipmentParameter [NestedRequestParameter(typeof(Luma.CreateAndBuy), Necessity.Optional, "carrier_accounts")] public List? CarrierAccountIds { get; set; } + /// + /// A list of line items for the new . + /// + [TopLevelRequestParameter(Necessity.Optional, "shipment", "line_items")] + [NestedRequestParameter(typeof(Order.Create), Necessity.Optional, "line_items")] + public List? LineItems { get; set; } + + /// + /// Represents a line item for a shipment. + /// + public class LineItem + { + /// + /// The total value of the line item. + /// + public string? TotalLineValue { get; set; } + + /// + /// The description of the item. + /// + public string? ItemDescription { get; set; } + } + #endregion } }