Skip to content

Commit 79307f7

Browse files
authored
🎨 #3998 【微信支付】修正合作伙伴订阅通知解密后消息体数据结构
1 parent 025430f commit 79307f7

1 file changed

Lines changed: 61 additions & 22 deletions

File tree

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/PartnerSubscribeNotifyResult.java

Lines changed: 61 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,74 @@ public class PartnerSubscribeNotifyResult implements Serializable,
3232
@NoArgsConstructor
3333
public static class DecryptNotifyResult implements Serializable {
3434
private static final long serialVersionUID = 1L;
35+
3536
/**
36-
* 商户号
37-
*/
38-
@SerializedName("merchant_code")
39-
private String merchantCode;
40-
/**
41-
* 商户全称
42-
*/
43-
@SerializedName("merchant_company_name")
44-
private String merchantCompanyName;
45-
/**
46-
* 业务发生时间
37+
* 消息内容
4738
*/
48-
@SerializedName("business_time")
49-
private String businessTime;
39+
@SerializedName("message_content")
40+
private MessageContent messageContent;
5041
/**
51-
* 业务单据
42+
* 主题名称
5243
*/
53-
@SerializedName("business_code")
54-
private String businessCode;
44+
@SerializedName("topic_name")
45+
private TopicName topicName;
46+
5547
/**
56-
* 业务状态
48+
* 消息内容
5749
*/
58-
@SerializedName("business_state")
59-
private String businessState;
50+
@Data
51+
@NoArgsConstructor
52+
public static class MessageContent implements Serializable {
53+
private static final long serialVersionUID = 1L;
54+
/**
55+
* 商户号
56+
*/
57+
@SerializedName("merchant_code")
58+
private String merchantCode;
59+
/**
60+
* 商户全称
61+
*/
62+
@SerializedName("merchant_company_name")
63+
private String merchantCompanyName;
64+
/**
65+
* 业务发生时间
66+
*/
67+
@SerializedName("business_time")
68+
private String businessTime;
69+
/**
70+
* 业务单据
71+
*/
72+
@SerializedName("business_code")
73+
private String businessCode;
74+
/**
75+
* 业务状态
76+
*/
77+
@SerializedName("business_state")
78+
private String businessState;
79+
/**
80+
* 备注
81+
*/
82+
@SerializedName("remark")
83+
private String remark;
84+
}
85+
6086
/**
61-
* 备注
87+
* 主题名称
6288
*/
63-
@SerializedName("remark")
64-
private String remark;
89+
@Data
90+
@NoArgsConstructor
91+
public static class TopicName implements Serializable {
92+
private static final long serialVersionUID = 1L;
93+
/**
94+
* 主题英文名
95+
*/
96+
@SerializedName("topic_english_name")
97+
private String topicEnglishName;
98+
/**
99+
* 主题中文名
100+
*/
101+
@SerializedName("topic_chinese_name")
102+
private String topicChineseName;
103+
}
65104
}
66105
}

0 commit comments

Comments
 (0)