feat: 商家券增加查询营销补差付款单详情API

This commit is contained in:
Fang
2022-06-11 22:39:24 +08:00
parent 7751c5e49e
commit f5da8524d9
2 changed files with 30 additions and 0 deletions

View File

@@ -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.

View File

@@ -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;
}
}