Class: Twilio::REST::Messaging::V1::TollfreeVerificationInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, sid: nil) ⇒ TollfreeVerificationInstance

Initialize the TollfreeVerificationInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • account_sid (String)

    The SID of the Account that created this TollfreeVerification resource.

  • sid (String) (defaults to: nil)

    The SID of the Call resource to fetch.



983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 983

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'],
        'tollfree_phone_number' => payload['tollfree_phone_number'],
        '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'],
        'business_registration_number' => payload['business_registration_number'],
        'business_registration_authority' => payload['business_registration_authority'],
        'business_registration_country' => payload['business_registration_country'],
        'business_type' => payload['business_type'],
        'business_registration_phone_number' => payload['business_registration_phone_number'],
        'doing_business_as' => payload['doing_business_as'],
        'opt_in_confirmation_message' => payload['opt_in_confirmation_message'],
        'help_message_sample' => payload['help_message_sample'],
        'privacy_policy_url' => payload['privacy_policy_url'],
        'terms_and_conditions_url' => payload['terms_and_conditions_url'],
        'age_gated_content' => payload['age_gated_content'],
        'opt_in_keywords' => payload['opt_in_keywords'],
        'rejection_reasons' => payload['rejection_reasons'],
        'resource_links' => payload['resource_links'],
        'external_reference_id' => payload['external_reference_id'],
        'vetting_id' => payload['vetting_id'],
        'vetting_provider' => payload['vetting_provider'],
        'vetting_id_expiration' => Twilio.deserialize_iso8601_datetime(payload['vetting_id_expiration']),
    }

    # Context
    @instance_context = nil
    @params = { 'sid' => sid  || @properties['sid']  , }
end

Instance Method Details

#account_sidString

Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Tollfree Verification resource.

Returns:



1068
1069
1070
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1068

def 
    @properties['account_sid']
end

#additional_informationString

Returns Additional information to be provided for verification.

Returns:

  • (String)

    Additional information to be provided for verification.



1218
1219
1220
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1218

def additional_information
    @properties['additional_information']
end

#age_gated_contentBoolean

Returns Indicates if the content is age gated.

Returns:

  • (Boolean)

    Indicates if the content is age gated.



1332
1333
1334
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1332

def age_gated_content
    @properties['age_gated_content']
end

#business_cityString

Returns The city of the business or organization using the Tollfree number.

Returns:

  • (String)

    The city of the business or organization using the Tollfree number.



1122
1123
1124
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1122

def business_city
    @properties['business_city']
end

#business_contact_emailString

Returns The email address of the contact for the business or organization using the Tollfree number.

Returns:

  • (String)

    The email address of the contact for the business or organization using the Tollfree number.



1164
1165
1166
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1164

def business_contact_email
    @properties['business_contact_email']
end

#business_contact_first_nameString

Returns The first name of the contact for the business or organization using the Tollfree number.

Returns:

  • (String)

    The first name of the contact for the business or organization using the Tollfree number.



1152
1153
1154
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1152

def business_contact_first_name
    @properties['business_contact_first_name']
end

#business_contact_last_nameString

Returns The last name of the contact for the business or organization using the Tollfree number.

Returns:

  • (String)

    The last name of the contact for the business or organization using the Tollfree number.



1158
1159
1160
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1158

def business_contact_last_name
    @properties['business_contact_last_name']
end

#business_contact_phoneString

Returns The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.

Returns:

  • (String)

    The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.



1170
1171
1172
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1170

def business_contact_phone
    @properties['business_contact_phone']
end

#business_countryString

Returns The country of the business or organization using the Tollfree number.

Returns:

  • (String)

    The country of the business or organization using the Tollfree number.



1140
1141
1142
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1140

def business_country
    @properties['business_country']
end

#business_nameString

Returns The name of the business or organization using the Tollfree number.

Returns:

  • (String)

    The name of the business or organization using the Tollfree number.



1104
1105
1106
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1104

def business_name
    @properties['business_name']
end

#business_postal_codeString

Returns The postal code of the business or organization using the Tollfree number.

Returns:

  • (String)

    The postal code of the business or organization using the Tollfree number.



1134
1135
1136
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1134

def business_postal_code
    @properties['business_postal_code']
end

#business_registration_authorityString

Returns The organizational authority for business registrations.

Returns:

  • (String)

    The organizational authority for business registrations



1278
1279
1280
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1278

def business_registration_authority
    @properties['business_registration_authority']
end

#business_registration_countryString

Returns Country business is registered in.

Returns:

  • (String)

    Country business is registered in



1284
1285
1286
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1284

def business_registration_country
    @properties['business_registration_country']
end

#business_registration_numberString

Returns A legally recognized business registration number.

Returns:

  • (String)

    A legally recognized business registration number



1272
1273
1274
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1272

def business_registration_number
    @properties['business_registration_number']
end

#business_registration_phone_numberString

Returns The E.164 formatted number associated with the business.

Returns:

  • (String)

    The E.164 formatted number associated with the business.



1296
1297
1298
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1296

def business_registration_phone_number
    @properties['business_registration_phone_number']
end

#business_state_province_regionString

Returns The state/province/region of the business or organization using the Tollfree number.

Returns:

  • (String)

    The state/province/region of the business or organization using the Tollfree number.



1128
1129
1130
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1128

def business_state_province_region
    @properties['business_state_province_region']
end

#business_street_addressString

Returns The address of the business or organization using the Tollfree number.

Returns:

  • (String)

    The address of the business or organization using the Tollfree number.



1110
1111
1112
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1110

def business_street_address
    @properties['business_street_address']
end

#business_street_address2String

Returns The address of the business or organization using the Tollfree number.

Returns:

  • (String)

    The address of the business or organization using the Tollfree number.



1116
1117
1118
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1116

def business_street_address2
    @properties['business_street_address2']
end

#business_typeString

Returns The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT.

Returns:

  • (String)

    The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT



1290
1291
1292
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1290

def business_type
    @properties['business_type']
end

#business_websiteString

Returns The website of the business or organization using the Tollfree number.

Returns:

  • (String)

    The website of the business or organization using the Tollfree number.



1146
1147
1148
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1146

def business_website
    @properties['business_website']
end

#contextTollfreeVerificationContext

Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context

Returns:



1053
1054
1055
1056
1057
1058
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1053

def context
    unless @instance_context
        @instance_context = TollfreeVerificationContext.new(@version , @params['sid'])
    end
    @instance_context
end

#customer_profile_sidString

Returns Customer’s Profile Bundle BundleSid.

Returns:

  • (String)

    Customer’s Profile Bundle BundleSid.



1074
1075
1076
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1074

def customer_profile_sid
    @properties['customer_profile_sid']
end

#date_createdTime

Returns The date and time in GMT when the resource was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.

Returns:



1086
1087
1088
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1086

def date_created
    @properties['date_created']
end

#date_updatedTime

Returns The date and time in GMT when the resource was last updated specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.

Returns:



1092
1093
1094
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1092

def date_updated
    @properties['date_updated']
end

#deleteBoolean

Delete the TollfreeVerificationInstance

Returns:

  • (Boolean)

    True if delete succeeds, false otherwise



1381
1382
1383
1384
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1381

def delete

    context.delete
end

#doing_business_asString

Returns Trade name, sub entity, or downstream business name of business being submitted for verification.

Returns:

  • (String)

    Trade name, sub entity, or downstream business name of business being submitted for verification



1302
1303
1304
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1302

def doing_business_as
    @properties['doing_business_as']
end

#edit_allowedBoolean

Returns If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not.

Returns:

  • (Boolean)

    If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not.



1266
1267
1268
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1266

def edit_allowed
    @properties['edit_allowed']
end

#edit_expirationTime

Returns The date and time when the ability to edit a rejected verification expires.

Returns:

  • (Time)

    The date and time when the ability to edit a rejected verification expires.



1260
1261
1262
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1260

def edit_expiration
    @properties['edit_expiration']
end

#error_codeString

Returns The error code given when a Tollfree Verification has been rejected.

Returns:

  • (String)

    The error code given when a Tollfree Verification has been rejected.



1254
1255
1256
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1254

def error_code
    @properties['error_code']
end

#external_reference_idString

Returns An optional external reference ID supplied by customer and echoed back on status retrieval.

Returns:

  • (String)

    An optional external reference ID supplied by customer and echoed back on status retrieval.



1356
1357
1358
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1356

def external_reference_id
    @properties['external_reference_id']
end

#fetchTollfreeVerificationInstance

Fetch the TollfreeVerificationInstance

Returns:



1389
1390
1391
1392
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1389

def fetch

    context.fetch
end

#help_message_sampleString

Returns A sample help message provided to users.

Returns:

  • (String)

    A sample help message provided to users.



1314
1315
1316
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1314

def help_message_sample
    @properties['help_message_sample']
end

#inspectObject

Provide a detailed, user friendly representation



1518
1519
1520
1521
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1518

def inspect
    values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
    "<Twilio.Messaging.V1.TollfreeVerificationInstance #{values}>"
end

#message_volumeString

Returns Estimate monthly volume of messages from the Tollfree Number.

Returns:

  • (String)

    Estimate monthly volume of messages from the Tollfree Number.



1212
1213
1214
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1212

def message_volume
    @properties['message_volume']
end

#notification_emailString

Returns The email address to receive the notification about the verification result. .

Returns:

  • (String)

    The email address to receive the notification about the verification result. .



1176
1177
1178
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1176

def notification_email
    @properties['notification_email']
end

#opt_in_confirmation_messageString

Returns The confirmation message sent to users when they opt in to receive messages.

Returns:

  • (String)

    The confirmation message sent to users when they opt in to receive messages.



1308
1309
1310
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1308

def opt_in_confirmation_message
    @properties['opt_in_confirmation_message']
end

#opt_in_image_urlsArray<String>

Returns Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.

Returns:

  • (Array<String>)

    Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.



1200
1201
1202
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1200

def opt_in_image_urls
    @properties['opt_in_image_urls']
end

#opt_in_keywordsArray<String>

Returns List of keywords that users can send to opt in or out of messages.

Returns:

  • (Array<String>)

    List of keywords that users can send to opt in or out of messages.



1338
1339
1340
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1338

def opt_in_keywords
    @properties['opt_in_keywords']
end

#opt_in_typeOptInType

Returns:

  • (OptInType)


1206
1207
1208
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1206

def opt_in_type
    @properties['opt_in_type']
end

#privacy_policy_urlString

Returns The URL to the privacy policy for the business or organization.

Returns:

  • (String)

    The URL to the privacy policy for the business or organization.



1320
1321
1322
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1320

def privacy_policy_url
    @properties['privacy_policy_url']
end

#production_message_sampleString

Returns An example of message content, i.e. a sample message.

Returns:

  • (String)

    An example of message content, i.e. a sample message.



1194
1195
1196
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1194

def production_message_sample
    @properties['production_message_sample']
end

#regulated_item_sidString

Returns The SID of the Regulated Item.

Returns:

  • (String)

    The SID of the Regulated Item.



1098
1099
1100
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1098

def regulated_item_sid
    @properties['regulated_item_sid']
end

#rejection_reasonString

Returns The rejection reason given when a Tollfree Verification has been rejected.

Returns:

  • (String)

    The rejection reason given when a Tollfree Verification has been rejected.



1248
1249
1250
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1248

def rejection_reason
    @properties['rejection_reason']
end

#rejection_reasonsArray<Hash>

Returns A list of rejection reasons and codes describing why a Tollfree Verification has been rejected.

Returns:

  • (Array<Hash>)

    A list of rejection reasons and codes describing why a Tollfree Verification has been rejected.



1344
1345
1346
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1344

def rejection_reasons
    @properties['rejection_reasons']
end

Returns The URLs of the documents associated with the Tollfree Verification resource.

Returns:

  • (Hash)

    The URLs of the documents associated with the Tollfree Verification resource.



1350
1351
1352
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1350

def resource_links
    @properties['resource_links']
end

#sidString

Returns The unique string to identify Tollfree Verification.

Returns:

  • (String)

    The unique string to identify Tollfree Verification.



1062
1063
1064
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1062

def sid
    @properties['sid']
end

#statusStatus

Returns:

  • (Status)


1236
1237
1238
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1236

def status
    @properties['status']
end

#terms_and_conditions_urlString

Returns The URL of the terms and conditions for the business or organization.

Returns:

  • (String)

    The URL of the terms and conditions for the business or organization.



1326
1327
1328
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1326

def terms_and_conditions_url
    @properties['terms_and_conditions_url']
end

#to_sObject

Provide a user friendly representation



1511
1512
1513
1514
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1511

def to_s
    values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
    "<Twilio.Messaging.V1.TollfreeVerificationInstance #{values}>"
end

#tollfree_phone_numberString

Returns The E.164 formatted toll-free phone number associated with the verification.

Returns:

  • (String)

    The E.164 formatted toll-free phone number associated with the verification.



1230
1231
1232
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1230

def tollfree_phone_number
    @properties['tollfree_phone_number']
end

#tollfree_phone_number_sidString

Returns The SID of the Phone Number associated with the Tollfree Verification.

Returns:

  • (String)

    The SID of the Phone Number associated with the Tollfree Verification.



1224
1225
1226
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1224

def tollfree_phone_number_sid
    @properties['tollfree_phone_number_sid']
end

#trust_product_sidString

Returns Tollfree TrustProduct Bundle BundleSid.

Returns:

  • (String)

    Tollfree TrustProduct Bundle BundleSid.



1080
1081
1082
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1080

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, business_registration_number: :unset, business_registration_authority: :unset, business_registration_country: :unset, business_type: :unset, business_registration_phone_number: :unset, doing_business_as: :unset, opt_in_confirmation_message: :unset, help_message_sample: :unset, privacy_policy_url: :unset, terms_and_conditions_url: :unset, age_gated_content: :unset, opt_in_keywords: :unset, vetting_provider: :unset, vetting_id: :unset) ⇒ TollfreeVerificationInstance

Update the TollfreeVerificationInstance

Parameters:

  • business_name (String) (defaults to: :unset)

    The name of the business or organization using the Tollfree number.

  • business_website (String) (defaults to: :unset)

    The website of the business or organization using the Tollfree number.

  • notification_email (String) (defaults to: :unset)

    The email address to receive the notification about the verification result. .

  • use_case_categories (Array[String]) (defaults to: :unset)

    The category of the use case for the Tollfree Number. List as many are applicable..

  • use_case_summary (String) (defaults to: :unset)

    Use this to further explain how messaging is used by the business or organization.

  • production_message_sample (String) (defaults to: :unset)

    An example of message content, i.e. a sample message.

  • opt_in_image_urls (Array[String]) (defaults to: :unset)

    Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.

  • opt_in_type (OptInType) (defaults to: :unset)
  • message_volume (String) (defaults to: :unset)

    Estimate monthly volume of messages from the Tollfree Number.

  • business_street_address (String) (defaults to: :unset)

    The address of the business or organization using the Tollfree number.

  • business_street_address2 (String) (defaults to: :unset)

    The address of the business or organization using the Tollfree number.

  • business_city (String) (defaults to: :unset)

    The city of the business or organization using the Tollfree number.

  • business_state_province_region (String) (defaults to: :unset)

    The state/province/region of the business or organization using the Tollfree number.

  • business_postal_code (String) (defaults to: :unset)

    The postal code of the business or organization using the Tollfree number.

  • business_country (String) (defaults to: :unset)

    The country of the business or organization using the Tollfree number.

  • additional_information (String) (defaults to: :unset)

    Additional information to be provided for verification.

  • business_contact_first_name (String) (defaults to: :unset)

    The first name of the contact for the business or organization using the Tollfree number.

  • business_contact_last_name (String) (defaults to: :unset)

    The last name of the contact for the business or organization using the Tollfree number.

  • business_contact_email (String) (defaults to: :unset)

    The email address of the contact for the business or organization using the Tollfree number.

  • business_contact_phone (String) (defaults to: :unset)

    The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.

  • edit_reason (String) (defaults to: :unset)

    Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to ‘Website fixed’.

  • business_registration_number (String) (defaults to: :unset)

    A legaly recognized business registration number

  • business_registration_authority (String) (defaults to: :unset)

    The organizational authority for business registrations

  • business_registration_country (String) (defaults to: :unset)

    Country business is registered in

  • business_type (String) (defaults to: :unset)

    The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT

  • business_registration_phone_number (String) (defaults to: :unset)

    The E.164 formatted number associated with the business.

  • doing_business_as (String) (defaults to: :unset)

    Trade name, sub entity, or downstream business name of business being submitted for verification

  • opt_in_confirmation_message (String) (defaults to: :unset)

    The confirmation message sent to users when they opt in to receive messages.

  • help_message_sample (String) (defaults to: :unset)

    A sample help message provided to users.

  • privacy_policy_url (String) (defaults to: :unset)

    The URL to the privacy policy for the business or organization.

  • terms_and_conditions_url (String) (defaults to: :unset)

    The URL to the terms and conditions for the business or organization.

  • age_gated_content (Boolean) (defaults to: :unset)

    Indicates if the content is age gated.

  • opt_in_keywords (Array[String]) (defaults to: :unset)

    List of keywords that users can text in to opt in to receive messages.

  • vetting_provider (VettingProvider) (defaults to: :unset)
  • vetting_id (String) (defaults to: :unset)

    The unique ID of the vetting

Returns:



1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1432

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, 
    business_registration_number: :unset, 
    business_registration_authority: :unset, 
    business_registration_country: :unset, 
    business_type: :unset, 
    business_registration_phone_number: :unset, 
    doing_business_as: :unset, 
    opt_in_confirmation_message: :unset, 
    help_message_sample: :unset, 
    privacy_policy_url: :unset, 
    terms_and_conditions_url: :unset, 
    age_gated_content: :unset, 
    opt_in_keywords: :unset, 
    vetting_provider: :unset, 
    vetting_id: :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: production_message_sample, 
        opt_in_image_urls: opt_in_image_urls, 
        opt_in_type: opt_in_type, 
        message_volume: 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, 
        business_registration_number: business_registration_number, 
        business_registration_authority: business_registration_authority, 
        business_registration_country: business_registration_country, 
        business_type: business_type, 
        business_registration_phone_number: business_registration_phone_number, 
        doing_business_as: doing_business_as, 
        opt_in_confirmation_message: opt_in_confirmation_message, 
        help_message_sample: help_message_sample, 
        privacy_policy_url: privacy_policy_url, 
        terms_and_conditions_url: terms_and_conditions_url, 
        age_gated_content: age_gated_content, 
        opt_in_keywords: opt_in_keywords, 
        vetting_provider: vetting_provider, 
        vetting_id: vetting_id, 
    )
end

#urlString

Returns The absolute URL of the Tollfree Verification resource.

Returns:

  • (String)

    The absolute URL of the Tollfree Verification resource.



1242
1243
1244
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1242

def url
    @properties['url']
end

#use_case_categoriesArray<String>

Returns The category of the use case for the Tollfree Number. List as many are applicable..

Returns:

  • (Array<String>)

    The category of the use case for the Tollfree Number. List as many are applicable..



1182
1183
1184
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1182

def use_case_categories
    @properties['use_case_categories']
end

#use_case_summaryString

Returns Use this to further explain how messaging is used by the business or organization.

Returns:

  • (String)

    Use this to further explain how messaging is used by the business or organization.



1188
1189
1190
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1188

def use_case_summary
    @properties['use_case_summary']
end

#vetting_idString

Returns:

  • (String)


1362
1363
1364
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1362

def vetting_id
    @properties['vetting_id']
end

#vetting_id_expirationTime

Returns:

  • (Time)


1374
1375
1376
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1374

def vetting_id_expiration
    @properties['vetting_id_expiration']
end

#vetting_providerVettingProvider

Returns:

  • (VettingProvider)


1368
1369
1370
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 1368

def vetting_provider
    @properties['vetting_provider']
end