Class: Twilio::REST::Messaging::V1::TollfreeVerificationInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Messaging::V1::TollfreeVerificationInstance
- Defined in:
- lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Tollfree Verification resource.
-
#additional_information ⇒ String
Additional information to be provided for verification.
-
#business_city ⇒ String
The city of the business or organization using the Tollfree number.
-
#business_contact_email ⇒ String
The email address of the contact for the business or organization using the Tollfree number.
-
#business_contact_first_name ⇒ String
The first name of the contact for the business or organization using the Tollfree number.
-
#business_contact_last_name ⇒ String
The last name of the contact for the business or organization using the Tollfree number.
-
#business_contact_phone ⇒ String
The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
-
#business_country ⇒ String
The country of the business or organization using the Tollfree number.
-
#business_name ⇒ String
The name of the business or organization using the Tollfree number.
-
#business_postal_code ⇒ String
The postal code of the business or organization using the Tollfree number.
-
#business_state_province_region ⇒ String
The state/province/region of the business or organization using the Tollfree number.
-
#business_street_address ⇒ String
The address of the business or organization using the Tollfree number.
-
#business_street_address2 ⇒ String
The address of the business or organization using the Tollfree number.
-
#business_website ⇒ String
The website of the business or organization using the Tollfree number.
-
#context ⇒ TollfreeVerificationContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#customer_profile_sid ⇒ String
Customer’s Profile Bundle BundleSid.
-
#date_created ⇒ Time
The date and time in GMT when the resource was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
-
#date_updated ⇒ Time
The date and time in GMT when the resource was last updated specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
-
#delete ⇒ Boolean
Delete the TollfreeVerificationInstance.
-
#edit_allowed ⇒ Boolean
If a rejected verification is allowed to be edited/resubmitted.
-
#edit_expiration ⇒ Time
The date and time when the ability to edit a rejected verification expires.
-
#error_code ⇒ String
The error code given when a Tollfree Verification has been rejected.
-
#external_reference_id ⇒ String
An optional external reference ID supplied by customer and echoed back on status retrieval.
-
#fetch ⇒ TollfreeVerificationInstance
Fetch the TollfreeVerificationInstance.
-
#initialize(version, payload, sid: nil) ⇒ TollfreeVerificationInstance
constructor
Initialize the TollfreeVerificationInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#message_volume ⇒ String
Estimate monthly volume of messages from the Tollfree Number.
-
#notification_email ⇒ String
The email address to receive the notification about the verification result.
-
#opt_in_image_urls ⇒ Array<String>
Link to an image that shows the opt-in workflow.
- #opt_in_type ⇒ OptInType
-
#production_message_sample ⇒ String
An example of message content, i.e.
-
#regulated_item_sid ⇒ String
The SID of the Regulated Item.
-
#rejection_reason ⇒ String
The rejection reason given when a Tollfree Verification has been rejected.
-
#rejection_reasons ⇒ Array<Hash>
A list of rejection reasons and codes describing why a Tollfree Verification has been rejected.
-
#resource_links ⇒ Hash
The URLs of the documents associated with the Tollfree Verification resource.
-
#sid ⇒ String
The unique string to identify Tollfree Verification.
- #status ⇒ Status
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#tollfree_phone_number_sid ⇒ String
The SID of the Phone Number associated with the Tollfree Verification.
-
#trust_product_sid ⇒ String
Tollfree TrustProduct Bundle BundleSid.
-
#update(business_name: :unset, business_website: :unset, notification_email: :unset, use_case_categories: :unset, use_case_summary: :unset, production_message_sample: :unset, opt_in_image_urls: :unset, opt_in_type: :unset, message_volume: :unset, business_street_address: :unset, business_street_address2: :unset, business_city: :unset, business_state_province_region: :unset, business_postal_code: :unset, business_country: :unset, additional_information: :unset, business_contact_first_name: :unset, business_contact_last_name: :unset, business_contact_email: :unset, business_contact_phone: :unset, edit_reason: :unset) ⇒ TollfreeVerificationInstance
Update the TollfreeVerificationInstance.
-
#url ⇒ String
The absolute URL of the Tollfree Verification resource.
-
#use_case_categories ⇒ Array<String>
The category of the use case for the Tollfree Number.
-
#use_case_summary ⇒ String
Use this to further explain how messaging is used by the business or organization.
Constructor Details
#initialize(version, payload, sid: nil) ⇒ TollfreeVerificationInstance
Initialize the TollfreeVerificationInstance
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 398 def initialize(version, payload , sid: nil) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'account_sid' => payload['account_sid'], 'customer_profile_sid' => payload['customer_profile_sid'], 'trust_product_sid' => payload['trust_product_sid'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), 'regulated_item_sid' => payload['regulated_item_sid'], 'business_name' => payload['business_name'], 'business_street_address' => payload['business_street_address'], 'business_street_address2' => payload['business_street_address2'], 'business_city' => payload['business_city'], 'business_state_province_region' => payload['business_state_province_region'], 'business_postal_code' => payload['business_postal_code'], 'business_country' => payload['business_country'], 'business_website' => payload['business_website'], 'business_contact_first_name' => payload['business_contact_first_name'], 'business_contact_last_name' => payload['business_contact_last_name'], 'business_contact_email' => payload['business_contact_email'], 'business_contact_phone' => payload['business_contact_phone'], 'notification_email' => payload['notification_email'], 'use_case_categories' => payload['use_case_categories'], 'use_case_summary' => payload['use_case_summary'], 'production_message_sample' => payload['production_message_sample'], 'opt_in_image_urls' => payload['opt_in_image_urls'], 'opt_in_type' => payload['opt_in_type'], 'message_volume' => payload['message_volume'], 'additional_information' => payload['additional_information'], 'tollfree_phone_number_sid' => payload['tollfree_phone_number_sid'], 'status' => payload['status'], 'url' => payload['url'], 'rejection_reason' => payload['rejection_reason'], 'error_code' => payload['error_code'] == nil ? payload['error_code'] : payload['error_code'].to_i, 'edit_expiration' => Twilio.deserialize_iso8601_datetime(payload['edit_expiration']), 'edit_allowed' => payload['edit_allowed'], 'rejection_reasons' => payload['rejection_reasons'], 'resource_links' => payload['resource_links'], 'external_reference_id' => payload['external_reference_id'], } # Context @instance_context = nil @params = { 'sid' => sid || @properties['sid'] , } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Tollfree Verification resource.
466 467 468 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 466 def account_sid @properties['account_sid'] end |
#additional_information ⇒ String
Returns Additional information to be provided for verification.
616 617 618 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 616 def additional_information @properties['additional_information'] end |
#business_city ⇒ String
Returns The city of the business or organization using the Tollfree number.
520 521 522 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 520 def business_city @properties['business_city'] end |
#business_contact_email ⇒ String
Returns The email address of the contact for the business or organization using the Tollfree number.
562 563 564 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 562 def business_contact_email @properties['business_contact_email'] end |
#business_contact_first_name ⇒ String
Returns The first name of the contact for the business or organization using the Tollfree number.
550 551 552 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 550 def business_contact_first_name @properties['business_contact_first_name'] end |
#business_contact_last_name ⇒ String
Returns The last name of the contact for the business or organization using the Tollfree number.
556 557 558 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 556 def business_contact_last_name @properties['business_contact_last_name'] end |
#business_contact_phone ⇒ String
Returns The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
568 569 570 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 568 def business_contact_phone @properties['business_contact_phone'] end |
#business_country ⇒ String
Returns The country of the business or organization using the Tollfree number.
538 539 540 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 538 def business_country @properties['business_country'] end |
#business_name ⇒ String
Returns The name of the business or organization using the Tollfree number.
502 503 504 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 502 def business_name @properties['business_name'] end |
#business_postal_code ⇒ String
Returns The postal code of the business or organization using the Tollfree number.
532 533 534 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 532 def business_postal_code @properties['business_postal_code'] end |
#business_state_province_region ⇒ String
Returns The state/province/region of the business or organization using the Tollfree number.
526 527 528 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 526 def business_state_province_region @properties['business_state_province_region'] end |
#business_street_address ⇒ String
Returns The address of the business or organization using the Tollfree number.
508 509 510 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 508 def business_street_address @properties['business_street_address'] end |
#business_street_address2 ⇒ String
Returns The address of the business or organization using the Tollfree number.
514 515 516 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 514 def business_street_address2 @properties['business_street_address2'] end |
#business_website ⇒ String
Returns The website of the business or organization using the Tollfree number.
544 545 546 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 544 def business_website @properties['business_website'] end |
#context ⇒ TollfreeVerificationContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
451 452 453 454 455 456 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 451 def context unless @instance_context @instance_context = TollfreeVerificationContext.new(@version , @params['sid']) end @instance_context end |
#customer_profile_sid ⇒ String
Returns Customer’s Profile Bundle BundleSid.
472 473 474 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 472 def customer_profile_sid @properties['customer_profile_sid'] end |
#date_created ⇒ Time
Returns The date and time in GMT when the resource was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
484 485 486 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 484 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The date and time in GMT when the resource was last updated specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
490 491 492 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 490 def date_updated @properties['date_updated'] end |
#delete ⇒ Boolean
Delete the TollfreeVerificationInstance
683 684 685 686 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 683 def delete context.delete end |
#edit_allowed ⇒ Boolean
Returns If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not.
658 659 660 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 658 def edit_allowed @properties['edit_allowed'] end |
#edit_expiration ⇒ Time
Returns The date and time when the ability to edit a rejected verification expires.
652 653 654 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 652 def edit_expiration @properties['edit_expiration'] end |
#error_code ⇒ String
Returns The error code given when a Tollfree Verification has been rejected.
646 647 648 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 646 def error_code @properties['error_code'] end |
#external_reference_id ⇒ String
Returns An optional external reference ID supplied by customer and echoed back on status retrieval.
676 677 678 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 676 def external_reference_id @properties['external_reference_id'] end |
#fetch ⇒ TollfreeVerificationInstance
Fetch the TollfreeVerificationInstance
691 692 693 694 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 691 def fetch context.fetch end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
778 779 780 781 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 778 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Messaging.V1.TollfreeVerificationInstance #{values}>" end |
#message_volume ⇒ String
Returns Estimate monthly volume of messages from the Tollfree Number.
610 611 612 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 610 def @properties['message_volume'] end |
#notification_email ⇒ String
Returns The email address to receive the notification about the verification result. .
574 575 576 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 574 def notification_email @properties['notification_email'] end |
#opt_in_image_urls ⇒ Array<String>
Returns Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
598 599 600 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 598 def opt_in_image_urls @properties['opt_in_image_urls'] end |
#opt_in_type ⇒ OptInType
604 605 606 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 604 def opt_in_type @properties['opt_in_type'] end |
#production_message_sample ⇒ String
Returns An example of message content, i.e. a sample message.
592 593 594 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 592 def @properties['production_message_sample'] end |
#regulated_item_sid ⇒ String
Returns The SID of the Regulated Item.
496 497 498 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 496 def regulated_item_sid @properties['regulated_item_sid'] end |
#rejection_reason ⇒ String
Returns The rejection reason given when a Tollfree Verification has been rejected.
640 641 642 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 640 def rejection_reason @properties['rejection_reason'] end |
#rejection_reasons ⇒ Array<Hash>
Returns A list of rejection reasons and codes describing why a Tollfree Verification has been rejected.
664 665 666 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 664 def rejection_reasons @properties['rejection_reasons'] end |
#resource_links ⇒ Hash
Returns The URLs of the documents associated with the Tollfree Verification resource.
670 671 672 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 670 def resource_links @properties['resource_links'] end |
#sid ⇒ String
Returns The unique string to identify Tollfree Verification.
460 461 462 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 460 def sid @properties['sid'] end |
#status ⇒ Status
628 629 630 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 628 def status @properties['status'] end |
#to_s ⇒ Object
Provide a user friendly representation
771 772 773 774 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 771 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Messaging.V1.TollfreeVerificationInstance #{values}>" end |
#tollfree_phone_number_sid ⇒ String
Returns The SID of the Phone Number associated with the Tollfree Verification.
622 623 624 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 622 def tollfree_phone_number_sid @properties['tollfree_phone_number_sid'] end |
#trust_product_sid ⇒ String
Returns Tollfree TrustProduct Bundle BundleSid.
478 479 480 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 478 def trust_product_sid @properties['trust_product_sid'] end |
#update(business_name: :unset, business_website: :unset, notification_email: :unset, use_case_categories: :unset, use_case_summary: :unset, production_message_sample: :unset, opt_in_image_urls: :unset, opt_in_type: :unset, message_volume: :unset, business_street_address: :unset, business_street_address2: :unset, business_city: :unset, business_state_province_region: :unset, business_postal_code: :unset, business_country: :unset, additional_information: :unset, business_contact_first_name: :unset, business_contact_last_name: :unset, business_contact_email: :unset, business_contact_phone: :unset, edit_reason: :unset) ⇒ TollfreeVerificationInstance
Update the TollfreeVerificationInstance
720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 720 def update( business_name: :unset, business_website: :unset, notification_email: :unset, use_case_categories: :unset, use_case_summary: :unset, production_message_sample: :unset, opt_in_image_urls: :unset, opt_in_type: :unset, message_volume: :unset, business_street_address: :unset, business_street_address2: :unset, business_city: :unset, business_state_province_region: :unset, business_postal_code: :unset, business_country: :unset, additional_information: :unset, business_contact_first_name: :unset, business_contact_last_name: :unset, business_contact_email: :unset, business_contact_phone: :unset, edit_reason: :unset ) context.update( business_name: business_name, business_website: business_website, notification_email: notification_email, use_case_categories: use_case_categories, use_case_summary: use_case_summary, production_message_sample: , opt_in_image_urls: opt_in_image_urls, opt_in_type: opt_in_type, message_volume: , business_street_address: business_street_address, business_street_address2: business_street_address2, business_city: business_city, business_state_province_region: business_state_province_region, business_postal_code: business_postal_code, business_country: business_country, additional_information: additional_information, business_contact_first_name: business_contact_first_name, business_contact_last_name: business_contact_last_name, business_contact_email: business_contact_email, business_contact_phone: business_contact_phone, edit_reason: edit_reason, ) end |
#url ⇒ String
Returns The absolute URL of the Tollfree Verification resource.
634 635 636 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 634 def url @properties['url'] end |
#use_case_categories ⇒ Array<String>
Returns The category of the use case for the Tollfree Number. List as many are applicable..
580 581 582 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 580 def use_case_categories @properties['use_case_categories'] end |
#use_case_summary ⇒ String
Returns Use this to further explain how messaging is used by the business or organization.
586 587 588 |
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 586 def use_case_summary @properties['use_case_summary'] end |