添加部分退款接口
This commit is contained in:
@@ -168,4 +168,30 @@ public class MerchantRefundOrder {
|
||||
this.mercRefundNo = object.getString("mercRefundNo");
|
||||
this.notifyUrl = object.getString("notifyUrl");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public void convert(MerchantOrder order, Map<String,Object> result, String mchNo, BigDecimal refundAmt, String mercRefundNo,String notifyUrl) {
|
||||
this.merchantCode = order.getMerchantCode();
|
||||
this.alias = order.getMerchantName();
|
||||
this.orderNumber = order.getOrderNumber();
|
||||
this.refundNo = (String)result.get("refundNo");
|
||||
this.channelNo = order.getTransNo();
|
||||
this.payTime = order.getTransDt();
|
||||
this.refundTime = new Date();
|
||||
this.status = (String)result.get("status");
|
||||
this.orderType = order.getOrderType();
|
||||
this.payTypeCode = order.getPayTypeCode();
|
||||
this.payTypeName = order.getPayTypeName();
|
||||
this.payAmt = BigDecimal.valueOf(order.getConsumeFee());
|
||||
this.refundAmt = refundAmt;
|
||||
this.aisleSwitch = order.getAisleSwitch();
|
||||
this.createTime = new Date();
|
||||
this.channelMercNo = mchNo;
|
||||
this.failMsg = (String)result.get("msg");
|
||||
this.mercRefundNo = mercRefundNo;
|
||||
this.notifyUrl = notifyUrl;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user