public class RefundRequest extends Object
Modifier and Type | Field and Description |
---|---|
private RefundAmount |
amount
退款订单金额信息
|
private String |
fundsAccount
退款资金来源,若传递此参数则使用对应的资金账户退款,否则默认使用未结算资金退款(仅对老资金流商户适用)。
枚举值:
AVAILABLE:可用余额账户
|
private List<RefundGoodsDetail> |
goodsDetail
退款订单的商品信息
|
private String |
notifyUrl
退款结果回调url
|
private String |
outRefundNo
商户退款单号
|
private String |
outTradeNo
商户订单号,同
transactionId 二选一 |
private String |
reason
退款原因
|
private String |
transactionId
微信支付订单号,同
outTradeNo 二选一 |
Constructor and Description |
---|
RefundRequest() |
Modifier and Type | Method and Description |
---|---|
RefundRequest |
disFundsAccount()
Dis funds account refund request.
|
RefundRequest |
fundsAccount()
仅老资金流商户适用
|
RefundRequest |
goodsDetail(List<RefundGoodsDetail> goodsDetail)
Goods detail refund request.
|
RefundRequest |
notifyUrl(String notifyUrl)
Notify url refund request.
|
RefundRequest |
reason(String reason)
Reason refund request.
|
static RefundRequest |
withOutTradeNo(String outTradeNo,
String outRefundNo,
RefundAmount amount)
通过商户订单号退款
|
static RefundRequest |
withTransactionId(String transactionId,
String outRefundNo,
RefundAmount amount)
通过微信支付订单号退款
|
private final String transactionId
outTradeNo
二选一private final String outTradeNo
transactionId
二选一private final String outRefundNo
private final RefundAmount amount
private String reason
private String notifyUrl
private String fundsAccount
private List<RefundGoodsDetail> goodsDetail
public RefundRequest reason(String reason)
reason
- the reasonpublic RefundRequest notifyUrl(String notifyUrl)
notifyUrl
- the notify urlpublic RefundRequest fundsAccount()
public RefundRequest disFundsAccount()
public RefundRequest goodsDetail(List<RefundGoodsDetail> goodsDetail)
goodsDetail
- the goods detailpublic static RefundRequest withTransactionId(String transactionId, String outRefundNo, RefundAmount amount)
transactionId
- the transaction idoutRefundNo
- the out refund noamount
- the amountpublic static RefundRequest withOutTradeNo(String outTradeNo, String outRefundNo, RefundAmount amount)
outTradeNo
- the out trade nooutRefundNo
- the out refund noamount
- the amountCopyright © 2025. All rights reserved.