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
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
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
@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
@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
@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
@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
@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
@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
@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
@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
@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
@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
@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
@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
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
@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
@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
@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
@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
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
@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
@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
@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
@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
@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
@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