package com.red.circle.wallet.app.dto.cmd;

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 用户银行卡余额转账.
 *
 * @author pengliang on 2023/2/20
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class UserBankWithdrawTransferCmd extends AppExtCommand {

  /**
   * 金额.
   *
   * @eo.required
   */
  @NotNull(message = "amount required.")
  private BigDecimal amount;

  /**
   * 接收用户.
   *
   * @eo.required
   */
  @NotNull(message = "acceptUserId required.")
  private Long acceptUserId;

  /**
   * 接收方式.
   *
   * @eo.required
   */
  @NotBlank(message = "acceptMethod required.")
  private String acceptMethod;

  /**
   * 支付密码.
   */
  private String password;
}
