Nop.Core_4.7/Plugins/Nop.Plugin.Tax.Avalara/ItemClassificationAPI/ClassificationParameters.cs

32 lines
991 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Nop.Plugin.Tax.Avalara.ItemClassificationAPI;
public class ClassificationParameters
{
/// <summary>
/// The system has predefined list of parameter names that are known and processed accordingly
/// </summary>
/// <remarks>
/// Required
/// </remarks>
[JsonProperty(PropertyName = "name")]
[JsonConverter(typeof(StringEnumConverter))]
public NameEnum Name { get; set; }
/// <summary>
/// The parameters value
/// </summary>
/// <remarks>
/// Required
/// </remarks>
[JsonProperty(PropertyName = "value")]
public string Value { get; set; }
/// <summary>
/// The unit of measurement code for the parameter. For price parameter the unit is required and must be currency code alpha ISO 4217. The only currency currently supported is “USD”
/// </summary>
[JsonProperty(PropertyName = "unit")]
public string Unit { get; set; }
}