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

import com.sckw.core.model.base.IdsList;
import com.sckw.core.model.vo.BasePara;
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.math.BigDecimal;

/**
 * @author Aick Spt
 * @date 2023-07-27 19:52
 */
@Getter
@Setter
public class OfflinePaymentReq extends BasePara implements IdsList {

    @Serial
    private static final long serialVersionUID = -4568239842231210898L;

    private Integer orderType;

    /**
     * 结算单id
     */
    @NotBlank(message = "结算单id不能为空")
    private String id;

    /**
     * 付款金额
     */
    @NotNull(message = "结算单金额不能为空")
    @Positive(message = "结算金额必须大于0")
    private BigDecimal price;


    private String url;


}
