« Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessage.pm
↑ Summary
Twilio/Rest/Api/V2010/Account/NewKey.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||
| 2 | package Twilio::Rest::Trusthub::V1::ComplianceTollfreeInquiries; | ||||||||||||
| 3 | |||||||||||||
| 4 | 2 | ▶ | use 5.016; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 2 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | |||||||||||||
| 7 | 2 | our $VERSION = '2.001'; | |||||||||||
| 8 | |||||||||||||
| 9 | package Twilio::Rest::Trusthub::V1::ComplianceTollfreeInquiriesList; | ||||||||||||
| 10 | |||||||||||||
| 11 | 2 | ▶ | use parent 'Twilio::ListResource'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 12 | |||||||||||||
| 13 | 2 | ▶ | use Twilio::Serialize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 14 | |||||||||||||
| 15 | 1 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 16 | 1 | my ($class, $version) = @_; | |||||||||||
| 17 | 1 | my $self = $class->SUPER::new($version); | |||||||||||
| 18 | 1 | $self->{solution} = {}; | |||||||||||
| 19 | 1 | $self->{uri} = '/ComplianceInquiries/Tollfree/Initialize'; | |||||||||||
| 20 | 1 | return $self; | |||||||||||
| 21 | } | ||||||||||||
| 22 | |||||||||||||
| 23 | 1 | ▶ | sub create { | ||||||||||
|
Subroutine
create: called CC=2 SCAR=7.0
| |||||||||||||
| 24 | 1 | my ($self, $tollfree_phone_number, $notification_email, $options) = @_; | |||||||||||
| 25 | 1 | ▶ | $options //= {}; | ||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||
| 26 | |||||||||||||
| 27 | my $data = { | ||||||||||||
| 28 | TollfreePhoneNumber => $tollfree_phone_number, | ||||||||||||
| 29 | NotificationEmail => $notification_email, | ||||||||||||
| 30 | AdditionalInformation => $options->{additional_information}, | ||||||||||||
| 31 | AgeGatedContent => Twilio::Serialize::boolean_to_string($options->{age_gated_content}), | ||||||||||||
| 32 | BusinessCity => $options->{business_city}, | ||||||||||||
| 33 | BusinessContactEmail => $options->{business_contact_email}, | ||||||||||||
| 34 | BusinessContactFirstName => $options->{business_contact_first_name}, | ||||||||||||
| 35 | BusinessContactLastName => $options->{business_contact_last_name}, | ||||||||||||
| 36 | BusinessContactPhone => $options->{business_contact_phone}, | ||||||||||||
| 37 | BusinessCountry => $options->{business_country}, | ||||||||||||
| 38 | BusinessName => $options->{business_name}, | ||||||||||||
| 39 | BusinessPostalCode => $options->{business_postal_code}, | ||||||||||||
| 40 | BusinessRegistrationAuthority => $options->{business_registration_authority}, | ||||||||||||
| 41 | BusinessRegistrationCountry => $options->{business_registration_country}, | ||||||||||||
| 42 | BusinessRegistrationNumber => $options->{business_registration_number}, | ||||||||||||
| 43 | BusinessStateProvinceRegion => $options->{business_state_province_region}, | ||||||||||||
| 44 | BusinessStreetAddress => $options->{business_street_address}, | ||||||||||||
| 45 | BusinessStreetAddress2 => $options->{business_street_address2}, | ||||||||||||
| 46 | BusinessType => $options->{business_type}, | ||||||||||||
| 47 | BusinessWebsite => $options->{business_website}, | ||||||||||||
| 48 | CustomerProfileSid => $options->{customer_profile_sid}, | ||||||||||||
| 49 | DoingBusinessAs => $options->{doing_business_as}, | ||||||||||||
| 50 | ExternalReferenceId => $options->{external_reference_id}, | ||||||||||||
| 51 | HelpMessageSample => $options->{help_message_sample}, | ||||||||||||
| 52 | MessageVolume => $options->{message_volume}, | ||||||||||||
| 53 | OptInConfirmationMessage => $options->{opt_in_confirmation_message}, | ||||||||||||
| 54 | OptInImageUrls => $options->{opt_in_image_urls}, | ||||||||||||
| 55 | OptInKeywords => $options->{opt_in_keywords}, | ||||||||||||
| 56 | OptInType => $options->{opt_in_type}, | ||||||||||||
| 57 | PrivacyPolicyUrl => $options->{privacy_policy_url}, | ||||||||||||
| 58 | ProductionMessageSample => $options->{production_message_sample}, | ||||||||||||
| 59 | SkipMessagingUseCase => | ||||||||||||
| 60 | Twilio::Serialize::boolean_to_string($options->{skip_messaging_use_case}), | ||||||||||||
| 61 | TermsAndConditionsUrl => $options->{terms_and_conditions_url}, | ||||||||||||
| 62 | ThemeSetId => $options->{theme_set_id}, | ||||||||||||
| 63 | UseCaseCategories => $options->{use_case_categories}, | ||||||||||||
| 64 | UseCaseSummary => $options->{use_case_summary}, | ||||||||||||
| 65 | VettingId => $options->{vetting_id}, | ||||||||||||
| 66 | VettingProvider => $options->{vetting_provider}, | ||||||||||||
| 67 | 1 | }; | |||||||||||
| 68 | |||||||||||||
| 69 | my $response = | ||||||||||||
| 70 | 1 | $self->{version}->handle_request('POST', $self->{uri}, 'create', { data => $data }); | |||||||||||
| 71 | return Twilio::Rest::Trusthub::V1::ComplianceTollfreeInquiriesInstance->new($self->{version}, | ||||||||||||
| 72 | 1 | $response->get_content); | |||||||||||
| 73 | } | ||||||||||||
| 74 | |||||||||||||
| 75 | package Twilio::Rest::Trusthub::V1::ComplianceTollfreeInquiriesInstance; | ||||||||||||
| 76 | |||||||||||||
| 77 | 2 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 78 | |||||||||||||
| 79 | 2 | ▶ | use Twilio::Deserialize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 80 | |||||||||||||
| 81 | 1 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 82 | 1 | my ($class, $version, $payload) = @_; | |||||||||||
| 83 | 1 | my $self = $class->SUPER::new($version, $payload); | |||||||||||
| 84 | 1 | $self->{solution} = {}; | |||||||||||
| 85 | 1 | return $self; | |||||||||||
| 86 | } | ||||||||||||
| 87 | |||||||||||||
| 88 | 1 | ▶ | sub inquiry_id { return $_[0]{properties}{inquiry_id} } | ||||||||||
|
Subroutine
inquiry_id: called CC=1 SCAR=0.0
| |||||||||||||
| 89 | 1 | ▶ | sub inquiry_session_token { return $_[0]{properties}{inquiry_session_token} } | ||||||||||
|
Subroutine
inquiry_session_token: called CC=1 SCAR=0.0
| |||||||||||||
| 90 | 1 | ▶ | sub registration_id { return $_[0]{properties}{registration_id} } | ||||||||||
|
Subroutine
registration_id: called CC=1 SCAR=0.0
| |||||||||||||
| 91 | 1 | ▶ | sub url { return $_[0]{properties}{url} } | ||||||||||
|
Subroutine
url: called CC=1 SCAR=0.0
| |||||||||||||
| 92 | |||||||||||||
| 93 | 2 | 1; | |||||||||||
| 94 | |||||||||||||
| 95 | __END__ | ||||||||||||