mirror of
https://github.com/dromara/payment-spring-boot.git
synced 2026-03-13 21:33:41 +08:00
feat: 商家券增加查询营销补差付款单详情API
This commit is contained in:
@@ -450,6 +450,12 @@ public enum WechatPayV3Type {
|
||||
* @since 1.0.13.RELEASES
|
||||
*/
|
||||
MARKETING_BUSI_FAVOR_SUBSIDY(HttpMethod.POST, "%s/v3/marketing/busifavor/subsidy/pay-receipts"),
|
||||
/**
|
||||
* 查询营销补差付款单详情API.
|
||||
*
|
||||
* @since 1.0.13.RELEASES
|
||||
*/
|
||||
MARKETING_BUSI_FAVOR_SUBSIDY_QUERY(HttpMethod.POST, "%s/v3/marketing/busifavor/subsidy/pay-receipts/{subsidy_receipt_id}"),
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
/**
|
||||
* 发起批量转账API.
|
||||
|
||||
@@ -459,5 +459,29 @@ public class WechatMarketingBusiFavorApi extends AbstractApi {
|
||||
.request();
|
||||
return wechatResponseEntity;
|
||||
}
|
||||
/**
|
||||
* 查询营销补差付款单详情API
|
||||
* <p>
|
||||
* 查询商家券营销补差付款单详情
|
||||
*
|
||||
* @param subsidyReceiptId the subsidyReceiptId
|
||||
* @return the wechat response entity
|
||||
* @since 1.0.13.RELEASE
|
||||
*/
|
||||
public WechatResponseEntity<ObjectNode> queryMakeup(String subsidyReceiptId){
|
||||
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
|
||||
this.client().withType(WechatPayV3Type.MARKETING_BUSI_FAVOR_SUBSIDY_QUERY, subsidyReceiptId)
|
||||
.function((type, receiptId) -> {
|
||||
URI uri = UriComponentsBuilder.fromHttpUrl(type.uri(WeChatServer.CHINA))
|
||||
.build()
|
||||
.expand(receiptId)
|
||||
.toUri();
|
||||
return Get(uri);
|
||||
})
|
||||
.consumer(wechatResponseEntity::convert)
|
||||
.request();
|
||||
return wechatResponseEntity;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user