Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

退款状态常量缺失 #2737

Closed
markeNick opened this issue Jul 8, 2022 · 3 comments · Fixed by #2780
Closed

退款状态常量缺失 #2737

markeNick opened this issue Jul 8, 2022 · 3 comments · Fixed by #2780

Comments

@markeNick
Copy link

markeNick commented Jul 8, 2022

模块版本情况

  • WxJava 模块名: weixin-java-pay
  • WxJava 版本号: V4.3.0

详细描述

退款查询V3接口,官方文档:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_10.shtml,对应的退款状态中异常枚举为:【ABNORMAL:退款异常】
weixin-java-pay模块中的com.github.binarywang.wxpay.bean.result.WxPayRefundQueryV3Result的退款状态描述是和官方文档一致的,
但是com.github.binarywang.wxpay.constant.WxPayConstants中的退款状态RefundStatus异常却是CHANGE
/**

  • 字段名:退款状态
  • 变量名:status
  • 是否必填:是
  • 类型:string[1, 32]
  • 描述:
  • 退款到银行发现用户的卡作废或者冻结了,导致原路退款银行卡失败,可前往商户平台(pay.weixin.qq.com)-交易中心,手动处理此笔退款。
  • 枚举值:
  • SUCCESS:退款成功
  • CLOSED:退款关闭
  • PROCESSING:退款处理中
  • ABNORMAL:退款异常
  • 示例值:SUCCESS

*/
@SerializedName(value = "status")
private String status;

WxPayConstants退款状态

微信支付文档描述

@binarywang
Copy link
Owner

常量里的可能是v2接口用的,至于v3的应该还没维护进这个里面,欢迎直接PR

@markeNick
Copy link
Author

markeNick commented Jul 12, 2022 via email

@binarywang binarywang changed the title 退款状态枚举不一致 退款状态常量缺失 Jul 21, 2022
@binarywang binarywang linked a pull request Aug 16, 2022 that will close this issue
@markeNick
Copy link
Author

markeNick commented Aug 16, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants