Class VerificationEvent
- java.lang.Object
-
- com.sinch.sdk.domains.verification.models.webhooks.VerificationEvent
-
- Direct Known Subclasses:
VerificationRequestEvent,VerificationResultEvent
public class VerificationEvent extends Object
Base class for received Verification Events onto webhooks callback
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>getCustom()A custom string that can be provided during a verification requestStringgetEvent()The type of the eventVerificationIdgetId()The ID of the verification request.IdentitygetIdentity()Specifies the type of endpoint that will be verified and the particular endpoint.VerificationMethodTypegetMethod()The verification methodOptional<VerificationReference>getReference()The reference that was optionally passed together with the verification requestStringtoString()
-
-
-
Method Detail
-
getId
public VerificationId getId()
The ID of the verification request.- Returns:
- Id value
- Since:
- 1.0
-
getEvent
public String getEvent()
The type of the event- Returns:
- event value
- Since:
- 1.0
-
getMethod
public VerificationMethodType getMethod()
The verification method- Returns:
- The method value
- Since:
- 1.0
-
getIdentity
public Identity getIdentity()
Specifies the type of endpoint that will be verified and the particular endpoint.NumberIdentityis currently the only supported endpoint type- Returns:
- identity
- Since:
- 1.0
-
getReference
public Optional<VerificationReference> getReference()
The reference that was optionally passed together with the verification request- Returns:
- Reference value
- Since:
- 1.0
-
getCustom
public Optional<String> getCustom()
A custom string that can be provided during a verification request- Returns:
- The custom value
- Since:
- 1.0
-
-