package com.yc.ship.module.trade.controller.admin.order.vo.refund;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 退款明细 Response VO")
@Data
@ExcelIgnoreUnannotated
public class RefundDetailRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "9650")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "退票批次ID", example = "31742")
    @ExcelProperty("退票批次ID")
    private Long refundId;

    @Schema(description = "交易明细ID", example = "20906")
    @ExcelProperty("交易明细ID")
    private Long tradeDetailId;

    @Schema(description = "退款金额")
    @ExcelProperty("退款金额")
    private BigDecimal refundAmount;


    @Schema(description = "退款前券码状态", example = "1")
    @ExcelProperty("退款前券码状态")
    private Integer voucherStatus;

    @Schema(description = "退票状态：0待退票，1审核中，2审核拒绝，3审核通过，4已退票，5已退款，6退款失败，99已取消", example = "2")
    @ExcelProperty("退票状态：0待退票，1审核中，2审核拒绝，3审核通过，4已退票，5已退款，6退款失败，99已取消")
    private Integer refundStatus;


    @Schema(description = "退款时间")
    @ExcelProperty("退款时间")
    private LocalDateTime refundTime;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "退票基础明细Id")
    @ExcelProperty("退票基础明细Id")
    private Long refundBaseId;

    @Schema(description = "凭证码")
    @ExcelProperty("凭证码")
    private String voucherCode;

    @Schema(description = "产品名称")
    @ExcelProperty("产品名称")
    private String productName;

    @Schema(description = "订单明细价格")
    @ExcelProperty("订单明细价格")
    private BigDecimal tradeDetailPrice;

    @Schema(description = "订单明细实际支付金额")
    @ExcelProperty("订单明细实际支付金额")
    private BigDecimal actualPrice;

    @Schema(description = "手续费")
    @ExcelProperty("手续费")
    private BigDecimal fee;

    @Schema(description = "退票基础明细")
    @ExcelProperty("退票基础明细")
    private List<RefundDetailBaseRespVO> refundDetailBaseRespList;

}