mirror of
https://github.com/dromara/payment-spring-boot.git
synced 2026-03-13 21:33:41 +08:00
去掉多余的退款枚举
This commit is contained in:
@@ -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"),
|
||||
|
||||
/**
|
||||
* 关闭订单.
|
||||
*
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user