NAME

Twilio::Rest::Numbers::V2::RegulatoryCompliance::Bundle::BundleCopy - The BundleCopy resource

SYNOPSIS

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

my $bundle_copy = $client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->bundle_copies->create(\%options);
for my $bundle_copy ($client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->bundle_copies->read({}, 20)) {
  ...
}

DESCRIPTION

This file holds BundleCopyList, BundleCopyPage and BundleCopyInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

BundleCopyList

Returned by $client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->bundle_copies. See also Twilio::ListResource.

create

my $bundle_copy = $client->numbers->v2->regulatory_compliance->bundles($bundle_sid)->bundle_copies->create(\%options);

Creates a new copy of a Bundle. It will internally create copies of all the bundle items (identities and documents) of the original bundle. Returns a BundleCopyInstance.

The options are:

friendly_name

The string that you assigned to describe the copied bundle.

read

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

Retrieve a list of all Bundles Copies for a Bundle. Returns the records as a list, fetching as many pages as it needs.

stream

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

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

page

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

Fetches the page at a URL given by Twilio.

BundleCopyPage

A Twilio::Page of BundleCopyInstance objects.

records_key

build_instance

Used by Twilio::Page.

BundleCopyInstance

See also Twilio::InstanceResource.

Its fields are:

account_sid

The SID of the Account that created the Bundle resource.

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.

email

The email address that will receive updates when the Bundle resource changes status.

friendly_name

The string that you assigned to describe the resource.

regulation_sid

The unique string of a regulation that is associated to the Bundle resource.

sid

The unique string that we created to identify the Bundle resource.

status

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

status_callback

The URL we call to inform your application of status changes.

valid_until

The date and time in GMT in ISO 8601 format when the resource will be valid until. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

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.