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

import com.yn.bftl.common.modules.account.enums.AccountChangeType;
import com.yn.bftl.common.modules.account.enums.ChangeDirection;
import com.yn.bftl.common.modules.company.entity.Company;
import io.swagger.annotations.ApiModel;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 账户异动创建DTO
 *
 * @author huabiao
 * @create 2022/12/18  0:26
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "AccountChangeCreateDTO", description = "账户异动创建DTO")
@Builder
public class AccountChangeCreateDTO {

    /**
     * 企业
     */
    private Company company;

    /**
     * 异动方向
     */
    private ChangeDirection direction;

    /**
     * 异动类型
     */
    private AccountChangeType type;

    /**
     * 异动金额
     */
    private BigDecimal amount;

    /**
     * 来源单号
     */
    private String sourceNo;

    /**
     * 备注
     */
    private String remark;

    /**
     * 来源企业
     */
    private Long sourceCompanyId;
}
