NAME

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

SYNOPSIS

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

my $supporting_document = $client->numbers->v2->regulatory_compliance->supporting_documents->create($friendly_name, $type, \%options);
for my $supporting_document ($client->numbers->v2->regulatory_compliance->supporting_documents->read({}, 20)) {
  ...
}
my $supporting_document = $client->numbers->v2->regulatory_compliance->supporting_documents($sid)->fetch;
$client->numbers->v2->regulatory_compliance->supporting_documents($sid)->update(\%options);
$client->numbers->v2->regulatory_compliance->supporting_documents($sid)->delete;

DESCRIPTION

This file holds SupportingDocumentList, SupportingDocumentPage, SupportingDocumentContext and SupportingDocumentInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

SupportingDocumentList

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

create

my $supporting_document = $client->numbers->v2->regulatory_compliance->supporting_documents->create($friendly_name, $type, \%options);

Create a new Supporting Document. Returns a SupportingDocumentInstance.

The required values are:

$friendly_name

The string that you assigned to describe the resource.

$type

The type of the Supporting Document.

The options are:

attributes

The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types. A hash or array reference, or a string of JSON.

read

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

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

stream

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

Fetches the page at a URL given by Twilio.

get_context

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

Returns a SupportingDocumentContext, and makes no request.

SupportingDocumentPage

A Twilio::Page of SupportingDocumentInstance objects.

records_key

build_instance

Used by Twilio::Page.

SupportingDocumentContext

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

fetch

my $supporting_document = $client->numbers->v2->regulatory_compliance->supporting_documents($sid)->fetch;

Fetch specific Supporting Document Instance. Returns a SupportingDocumentInstance.

update

my $supporting_document = $client->numbers->v2->regulatory_compliance->supporting_documents($sid)->update(\%options);

Update an existing Supporting Document. Returns a SupportingDocumentInstance.

The options are:

attributes

The set of parameters that are the attributes of the Supporting Document resource which are derived Supporting Document Types. A hash or array reference, or a string of JSON.

friendly_name

The string that you assigned to describe the resource.

delete

$client->numbers->v2->regulatory_compliance->supporting_documents($sid)->delete;

Delete a specific Supporting Document. Returns true.

SupportingDocumentInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The SID of the Account that created the Document resource.

attributes

The set of parameters that are the attributes of the Supporting Documents resource which are listed in the Supporting Document Types.

date_created

The date and time in GMT when the resource was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The date and time in GMT when the resource was last updated specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

errors

A list of errors that occurred during the registering RC Bundle

failure_reason

The failure reason of the Supporting Document Resource.

friendly_name

The string that you assigned to describe the resource.

mime_type

The image type uploaded in the Supporting Document container.

sid

The unique string created by Twilio to identify the Supporting Document resource.

status

One of draft, pending-review, rejected, approved, expired or provisionally-approved.

type

The type of the Supporting Document.

url

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