Class Verification
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.verify.v2.service.Verification
-
- All Implemented Interfaces:
Serializable
public class Verification extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Verification.Channel
static class
Verification.RiskCheck
static class
Verification.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VerificationCreator
creator(String pathServiceSid, String to, String channel)
boolean
equals(Object o)
static VerificationFetcher
fetcher(String pathServiceSid, String pathSid)
static Verification
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Verification object using the provided ObjectMapper.static Verification
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Verification object using the provided ObjectMapper.String
getAccountSid()
String
getAmount()
Verification.Channel
getChannel()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
Map<String,Object>
getLookup()
String
getPayee()
List<Map<String,Object>>
getSendCodeAttempts()
String
getServiceSid()
String
getSid()
Map<String,Object>
getSna()
String
getStatus()
String
getTo()
URI
getUrl()
Boolean
getValid()
int
hashCode()
static VerificationUpdater
updater(String pathServiceSid, String pathSid, Verification.Status status)
-
-
-
Method Detail
-
creator
public static VerificationCreator creator(String pathServiceSid, String to, String channel)
-
fetcher
public static VerificationFetcher fetcher(String pathServiceSid, String pathSid)
-
updater
public static VerificationUpdater updater(String pathServiceSid, String pathSid, Verification.Status status)
-
fromJson
public static Verification fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Verification object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Verification object represented by the provided JSON
-
fromJson
public static Verification fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Verification object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Verification object represented by the provided JSON
-
getSid
public final String getSid()
-
getServiceSid
public final String getServiceSid()
-
getAccountSid
public final String getAccountSid()
-
getTo
public final String getTo()
-
getChannel
public final Verification.Channel getChannel()
-
getStatus
public final String getStatus()
-
getValid
public final Boolean getValid()
-
getAmount
public final String getAmount()
-
getPayee
public final String getPayee()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-