class Twilio::REST::Verify::V2::ServiceContext::VerificationCheckInstance
Public Class Methods
Initialize the VerificationCheckInstance
@param [Version] version Version
that contains the resource @param [Hash] payload payload that contains response from Twilio
@param [String] service_sid
The SID of the
{Service}[https://www.twilio.com/docs/verify/api/service] the resource is associated with.
@return [VerificationCheckInstance] VerificationCheckInstance
Twilio::REST::InstanceResource::new
# File lib/twilio-ruby/rest/verify/v2/service/verification_check.rb 104 def initialize(version, payload, service_sid: nil) 105 super(version) 106 107 # Marshaled Properties 108 @properties = { 109 'sid' => payload['sid'], 110 'service_sid' => payload['service_sid'], 111 'account_sid' => payload['account_sid'], 112 'to' => payload['to'], 113 'channel' => payload['channel'], 114 'status' => payload['status'], 115 'valid' => payload['valid'], 116 'amount' => payload['amount'], 117 'payee' => payload['payee'], 118 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 119 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), 120 } 121 end
Public Instance Methods
@return [String] The SID of the Account that created the resource
# File lib/twilio-ruby/rest/verify/v2/service/verification_check.rb 137 def account_sid 138 @properties['account_sid'] 139 end
@return [String] The amount of the associated PSD2 compliant transaction.
# File lib/twilio-ruby/rest/verify/v2/service/verification_check.rb 167 def amount 168 @properties['amount'] 169 end
@return [verification_check.Channel] The verification method to use
# File lib/twilio-ruby/rest/verify/v2/service/verification_check.rb 149 def channel 150 @properties['channel'] 151 end
@return [Time] The ISO 8601 date and time in GMT when the Verification Check resource was created
# File lib/twilio-ruby/rest/verify/v2/service/verification_check.rb 179 def date_created 180 @properties['date_created'] 181 end
@return [Time] The ISO 8601 date and time in GMT when the Verification Check resource was last updated
# File lib/twilio-ruby/rest/verify/v2/service/verification_check.rb 185 def date_updated 186 @properties['date_updated'] 187 end
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/verify/v2/service/verification_check.rb 197 def inspect 198 "<Twilio.Verify.V2.VerificationCheckInstance>" 199 end
@return [String] The payee of the associated PSD2 compliant transaction
# File lib/twilio-ruby/rest/verify/v2/service/verification_check.rb 173 def payee 174 @properties['payee'] 175 end
@return [String] The SID of the Service that the resource is associated with
# File lib/twilio-ruby/rest/verify/v2/service/verification_check.rb 131 def service_sid 132 @properties['service_sid'] 133 end
@return [String] The unique string that identifies the resource
# File lib/twilio-ruby/rest/verify/v2/service/verification_check.rb 125 def sid 126 @properties['sid'] 127 end
@return [String] The status of the verification resource
# File lib/twilio-ruby/rest/verify/v2/service/verification_check.rb 155 def status 156 @properties['status'] 157 end
@return [String] The phone number or email being verified
# File lib/twilio-ruby/rest/verify/v2/service/verification_check.rb 143 def to 144 @properties['to'] 145 end
Provide a user friendly representation
# File lib/twilio-ruby/rest/verify/v2/service/verification_check.rb 191 def to_s 192 "<Twilio.Verify.V2.VerificationCheckInstance>" 193 end
@return [Boolean] Whether the verification was successful
# File lib/twilio-ruby/rest/verify/v2/service/verification_check.rb 161 def valid 162 @properties['valid'] 163 end