RefundNotifyAmount.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System.Text.Json.Serialization;
  2. namespace Essensoft.AspNetCore.Payment.WeChatPay.V3.Domain
  3. {
  4. /// <summary>
  5. /// 金额信息
  6. /// </summary>
  7. public class RefundNotifyAmount : WeChatPayObject
  8. {
  9. /// <summary>
  10. /// 订单金额
  11. /// 订单总金额,单位为分,只能为整数,详见支付金额
  12. /// 示例值:999
  13. /// </summary>
  14. [JsonPropertyName("total")]
  15. public int Total { get; set; }
  16. /// <summary>
  17. /// 退款金额
  18. /// 退款金额,币种的最小单位,只能为整数,不能超过原订单支付金额,如果有使用券,后台会按比例退。
  19. /// 示例值:999
  20. /// </summary>
  21. [JsonPropertyName("refund")]
  22. public int Refund { get; set; }
  23. /// <summary>
  24. /// 用户支付金额
  25. /// 用户实际支付金额,单位为分,只能为整数,详见支付金额
  26. /// 示例值:999
  27. /// </summary>
  28. [JsonPropertyName("payer_total")]
  29. public int PayerTotal { get; set; }
  30. /// <summary>
  31. /// 用户退款金额
  32. /// 退款给用户的金额,不包含所有优惠券金额
  33. /// 示例值:999
  34. /// </summary>
  35. [JsonPropertyName("payer_refund")]
  36. public int PayerRefund { get; set; }
  37. }
  38. }