Package tech.checkhim.models
Class VerificationRequest.Builder
java.lang.Object
tech.checkhim.models.VerificationRequest.Builder
- Enclosing class:
- VerificationRequest
Builder class for constructing VerificationRequest instances with a fluent API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns a new VerificationRequest instance.Sets the phone number to be verified.Sets the request type (internal use only).
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
number
Sets the phone number to be verified.- Parameters:
number- The phone number in international format (e.g., +5511984339000)- Returns:
- This builder instance for method chaining
-
type
Sets the request type (internal use only).- Parameters:
type- The request type- Returns:
- This builder instance for method chaining
-
build
Builds and returns a new VerificationRequest instance.- Returns:
- A new VerificationRequest with the configured parameters
- Throws:
IllegalArgumentException- if required fields are not set
-