class Twilio::REST::Preview::HostedNumbers::AuthorizationDocumentContext::DependentHostedNumberOrderInstance

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

Public Class Methods

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

Initialize the DependentHostedNumberOrderInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] signing_document_sid A 34 character string that uniquely

identifies the LOA document associated with this HostedNumberOrder.

@return [DependentHostedNumberOrderInstance] DependentHostedNumberOrderInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
225 def initialize(version, payload, signing_document_sid: nil)
226   super(version)
227 
228   # Marshaled Properties
229   @properties = {
230       'sid' => payload['sid'],
231       'account_sid' => payload['account_sid'],
232       'incoming_phone_number_sid' => payload['incoming_phone_number_sid'],
233       'address_sid' => payload['address_sid'],
234       'signing_document_sid' => payload['signing_document_sid'],
235       'phone_number' => payload['phone_number'],
236       'capabilities' => payload['capabilities'],
237       'friendly_name' => payload['friendly_name'],
238       'unique_name' => payload['unique_name'],
239       'status' => payload['status'],
240       'failure_reason' => payload['failure_reason'],
241       'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
242       'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
243       'verification_attempts' => payload['verification_attempts'].to_i,
244       'email' => payload['email'],
245       'cc_emails' => payload['cc_emails'],
246       'verification_type' => payload['verification_type'],
247       'verification_document_sid' => payload['verification_document_sid'],
248       'extension' => payload['extension'],
249       'call_delay' => payload['call_delay'].to_i,
250       'verification_code' => payload['verification_code'],
251       'verification_call_sids' => payload['verification_call_sids'],
252   }
253 end

Public Instance Methods

account_sid() click to toggle source

@return [String] Account sid.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
263 def account_sid
264   @properties['account_sid']
265 end
address_sid() click to toggle source

@return [String] Address sid.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
275 def address_sid
276   @properties['address_sid']
277 end
call_delay() click to toggle source

@return [String] Seconds (0-30) to delay ownership verification call by.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
371 def call_delay
372   @properties['call_delay']
373 end
capabilities() click to toggle source

@return [String] A mapping of phone number capabilities.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
293 def capabilities
294   @properties['capabilities']
295 end
cc_emails() click to toggle source

@return [Array] A list of emails.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
347 def cc_emails
348   @properties['cc_emails']
349 end
date_created() click to toggle source

@return [Time] The date this HostedNumberOrder was created.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
323 def date_created
324   @properties['date_created']
325 end
date_updated() click to toggle source

@return [Time] The date this HostedNumberOrder was updated.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
329 def date_updated
330   @properties['date_updated']
331 end
email() click to toggle source

@return [String] Email.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
341 def email
342   @properties['email']
343 end
extension() click to toggle source

@return [String] Phone extension to use for ownership verification call.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
365 def extension
366   @properties['extension']
367 end
failure_reason() click to toggle source

@return [String] Why a hosted_number_order reached status “action-required”

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
317 def failure_reason
318   @properties['failure_reason']
319 end
friendly_name() click to toggle source

@return [String] A human readable description of this resource.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
299 def friendly_name
300   @properties['friendly_name']
301 end
incoming_phone_number_sid() click to toggle source

@return [String] IncomingPhoneNumber sid.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
269 def incoming_phone_number_sid
270   @properties['incoming_phone_number_sid']
271 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
395 def inspect
396   "<Twilio.Preview.HostedNumbers.DependentHostedNumberOrderInstance>"
397 end
phone_number() click to toggle source

@return [String] An E164 formatted phone number.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
287 def phone_number
288   @properties['phone_number']
289 end
sid() click to toggle source

@return [String] HostedNumberOrder sid.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
257 def sid
258   @properties['sid']
259 end
signing_document_sid() click to toggle source

@return [String] LOA document sid.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
281 def signing_document_sid
282   @properties['signing_document_sid']
283 end
status() click to toggle source

@return [dependent_hosted_number_order.Status] The Status of this HostedNumberOrder.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
311 def status
312   @properties['status']
313 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
389 def to_s
390   "<Twilio.Preview.HostedNumbers.DependentHostedNumberOrderInstance>"
391 end
unique_name() click to toggle source

@return [String] A unique, developer assigned name of this HostedNumberOrder.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
305 def unique_name
306   @properties['unique_name']
307 end
verification_attempts() click to toggle source

@return [String] The number of attempts made to verify ownership of the phone number.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
335 def verification_attempts
336   @properties['verification_attempts']
337 end
verification_call_sids() click to toggle source

@return [Array] List of IDs for ownership verification calls.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
383 def verification_call_sids
384   @properties['verification_call_sids']
385 end
verification_code() click to toggle source

@return [String] The digits passed during the ownership verification call.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
377 def verification_code
378   @properties['verification_code']
379 end
verification_document_sid() click to toggle source

@return [String] Verification Document Sid.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
359 def verification_document_sid
360   @properties['verification_document_sid']
361 end
verification_type() click to toggle source

@return [dependent_hosted_number_order.VerificationType] The method used for verifying ownership of the number to be hosted.

    # File lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
353 def verification_type
354   @properties['verification_type']
355 end