Class: Twilio::REST::Numbers::V1::PortingPortInInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Numbers::V1::PortingPortInInstance
- Defined in:
- lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
Account Sid or subaccount where the phone number(s) will be Ported.
-
#auto_cancel_approval_numbers ⇒ String
Japan specific field, indicates the number of phone numbers to automatically approve for cancellation.
-
#bundle_sid ⇒ String
The bundle sid is an optional identifier to reference a group of regulatory documents for a port request.
-
#context ⇒ PortingPortInContext
Generate an instance context for the instance, the context is capable of performing various actions.
- #date_created ⇒ Time
-
#delete ⇒ Boolean
Delete the PortingPortInInstance.
-
#documents ⇒ Array<String>
List of document SIDs for all phone numbers included in the port in request.
-
#fetch ⇒ PortingPortInInstance
Fetch the PortingPortInInstance.
-
#initialize(version, payload, port_in_request_sid: nil) ⇒ PortingPortInInstance
constructor
Initialize the PortingPortInInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
- #losing_carrier_information ⇒ NumbersV1PortingLosingCarrierInformation
-
#notification_emails ⇒ Array<String>
Additional emails to send a copy of the signed LOA to.
-
#order_cancellation_reason ⇒ String
If the order is cancelled this field will provide further context on the cause of the cancellation.
- #phone_numbers ⇒ Array<NumbersV1PortingPortInPhoneNumberResult>
-
#port_in_request_sid ⇒ String
The SID of the Port In request.
-
#port_in_request_status ⇒ String
The status of the port in request.
-
#portability_advance_carrier ⇒ String
A field only required for Japan port in requests.
- #signature_request_url ⇒ String
-
#support_ticket_id ⇒ String
Unique ID of the request’s support ticket.
-
#target_port_in_date ⇒ Date
Target date to port the number.
-
#target_port_in_time_range_end ⇒ String
The latest time that the port should occur on the target port in date.
-
#target_port_in_time_range_start ⇒ String
The earliest time that the port should occur on the target port in date.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#url ⇒ String
The URL of this Port In request.
Constructor Details
#initialize(version, payload, port_in_request_sid: nil) ⇒ PortingPortInInstance
Initialize the PortingPortInInstance
432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 432 def initialize(version, payload , port_in_request_sid: nil) super(version) # Marshaled Properties @properties = { 'port_in_request_sid' => payload['port_in_request_sid'], 'url' => payload['url'], 'account_sid' => payload['account_sid'], 'notification_emails' => payload['notification_emails'], 'target_port_in_date' => Twilio.deserialize_iso8601_date(payload['target_port_in_date']), 'target_port_in_time_range_start' => payload['target_port_in_time_range_start'], 'target_port_in_time_range_end' => payload['target_port_in_time_range_end'], 'port_in_request_status' => payload['port_in_request_status'], 'order_cancellation_reason' => payload['order_cancellation_reason'], 'losing_carrier_information' => payload['losing_carrier_information'], 'phone_numbers' => payload['phone_numbers'], 'bundle_sid' => payload['bundle_sid'], 'portability_advance_carrier' => payload['portability_advance_carrier'], 'auto_cancel_approval_numbers' => payload['auto_cancel_approval_numbers'], 'documents' => payload['documents'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'support_ticket_id' => payload['support_ticket_id'] == nil ? payload['support_ticket_id'] : payload['support_ticket_id'].to_i, 'signature_request_url' => payload['signature_request_url'], } # Context @instance_context = nil @params = { 'port_in_request_sid' => port_in_request_sid || @properties['port_in_request_sid'] , } end |
Instance Method Details
#account_sid ⇒ String
488 489 490 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 488 def account_sid @properties['account_sid'] end |
#auto_cancel_approval_numbers ⇒ String
554 555 556 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 554 def auto_cancel_approval_numbers @properties['auto_cancel_approval_numbers'] end |
#bundle_sid ⇒ String
542 543 544 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 542 def bundle_sid @properties['bundle_sid'] end |
#context ⇒ PortingPortInContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
467 468 469 470 471 472 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 467 def context unless @instance_context @instance_context = PortingPortInContext.new(@version , @params['port_in_request_sid']) end @instance_context end |
#date_created ⇒ Time
566 567 568 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 566 def date_created @properties['date_created'] end |
#delete ⇒ Boolean
Delete the PortingPortInInstance
585 586 587 588 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 585 def delete context.delete end |
#documents ⇒ Array<String>
560 561 562 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 560 def documents @properties['documents'] end |
#fetch ⇒ PortingPortInInstance
Fetch the PortingPortInInstance
593 594 595 596 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 593 def fetch context.fetch end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
607 608 609 610 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 607 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Numbers.V1.PortingPortInInstance #{values}>" end |
#losing_carrier_information ⇒ NumbersV1PortingLosingCarrierInformation
530 531 532 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 530 def losing_carrier_information @properties['losing_carrier_information'] end |
#notification_emails ⇒ Array<String>
494 495 496 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 494 def notification_emails @properties['notification_emails'] end |
#order_cancellation_reason ⇒ String
524 525 526 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 524 def order_cancellation_reason @properties['order_cancellation_reason'] end |
#phone_numbers ⇒ Array<NumbersV1PortingPortInPhoneNumberResult>
536 537 538 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 536 def phone_numbers @properties['phone_numbers'] end |
#port_in_request_sid ⇒ String
476 477 478 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 476 def port_in_request_sid @properties['port_in_request_sid'] end |
#port_in_request_status ⇒ String
518 519 520 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 518 def port_in_request_status @properties['port_in_request_status'] end |
#portability_advance_carrier ⇒ String
548 549 550 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 548 def portability_advance_carrier @properties['portability_advance_carrier'] end |
#signature_request_url ⇒ String
578 579 580 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 578 def signature_request_url @properties['signature_request_url'] end |
#support_ticket_id ⇒ String
572 573 574 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 572 def support_ticket_id @properties['support_ticket_id'] end |
#target_port_in_date ⇒ Date
500 501 502 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 500 def target_port_in_date @properties['target_port_in_date'] end |
#target_port_in_time_range_end ⇒ String
512 513 514 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 512 def target_port_in_time_range_end @properties['target_port_in_time_range_end'] end |
#target_port_in_time_range_start ⇒ String
506 507 508 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 506 def target_port_in_time_range_start @properties['target_port_in_time_range_start'] end |
#to_s ⇒ Object
Provide a user friendly representation
600 601 602 603 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 600 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Numbers.V1.PortingPortInInstance #{values}>" end |
#url ⇒ String
482 483 484 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 482 def url @properties['url'] end |