using Newtonsoft.Json; namespace Nop.Plugin.Tax.Avalara.ItemClassificationAPI; /// /// Represents response from the service /// public class Response { #region Properties /// /// Gets or sets the information about error /// [JsonProperty(PropertyName = "error")] public ErrorInfo Error { get; set; } #endregion #region Nested classes /// /// Represents information about the error that occurred /// public class ErrorInfo { /// /// Gets or sets the type of error that occurred /// [JsonProperty(PropertyName = "code")] public string Code { get; set; } /// /// Gets or sets the short one-line message to summaryize what went wrong /// [JsonProperty(PropertyName = "message")] public string Message { get; set; } /// /// Gets or sets an array of detailed error messages /// [JsonProperty(PropertyName = "details")] public List Details { get; set; } } /// /// Represents error detail /// public class ErrorDetail { /// /// Gets or sets the type of error that occurred /// [JsonProperty(PropertyName = "code")] public string Code { get; set; } /// /// Gets or sets the number /// [JsonProperty(PropertyName = "number")] public int? Number { get; set; } /// /// Gets or sets the message of error /// [JsonProperty(PropertyName = "message")] public string Message { get; set; } /// /// Gets or sets the full description /// [JsonProperty(PropertyName = "description")] public string Description { get; set; } } #endregion }