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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion EasyPost.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>EasyPost-Official</id>
<title>EasyPost (Official)</title>
<version>7.11.0</version>
<version>7.12.0</version>
<authors>EasyPost</authors>
<owners>EasyPost</owners>
<projectUrl>https://www.easypost.com</projectUrl>
Expand Down
12 changes: 12 additions & 0 deletions EasyPost/Models/API/CustomsItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ public class CustomsItem : EasyPostObject, Parameters.ICustomsItemParameter
[JsonProperty("manufacturer")]
public string? Manufacturer { get; set; }

/// <summary>
/// Manufacturer-assigned product identifier (NS-PID) for the item.
/// </summary>
[JsonProperty("manufacturer_product_id")]
public string? ManufacturerProductId { get; set; }

/// <summary>
/// The two-letter ISO 3166 country code where the item is being shipped from.
/// </summary>
Expand All @@ -67,6 +73,12 @@ public class CustomsItem : EasyPostObject, Parameters.ICustomsItemParameter
[JsonProperty("quantity")]
public int? Quantity { get; set; }

/// <summary>
/// Standardized product identifier (S-PID) for the item, such as a GTIN or EAN.
/// </summary>
[JsonProperty("standardized_product_id")]
public string? StandardizedProductId { get; set; }

/// <summary>
/// The value of the item being shipped, in US Dollars.
/// Total value should equal unit value multiplied by the <see cref="Quantity"/>.
Expand Down
6 changes: 6 additions & 0 deletions EasyPost/Models/API/TaxIdentifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ public class TaxIdentifier : EasyPostObject, Parameters.ITaxIdentifierParameter
{
#region JSON Properties

/// <summary>
/// The <see cref="Address"/> associated with the <see cref="TaxId"/>.
/// </summary>
[JsonProperty("address")]
public Address? Address { get; set; }

/// <summary>
/// Which entity the <see cref="TaxId"/> belongs to.
/// Possible values are:
Expand Down
14 changes: 14 additions & 0 deletions EasyPost/Parameters/CustomsItem/Create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@ public class Create : BaseParameters<Models.API.CustomsItem>, ICustomsItemParame
[NestedRequestParameter(typeof(CustomsInfo.Create), Necessity.Optional, "eccn")]
public string? Eccn { get; set; }

/// <summary>
/// Manufacturer-assigned product identifier (NS-PID) for the item.
/// </summary>
[TopLevelRequestParameter(Necessity.Optional, "customs_item", "manufacturer_product_id")]
[NestedRequestParameter(typeof(CustomsInfo.Create), Necessity.Optional, "manufacturer_product_id")]
public string? ManufacturerProductId { get; set; }

/// <summary>
/// Standardized product identifier (S-PID) for the item, such as a GTIN or EAN.
/// </summary>
[TopLevelRequestParameter(Necessity.Optional, "customs_item", "standardized_product_id")]
[NestedRequestParameter(typeof(CustomsInfo.Create), Necessity.Optional, "standardized_product_id")]
public string? StandardizedProductId { get; set; }

#endregion
}
}
6 changes: 6 additions & 0 deletions EasyPost/Parameters/TaxIdentifier/Create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public class Create : BaseParameters<Models.API.TaxIdentifier>, ITaxIdentifierPa
[NestedRequestParameter(typeof(Shipment.Create), Necessity.Optional, "issuing_country")]
public string? IssuingCountry { get; set; }

/// <summary>
/// The <see cref="Models.API.Address"/> associated with the tax identification number.
/// </summary>
[NestedRequestParameter(typeof(Shipment.Create), Necessity.Optional, "address")]
public Models.API.Address? Address { get; set; }

#endregion
}
}
6 changes: 3 additions & 3 deletions EasyPost/Properties/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Loading