Skip to content

Commit 3e9b60e

Browse files
committed
fix:修正合作伙伴订阅通知解密后消息体数据结构
1 parent 025430f commit 3e9b60e

1 file changed

Lines changed: 51 additions & 30 deletions

File tree

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

Lines changed: 51 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,56 @@ public class PartnerSubscribeNotifyResult implements Serializable,
3232
@NoArgsConstructor
3333
public static class DecryptNotifyResult implements Serializable {
3434
private static final long serialVersionUID = 1L;
35-
/**
36-
* 商户号
37-
*/
38-
@SerializedName("merchant_code")
39-
private String merchantCode;
40-
/**
41-
* 商户全称
42-
*/
43-
@SerializedName("merchant_company_name")
44-
private String merchantCompanyName;
45-
/**
46-
* 业务发生时间
47-
*/
48-
@SerializedName("business_time")
49-
private String businessTime;
50-
/**
51-
* 业务单据
52-
*/
53-
@SerializedName("business_code")
54-
private String businessCode;
55-
/**
56-
* 业务状态
57-
*/
58-
@SerializedName("business_state")
59-
private String businessState;
60-
/**
61-
* 备注
62-
*/
63-
@SerializedName("remark")
64-
private String remark;
35+
36+
@SerializedName("message_content")
37+
private MessageContent messageContent;
38+
@SerializedName("topic_name")
39+
private TopicName topicName;
40+
41+
@Data
42+
@NoArgsConstructor
43+
public static class MessageContent implements Serializable {
44+
private static final long serialVersionUID = 1L;
45+
/**
46+
* 商户号
47+
*/
48+
@SerializedName("merchant_code")
49+
private String merchantCode;
50+
/**
51+
* 商户全称
52+
*/
53+
@SerializedName("merchant_company_name")
54+
private String merchantCompanyName;
55+
/**
56+
* 业务发生时间
57+
*/
58+
@SerializedName("business_time")
59+
private String businessTime;
60+
/**
61+
* 业务单据
62+
*/
63+
@SerializedName("business_code")
64+
private String businessCode;
65+
/**
66+
* 业务状态
67+
*/
68+
@SerializedName("business_state")
69+
private String businessState;
70+
/**
71+
* 备注
72+
*/
73+
@SerializedName("remark")
74+
private String remark;
75+
}
76+
77+
@Data
78+
@NoArgsConstructor
79+
public static class TopicName implements Serializable {
80+
private static final long serialVersionUID = 1L;
81+
@SerializedName("topic_english_name")
82+
private String topicEnglishName;
83+
@SerializedName("topic_chinese_name")
84+
private String topicChineseName;
85+
}
6586
}
6687
}

0 commit comments

Comments
 (0)