| | |
| | | |
| | | public string Attach { get; set; } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 申请退款 |
| | | /// </summary> |
| | | public class WxPayDomesticRefundsRequest |
| | | { |
| | | /// <summary> |
| | | /// 微信支付订单号 和out_trade_no必须二选一进行传参 |
| | | /// </summary> |
| | | [JsonProperty("transaction_id")] |
| | | public string TransactionId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 商户订单号 和out_trade_no必须二选一进行传参 |
| | | /// </summary> |
| | | [JsonProperty("out_trade_no")] |
| | | public string OutTradeNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 商户退款单号 必填 |
| | | /// </summary> |
| | | [JsonProperty("out_refund_no")] |
| | | public string OutRefundNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 退款原因 |
| | | /// </summary> |
| | | [JsonProperty("reason")] |
| | | public string Reason { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 退款结果回调url |
| | | /// </summary> |
| | | [JsonProperty("notify_url")] |
| | | public string NotifyUrl { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 退款资金来源 |
| | | /// </summary> |
| | | [JsonProperty("funds_account")] |
| | | public string FundsAccount { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 金额信息 必填 |
| | | /// </summary> |
| | | [JsonProperty("amount")] |
| | | public Model_WxPayDomesticRefunds_Amount Amount { get; set; } |
| | | } |
| | | public class Model_WxPayDomesticRefunds_Amount |
| | | { |
| | | /// <summary> |
| | | /// 退款金额,单位为分,只能为整数 |
| | | /// </summary> |
| | | [JsonProperty("refund")] |
| | | public int Refund { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 原订单金额 |
| | | /// </summary> |
| | | [JsonProperty("total")] |
| | | public int Total { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 退款币种 |
| | | /// </summary> |
| | | [JsonProperty("currency")] |
| | | public string Currency { get; set; } = "CNY"; |
| | | } |
| | | |
| | | public class WxPayDomesticRefundsReponse |
| | | { |
| | | /// <summary> |
| | | /// 微信支付退款单号 |
| | | /// </summary> |
| | | [JsonProperty("refund_id")] |
| | | public string RefundId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 商户退款单号 |
| | | /// </summary> |
| | | [JsonProperty("out_refund_no")] |
| | | public string OutRefundNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 微信支付订单号 |
| | | /// </summary> |
| | | [JsonProperty("transaction_id")] |
| | | public string TransactionId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 商户订单号 |
| | | /// </summary> |
| | | [JsonProperty("out_trade_no")] |
| | | public string OutTradeNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 退款渠道 ORIGINAL: 原路退款 BALANCE: 退回到余额 OTHER_BALANCE: 原账户异常退到其他余额账户 OTHER_BANKCARD: 原银行卡异常退到其他银行卡(发起异常退款成功后返回) |
| | | /// </summary> |
| | | [JsonProperty("channel")] |
| | | public string Channel { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 退款入账账户 |
| | | /// </summary> |
| | | [JsonProperty("user_received_account")] |
| | | public string UserReceivedAccount { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 退款成功时间 |
| | | /// </summary> |
| | | [JsonProperty("success_time")] |
| | | public string SuccessTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 退款创建时间 |
| | | /// </summary> |
| | | [JsonProperty("create_time")] |
| | | public string CreateTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 退款状态 |
| | | /// </summary> |
| | | [JsonProperty("status")] |
| | | public string Status { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 资金账户 |
| | | /// </summary> |
| | | [JsonProperty("funds_account")] |
| | | public string FundsAccount { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 金额信息 |
| | | /// </summary> |
| | | [JsonProperty("amount")] |
| | | public Model_WxPayRetuenDomesticRefunds_Amount Amount { get; set; } |
| | | |
| | | } |
| | | |
| | | public class Model_WxPayRetuenDomesticRefunds_Amount: Model_WxPayDomesticRefunds_Amount |
| | | { |
| | | /// <summary> |
| | | /// 用户实际支付金额 |
| | | /// </summary> |
| | | [JsonProperty("payer_total")] |
| | | public int PayerTotal { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 用户退款金额 |
| | | /// </summary> |
| | | [JsonProperty("payer_refund")] |
| | | public int PayerRefund { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 应结退款金额 |
| | | /// </summary> |
| | | [JsonProperty("settlement_refund")] |
| | | public int SettlementRefund { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 应结订单金额 |
| | | /// </summary> |
| | | [JsonProperty("settlement_total")] |
| | | public int SettlementTotal { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 优惠退款金额 |
| | | /// </summary> |
| | | [JsonProperty("discount_refund")] |
| | | public int DiscountRefund { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 手续费退款金额 |
| | | /// </summary> |
| | | [JsonProperty("refund_fee")] |
| | | public int RefundFee { get; set; } |
| | | |
| | | } |
| | | } |