using Newtonsoft.Json; using Nop.Plugin.Payments.PayPalCommerce.Services.Api.Models; namespace Nop.Plugin.Payments.PayPalCommerce.Services.Api; /// /// Represents the error response /// public class ErrorResponse : IApiResponse { #region Properties /// /// Gets or sets the name /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// Gets or sets the message /// [JsonProperty(PropertyName = "message")] public string Message { get; set; } /// /// Gets or sets the debug id /// [JsonProperty(PropertyName = "debug_id")] public string DebugId { get; set; } /// /// Gets or sets the details /// [JsonProperty(PropertyName = "details")] public List Details { get; set; } /// /// Gets or sets the links /// [JsonProperty(PropertyName = "links")] public List Links { get; set; } #endregion #region Nested classes /// /// Represents the error detail /// public class ErrorDetail { /// /// Gets or sets the field /// [JsonProperty(PropertyName = "field")] public string Field { get; set; } /// /// Gets or sets the value /// [JsonProperty(PropertyName = "value")] public string Value { get; set; } /// /// Gets or sets the location /// [JsonProperty(PropertyName = "location")] public string Location { get; set; } /// /// Gets or sets the issue /// [JsonProperty(PropertyName = "issue")] public string Issue { get; set; } /// /// Gets or sets the description /// [JsonProperty(PropertyName = "description")] public string Description { get; set; } } #endregion }