NAME

Twilio::Rest::Numbers::V2::RegulatoryCompliance::Regulation - The Regulation resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

for my $regulation ($client->numbers->v2->regulatory_compliance->regulations->read({}, 20)) {
  ...
}
my $regulation = $client->numbers->v2->regulatory_compliance->regulations($sid)->fetch;

DESCRIPTION

This file holds RegulationList, RegulationPage, RegulationContext and RegulationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

RegulationList

Returned by $client->numbers->v2->regulatory_compliance->regulations. See also Twilio::ListResource.

read

my @records = $client->numbers->v2->regulatory_compliance->regulations->read(\%options, $limit, $page_size);

Retrieve a list of all Regulations. Returns the records as a list, fetching as many pages as it needs.

The options are:

end_user_type

The type of End User the regulation requires - can be individual or business. One of individual or business.

include_constraints

A boolean parameter indicating whether to include constraints or not for supporting end user, documents and their fields

iso_country

The ISO country code of the phone number's country.

number_type

The type of phone number that the regulatory requiremnt is restricting.

stream

my $stream = $client->numbers->v2->regulatory_compliance->regulations->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->numbers->v2->regulatory_compliance->regulations->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->numbers->v2->regulatory_compliance->regulations->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->numbers->v2->regulatory_compliance->regulations->get_context($sid);

Returns a RegulationContext, and makes no request.

RegulationPage

A Twilio::Page of RegulationInstance objects.

records_key

build_instance

Used by Twilio::Page.

RegulationContext

Returned by $client->numbers->v2->regulatory_compliance->regulations($sid). It makes no request until one of these methods is called.

fetch

my $regulation = $client->numbers->v2->regulatory_compliance->regulations($sid)->fetch(\%options);

Fetch specific Regulation Instance. Returns a RegulationInstance.

The options are:

include_constraints

A boolean parameter indicating whether to include constraints or not for supporting end user, documents and their fields

RegulationInstance

See also Twilio::InstanceResource.

It has fetch, which work as they do on the context.

Its fields are:

end_user_type

One of individual or business.

friendly_name

A human-readable description that is assigned to describe the Regulation resource. Examples can include Germany: Mobile - Business.

iso_country

The ISO country code of the phone number's country.

number_type

The type of phone number restricted by the regulatory requirement. For example, Germany mobile phone numbers provisioned by businesses require a business name with commercial register proof from the Handelsregisterauszug and a proof of address from Handelsregisterauszug or a trade license by Gewerbeanmeldung.

requirements

The SID of an object that holds the regulatory information of the phone number country, phone number type, and end user type.

sid

The unique string that identifies the Regulation resource.

url

The absolute URL of the Regulation resource.

CONSTRUCTORS

new

Objects here come from the methods above, so there is no need to call new directly.

LICENSE

Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.