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

import com.sckw.core.model.base.IdsList;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 回款确认-线下付款
 *
 * @author xucaiqin
 * @date 2023-07-18 11:29
 */
@Getter
@Setter
public class SettlementOfflinePayReq implements IdsList, Serializable {
    @Serial
    private static final long serialVersionUID = -4521836357698982285L;
    private Integer orderType;

    @NotBlank(message = "结算单id不能为空")
    private String id;
    @NotNull(message = "结算单金额不能为空")
    @Positive(message = "结算金额必须大于0")
    private BigDecimal payPrice;
    @NotBlank(message = "相关附件不能为空")
    private String url;

}
