NAME

Twilio::Rest::Preview::Wireless::RatePlan - The RatePlan resource

SYNOPSIS

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

my $rate_plan = $client->preview->wireless->rate_plans->create(\%options);
for my $rate_plan ($client->preview->wireless->rate_plans->read({}, 20)) {
  ...
}
my $rate_plan = $client->preview->wireless->rate_plans($sid)->fetch;
$client->preview->wireless->rate_plans($sid)->update(\%options);
$client->preview->wireless->rate_plans($sid)->delete;

DESCRIPTION

This file holds RatePlanList, RatePlanPage, RatePlanContext and RatePlanInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

RatePlanList

Returned by $client->preview->wireless->rate_plans. See also Twilio::ListResource.

create

my $rate_plan = $client->preview->wireless->rate_plans->create(\%options);

Returns a RatePlanInstance.

The options are:

commands_enabled

No description in the specification.

data_enabled

No description in the specification.

data_limit

No description in the specification.

data_metering

No description in the specification.

friendly_name

No description in the specification.

international_roaming

An array reference.

messaging_enabled

No description in the specification.

national_roaming_enabled

No description in the specification.

unique_name

No description in the specification.

voice_enabled

No description in the specification.

read

my @records = $client->preview->wireless->rate_plans->read(\%options, $limit, $page_size);

Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->preview->wireless->rate_plans->stream(\%options, $limit, $page_size);

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

page

my $page = $client->preview->wireless->rate_plans->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->preview->wireless->rate_plans->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->preview->wireless->rate_plans->get_context($sid);

Returns a RatePlanContext, and makes no request.

RatePlanPage

A Twilio::Page of RatePlanInstance objects.

records_key

build_instance

Used by Twilio::Page.

RatePlanContext

Returned by $client->preview->wireless->rate_plans($sid). It makes no request until one of these methods is called.

fetch

my $rate_plan = $client->preview->wireless->rate_plans($sid)->fetch;

Returns a RatePlanInstance.

update

my $rate_plan = $client->preview->wireless->rate_plans($sid)->update(\%options);

Returns a RatePlanInstance.

The options are:

friendly_name

No description in the specification.

unique_name

No description in the specification.

delete

$client->preview->wireless->rate_plans($sid)->delete;

Returns true.

RatePlanInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

No description in the specification.

data_enabled

No description in the specification.

data_limit

No description in the specification.

data_metering

No description in the specification.

date_created

A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

friendly_name

No description in the specification.

international_roaming

No description in the specification.

messaging_enabled

No description in the specification.

national_roaming_enabled

No description in the specification.

sid

No description in the specification.

unique_name

No description in the specification.

url

No description in the specification.

voice_enabled

No description in the specification.

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.