NAME
Twilio::Rest::Wireless::V1::RatePlan - The RatePlan resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $rate_plan = $client->wireless->v1->rate_plans->create(\%options);
for my $rate_plan ($client->wireless->v1->rate_plans->read({}, 20)) {
...
}
my $rate_plan = $client->wireless->v1->rate_plans($sid)->fetch;
$client->wireless->v1->rate_plans($sid)->update(\%options);
$client->wireless->v1->rate_plans($sid)->delete;
DESCRIPTION
Capabilities and restrictions for SIMs
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->wireless->v1->rate_plans. See also Twilio::ListResource.
create
my $rate_plan = $client->wireless->v1->rate_plans->create(\%options);
Returns a RatePlanInstance.
The options are:
data_enabled-
Whether SIMs can use GPRS/3G/4G/LTE data connectivity.
data_limit-
The total data usage (download and upload combined) in Megabytes that the Network allows during one month on the home network (T-Mobile USA). The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB and the default value is
1000. data_limit_strategy-
One of
blockorthrottle. data_metering-
The model used to meter data usage. Can be:
paygandquota-1,quota-10, andquota-50. Learn more about the available data metering models. friendly_name-
A descriptive string that you create to describe the resource. It does not have to be unique.
international_roaming-
The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can contain:
dataandmessaging. An array reference. international_roaming_data_limit-
The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB.
messaging_enabled-
Whether SIMs can make, send, and receive SMS using Commands.
national_roaming_data_limit-
The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. See national roaming for more info.
national_roaming_enabled-
Whether SIMs can roam on networks other than the home network (T-Mobile USA) in the United States. See national roaming.
unique_name-
An application-defined string that uniquely identifies the resource. It can be used in place of the resource's
sidin the URL to address the resource. voice_enabled-
Deprecated.
read
my @records = $client->wireless->v1->rate_plans->read(\%options, $limit, $page_size);
Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->wireless->v1->rate_plans->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->wireless->v1->rate_plans->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->wireless->v1->rate_plans->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->wireless->v1->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->wireless->v1->rate_plans($sid). It makes no request until one of these methods is called.
fetch
my $rate_plan = $client->wireless->v1->rate_plans($sid)->fetch;
Returns a RatePlanInstance.
update
my $rate_plan = $client->wireless->v1->rate_plans($sid)->update(\%options);
Returns a RatePlanInstance.
The options are:
friendly_name-
A descriptive string that you create to describe the resource. It does not have to be unique.
unique_name-
An application-defined string that uniquely identifies the resource. It can be used in place of the resource's
sidin the URL to address the resource.
delete
$client->wireless->v1->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
-
The SID of the Account that created the RatePlan resource.
- data_enabled
-
Whether SIMs can use GPRS/3G/4G/LTE data connectivity.
- data_limit
-
The total data usage (download and upload combined) in Megabytes that the Network allows during one month on the home network (T-Mobile USA). The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB.
- data_metering
-
The model used to meter data usage. Can be:
paygandquota-1,quota-10, andquota-50. Learn more about the available data metering models. - 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.
- friendly_name
-
The string that you assigned to describe the resource.
- international_roaming
-
The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can contain:
dataandmessaging. - international_roaming_data_limit
-
The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB.
- messaging_enabled
-
Whether SIMs can make, send, and receive SMS using Commands.
- national_roaming_data_limit
-
The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB.
- national_roaming_enabled
-
Whether SIMs can roam on networks other than the home network (T-Mobile USA) in the United States. See national roaming.
- sid
-
The unique string that we created to identify the RatePlan resource.
- unique_name
-
An application-defined string that uniquely identifies the resource. It can be used in place of the resource's
sidin the URL to address the resource. - url
-
The absolute URL of the resource.
- voice_enabled
-
Deprecated. Whether SIMs can make and receive voice calls.
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.