package com.hai.order.service;

import com.hai.entity.HighChildOrder;
import com.hai.entity.HighOrder;

/**
 * 订单退款业务
 * @className: OrderRefundService
 * @author: HuRui
 * @date: 2022/9/1
 **/
public interface OrderRefundService {

    /**
     * 交易订单退款
     * @param order     交易订单
     * @param remarks   退款备注
     */
    HighOrder createOrderRefund(HighOrder order, String remarks);

    /**
     * 子订单退款
     * @param orderChild    子订单
     * @param refundCount   退款数量
     * @param remarks       退款备注
     */
    HighChildOrder createOrderChildRefund(HighChildOrder orderChild,Integer refundCount, String remarks);

}
