Class: Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesList
- Defined in:
- lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb
Instance Method Summary collapse
-
#create(tollfree_phone_number: nil, notification_email: nil, business_name: :unset, business_website: :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, theme_set_id: :unset, skip_messaging_use_case: :unset) ⇒ ComplianceTollfreeInquiriesInstance
Create the ComplianceTollfreeInquiriesInstance.
-
#initialize(version) ⇒ ComplianceTollfreeInquiriesList
constructor
Initialize the ComplianceTollfreeInquiriesList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ ComplianceTollfreeInquiriesList
Initialize the ComplianceTollfreeInquiriesList
26 27 28 29 30 31 32 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb', line 26 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/ComplianceInquiries/Tollfree/Initialize" end |
Instance Method Details
#create(tollfree_phone_number: nil, notification_email: nil, business_name: :unset, business_website: :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, theme_set_id: :unset, skip_messaging_use_case: :unset) ⇒ ComplianceTollfreeInquiriesInstance
Create the ComplianceTollfreeInquiriesInstance
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb', line 59 def create( tollfree_phone_number: nil, notification_email: nil, business_name: :unset, business_website: :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, theme_set_id: :unset, skip_messaging_use_case: :unset ) data = Twilio::Values.of({ 'TollfreePhoneNumber' => tollfree_phone_number, 'NotificationEmail' => notification_email, 'BusinessName' => business_name, 'BusinessWebsite' => business_website, 'UseCaseCategories' => Twilio.serialize_list(use_case_categories) { |e| e }, 'UseCaseSummary' => use_case_summary, 'ProductionMessageSample' => , 'OptInImageUrls' => Twilio.serialize_list(opt_in_image_urls) { |e| e }, 'OptInType' => opt_in_type, 'MessageVolume' => , 'BusinessStreetAddress' => business_street_address, 'BusinessStreetAddress2' => business_street_address2, 'BusinessCity' => business_city, 'BusinessStateProvinceRegion' => business_state_province_region, 'BusinessPostalCode' => business_postal_code, 'BusinessCountry' => business_country, 'AdditionalInformation' => additional_information, 'BusinessContactFirstName' => business_contact_first_name, 'BusinessContactLastName' => business_contact_last_name, 'BusinessContactEmail' => business_contact_email, 'BusinessContactPhone' => business_contact_phone, 'ThemeSetId' => theme_set_id, 'SkipMessagingUseCase' => skip_messaging_use_case, }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.create('POST', @uri, data: data, headers: headers) ComplianceTollfreeInquiriesInstance.new( @version, payload, ) end |
#to_s ⇒ Object
Provide a user friendly representation
128 129 130 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb', line 128 def to_s '#<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesList>' end |