shaoguo 3 hete
szülő
commit
e41a655351
1 módosított fájl, 5 hozzáadás és 4 törlés
  1. 5 4
      services/refunddomestic/api_refunds.go

+ 5 - 4
services/refunddomestic/api_refunds.go

@@ -33,12 +33,13 @@ type RefundsApiService services.Service
 // 1、交易时间超过一年的订单无法提交退款
 // 2、微信支付退款支持单笔交易分多次退款,多次退款需要提交原支付订单的商户订单号和设置不同的退款单号。申请退款总金额不能超过订单金额。 一笔退款失败后重新提交,请不要更换退款单号,请使用原商户退款单号
 // 3、请求频率限制:150qps,即每秒钟正常的申请退款请求次数不超过150次
-//     错误或无效请求频率限制:6qps,即每秒钟异常或错误的退款申请请求不超过6次
+//
+//	错误或无效请求频率限制:6qps,即每秒钟异常或错误的退款申请请求不超过6次
+//
 // 4、每个支付订单的部分退款次数不能超过50次
 // 5、如果同一个用户有多笔退款,建议分不同批次进行退款,避免并发退款导致退款失败
 // 6、申请退款接口的返回仅代表业务的受理情况,具体退款是否成功,需要通过退款查询接口获取结果
 //
-//
 // # 错误码
 // |名称|描述|原因|解决方案|
 // |-|-|-|-|
@@ -60,7 +61,7 @@ func (a *RefundsApiService) Create(ctx context.Context, req CreateRequest) (resp
 		localVarHeaderParams = nethttp.Header{}
 	)
 
-	localVarPath := consts.WechatPayAPIServer + "/v3/refund/domestic/refunds"
+	localVarPath := consts.WechatPayAPIServer + "/v3/global/refunds"
 	// Make sure All Required Params are properly set
 
 	// Setup Body Params
@@ -111,7 +112,7 @@ func (a *RefundsApiService) QueryByOutRefundNo(ctx context.Context, req QueryByO
 		return nil, nil, fmt.Errorf("field `OutRefundNo` is required and must be specified in QueryByOutRefundNoRequest")
 	}
 
-	localVarPath := consts.WechatPayAPIServer + "/v3/refund/domestic/refunds/{out_refund_no}"
+	localVarPath := consts.WechatPayAPIServer + "/v3/global/refunds/out-refund-no/{out_refund_no}"
 	// Build Path with Path Params
 	localVarPath = strings.Replace(localVarPath, "{"+"out_refund_no"+"}", neturl.PathEscape(core.ParameterToString(*req.OutRefundNo, "")), -1)