QueryAmount.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System.Text.Json.Serialization;
  2. namespace Essensoft.AspNetCore.Payment.WeChatPay.Domain
  3. {
  4. /// <summary>
  5. /// 订单金额信息
  6. /// </summary>
  7. public class QueryAmount : WeChatPayObject
  8. {
  9. /// <summary>
  10. /// 订单金额
  11. /// 订单总金额,单位为分。
  12. /// 示例值:100
  13. /// </summary>
  14. [JsonPropertyName("total")]
  15. public int Total { get; set; }
  16. /// <summary>
  17. /// 用户支付金额
  18. /// 用户支付金额,单位为分。
  19. /// 示例值:100
  20. /// </summary>
  21. [JsonPropertyName("payer_total")]
  22. public int PayerTotal { get; set; }
  23. /// <summary>
  24. /// 货币类型
  25. /// CNY:人民币,境内商户号仅支持人民币。
  26. /// 示例值:CNY
  27. /// </summary>
  28. [JsonPropertyName("currency")]
  29. public string Currency { get; set; }
  30. /// <summary>
  31. /// 用户支付币种
  32. /// 用户支付币种
  33. /// 示例值:CNY
  34. /// </summary>
  35. [JsonPropertyName("payer_currency")]
  36. public string PayerCurrency { get; set; }
  37. }
  38. }