package com.izouma.uwip.domain;

import com.izouma.uwip.enums.PartnerType;
import com.izouma.uwip.enums.SupplierType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.EnumType;
import javax.persistence.Enumerated;

@AllArgsConstructor
@Data
@Builder
@NoArgsConstructor
@ApiModel(value = "客户/供应商管理")
public class Partner extends BaseEntity {
    /**
     * 区分 客户/供应商
     */
    @Enumerated(EnumType.STRING)
    private PartnerType type;

    @Enumerated(EnumType.STRING)
    @ApiModelProperty(value = "供应商类型")
    private SupplierType supplierType;

    @ApiModelProperty(value = "代码")
    private String code;

    private String name;

    private String enName;

    private String address;

    private String enAddress;

    @ApiModelProperty(value = "统一社会信用代码")
    private String uscc;

    @ApiModelProperty(value = "开票名称")
    private String billingName;

    @ApiModelProperty(value = "税号")
    private String taxID;

    @ApiModelProperty(value = "开票地址")
    private String billingAddress;

    @ApiModelProperty(value = "开票电话")
    private String billingPhone;

    @ApiModelProperty(value = "开户行")
    private String accountBank;

    @ApiModelProperty(value = "账号")
    private String account;
}
