package com.cool.store.vo.fees;

import com.cool.store.enums.master.BrandTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 线下收款银行配置VO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PayeeBankConfigVO {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("加盟品牌")
    private Integer joinBrand;

    @ApiModelProperty("加盟品牌")
    private String joinBrandName;

    @ApiModelProperty("招商分部id，0表示全部")
    private Long investDivisionId;

    @ApiModelProperty("招商分部")
    private String investDivisionName;

    @ApiModelProperty("付款方式，同缴纳加盟费支付方式")
    private Integer payType;

    @ApiModelProperty("收款公司名称")
    private String payeeName;

    @ApiModelProperty("收款公司code")
    private String payeeCode;

    @ApiModelProperty("收款账户")
    private String payeeAccount;

    @ApiModelProperty("收款银行")
    private String payeeBank;

    @ApiModelProperty("收款银行开户行")
    private String payeeBankBranch;

    @ApiModelProperty("创建人id")
    private String createUserId;

    @ApiModelProperty("创建人名称")
    private String createUserName;

    @ApiModelProperty("创建时间")
    private Date createTime;

    public String getJoinBrandName() {
        return BrandTypeEnum.getDescByCode(this.joinBrand);
    }
}


