com.sinch.sdk.domains.verification.VerificationsService Maven / Gradle / Ivy
Show all versions of sinch-sdk-java Show documentation
package com.sinch.sdk.domains.verification;
import com.sinch.sdk.domains.verification.models.NumberIdentity;
import com.sinch.sdk.domains.verification.models.VerificationId;
import com.sinch.sdk.domains.verification.models.VerificationReportCallout;
import com.sinch.sdk.domains.verification.models.VerificationReportFlashCall;
import com.sinch.sdk.domains.verification.models.VerificationReportSMS;
import com.sinch.sdk.domains.verification.models.requests.StartVerificationCalloutRequestParameters;
import com.sinch.sdk.domains.verification.models.requests.StartVerificationFlashCallRequestParameters;
import com.sinch.sdk.domains.verification.models.requests.StartVerificationSMSRequestParameters;
import com.sinch.sdk.domains.verification.models.requests.StartVerificationSeamlessRequestParameters;
import com.sinch.sdk.domains.verification.models.requests.VerificationReportCalloutRequestParameters;
import com.sinch.sdk.domains.verification.models.requests.VerificationReportFlashCallRequestParameters;
import com.sinch.sdk.domains.verification.models.requests.VerificationReportSMSRequestParameters;
import com.sinch.sdk.domains.verification.models.response.StartVerificationResponseCallout;
import com.sinch.sdk.domains.verification.models.response.StartVerificationResponseFlashCall;
import com.sinch.sdk.domains.verification.models.response.StartVerificationResponseSMS;
import com.sinch.sdk.domains.verification.models.response.StartVerificationResponseSeamless;
/**
* Verifications Service
*
* Start new verification requests and report on existing verification requests.
*
* @see https://developers.sinch.com/docs/verification/api-reference/verification/tag/Verifications
* @since 1.0
*/
public interface VerificationsService {
/**
* Start verification by {@link
* com.sinch.sdk.domains.verification.models.VerificationMethodType#SMS SMS}
*
*
This method is used by the mobile and web Verification SDKs to start a verification. It can
* also be used to request a verification from your backend, by making a request.
*
* @param parameters Parameters to be used to start verification
* @return Verification response
* @since 1.0
*/
StartVerificationResponseSMS startSms(StartVerificationSMSRequestParameters parameters);
/**
* Start verification by {@link
* com.sinch.sdk.domains.verification.models.VerificationMethodType#FLASH_CALL FLASH_CALL}
*
*
This method is used by the mobile and web Verification SDKs to start a verification. It can
* also be used to request a verification from your backend, by making a request.
*
* @param parameters Parameters to be used to start verification
* @return Verification response
* @since 1.0
*/
StartVerificationResponseFlashCall startFlashCall(
StartVerificationFlashCallRequestParameters parameters);
/**
* Start verification by {@link
* com.sinch.sdk.domains.verification.models.VerificationMethodType#CALLOUT CALLOUT}
*
*
This method is used by the mobile and web Verification SDKs to start a verification. It can
* also be used to request a verification from your backend, by making a request.
*
* @param parameters Parameters to be used to start verification
* @return Verification response
* @since 1.0
*/
StartVerificationResponseCallout startCallout(
StartVerificationCalloutRequestParameters parameters);
/**
* Start verification by {@link
* com.sinch.sdk.domains.verification.models.VerificationMethodType#SEAMLESS SEAMLESS}
*
*
This method is used by the mobile and web Verification SDKs to start a verification. It can
* also be used to request a verification from your backend, by making a request.
*
* @param parameters Parameters to be used to start verification
* @return Verification response
* @since 1.0
*/
StartVerificationResponseSeamless startSeamless(
StartVerificationSeamlessRequestParameters parameters);
/**
* Report a verification using {@link
* com.sinch.sdk.domains.verification.models.VerificationMethodType#SMS SMS} & Identity
*
*
Report the received verification code to verify it, using the identity of the user
*
* @param identity Currently Only {@link
* com.sinch.sdk.domains.verification.models.NumberIdentity NumberIdentity} is supported
* @param parameters Parameters to be used to get report
* @return Verification report response
* @since 1.0
*/
VerificationReportSMS reportSmsByIdentity(
NumberIdentity identity, VerificationReportSMSRequestParameters parameters);
/**
* Report a verification using {@link
* com.sinch.sdk.domains.verification.models.VerificationMethodType#FLASH_CALL FLASH_CALL} &
* Identity
*
*
Report the received verification code to verify it, using the identity of the user
*
* @param identity Currently Only {@link
* com.sinch.sdk.domains.verification.models.NumberIdentity NumberIdentity} is supported
* @param parameters Parameters to be used to get report
* @return Verification report response
* @since 1.0
*/
VerificationReportFlashCall reportFlashCallByIdentity(
NumberIdentity identity, VerificationReportFlashCallRequestParameters parameters);
/**
* Report a verification using {@link
* com.sinch.sdk.domains.verification.models.VerificationMethodType#CALLOUT CALLOUT} &
* Identity
*
*
Report the received verification code to verify it, using the identity of the user
*
* @param identity Currently Only {@link
* com.sinch.sdk.domains.verification.models.NumberIdentity NumberIdentity} is supported
* @param parameters Parameters to be used to get report
* @return Verification report response
* @since 1.0
*/
VerificationReportCallout reportCalloutByIdentity(
NumberIdentity identity, VerificationReportCalloutRequestParameters parameters);
/**
* Report the received verification code to verify it, using the Verification ID of the {@link
* com.sinch.sdk.domains.verification.models.VerificationMethodType#SMS SMS} Verification request
*
* @param id ID returned from start verification
* @param parameters Parameters to be used to get report
* @return Verification report response
* @since 1.0
*/
VerificationReportSMS reportSmsById(
VerificationId id, VerificationReportSMSRequestParameters parameters);
/**
* Report the received verification code to verify it, using the Verification ID of the {@link
* com.sinch.sdk.domains.verification.models.VerificationMethodType#FLASH_CALL FLASH_CALL}
* Verification request
*
* @param id ID returned from start verification
* @param parameters Parameters to be used to get report
* @return Verification report response
* @since 1.0
*/
VerificationReportFlashCall reportFlashCallById(
VerificationId id, VerificationReportFlashCallRequestParameters parameters);
/**
* Report the received verification code to verify it, using the Verification ID of the {@link
* com.sinch.sdk.domains.verification.models.VerificationMethodType#CALLOUT CALLOUT} Verification
* request
*
* @param id ID returned from start verification
* @param parameters Parameters to be used to get report
* @return Verification report response
* @since 1.0
*/
VerificationReportCallout reportCalloutById(
VerificationId id, VerificationReportCalloutRequestParameters parameters);
}