package com.red.circle.order.inner.model.cmd;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.core.dto.CommonCommand;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.io.Serial;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 应用商品.
 * </p>
 *
 * @author pengliang
 * @since 2021-11-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class SysPayApplicationCommodityCmd extends CommonCommand {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 应用id.
   */
  @NotNull
  @JsonSerialize(using = ToStringSerializer.class)
  private Long applicationId;

  /**
   * 开通支付国家.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long payCountryId;

  /**
   * 区域ID.
   */
  private String regionId;

  /**
   * 类型.
   */
  @NotBlank
  private String type;

  /**
   * 内容.
   */
  @NotBlank
  private String content;

  /**
   * 奖励内容.
   */
  @NotBlank
  private String awardContent;

  /**
   * 美元金额.
   */
  @NotNull
  private BigDecimal amountUsd;

  /**
   * 0.下架 1.上架.
   */
  private Boolean shelf;

  private Long createUser;
  private Long updateUser;
}
