Skip to content

Commit b89ff6a

Browse files
crossdreamBinary Wang
authored andcommitted
🎨 【微信支付】补充完善投诉通知结果类里缺少的字段
1 parent 4240557 commit b89ff6a

File tree

1 file changed

+108
-0
lines changed

1 file changed

+108
-0
lines changed

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

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.github.binarywang.wxpay.bean.notify;
22

3+
import com.github.binarywang.wxpay.v3.SpecEncrypt;
34
import com.google.gson.annotations.SerializedName;
45
import lombok.Data;
56
import lombok.NoArgsConstructor;
@@ -69,6 +70,113 @@ public static class DecryptNotifyResult implements Serializable {
6970
@SerializedName(value = "action_type")
7071
private String actionType;
7172

73+
/**
74+
* <pre>
75+
* 字段名:商户订单号
76+
* 是否必填:是
77+
* 描述:
78+
* 投诉单关联的商户订单号
79+
* </pre>
80+
*/
81+
@SerializedName("out_trade_no")
82+
private String outTradeNo;
83+
84+
/**
85+
* <pre>
86+
* 字段名:投诉时间
87+
* 是否必填:是
88+
* 描述:投诉时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss.sss+TIMEZONE,yyyy-MM-DD表示年月日,
89+
* T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。
90+
* 例如:2015-05-20T13:29:35.120+08:00表示北京时间2015年05月20日13点29分35秒
91+
* 示例值:2015-05-20T13:29:35.120+08:00
92+
* </pre>
93+
*/
94+
@SerializedName("complaint_time")
95+
private String complaintTime;
96+
97+
/**
98+
* <pre>
99+
* 字段名:订单金额
100+
* 是否必填:是
101+
* 描述:
102+
* 订单金额,单位(分)
103+
* </pre>
104+
*/
105+
@SerializedName("amount")
106+
private Integer amount;
107+
108+
/**
109+
* <pre>
110+
* 字段名:投诉人联系方式
111+
* 是否必填:否
112+
* 投诉人联系方式。该字段已做加密处理,具体解密方法详见敏感信息加密说明。
113+
* </pre>
114+
*/
115+
@SerializedName("payer_phone")
116+
@SpecEncrypt
117+
private String payerPhone;
118+
119+
/**
120+
* <pre>
121+
* 字段名:投诉详情
122+
* 是否必填:是
123+
* 投诉的具体描述
124+
* </pre>
125+
*/
126+
@SerializedName("complaint_detail")
127+
private String complaintDetail;
128+
129+
/**
130+
* <pre>
131+
* 字段名:投诉单状态
132+
* 是否必填:是
133+
* 标识当前投诉单所处的处理阶段,具体状态如下所示:
134+
* PENDING:待处理
135+
* PROCESSING:处理中
136+
* PROCESSED:已处理完成
137+
* </pre>
138+
*/
139+
@SerializedName("complaint_state")
140+
private String complaintState;
141+
142+
/**
143+
* <pre>
144+
* 字段名:微信订单号
145+
* 是否必填:是
146+
* 描述:
147+
* 投诉单关联的微信订单号
148+
* </pre>
149+
*/
150+
@SerializedName("transaction_id")
151+
private String transactionId;
152+
153+
/**
154+
* <pre>
155+
* 字段名:商户处理状态
156+
* 是否必填:是
157+
* 描述:
158+
* 触发本次投诉通知回调的具体动作类型,枚举如下:
159+
* 常规通知:
160+
* CREATE_COMPLAINT:用户提交投诉
161+
* CONTINUE_COMPLAINT:用户继续投诉
162+
* USER_RESPONSE:用户新留言
163+
* RESPONSE_BY_PLATFORM:平台新留言
164+
* SELLER_REFUND:商户发起全额退款
165+
* MERCHANT_RESPONSE:商户新回复
166+
* MERCHANT_CONFIRM_COMPLETE:商户反馈处理完成
167+
* USER_APPLY_PLATFORM_SERVICE:用户申请平台协助
168+
* USER_CANCEL_PLATFORM_SERVICE:用户取消平台协助
169+
* PLATFORM_SERVICE_FINISHED:客服结束平台协助
170+
*
171+
* 申请退款单的附加通知:
172+
* 以下通知会更新投诉单状态,建议收到后查询投诉单详情。
173+
* MERCHANT_APPROVE_REFUND:商户同意退款
174+
* MERCHANT_REJECT_REFUND:商户驳回退款
175+
* REFUND_SUCCESS:退款到账
176+
* </pre>
177+
*/
178+
@SerializedName("complaint_handle_state")
179+
private String complaintHandleState;
72180
}
73181

74182
}

0 commit comments

Comments
 (0)