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;
import com.sinch.sdk.domains.verification.models.v1.report.request.VerificationReportRequestFlashCall;
import com.sinch.sdk.domains.verification.models.v1.report.request.VerificationReportRequestPhoneCall;
import com.sinch.sdk.domains.verification.models.v1.report.request.VerificationReportRequestSms;
import com.sinch.sdk.domains.verification.models.v1.start.request.VerificationStartRequestData;
import com.sinch.sdk.domains.verification.models.v1.start.request.VerificationStartRequestFlashCall;
import com.sinch.sdk.domains.verification.models.v1.start.request.VerificationStartRequestPhoneCall;
import com.sinch.sdk.domains.verification.models.v1.start.request.VerificationStartRequestSms;
/**
* 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.
*
* @apiNote This version is no longer updated, to get updates use V1 version: {@link
* com.sinch.sdk.domains.verification.api.v1.VerificationStartService#startSms(VerificationStartRequestSms)}
* @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.
*
* @apiNote This version is no longer updated, to get updates use V1 version: {@link
* com.sinch.sdk.domains.verification.api.v1.VerificationStartService#startFlashCall(VerificationStartRequestFlashCall)}
* @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.
*
* @apiNote This version is no longer updated, to get updates use V1 version: {@link
* com.sinch.sdk.domains.verification.api.v1.VerificationStartService#startPhoneCall(VerificationStartRequestPhoneCall)}
* @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.
*
* @apiNote This version is no longer updated, to get updates use V1 version: {@link
* com.sinch.sdk.domains.verification.api.v1.VerificationStartService#startData(VerificationStartRequestData)}
* @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
*
* @apiNote This version is no longer updated, to get updates use V1 version: {@link
* com.sinch.sdk.domains.verification.api.v1.VerificationReportService#reportSmsByIdentity(com.sinch.sdk.domains.verification.models.v1.NumberIdentity,
* VerificationReportRequestSms)}
* @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
*
* @apiNote This version is no longer updated, to get updates use V1 version: {@link
* com.sinch.sdk.domains.verification.api.v1.VerificationReportService#reportFlashCallByIdentity(com.sinch.sdk.domains.verification.models.v1.NumberIdentity,
* VerificationReportRequestFlashCall)}
* @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
*
* @apiNote This version is no longer updated, to get updates use V1 version: {@link
* com.sinch.sdk.domains.verification.api.v1.VerificationReportService#reportPhoneCallByIdentity(com.sinch.sdk.domains.verification.models.v1.NumberIdentity,
* VerificationReportRequestPhoneCall)}
* @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
*
* @apiNote This version is no longer updated, to get updates use V1 version: {@link
* com.sinch.sdk.domains.verification.api.v1.VerificationReportService#reportSmsById(String,
* VerificationReportRequestSms)}
* @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
*
* @apiNote This version is no longer updated, to get updates use V1 version: {@link
* com.sinch.sdk.domains.verification.api.v1.VerificationReportService#reportFlashCallById(String,
* VerificationReportRequestFlashCall)}
* @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
*
* @apiNote This version is no longer updated, to get updates use V1 version: {@link
* com.sinch.sdk.domains.verification.api.v1.VerificationReportService#reportPhoneCallById(String,
* VerificationReportRequestPhoneCall)}
* @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);
}