diff --git a/README.md b/README.md index 9bf6ce6..75f99b1 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,9 @@ - [x] **微信支付V3** 全量支持。 - [x] **支付宝** 提供所有实现,具体以签约项目为准。 -- [ ] **银联支付** 施工中…… +## 进度 +- 微信支付营销-代金券 `WechatMarketingFavorApi` 100% +- 微信支付 支付功能 `WechatPayApi` app预支付 ## 采用技术 - Spring @@ -62,7 +64,7 @@ public class PayConfig { @Autowired WechatPayApi wechatPayV3Api; @Autowired - WechatMarketingApi wchatMarketingApi; + WechatMarketingFavorApi wechatMarketingFavorApi; ``` ###### V3 例如V3 查询商户下的优惠券 @@ -74,7 +76,7 @@ public class PayConfig { StocksQueryParams params = new StocksQueryParams(); params.setOffset(0); params.setLimit(10); - WechatResponseEntity objectNodeWechatResponseEntity = wchatMarketingApi.queryStocksByMch(params); + WechatResponseEntity objectNodeWechatResponseEntity = wechatMarketingFavorApi.queryStocksByMch(params); System.out.println("objectNodeWechatResponseEntity = " + objectNodeWechatResponseEntity); } ``` diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/WechatPayConfiguration.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/WechatPayConfiguration.java index c5ee4fb..f83e21d 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/WechatPayConfiguration.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/WechatPayConfiguration.java @@ -3,7 +3,6 @@ package cn.felord.payment.wechat; import cn.felord.payment.wechat.oauth2.OAuth2AuthorizationRequestRedirectProvider; import cn.felord.payment.wechat.v3.*; -import cn.felord.payment.wechat.v3.*; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; @@ -77,8 +76,8 @@ public class WechatPayConfiguration { * @return the wechat marketing api */ @Bean - public WechatMarketingApi wechatMarketingApi(WechatPayClient wechatPayClient, WechatMetaBean wechatMetaBean) { - return new WechatMarketingApi(wechatPayClient, wechatMetaBean); + public WechatMarketingFavorApi wechatMarketingApi(WechatPayClient wechatPayClient, WechatMetaBean wechatMetaBean) { + return new WechatMarketingFavorApi(wechatPayClient, wechatMetaBean); } /** diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/WechatMarketingApi.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/WechatMarketingFavorApi.java similarity index 98% rename from payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/WechatMarketingApi.java rename to payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/WechatMarketingFavorApi.java index c6ee15b..9f4f7e6 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/WechatMarketingApi.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/WechatMarketingFavorApi.java @@ -29,19 +29,19 @@ import java.util.Objects; import java.util.function.Consumer; /** - * The type Wechat marketing api. + * 微信支付营销代金券API * * @author Dax * @since 18 :22 */ -public class WechatMarketingApi extends AbstractApi { +public class WechatMarketingFavorApi extends AbstractApi { /** * Instantiates a new Wechat marketing api. * * @param wechatPayClient the wechat pay client * @param wechatMetaBean the wechat meta bean */ - public WechatMarketingApi(WechatPayClient wechatPayClient, WechatMetaBean wechatMetaBean) { + public WechatMarketingFavorApi(WechatPayClient wechatPayClient, WechatMetaBean wechatMetaBean) { super(wechatPayClient, wechatMetaBean); }