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 RefundDetailBasePageReqVO extends PageParam {

    @Schema(description = "退票明细ID", example = "3226")
    private Long refundDetailId;

    @Schema(description = "订单明细ID", example = "13529")
    private Long tradeDetailId;

    @Schema(description = "订单明细基础ID", example = "4462")
    private Long tradeDetailBaseId;

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

    @Schema(description = "退款前使用状态", example = "1")
    private Integer useStatus;

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

    @Schema(description = "供应商退款ID", example = "2640")
    private Long supplierRefundId;

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

}