Skip to content

Commit

Permalink
- Add missing parameters for customs item (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwithan8 committed Jun 5, 2024
1 parent 875ef52 commit c1682f6
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions EasyPost/Parameters/CustomsItem/Create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,41 @@ public class Create : BaseParameters<Models.API.CustomsItem>, ICustomsItemParame
[NestedRequestParameter(typeof(CustomsInfo.Create), Necessity.Optional, "weight")]
public double? Weight { get; set; }

/// <summary>
/// Manufacturer of the item.
/// </summary>
[TopLevelRequestParameter(Necessity.Optional, "customs_item", "manufacturer")]
[NestedRequestParameter(typeof(CustomsInfo.Create), Necessity.Optional, "manufacturer")]
public string? Manufacturer { get; set; }

/// <summary>
/// SKU or UPC of the item.
/// </summary>
[TopLevelRequestParameter(Necessity.Optional, "customs_item", "code")]
[NestedRequestParameter(typeof(CustomsInfo.Create), Necessity.Optional, "code")]
public string? Code { get; set; }

/// <summary>
/// Three-letter currency code for the item. Defaults to USD.
/// </summary>
[TopLevelRequestParameter(Necessity.Optional, "customs_item", "currency")]
[NestedRequestParameter(typeof(CustomsInfo.Create), Necessity.Optional, "currency")]
public string? Currency { get; set; }

/// <summary>
/// Commodity identifier for the item.
/// </summary>
[TopLevelRequestParameter(Necessity.Optional, "customs_item", "printed_commodity_identifier")]
[NestedRequestParameter(typeof(CustomsInfo.Create), Necessity.Optional, "printed_commodity_identifier")]
public string? PrintedCommodityIdentifier { get; set; }

/// <summary>
/// Export Control Classification Number (ECCN) for the item.
/// </summary>
[TopLevelRequestParameter(Necessity.Optional, "customs_item", "eccn")]
[NestedRequestParameter(typeof(CustomsInfo.Create), Necessity.Optional, "eccn")]
public string? Eccn { get; set; }

#endregion
}
}

0 comments on commit c1682f6

Please sign in to comment.