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

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.yc.ship.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
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 OrderPolicyPageReqVO extends PageParam {

    @Schema(description = "订单ID", example = "14709")
    private Long orderId;

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

    @Schema(description = "政策ID", example = "25357")
    private Long policyId;

    @Schema(description = "预占数量")
    private BigDecimal preUseNum;

    @Schema(description = "实占数量")
    private BigDecimal realUseNum;

    @Schema(description = "优惠金额")
    private BigDecimal amount;

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

}