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

import com.red.circle.common.business.core.enums.ReceiptType;
import com.red.circle.common.business.core.enums.SysOriginPlatformEnum;
import com.red.circle.wallet.inner.model.enums.BeanOrigin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 消费豆子收据.
 *
 * @author pengliang on 2021/10/18
 */
@Data
@Accessors(chain = true)
public class BeanReceiptCmd implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 消费id.
   */
  @NotBlank(message = "consumeId required.")
  private String consumeId;

  /**
   * 追踪id.
   */
  @NotBlank(message = "trackId required.")
  private String trackId;

  /**
   * 单据类型.
   */
  @NotNull(message = "type required.")
  private ReceiptType type;

  /**
   * 用户id.
   */
  @NotNull(message = "userId required.")
  private Long userId;

  /**
   * 归属系统.
   */
  @NotNull(message = "sysOrigin required.")
  private SysOriginPlatformEnum sysOrigin;

  /**
   * 豆子来源.
   */
  @NotBlank(message = "origin required.")
  private BeanOrigin origin;

  /**
   * 自定义，来源名称.
   */
  private String customizeOriginDesc;

  /**
   * 豆子数量.
   */
  @NotNull(message = "amount required.")
  private BigDecimal amount;

}
