AliPayMicropayApiResult.java 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. package com.kmall.manager.manager.alipay;
  2. import java.util.Date;
  3. /**
  4. * 响应信息
  5. */
  6. public class AliPayMicropayApiResult {
  7. //公共响应参数
  8. private String code; //返回状态码
  9. private String msg; //返回信息
  10. private String subCode; //业务返回码
  11. private String subMsg; //业务返回码描述
  12. private String buyerLogonId; //买家支付宝账号
  13. private String buyerUserId; //买家在支付宝的用户id
  14. //支付
  15. private String tradeNo; //支付宝交易号
  16. private String outTradeNo; //商户订单号
  17. private String receiptAmount; //实收金额
  18. private String buyerPayAmount; //买家付款的金额
  19. private Date gmtPayment; //交易支付时间
  20. //退款
  21. private String fundChange; //本次退款是否发生了资金变化 Y
  22. private String refundFee; //退款总金额
  23. private Date gmtRefundPay; //退款支付时间
  24. private String presentRefundDiscountAmount; //本次退款金额中平台优惠退款金额
  25. //撤销
  26. private String retryFlag; //是否需要重试
  27. private String action; //本次撤销触发的交易动作,接口调用成功且交易存在时返回。可能的返回值:close:交易未支付,触发关闭交易动作,无退款;refund:交易已支付,触发交易退款动作;未返回:未查询到交易,或接口调用失败;
  28. //查询
  29. private String tradeStatus;//交易状态:WAIT_BUYER_PAY(交易创建,等待买家付款)、TRADE_CLOSED(未付款交易超时关闭,或支付完成后全额退款)、TRADE_SUCCESS(交易支付成功)、TRADE_FINISHED(交易结束,不可退款)
  30. private String totalAmount;//交易的订单金额,单位为元,两位小数
  31. /**
  32. * SUCCESS—支付成功
  33. REFUND—转入退款
  34. NOTPAY—未支付
  35. CLOSED—已关闭
  36. REVOKED—已撤销
  37. USERPAYING--用户支付中
  38. PAYERROR--支付失败
  39. */
  40. private String tradeState; //支付状态
  41. public String getCode() {
  42. return code;
  43. }
  44. public void setCode(String code) {
  45. this.code = code;
  46. }
  47. public String getMsg() {
  48. return msg;
  49. }
  50. public void setMsg(String msg) {
  51. this.msg = msg;
  52. }
  53. public String getSubCode() {
  54. return subCode;
  55. }
  56. public void setSubCode(String subCode) {
  57. this.subCode = subCode;
  58. }
  59. public String getTradeState() {
  60. return tradeState;
  61. }
  62. public void setTradeState(String tradeState) {
  63. this.tradeState = tradeState;
  64. }
  65. public String getSubMsg() {
  66. return subMsg;
  67. }
  68. public void setSubMsg(String subMsg) {
  69. this.subMsg = subMsg;
  70. }
  71. public String getBuyerLogonId() {
  72. return buyerLogonId;
  73. }
  74. public void setBuyerLogonId(String buyerLogonId) {
  75. this.buyerLogonId = buyerLogonId;
  76. }
  77. public String getTradeNo() {
  78. return tradeNo;
  79. }
  80. public void setTradeNo(String tradeNo) {
  81. this.tradeNo = tradeNo;
  82. }
  83. public String getOutTradeNo() {
  84. return outTradeNo;
  85. }
  86. public void setOutTradeNo(String outTradeNo) {
  87. this.outTradeNo = outTradeNo;
  88. }
  89. public String getReceiptAmount() {
  90. return receiptAmount;
  91. }
  92. public void setReceiptAmount(String receiptAmount) {
  93. this.receiptAmount = receiptAmount;
  94. }
  95. public String getBuyerPayAmount() {
  96. return buyerPayAmount;
  97. }
  98. public void setBuyerPayAmount(String buyerPayAmount) {
  99. this.buyerPayAmount = buyerPayAmount;
  100. }
  101. public Date getGmtPayment() {
  102. return gmtPayment;
  103. }
  104. public void setGmtPayment(Date gmtPayment) {
  105. this.gmtPayment = gmtPayment;
  106. }
  107. public String getFundChange() {
  108. return fundChange;
  109. }
  110. public void setFundChange(String fundChange) {
  111. this.fundChange = fundChange;
  112. }
  113. public String getRefundFee() {
  114. return refundFee;
  115. }
  116. public void setRefundFee(String refundFee) {
  117. this.refundFee = refundFee;
  118. }
  119. public Date getGmtRefundPay() {
  120. return gmtRefundPay;
  121. }
  122. public void setGmtRefundPay(Date gmtRefundPay) {
  123. this.gmtRefundPay = gmtRefundPay;
  124. }
  125. public String getBuyerUserId() {
  126. return buyerUserId;
  127. }
  128. public void setBuyerUserId(String buyerUserId) {
  129. this.buyerUserId = buyerUserId;
  130. }
  131. public String getPresentRefundDiscountAmount() {
  132. return presentRefundDiscountAmount;
  133. }
  134. public void setPresentRefundDiscountAmount(String presentRefundDiscountAmount) {
  135. this.presentRefundDiscountAmount = presentRefundDiscountAmount;
  136. }
  137. public String getRetryFlag() {
  138. return retryFlag;
  139. }
  140. public void setRetryFlag(String retryFlag) {
  141. this.retryFlag = retryFlag;
  142. }
  143. public String getAction() {
  144. return action;
  145. }
  146. public void setAction(String action) {
  147. this.action = action;
  148. }
  149. public String getTradeStatus() {
  150. return tradeStatus;
  151. }
  152. public void setTradeStatus(String tradeStatus) {
  153. this.tradeStatus = tradeStatus;
  154. }
  155. public String getTotalAmount() {
  156. return totalAmount;
  157. }
  158. public void setTotalAmount(String totalAmount) {
  159. this.totalAmount = totalAmount;
  160. }
  161. }