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 classVerification.Channelstatic classVerification.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VerificationCreatorcreator(String pathServiceSid, String to, String channel)booleanequals(Object o)static VerificationFetcherfetcher(String pathServiceSid, String pathSid)static VerificationfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Verification object using the provided ObjectMapper.static VerificationfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Verification object using the provided ObjectMapper.StringgetAccountSid()StringgetAmount()Verification.ChannelgetChannel()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()Map<String,Object>getLookup()StringgetPayee()List<Map<String,Object>>getSendCodeAttempts()StringgetServiceSid()StringgetSid()Map<String,Object>getSna()StringgetStatus()StringgetTo()URIgetUrl()BooleangetValid()inthashCode()static VerificationUpdaterupdater(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()
-
-