package com.yc.ship.module.product.controller.admin.productSpu.refundRuleVO;

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.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 ProductRefundRulePageReqVO extends PageParam {

    @Schema(description = "手续费规则")
    private String refundFeeRule;

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

    @Schema(description = "退票规则 查看字典")
    private Integer refundRule;

    @Schema(description = "有效期前后可退天数")
    private Integer refundDay;

    @Schema(description = "可退渠道 0 OTA 1旅行社")
    private String refundChannel;

    @Schema(description = "过期操作类型 0不处理 1自动结算 2自动核销 3自动退票", example = "2")
    private Integer expireOperateType;

}