package com.sckw.payment.model.vo.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sckw.core.model.base.IdsList;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;

/**
 * 对账完成
 *
 * @author xucaiqin
 * @date 2023-07-10 17:05:28
 */
@Getter
@Setter
public class LedgerSuccessReq implements IdsList {
    @NotBlank(message = "物流对账单id不能为空")
    private String id;
    private Long successUserId;

    //    @NotBlank(message = "财务联系人不能为空")
    @Size(max = 25, message = "财务联系人不能超过25个字符")
    private String successUser;

    //    @NotNull(message = "预计收款日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate receiptTime;

    //    @NotBlank(message = "财务联系电话不能为空")
    @Size(max = 11, message = "财务联系电话不能超过11个字符")
    private String successPhone;

}
