package com.liquidnet.service.kylin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.kylin.dto.param.PayAgainParam;
import com.liquidnet.service.kylin.dto.param.PayOrderParam;
import com.liquidnet.service.kylin.dto.param.SyncOrderParam;
import com.liquidnet.service.kylin.dto.vo.returns.*;
import com.liquidnet.service.kylin.entity.KylinOrderTickets;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author liquidnet
 * @since 2021-05-20
 */
public interface IKylinOrderTicketsService {

    //订单列表(状态 待支付 已支付 倒计时 已失效)
    PageInfo<List<KylinOrderListVo>> orderList();

    //订单列表(状态 待支付 已支付 倒计时 已失效)
    PageInfo<List<KylinOrderListVo>> orderListMongo(Integer page,Integer size);

    //订单详情
    OrderDetailsVo orderDetails(String orderId);

    //订单未支付数量
    ResponseDto<Integer> orderUnPayCount();

    //补充入场人
    ResponseDto<Boolean> supplementEnter(String orderId, String enterList);

    //发起转赠订单
    ResponseDto<String> orderTransfer(String orderId, String transferUid, String transferMobile);

    //撤回转赠订单
    ResponseDto<String> orderTransferWithdraw(String orderId);

    //接受转赠订单
    ResponseDto<String> orderTransferAccept(String enterIdList);

    //拒绝转赠订单
    ResponseDto<String> orderTransferReject();

    //拒绝转赠订单
    ResponseDto<String> orderTransferBack(String orderId);

    //想要退款详情
    ResponseDto<KylinOrderTicketPreVo> toOrderRefundDetails(String orderId);

    //退款详情
    ResponseDto<OrderRefundVo> orderRefundDetails(String orderId,String orderRefundId);

    /**
     * 发起退款
     * @param orderId                   订单id
     * @param orderTicketEntitiesId     票单id
     * @param reason                    退款原因
     * @param picList                   证据截图
     * @return                          是否成功
     */
    String sendOrderRefund(String orderId, String orderTicketEntitiesId, String reason, String picList);

    //退款撤回
    ResponseDto<Boolean> orderRefundWithdraw(String orderRefundsId);

    //获取 订单Ar激活码
    ResponseDto<List<String>> getOrderArCode(String orderId);
}
