class Twilio::REST::Verify::V2::ServiceContext::VerificationCheckInstance

Public Class Methods

new(version, payload, service_sid: nil) click to toggle source

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

Calls superclass method 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

account_sid() click to toggle source

@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
amount() click to toggle source

@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
channel() click to toggle source

@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
date_created() click to toggle source

@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
date_updated() click to toggle source

@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
inspect() click to toggle source

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
payee() click to toggle source

@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
service_sid() click to toggle source

@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
sid() click to toggle source

@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
status() click to toggle source

@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
to() click to toggle source

@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
to_s() click to toggle source

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
valid() click to toggle source

@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