1 package com.foxinmy.weixin4j.payment;
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 import javax.xml.bind.annotation.XmlTransient;
8
9 import com.alibaba.fastjson.annotation.JSONField;
10 import com.foxinmy.weixin4j.util.DateUtil;
11 import com.foxinmy.weixin4j.util.RandomUtil;
12
13 @Deprecated
14 @XmlRootElement
15 @XmlAccessorType(XmlAccessType.FIELD)
16 public class PayRequest extends PayBaseInfo {
17
18 private static final long serialVersionUID = -453746488398523883L;
19
20
21
22
23 @XmlElement(name = "Package")
24 @JSONField(name = "package")
25 private String packageInfo;
26
27
28
29
30 @XmlTransient
31 @JSONField(serialize = false)
32 private String prepayId;
33
34
35
36 @XmlTransient
37 @JSONField(serialize = false)
38 private String partnerId;
39
40
41 protected PayRequest() {
42
43 }
44
45 public PayRequest(String appId, String packageInfo) {
46 super(appId, DateUtil.timestamp2string(), RandomUtil.generateString(16));
47 this.packageInfo = packageInfo;
48 }
49
50 public String getPackageInfo() {
51 return packageInfo;
52 }
53
54 public void setPackageInfo(String packageInfo) {
55 this.packageInfo = packageInfo;
56 }
57
58 public String getPrepayId() {
59 return prepayId;
60 }
61
62 public void setPrepayId(String prepayId) {
63 this.prepayId = prepayId;
64 }
65
66 public String getPartnerId() {
67 return partnerId;
68 }
69
70 public void setPartnerId(String partnerId) {
71 this.partnerId = partnerId;
72 }
73
74
75 @Override
76 public String toString() {
77 return "package" + packageInfo + ", prepayId=" + prepayId
78 + super.toString();
79 }
80 }