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

import com.yc.ship.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

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

import static com.yc.ship.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;


@Schema(description = "管理后台 - 退款明细分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class RefundDetailPageReqVO extends PageParam {

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

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

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

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

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

    @Schema(description = "退款时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] refundTime;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}