using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using PaySharp.Core.Request;
using PaySharp.Core.Response;
namespace PaySharp.Alipay.Response
{
[JsonObject(NamingStrategyType = typeof(SnakeCaseNamingStrategy))]
public abstract class BaseResponse : IResponse
{
///
/// 网关返回码,详见文档
/// https://docs.open.alipay.com/common/105806
///
public string Code { get; set; }
///
/// 网关返回码描述,详见文档
/// https://docs.open.alipay.com/common/105806
///
[JsonProperty("msg")]
public string Message { get; set; }
///
/// 网关返回码,详见文档
/// https://docs.open.alipay.com/common/105806
///
public string SubCode { get; set; }
///
/// 网关返回码描述,详见文档
/// https://docs.open.alipay.com/common/105806
///
[JsonProperty("sub_msg")]
public string SubMessage { get; set; }
///
/// 签名
///
public string Sign { get; set; }
///
/// 原始值
///
public string Raw { get; set; }
internal abstract void Execute(Merchant merchant, Request request) where TResponse : IResponse;
}
}