1 package com.foxinmy.weixin4j.mp.oldpayment;
2
3 import com.alibaba.fastjson.annotation.JSONCreator;
4 import com.alibaba.fastjson.annotation.JSONField;
5 import com.foxinmy.weixin4j.model.WeixinAccount;
6
7
8
9
10
11
12
13
14
15
16 public class WeixinOldPayAccount extends WeixinAccount {
17
18 private static final long serialVersionUID = -2791256176906048632L;
19
20
21
22 private String paySignKey;
23
24
25
26 private String partnerId;
27
28
29
30 private String partnerKey;
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46 @JSONCreator
47 public WeixinOldPayAccount(@JSONField(name = "id") String appId,
48 @JSONField(name = "secret") String appSecret,
49 @JSONField(name = "paySignKey") String paySignKey,
50 @JSONField(name = "partnerId") String partnerId,
51 @JSONField(name = "partnerKey") String partnerKey) {
52 super(appId, appSecret);
53 this.paySignKey = paySignKey;
54 this.partnerId = partnerId;
55 this.partnerKey = partnerKey;
56 }
57
58 public String getPaySignKey() {
59 return paySignKey;
60 }
61
62 public String getPartnerId() {
63 return partnerId;
64 }
65
66 public String getPartnerKey() {
67 return partnerKey;
68 }
69
70 @Override
71 public String toString() {
72 return "WeixinOldPayAccount [" + super.toString() + ", paySignKey="
73 + paySignKey + ", partnerId=" + partnerId + ", partnerKey="
74 + partnerKey + "]";
75 }
76 }