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.user.UserProfileDTO;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 将主播剩余目标兑换成美元记录.
 *
 * @author pengshigang on 2023/5/25
 */
@Data
@Accessors(chain = true)
public class TeamExchangeTargetCO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

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

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

  /**
   * 区域Code.
   */
  private String regionCode;

  /**
   * 用户ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  /**
   * 用户.
   */
  private UserProfileDTO userProfile;

  /**
   * 日期数(兑换的是几月份的剩余积分).
   */
  private Integer dateNumber;

  /**
   * 完成的最高政策等级目标.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long maxPolicyTarget;

  /**
   * 成员目标.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long memberTarget;

  /**
   * 剩余目标.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long surplusTarget;

  /**
   * 兑换比例.
   */
  private BigDecimal subscriptionRatio;

  /**
   * 美元.
   */
  private BigDecimal amountUsd;

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

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

}
