using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Nop.Plugin.Payments.PayPalCommerce.Domain.Onboarding; /// /// Represents response from the service /// /// Response data type public class Response where TResponse : class { /// /// Gets or sets the response result /// [JsonProperty(PropertyName = "result")] [JsonConverter(typeof(StringEnumConverter))] public ResponseResult? Result { get; set; } /// /// Gets or sets the response data /// [JsonProperty(PropertyName = "data")] public TResponse Data { get; set; } /// /// Gets or sets the error message /// [JsonProperty(PropertyName = "error")] public string Error { get; set; } }