Class VerificationRequest

java.lang.Object
com.checkhim.models.VerificationRequest

public class VerificationRequest extends Object
Represents a phone number verification request to the CheckHim API. This class encapsulates the phone number to be verified and includes a builder pattern for easy construction.
  • Constructor Details

    • VerificationRequest

      public VerificationRequest()
      Default constructor for JSON serialization.
  • Method Details

    • getNumber

      public String getNumber()
      Gets the phone number to be verified.
      Returns:
      The phone number in international format (e.g., +5511984339000)
    • setNumber

      public void setNumber(String number)
      Sets the phone number to be verified.
      Parameters:
      number - The phone number in international format
    • getType

      public String getType()
      Gets the request type.
      Returns:
      The request type (default: "frontend")
    • setType

      public void setType(String type)
      Sets the request type.
      Parameters:
      type - The request type
    • builder

      public static VerificationRequest.Builder builder()
      Creates a new builder instance for constructing VerificationRequest objects.
      Returns:
      A new Builder instance
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object