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

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.Serializable;
import java.math.BigDecimal;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author pengliang on 2022/7/25
 */
@Data
@Accessors(chain = true)
public class GiftAcceptUserCO implements Serializable {

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

  /**
   * true 是主播，false 不是主播.
   */
  private Boolean anchor;

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

  /**
   * 接收金额.
   */
  private BigDecimal acceptAmount;

  /**
   * 记录目标金额=主播可用.
   */
  private BigDecimal targetAmount;

  /**
   * true 已被统计，false 未统计.
   */
  private Boolean countTargetAmount;

  /**
   * 接收礼物对方获得百分比.
   */
  private BigDecimal percentage;

  /**
   * 自己送给自己获得百分比.
   */
  private BigDecimal selfPercentage;

  /**
   * 发送人-接收人, 区域.
   */
  private String region;

  /**
   * 区域是否相同.
   */
  private Boolean regionEq;

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

}
