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

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.red.circle.framework.dto.Command;
import com.red.circle.tool.core.tuple.PennyAmount;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.io.Serial;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 退款回收单据.
 *
 * @author pengliang on 2023/8/21
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class RefundBackReceiptCmd extends Command {

  @Serial
  private static final long serialVersionUID = 1L;

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

  /**
   * 事件id.
   */
  @NotBlank(message = "eventId required.")
  private String eventId;

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

  /**
   * 回收金额.
   */
  @NotNull(message = "amount required.")
  private PennyAmount amount;


}
