package com.red.circle.console.app.dto.clienobject.team;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.other.inner.model.dto.agency.agency.TeamBillCredential;
import com.red.circle.other.inner.model.dto.agency.agency.TeamBillSettleResultDTO;
import com.red.circle.other.inner.model.dto.agency.agency.TeamProfileDTO;
import com.red.circle.other.inner.model.dto.agency.agency.TeamRemarkDTO;
import com.red.circle.other.inner.enums.team.TeamBillCycleStatus;
import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
import java.io.Serial;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 团队账单周期.
 *
 * @author pengliang on 2022/12/13
 */
@Data
@Accessors(chain = true)
public class TeamBillCycleCO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 账单ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 归属系统.
   */
  private String sysOrigin;

  /**
   * 团队id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long teamId;

  /**
   * 账单归属.
   */
  private Integer billBelong;

  /**
   * 账单标题.
   */
  private String billTitle;

  /**
   * 状态
   */
  private TeamBillCycleStatus status;

  /**
   * 区域.
   */
  private String region;

  /**
   * 区域名字.
   */
  private String regionName;

  /**
   * 备注：对外.
   */
  private String remarks;

  /**
   * 内部备注.
   */
  private List<TeamRemarkDTO> internalRemarks;

  /**
   * 明细.
   */
  private TeamBillSettleResultDTO settleResult;

  /**
   * 凭据.
   */
  private List<TeamBillCredential> credentials;

  /**
   * 创建时间.
   */
  private Timestamp createTime;

  /**
   * 修改时间.
   */
  private Timestamp updateTime;

  /**
   * 修改用户昵称.
   */
  private String updateUserNickname;

  /**
   * 团队资料.
   */
  private TeamProfileDTO teamProfile;

  /**
   * 团长信息.
   */
  private UserProfileDTO ownUserProfile;

  /**
   * 创建用户.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createUser;

  /**
   * 修改用户.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateUser;

}
