package cn.iocoder.yudao.module.member.controller.admin.billing.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 开票记录新增/修改 Request VO")
@Data
public class BillingSaveReqVO {

    @Schema(description = "发票编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24631")
    private String id;

    @Schema(description = "用户名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    private String userName;

    @Schema(description = "用户手机号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String userPhone;

    @Schema(description = "申请开票时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime requestBillingTime;

    @Schema(description = "发票金额", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal billingMoney;

    @Schema(description = "开票人，谁要开票", requiredMode = Schema.RequiredMode.REQUIRED, example = "6477")
    @NotNull(message = "开票人，谁要开票不能为空")
    private Long userId;

    @Schema(description = "开票主体.(发票抬头)", requiredMode = Schema.RequiredMode.REQUIRED, example = "30533")
    @NotNull(message = "开票主体.(发票抬头)不能为空")
    private Long invoiceId;

    @Schema(description = "0开票中,1开票完成,2开票回拒", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "0开票中,1开票完成,2开票回拒不能为空")
    private Integer status;

    @Schema(description = "同意人。谁通过的", example = "21936")
    private Long systemId;

    @Schema(description = "0食堂发票,1超市发票,2太空舱发票", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "0食堂发票,1超市发票,2太空舱发票不能为空")
    private Integer billingType;
    @Schema(description = "门店id")
    private Long carteenId;
    @Schema(description = "拒绝理由")
    private String refuseDetails;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "拒绝时间")
    private LocalDateTime refuseTime;

    @Schema(description = "pdf地址", example = "https://www.iocoder.cn")
    private String pdfUrl;
    @Schema(description = "发票商品名称")
    private String billingName;
    @Schema(description = "订单选择时间段-开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    @Schema(description = "订单选择时间段-结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    @Schema(description = "单位所有开票的userid")
    private Set<Long> orderId;
}