NAME

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

SYNOPSIS

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

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

DESCRIPTION

This file holds SupportingDocumentTypeList, SupportingDocumentTypePage, SupportingDocumentTypeContext and SupportingDocumentTypeInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

SupportingDocumentTypeList

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

read

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

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

stream

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

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

page

my $page = $client->numbers->v2->regulatory_compliance->supporting_document_types->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->supporting_document_types->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

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

Returns a SupportingDocumentTypeContext, and makes no request.

SupportingDocumentTypePage

A Twilio::Page of SupportingDocumentTypeInstance objects.

records_key

build_instance

Used by Twilio::Page.

SupportingDocumentTypeContext

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

fetch

my $supporting_document_type = $client->numbers->v2->regulatory_compliance->supporting_document_types($sid)->fetch;

Fetch a specific Supporting Document Type Instance. Returns a SupportingDocumentTypeInstance.

SupportingDocumentTypeInstance

See also Twilio::InstanceResource.

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

Its fields are:

fields

The required information for creating a Supporting Document. The required fields will change as regulatory needs change and will differ for businesses and individuals.

friendly_name

A human-readable description of the Supporting Document Type resource.

machine_name

The machine-readable description of the Supporting Document Type resource.

sid

The unique string that identifies the Supporting Document Type resource.

url

The absolute URL of the Supporting Document Type 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.