interface InternalBasePayApi
| Modifier and Type | Method and Description |
|---|---|
cn.felord.retrofit.VoidResponse |
close(String outTradeNo,
MchId mchId)
关闭订单API
|
okhttp3.ResponseBody |
download(String downloadUrl)
通过链接下载文件
|
BillUrlResponse |
downloadFundFlowBill(LocalDate billDate,
FundFlowAccountType accountType,
TarType tarType)
申请资金账单API
|
BillUrlResponse |
downloadTradeBill(LocalDate billDate,
TradeBillType billType,
TarType tarType)
申请交易账单API
|
PrepayResponse |
prePay(String payType,
PayParams payParams)
生成预支付交易单
|
RefundResponse |
queryRefundInfo(String outRefundNo)
查询退款API
|
PayDetailResponse |
queryTransactionById(String transactionId,
String mchid)
微信支付订单号查询API
|
PayDetailResponse |
queryTransactionByOutTradeNo(String outTradeNo,
String mchid)
商户订单号查询API
|
RefundResponse |
refund(RefundRequest request)
申请退款API
|
@POST(value="v3/pay/transactions/{payType}")
PrepayResponse prePay(@Path(value="payType")
String payType,
@Body
PayParams payParams)
throws PayException
payType - the pay typepayParams - the pay paramsPayException - the pay exception@GET(value="v3/pay/transactions/id/{transaction_id}")
PayDetailResponse queryTransactionById(@Path(value="transaction_id")
String transactionId,
@Query(value="mchid")
String mchid)
throws PayException
transactionId - the transaction idmchid - the mchidPayException - the pay exception@GET(value="v3/pay/transactions/out-trade-no/{out_trade_no}")
PayDetailResponse queryTransactionByOutTradeNo(@Path(value="out_trade_no")
String outTradeNo,
@Query(value="mchid")
String mchid)
throws PayException
outTradeNo - the out trade nomchid - the mchidPayException - the pay exception@POST(value="v3/pay/transactions/out-trade-no/{out_trade_no}/close")
cn.felord.retrofit.VoidResponse close(@Path(value="out_trade_no")
String outTradeNo,
@Body
MchId mchId)
throws PayException
outTradeNo - the out trade nomchId - the mch idPayException - the pay exception@POST(value="v3/refund/domestic/refunds") RefundResponse refund(@Body RefundRequest request) throws PayException
request - the requestPayException - the pay exception@GET(value="v3/refund/domestic/refunds/{out_refund_no}")
RefundResponse queryRefundInfo(@Path(value="out_refund_no")
String outRefundNo)
throws PayException
outRefundNo - the out refund noPayException - the pay exception@GET(value="v3/bill/tradebill") BillUrlResponse downloadTradeBill(@Query(value="bill_date") LocalDate billDate, @Query(value="bill_type") TradeBillType billType, @Query(value="tar_type") TarType tarType) throws PayException
billDate - the bill datebillType - the bill typetarType - the tar typePayException - the pay exception@GET(value="v3/bill/fundflowbill") BillUrlResponse downloadFundFlowBill(@Query(value="bill_date") LocalDate billDate, @Query(value="account_type") FundFlowAccountType accountType, @Query(value="tar_type") TarType tarType) throws PayException
billDate - the bill dateaccountType - the account typetarType - the tar typePayException - the pay exception@GET
okhttp3.ResponseBody download(@Url
String downloadUrl)
throws PayException
downloadUrl - the download urlPayException - the pay exceptionCopyright © 2023. All rights reserved.