RoyaltyDetail.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. using System;
  2. using System.Xml.Serialization;
  3. namespace Aop.Api.Domain
  4. {
  5. /// <summary>
  6. /// RoyaltyDetail Data Structure.
  7. /// </summary>
  8. [Serializable]
  9. public class RoyaltyDetail : AopObject
  10. {
  11. /// <summary>
  12. /// 分账金额
  13. /// </summary>
  14. [XmlElement("amount")]
  15. public string Amount { get; set; }
  16. /// <summary>
  17. /// 支付宝分账明细单号,每笔分账业务执行的明细单号
  18. /// </summary>
  19. [XmlElement("detail_id")]
  20. public string DetailId { get; set; }
  21. /// <summary>
  22. /// 分账失败错误码,只在分账失败时返回
  23. /// </summary>
  24. [XmlElement("error_code")]
  25. public string ErrorCode { get; set; }
  26. /// <summary>
  27. /// 分账错误描述信息
  28. /// </summary>
  29. [XmlElement("error_desc")]
  30. public string ErrorDesc { get; set; }
  31. /// <summary>
  32. /// 分账执行时间
  33. /// </summary>
  34. [XmlElement("execute_dt")]
  35. public string ExecuteDt { get; set; }
  36. /// <summary>
  37. /// 分账操作类型。有以下几种类型: replenish(补差)、replenish_refund(退补差)、transfer(分账)、transfer_refund(退分账)
  38. /// </summary>
  39. [XmlElement("operation_type")]
  40. public string OperationType { get; set; }
  41. /// <summary>
  42. /// 分账状态,SUCCESS成功,FAIL失败,PROCESSING处理中
  43. /// </summary>
  44. [XmlElement("state")]
  45. public string State { get; set; }
  46. /// <summary>
  47. /// 分账转入账号,只有在operation_type为replenish_refund(退补差),transfer(分账)才返回该字段或trans_in_open_id。trans_in_open_id为分账转入方的openId,当trans_in_open_id不为空的时候,请优先使用trans_in_open_id。
  48. /// </summary>
  49. [XmlElement("trans_in")]
  50. public string TransIn { get; set; }
  51. /// <summary>
  52. /// 分账转入方的OpenId,OpenId为用户在该应用下支付宝的唯一用户标识。
  53. /// </summary>
  54. [XmlElement("trans_in_open_id")]
  55. public string TransInOpenId { get; set; }
  56. /// <summary>
  57. /// 分账转入账号类型,userId表示是支付宝账号对应的支付宝唯一用户号,loginName表示是支付宝登录号,secondMerchantID表示是二级商户id。 只有在operation_type为replenish_refund(退补差),transfer(分账)才返回该字段
  58. /// </summary>
  59. [XmlElement("trans_in_type")]
  60. public string TransInType { get; set; }
  61. /// <summary>
  62. /// 分账转出账号,只有在operation_type为replenish(补差),transfer_refund(退分账)类型才返回该字段或trans_out_open_id字段。trans_out_open_id字段为分账转出方的openId,当trans_out_open_id 字段不为空时,请优先使用trans_out_open_id。
  63. /// </summary>
  64. [XmlElement("trans_out")]
  65. public string TransOut { get; set; }
  66. /// <summary>
  67. /// 分账转出方的OpenId,OpenId为用户在该应用下支付宝内的唯一用户标识。
  68. /// </summary>
  69. [XmlElement("trans_out_open_id")]
  70. public string TransOutOpenId { get; set; }
  71. /// <summary>
  72. /// 分账转出账号类型,userId表示是支付宝账号对应的支付宝唯一用户号,loginName表示是支付宝登录号,secondMerchantID表示是二级商户id。 只有在operation_type为replenish(补差),transfer_refund(退分账)类型才返回该字段
  73. /// </summary>
  74. [XmlElement("trans_out_type")]
  75. public string TransOutType { get; set; }
  76. }
  77. }