package com.yuchen.saas.payment.api.dto.setting.req;

import com.thinkunion.park.service.common.constant.GroupAction;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * @author zhouhanwei
 * @create 2024/7/12 14:11
 */
@Data
public class PaymentCollectionAccountSubmitReqDTO {

    @NotNull(groups = GroupAction.UpdateAction.class, message = "id不能为空")
    @Null(groups = GroupAction.InsertAction.class, message = "id必须为空")
    private Long id;

    /**
     * 开户实体
     */
    @ApiModelProperty(name = "accountOpeningEntity", value = "开户实体")
    private String accountOpeningEntity;
    /**
     * 开户银行
     */
    @ApiModelProperty(name = "accountOpeningBank", value = "开户银行")
    private String accountOpeningBank;
    /**
     * 银行账号
     */
    @ApiModelProperty(name = "bankAccount", value = "银行账号")
    @NotBlank(message = "银行账号不能为空")
    private String bankAccount;
}
