View Javadoc
1   package com.foxinmy.weixin4j.mp.oldpayment;
2   
3   import javax.xml.bind.annotation.XmlAccessType;
4   import javax.xml.bind.annotation.XmlAccessorType;
5   import javax.xml.bind.annotation.XmlElement;
6   import javax.xml.bind.annotation.XmlRootElement;
7   
8   import com.alibaba.fastjson.annotation.JSONField;
9   import com.foxinmy.weixin4j.payment.PayBaseInfo;
10  
11  /**
12   * V2告警通知
13   * 
14   * @className PayWarn
15   * @author jinyu(foxinmy@gmail.com)
16   * @date 2014年12月31日
17   * @since JDK 1.6
18   * @see
19   */
20  @XmlRootElement
21  @XmlAccessorType(XmlAccessType.FIELD)
22  public class PayWarn extends PayBaseInfo {
23  
24  	private static final long serialVersionUID = 2334592957844332640L;
25  
26  	/**
27  	 * 错误代号 1001=发货超时
28  	 */
29  	@JSONField(name = "ErrorType")
30  	@XmlElement(name = "ErrorType")
31  	private String errortype;
32  	/**
33  	 * 错误描述
34  	 */
35  	@JSONField(name = "Description")
36  	@XmlElement(name = "Description")
37  	private String description;
38  	/**
39  	 * 错误详情
40  	 */
41  	@JSONField(name = "AlarmContent")
42  	@XmlElement(name = "AlarmContent")
43  	private String alarmcontent;
44  
45  	public PayWarn() {
46  
47  	}
48  
49  	public String getErrortype() {
50  		return errortype;
51  	}
52  
53  	public String getDescription() {
54  		return description;
55  	}
56  
57  	public String getAlarmcontent() {
58  		return alarmcontent;
59  	}
60  
61  	@Override
62  	public String toString() {
63  		return "PayWarn [errortype=" + errortype + ", description="
64  				+ description + ", alarmcontent=" + alarmcontent + ", "
65  				+ super.toString() + "]";
66  	}
67  }