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

import com.yn.bftl.common.modules.company.entity.Company;
import com.yn.bftl.common.modules.company.entity.ErpAccountSet;
import com.yn.bftl.common.modules.configuration.enums.SyncStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * ERP日志创建DTO
 *
 * @author huabiao
 * @create 2022/8/15  19:33
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ErpLoggerCreateDTO", description = "ERP日志创建DTO")
@Builder
public class ErpLoggerCreateDTO {

    @ApiModelProperty(value = "同步类型")
    private String type;

    @ApiModelProperty(value = "原因")
    private String reason;

    @ApiModelProperty(value = "调用参数")
    private String parameters;

    @ApiModelProperty(value = "单据类型")
    private String documentType;

    @ApiModelProperty(value = "单据号")
    private String documentId;

    @ApiModelProperty(value = "单据明细")
    private String documentDetails;

    @ApiModelProperty(value = "错误编码")
    private String errorCode;

    @ApiModelProperty(value = "B2B单号")
    private String orderSn;

    @ApiModelProperty(value = "同步状态")
    private SyncStatus syncStatus;

    @ApiModelProperty(value = "ERP账套")
    private ErpAccountSet erpAccountSet;

    @ApiModelProperty(value = "企业")
    private Company company;
}
