Package com.checkhim.models
Class VerificationRequest
java.lang.Object
com.checkhim.models.VerificationRequest
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for constructing VerificationRequest instances with a fluent API. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VerificationRequest.Builderbuilder()Creates a new builder instance for constructing VerificationRequest objects.booleanGets the phone number to be verified.getType()Gets the request type.inthashCode()voidSets the phone number to be verified.voidSets the request type.toString()
-
Constructor Details
-
VerificationRequest
public VerificationRequest()Default constructor for JSON serialization.
-
-
Method Details
-
getNumber
Gets the phone number to be verified.- Returns:
- The phone number in international format (e.g., +5511984339000)
-
setNumber
Sets the phone number to be verified.- Parameters:
number- The phone number in international format
-
getType
Gets the request type.- Returns:
- The request type (default: "frontend")
-
setType
Sets the request type.- Parameters:
type- The request type
-
builder
Creates a new builder instance for constructing VerificationRequest objects.- Returns:
- A new Builder instance
-
toString
-
equals
-
hashCode
public int hashCode()
-