package com.yn.bftl.thirdparty.modules.unionpay.dto;

import com.yn.bftl.common.modules.order.enums.PosPaymentType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * POS充值DTO
 *
 * @author huabiao
 * @create 2023/3/6  15:29
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "PosAppRechargeDTO", description = "POS充值DTO")
public class PosAppRechargeDTO {

    @ApiModelProperty(value = "POS序列号", required = true)
    @NotBlank
    private String hardwareSn;

    @ApiModelProperty(value = "金额", required = true)
    @NotNull
    @DecimalMin("0.01")
    private BigDecimal amount;

    @ApiModelProperty(value = "经销商ID", required = true)
    @NotNull
    private Long dealerId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "POS支付类型枚举：BANK_CARD(\"银行卡\"),RICH_SCAN(\"扫一扫\")")
    @NotNull
    private PosPaymentType payType;
}
