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

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.LocalDate;
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 TradeDetailPageReqVO extends PageParam {
    @Schema(description = "订单ID", example = "32510")
    private Long orderId;

    @Schema(description = "订单号")
    private String orderNo;

    @Schema(description = "订单状态", example = "32510")
    private Integer orderStatus;

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

    @Schema(description = "票券状态", example = "1")
    private Integer voucherStatus;

    @Schema(description = "使用日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] useDate;

    @Schema(description = "有效开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] validityStartDate;

    @Schema(description = "有效截止时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] validityEndDate;

    @Schema(description = "可使用天数")
    private Integer usageDays;

    @Schema(description = "核验状态", example = "1")
    private Integer checkStatus;

    @Schema(description = "取票状态", example = "2")
    private Integer takeStatus;

    @Schema(description = "核销时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] verifyTime;

    @Schema(description = "激活状态", example = "1")
    private Integer activateStatus;

    @Schema(description = "激活天数")
    private Integer activateDays;

    @Schema(description = "激活时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] activateTime;

    @Schema(description = "产品", example = "1068")
    private Long productId;

    @Schema(description = "产品名称", example = "张三")
    private String productName;

    @Schema(description = "规格类型", example = "1")
    private String specType;

    @Schema(description = "价格", example = "7999")
    private BigDecimal price;

    @Schema(description = "实际支付金额", example = "1339")
    private BigDecimal actualPrice;

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

    @Schema(description = "联系人", example = "测试")
    private String name;

    @Schema(description = "证件号", example = "1339")
    private String credentialNo;

    @Schema(description = "手机号", example = "1339")
    private String mobile;
}
