mirror of
https://github.com/dromara/payment-spring-boot.git
synced 2026-03-13 21:33:41 +08:00
refactor: Style
This commit is contained in:
@@ -47,13 +47,13 @@ public enum WechatPayV3Type {
|
|||||||
*
|
*
|
||||||
* @since 1.0.3.RELEASE
|
* @since 1.0.3.RELEASE
|
||||||
*/
|
*/
|
||||||
TRADEBILL(HttpMethod.GET, "%s/v3/bill/tradebill"),
|
TRADE_BILL(HttpMethod.GET, "%s/v3/bill/tradebill"),
|
||||||
/**
|
/**
|
||||||
* 申请资金账单API.
|
* 申请资金账单API.
|
||||||
*
|
*
|
||||||
* @since 1.0.3.RELEASE
|
* @since 1.0.3.RELEASE
|
||||||
*/
|
*/
|
||||||
FUNDFLOWBILL(HttpMethod.GET, "%s/v3/bill/fundflowbill"),
|
FUND_FLOW_BILL(HttpMethod.GET, "%s/v3/bill/fundflowbill"),
|
||||||
|
|
||||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ public abstract class AbstractApi {
|
|||||||
public ResponseEntity<Resource> downloadTradeBill(TradeBillParams tradeBillParams) {
|
public ResponseEntity<Resource> downloadTradeBill(TradeBillParams tradeBillParams) {
|
||||||
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
|
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
|
||||||
|
|
||||||
this.client().withType(WechatPayV3Type.TRADEBILL, tradeBillParams)
|
this.client().withType(WechatPayV3Type.TRADE_BILL, tradeBillParams)
|
||||||
.function((wechatPayV3Type, params) -> {
|
.function((wechatPayV3Type, params) -> {
|
||||||
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<>();
|
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<>();
|
||||||
LocalDate billDate = params.getBillDate();
|
LocalDate billDate = params.getBillDate();
|
||||||
@@ -304,7 +304,7 @@ public abstract class AbstractApi {
|
|||||||
*/
|
*/
|
||||||
public ResponseEntity<Resource> downloadFundFlowBill(FundFlowBillParams fundFlowBillParams) {
|
public ResponseEntity<Resource> downloadFundFlowBill(FundFlowBillParams fundFlowBillParams) {
|
||||||
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
|
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
|
||||||
this.client().withType(WechatPayV3Type.FUNDFLOWBILL, fundFlowBillParams)
|
this.client().withType(WechatPayV3Type.FUND_FLOW_BILL, fundFlowBillParams)
|
||||||
.function((wechatPayV3Type, params) -> {
|
.function((wechatPayV3Type, params) -> {
|
||||||
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<>();
|
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<>();
|
||||||
LocalDate billDate = params.getBillDate();
|
LocalDate billDate = params.getBillDate();
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ public class SignatureProvider {
|
|||||||
/**
|
/**
|
||||||
* 我方请求前用 SHA256withRSA 加签,使用API证书.
|
* 我方请求前用 SHA256withRSA 加签,使用API证书.
|
||||||
*
|
*
|
||||||
* @param newLine the new line
|
* @param newLine 签名协议不兼容而增加的开关 github issues#18
|
||||||
* @param tenantId the properties key
|
* @param tenantId the properties key
|
||||||
* @param method the method
|
* @param method the method
|
||||||
* @param canonicalUrl the canonical url
|
* @param canonicalUrl the canonical url
|
||||||
|
|||||||
Reference in New Issue
Block a user