package com.red.circle.order.app.command.pay.app.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 内购产品信息.
 * </p>
 *
 * @author pengliang
 * @since 2020-08-06
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class PurchaseProduct implements Serializable {

  private static final long serialVersionUID = 1L;
  /**
   * 主键标识.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

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

  /**
   * 产品id.
   */
  private String productId;

  /**
   * 包名.
   */
  private String productPackage;

  /**
   * 产品类型.
   */
  private String productType;

  /**
   * 描述.
   */
  private String description;

  /**
   * 分组名称.
   */
  private String groupName;

  /**
   * 产品单价.
   */
  private BigDecimal unitPrice;

  /**
   * 获得糖果数量.
   */
  private BigDecimal obtainCandy;

  /**
   * 奖励糖果.
   */
  private BigDecimal rewardCandy;

  /**
   * 折扣率.
   */
  private Integer discountRate;

  /**
   * 平台.
   */
  private String platform;

}
