mirror of
https://github.com/dromara/payment-spring-boot.git
synced 2026-03-14 05:43:46 +08:00
优化名称
This commit is contained in:
@@ -64,8 +64,8 @@ public class WechatPayConfiguration {
|
|||||||
* @return the wechat pay v 3 api
|
* @return the wechat pay v 3 api
|
||||||
*/
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
public WechatPayV3Api wechatPayV3Api(WechatPayV3Client wechatPayV3Client,WechatMetaBean wechatMetaBean) {
|
public WechatPayApi wechatPayV3Api(WechatPayV3Client wechatPayV3Client, WechatMetaBean wechatMetaBean) {
|
||||||
return new WechatPayV3Api(wechatPayV3Client,wechatMetaBean);
|
return new WechatPayApi(wechatPayV3Client,wechatMetaBean);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ import java.util.Objects;
|
|||||||
* @author Dax
|
* @author Dax
|
||||||
* @since 16 :15
|
* @since 16 :15
|
||||||
*/
|
*/
|
||||||
public class WechatPayV3Api {
|
public class WechatPayApi {
|
||||||
private static final ObjectMapper MAPPER = new ObjectMapper();
|
private static final ObjectMapper MAPPER = new ObjectMapper();
|
||||||
private final WechatPayV3Client wechatPayV3Client;
|
private final WechatPayV3Client wechatPayV3Client;
|
||||||
private final WechatMetaBean wechatMetaBean;
|
private final WechatMetaBean wechatMetaBean;
|
||||||
@@ -52,7 +52,7 @@ public class WechatPayV3Api {
|
|||||||
* @param wechatPayV3Client the wechat pay v 3 client
|
* @param wechatPayV3Client the wechat pay v 3 client
|
||||||
* @param wechatMetaBean the wechat meta bean
|
* @param wechatMetaBean the wechat meta bean
|
||||||
*/
|
*/
|
||||||
public WechatPayV3Api(WechatPayV3Client wechatPayV3Client, WechatMetaBean wechatMetaBean) {
|
public WechatPayApi(WechatPayV3Client wechatPayV3Client, WechatMetaBean wechatMetaBean) {
|
||||||
this.wechatPayV3Client = wechatPayV3Client;
|
this.wechatPayV3Client = wechatPayV3Client;
|
||||||
this.wechatMetaBean = wechatMetaBean;
|
this.wechatMetaBean = wechatMetaBean;
|
||||||
}
|
}
|
||||||
@@ -64,7 +64,7 @@ public class WechatPayV3Api {
|
|||||||
* @param params the params
|
* @param params the params
|
||||||
* @return the wechat response entity
|
* @return the wechat response entity
|
||||||
*/
|
*/
|
||||||
public WechatResponseEntity<ObjectNode> createStocks(StocksCreateParams params) {
|
public WechatResponseEntity<ObjectNode> createStock(StocksCreateParams params) {
|
||||||
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
|
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
|
||||||
wechatPayV3Client.withType(WechatPayV3Type.MARKETING_FAVOR_STOCKS_COUPON_STOCKS, params)
|
wechatPayV3Client.withType(WechatPayV3Type.MARKETING_FAVOR_STOCKS_COUPON_STOCKS, params)
|
||||||
.function(this::createStocksFunction)
|
.function(this::createStocksFunction)
|
||||||
@@ -126,7 +126,7 @@ public class WechatPayV3Api {
|
|||||||
* @param stockId the stock id
|
* @param stockId the stock id
|
||||||
* @return the wechat response entity
|
* @return the wechat response entity
|
||||||
*/
|
*/
|
||||||
public WechatResponseEntity<ObjectNode> stockDetail(String stockId) {
|
public WechatResponseEntity<ObjectNode> queryStockDetail(String stockId) {
|
||||||
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
|
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
|
||||||
wechatPayV3Client.withType(WechatPayV3Type.MARKETING_FAVOR_STOCKS_DETAIL, stockId)
|
wechatPayV3Client.withType(WechatPayV3Type.MARKETING_FAVOR_STOCKS_DETAIL, stockId)
|
||||||
.function(this::stockDetailFunction)
|
.function(this::stockDetailFunction)
|
||||||
@@ -163,7 +163,6 @@ public class WechatPayV3Api {
|
|||||||
.request();
|
.request();
|
||||||
|
|
||||||
return wechatResponseEntity;
|
return wechatResponseEntity;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user