Package so.prelude.sdk.services.async
Interface VerificationServiceAsync
-
- All Implemented Interfaces:
public interface VerificationServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
VerificationServiceAsync.WithRawResponse
A view of VerificationServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract VerificationServiceAsync.WithRawResponse
withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method. abstract VerificationServiceAsync
withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied. CompletableFuture<VerificationCreateResponse>
create(VerificationCreateParams params)
Create a new verification for a specific phone number. abstract CompletableFuture<VerificationCreateResponse>
create(VerificationCreateParams params, RequestOptions requestOptions)
CompletableFuture<VerificationCheckResponse>
check(VerificationCheckParams params)
Check the validity of a verification code. abstract CompletableFuture<VerificationCheckResponse>
check(VerificationCheckParams params, RequestOptions requestOptions)
-
-
Method Detail
-
withRawResponse
abstract VerificationServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract VerificationServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
CompletableFuture<VerificationCreateResponse> create(VerificationCreateParams params)
Create a new verification for a specific phone number. If another non-expired verification exists (the request is performed within the verification window), this endpoint will perform a retry instead.
-
create
abstract CompletableFuture<VerificationCreateResponse> create(VerificationCreateParams params, RequestOptions requestOptions)
-
check
CompletableFuture<VerificationCheckResponse> check(VerificationCheckParams params)
Check the validity of a verification code.
-
check
abstract CompletableFuture<VerificationCheckResponse> check(VerificationCheckParams params, RequestOptions requestOptions)
-
-
-
-