package com.red.circle.other.infra.database.mongo.entity.gift;

import java.io.Serializable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 礼物价值.
 *
 * @author pengliang on 2022/7/25
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class GiftValue implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 礼物货币类型.
   */
  private String currencyType;

  /**
   * 礼物类型.
   */
  private String giftType;

  /**
   * 礼物单价.
   */
  private BigDecimal unitPrice;

  /**
   * 发送礼物数量.
   */
  private Integer quantity;

  /**
   * 发送用户数量.
   */
  private Integer userSize;

  /**
   * 单个礼物价值（giftUnitPrice * quantity）.
   */
  private BigDecimal giftValue;

  /**
   * 实际价格(giftUnitPrice * quantity * userSize).
   */
  private BigDecimal actualAmount;

  /**
   * true 背包礼物， false 不是背包礼物.
   */
  private Boolean bag;
}
