|
@@ -71,6 +71,7 @@ public class UserReservationPaymentController {
|
|
|
@ApiImplicitParam(name = "storeId", value = "门店ID", required = true, paramType = "query", dataType = "int"),
|
|
@ApiImplicitParam(name = "storeId", value = "门店ID", required = true, paramType = "query", dataType = "int"),
|
|
|
@ApiImplicitParam(name = "outTradeNo", value = "商户订单号", required = true, paramType = "query", dataType = "String"),
|
|
@ApiImplicitParam(name = "outTradeNo", value = "商户订单号", required = true, paramType = "query", dataType = "String"),
|
|
|
@ApiImplicitParam(name = "refundAmount", value = "退款金额(元)", required = true, paramType = "query", dataType = "String"),
|
|
@ApiImplicitParam(name = "refundAmount", value = "退款金额(元)", required = true, paramType = "query", dataType = "String"),
|
|
|
|
|
+ @ApiImplicitParam(name = "refundType", value = "退款类型 0:用户取消 1:商家退款 2:部分退款等 3.扫码核销成功", required = false, paramType = "query", dataType = "int"),
|
|
|
@ApiImplicitParam(name = "refundReason", value = "退款原因", paramType = "query", dataType = "String"),
|
|
@ApiImplicitParam(name = "refundReason", value = "退款原因", paramType = "query", dataType = "String"),
|
|
|
@ApiImplicitParam(name = "payType", value = "支付类型 alipay/wechatPay", paramType = "query", dataType = "String")
|
|
@ApiImplicitParam(name = "payType", value = "支付类型 alipay/wechatPay", paramType = "query", dataType = "String")
|
|
|
})
|
|
})
|
|
@@ -79,10 +80,11 @@ public class UserReservationPaymentController {
|
|
|
@RequestParam Integer storeId,
|
|
@RequestParam Integer storeId,
|
|
|
@RequestParam String outTradeNo,
|
|
@RequestParam String outTradeNo,
|
|
|
@RequestParam String refundAmount,
|
|
@RequestParam String refundAmount,
|
|
|
|
|
+ @RequestParam Integer refundType,
|
|
|
@RequestParam(required = false) String refundReason,
|
|
@RequestParam(required = false) String refundReason,
|
|
|
@RequestParam(defaultValue = "alipay") String payType) {
|
|
@RequestParam(defaultValue = "alipay") String payType) {
|
|
|
log.info("UserReservationPaymentController.refund storeId={}, outTradeNo={}", storeId, outTradeNo);
|
|
log.info("UserReservationPaymentController.refund storeId={}, outTradeNo={}", storeId, outTradeNo);
|
|
|
MerchantPaymentStrategy strategy = merchantPaymentStrategyFactory.getStrategy(payType);
|
|
MerchantPaymentStrategy strategy = merchantPaymentStrategyFactory.getStrategy(payType);
|
|
|
- return strategy.refund(storeId, outTradeNo, refundAmount, refundReason);
|
|
|
|
|
|
|
+ return strategy.refund(storeId, outTradeNo, refundAmount, refundReason, refundType);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|