1 package com.foxinmy.weixin4j.payment.mch;
2
3 import java.util.Date;
4
5 import javax.xml.bind.annotation.XmlAccessType;
6 import javax.xml.bind.annotation.XmlAccessorType;
7 import javax.xml.bind.annotation.XmlElement;
8 import javax.xml.bind.annotation.XmlRootElement;
9
10 import com.alibaba.fastjson.annotation.JSONField;
11 import com.foxinmy.weixin4j.util.DateUtil;
12
13
14
15
16
17
18
19
20
21
22
23 @Deprecated
24 @XmlRootElement
25 @XmlAccessorType(XmlAccessType.FIELD)
26 public class CorpPaymentResult extends MerchantResult {
27
28 private static final long serialVersionUID = 1110472826089211646L;
29
30
31
32
33 @JSONField(name = "payment_no")
34 @XmlElement(name = "payment_no")
35 private String transactionId;
36
37
38
39 @JSONField(name = "partner_trade_no")
40 @XmlElement(name = "partner_trade_no")
41 private String outTradeNo;
42
43
44
45 @JSONField(name = "payment_time")
46 @XmlElement(name = "payment_time")
47 private String paymentTime;
48
49 protected CorpPaymentResult() {
50
51 }
52
53 public String getTransactionId() {
54 return transactionId;
55 }
56
57 public String getOutTradeNo() {
58 return outTradeNo;
59 }
60
61 public String getPaymentTime() {
62 return paymentTime;
63 }
64
65 @JSONField(serialize = false)
66 public Date getFormatPaymentTime() {
67 return paymentTime != null ? DateUtil.parseDate(paymentTime,
68 "yyyy-MM-dd HH:mm:ss") : null;
69 }
70
71 @Override
72 public String toString() {
73 return "CorpPaymentResult [transactionId=" + transactionId
74 + ", outTradeNo=" + outTradeNo + ", paymentTime=" + paymentTime
75 + ", " + super.toString() + "]";
76 }
77 }