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.TeamPolicyDTO;
import com.red.circle.other.inner.model.dto.agency.agency.TeamSalaryPaymentRemark;
import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 团队自动发送工资凭证明细.
 *
 * @author pengshigang on 2023/4/18
 */
@Data
@Accessors(chain = true)
public class TeamSalaryDetailsCO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 标识ID.
   */
  private String id;

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

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

  /**
   * 团队拥有者用户ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long teamOwnId;

  /**
   * 团队拥有者用户信息.
   */
  private UserProfileDTO teamOwnProfile;

  /**
   * 团队成员用户ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long teamMemberId;

  /**
   * 团队拥有者用户信息.
   */
  private UserProfileDTO teamMemberProfile;

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

  /**
   * 团队成员目标ID.
   */
  private String memberTargetId;

  /**
   * 团队区域ID.
   */
  private String teamRegionId;

  /**
   * 区域名称.
   */
  private String teamRegionName;

  /**
   * 是否为主播(true主播).
   */
  private Boolean anchor;

  /**
   * 用户目标.
   */
  private Long target;

  /**
   * 发送工资(美元).
   */
  private BigDecimal salary;

  /**
   * 是否已被收回(true 已回收, false 未回收).
   */
  private Boolean recycled;

  /**
   * 是否将主播工资发给代理银行账户(true:是) .
   */
  private Boolean hostSalaryToAgent;

  /**
   * 政策等级.
   */
  private Integer policyLevel;

  /**
   * 存档政策.
   */
  private TeamPolicyDTO policy;

  /**
   * 退款用户ID.
   */
  private Long refundUserId;

  /**
   * 退款用户.
   */
  private UserProfileDTO refundUser;

  /**
   * 备注.
   */
  private List<TeamSalaryPaymentRemark> remarks;

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

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

}
