1 package com.foxinmy.weixin4j.pay.payment;
2
3 import com.alibaba.fastjson.annotation.JSONField;
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
11
12
13
14
15
16
17
18
19 @XmlRootElement
20 @XmlAccessorType(XmlAccessType.FIELD)
21 public class JsPayNotify extends PayBaseInfo {
22
23 private static final long serialVersionUID = -4659030958445259803L;
24
25
26
27
28 @JSONField(name = "OpenId")
29 @XmlElement(name = "OpenId")
30 private String openId;
31
32
33
34 @JSONField(name = "IsSubscribe")
35 @XmlElement(name = "IsSubscribe")
36 private int isSubscribe;
37
38 public JsPayNotify() {
39
40 }
41
42 public String getOpenId() {
43 return openId;
44 }
45
46 public void setOpenId(String openId) {
47 this.openId = openId;
48 }
49
50 public int getIsSubscribe() {
51 return isSubscribe;
52 }
53
54 public void setIsSubscribe(int isSubscribe) {
55 this.isSubscribe = isSubscribe;
56 }
57
58 @JSONField(serialize = false)
59 public boolean getFormatIsSubscribe() {
60 return isSubscribe == 1;
61 }
62
63 @Override
64 public String toString() {
65 return "openId=" + openId + ", isSubscribe=" + getFormatIsSubscribe()
66 + ", " + super.toString();
67 }
68 }