diff --git a/CHANGELOG.md b/CHANGELOG.md index def5b7208..63fa3b650 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # CHANGELOG +## v7.12.0 (2026-10-29) + +- Adds `ManufacturerProductId` and `StandardizedProductId` properties to the `CustomsItem` API model and create parameters +- Adds `Address` property to the `TaxIdentifier` API model and create parameters + ## v7.11.0 (2026-10-27) - Removes the deprecated, unusable `ReferralCustomer.AddCreditCardToUser` function diff --git a/EasyPost.nuspec b/EasyPost.nuspec index 1fb0ed691..5074ac646 100644 --- a/EasyPost.nuspec +++ b/EasyPost.nuspec @@ -3,7 +3,7 @@ EasyPost-Official EasyPost (Official) - 7.11.0 + 7.12.0 EasyPost EasyPost https://www.easypost.com diff --git a/EasyPost/Models/API/CustomsItem.cs b/EasyPost/Models/API/CustomsItem.cs index 01e6d485b..bf01c094b 100644 --- a/EasyPost/Models/API/CustomsItem.cs +++ b/EasyPost/Models/API/CustomsItem.cs @@ -49,6 +49,12 @@ public class CustomsItem : EasyPostObject, Parameters.ICustomsItemParameter [JsonProperty("manufacturer")] public string? Manufacturer { get; set; } + /// + /// Manufacturer-assigned product identifier (NS-PID) for the item. + /// + [JsonProperty("manufacturer_product_id")] + public string? ManufacturerProductId { get; set; } + /// /// The two-letter ISO 3166 country code where the item is being shipped from. /// @@ -67,6 +73,12 @@ public class CustomsItem : EasyPostObject, Parameters.ICustomsItemParameter [JsonProperty("quantity")] public int? Quantity { get; set; } + /// + /// Standardized product identifier (S-PID) for the item, such as a GTIN or EAN. + /// + [JsonProperty("standardized_product_id")] + public string? StandardizedProductId { get; set; } + /// /// The value of the item being shipped, in US Dollars. /// Total value should equal unit value multiplied by the . diff --git a/EasyPost/Models/API/TaxIdentifier.cs b/EasyPost/Models/API/TaxIdentifier.cs index 2f61c8e44..c57a85b47 100644 --- a/EasyPost/Models/API/TaxIdentifier.cs +++ b/EasyPost/Models/API/TaxIdentifier.cs @@ -11,6 +11,12 @@ public class TaxIdentifier : EasyPostObject, Parameters.ITaxIdentifierParameter { #region JSON Properties + /// + /// The associated with the . + /// + [JsonProperty("address")] + public Address? Address { get; set; } + /// /// Which entity the belongs to. /// Possible values are: diff --git a/EasyPost/Parameters/CustomsItem/Create.cs b/EasyPost/Parameters/CustomsItem/Create.cs index 712336fef..6a19bea60 100644 --- a/EasyPost/Parameters/CustomsItem/Create.cs +++ b/EasyPost/Parameters/CustomsItem/Create.cs @@ -88,6 +88,20 @@ public class Create : BaseParameters, ICustomsItemParame [NestedRequestParameter(typeof(CustomsInfo.Create), Necessity.Optional, "eccn")] public string? Eccn { get; set; } + /// + /// Manufacturer-assigned product identifier (NS-PID) for the item. + /// + [TopLevelRequestParameter(Necessity.Optional, "customs_item", "manufacturer_product_id")] + [NestedRequestParameter(typeof(CustomsInfo.Create), Necessity.Optional, "manufacturer_product_id")] + public string? ManufacturerProductId { get; set; } + + /// + /// Standardized product identifier (S-PID) for the item, such as a GTIN or EAN. + /// + [TopLevelRequestParameter(Necessity.Optional, "customs_item", "standardized_product_id")] + [NestedRequestParameter(typeof(CustomsInfo.Create), Necessity.Optional, "standardized_product_id")] + public string? StandardizedProductId { get; set; } + #endregion } } diff --git a/EasyPost/Parameters/TaxIdentifier/Create.cs b/EasyPost/Parameters/TaxIdentifier/Create.cs index 66734cdc1..22d93e0da 100644 --- a/EasyPost/Parameters/TaxIdentifier/Create.cs +++ b/EasyPost/Parameters/TaxIdentifier/Create.cs @@ -35,6 +35,12 @@ public class Create : BaseParameters, ITaxIdentifierPa [NestedRequestParameter(typeof(Shipment.Create), Necessity.Optional, "issuing_country")] public string? IssuingCountry { get; set; } + /// + /// The associated with the tax identification number. + /// + [NestedRequestParameter(typeof(Shipment.Create), Necessity.Optional, "address")] + public Models.API.Address? Address { get; set; } + #endregion } } diff --git a/EasyPost/Properties/VersionInfo.cs b/EasyPost/Properties/VersionInfo.cs index 358d45142..6a0001098 100644 --- a/EasyPost/Properties/VersionInfo.cs +++ b/EasyPost/Properties/VersionInfo.cs @@ -2,6 +2,6 @@ // Version information for an assembly must follow semantic versioning // When releasing a release candidate, append a 4th digit being the number of the release candidate -[assembly: AssemblyVersion("7.11.0")] -[assembly: AssemblyFileVersion("7.11.0")] -[assembly: AssemblyInformationalVersion("7.11.0")] +[assembly: AssemblyVersion("7.12.0")] +[assembly: AssemblyFileVersion("7.12.0")] +[assembly: AssemblyInformationalVersion("7.12.0")]