package com.cool.store.request.fees;

import com.cool.store.common.InsertGroup;
import com.cool.store.common.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 线下收款银行配置 新增/编辑 Request
 */
@Data
public class PayeeBankConfigAddRequest {
    @ApiModelProperty("配置id（编辑必传）")
    @NotNull(message = "id不能为空", groups = {UpdateGroup.class})
    private Long id;

    @ApiModelProperty(value = "加盟品牌", required = true)
    @NotNull(message = "加盟品牌不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private Integer joinBrand;

    @ApiModelProperty(value = "招商分部id，0表示全部", required = true)
    @NotNull(message = "招商分部id不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private Long investDivisionId;

    @ApiModelProperty(value = "付款方式，同缴纳加盟费支付方式", required = true)
    @NotNull(message = "付款方式不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private Integer payType;

    @ApiModelProperty(value = "收款公司名称", required = true)
    @NotBlank(message = "收款公司名称不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String payeeName;

    @ApiModelProperty(value = "收款公司code", required = true)
    @NotBlank(message = "收款公司code不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String payeeCode;

    @ApiModelProperty(value = "收款账户", required = true)
    @NotBlank(message = "收款账户不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String payeeAccount;

    @ApiModelProperty(value = "收款银行", required = true)
    @NotBlank(message = "收款银行不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String payeeBank;

    @ApiModelProperty(value = "收款银行开户行", required = true)
    @NotBlank(message = "收款银行开户行不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String payeeBankBranch;
}


