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

import com.red.circle.common.business.core.enums.ReceiptType;
import com.red.circle.framework.dto.Command;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 消费金币收据.
 *
 * @author pengliang on 2021/8/20
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class TestWalletReceiptCmd extends Command {

  private static final long serialVersionUID = 1L;

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

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

  /**
   * 事件类型.
   */
  @NotBlank(message = "eventType required.")
  private String eventType;

  /**
   * 事件描述.
   */
  @NotBlank(message = "eventDesc required.")
  private String eventDesc;

  /**
   * 事件id(订单，关联信息).
   */
  @NotBlank(message = "eventId required.")
  private String eventId;

  /**
   * 系统.
   */
  @NotBlank(message = "sysOrigin required.")
  private String sysOrigin;

  /**
   * 备注.
   */
  private String remark;

  /**
   * 金币数量.
   */
  @NotNull(message = "amount required.")
  private Long amount;

  /**
   * true: 关闭流水同步， false&null: 开启
   */
  private Boolean closeDelayAsset;

}
