package com.bcxin.Infrastructures.components.models;

import com.bcxin.Infrastructures.entities.ValueType;
import lombok.Getter;

@Getter
public class VerificationCode extends ValueType {
    private final String code;
    private final int retryIndex;

    public VerificationCode(String code, int retryIndex) {
        this.code = code;
        this.retryIndex = retryIndex;
    }

    public static VerificationCode create(String code, int retryIndex) {
        return new VerificationCode(code, retryIndex);
    }
}
