去掉多余的退款枚举

This commit is contained in:
hellozhongying
2022-09-22 18:31:35 +08:00
parent 575bf6e8a2
commit 34d0bed373
2 changed files with 1 additions and 7 deletions

View File

@@ -600,12 +600,6 @@ public enum WechatPayV3Type {
*/
MWEB_PARTNER(HttpMethod.POST, "%s/v3/pay/partner/transactions/h5"),
/**
* 服务商退款
* @since 1.0.15
*/
REFUND_PARTNER(HttpMethod.POST, "%s/v3/refund/domestic/refunds"),
/**
* 关闭订单.
*

View File

@@ -223,7 +223,7 @@ public class WechatPartnerPayApi extends AbstractApi {
*/
public WechatResponseEntity<ObjectNode> refund(RefundParams refundParams) {
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
this.client().withType(WechatPayV3Type.REFUND_PARTNER, refundParams)
this.client().withType(WechatPayV3Type.REFUND, refundParams)
.function(((type, params) -> {
URI uri = UriComponentsBuilder.fromHttpUrl(type.uri(WeChatServer.CHINA))
.build()