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

import com.red.circle.common.business.core.enums.SysOriginPlatformEnum;
import com.red.circle.framework.dto.Command;
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;

/**
 * 退款单据.
 *
 * @author pengliang on 2021/8/20
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class RefundReceiptCmd extends Command {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 消费id.
   */
  @NotBlank
  private Long consumeId;

  /**
   * 追踪id.
   */
  @NotBlank
  private String trackId;

  /**
   * 用户id.
   */
  @NotNull
  private Long userId;

  /**
   * 归属系统.
   */
  @NotNull
  private SysOriginPlatformEnum sysOrigin;

  /**
   * 金币来源.
   */
  @NotBlank
  private String origin;

  /**
   * 来源名称.
   */
  @NotBlank
  private String originDesc;

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

  /**
   * 金币数量.
   */
  @NotNull
  private BigDecimal amount;


}
