package ru.soune.nocopy.dto.payout;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AddCardRequest {

    @NotBlank(message = "Card number required")
    @Pattern(regexp = "^[0-9]{16}$", message = "Card number 16 cipher")
    private String cardNumber;
}
