NAME

Twilio::Rest::Trusthub::V1::TrustProducts - The TrustProducts resource

SYNOPSIS

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

my $trust_products = $client->trusthub->v1->trust_products->create($friendly_name, $email, $policy_sid, \%options);
for my $trust_products ($client->trusthub->v1->trust_products->read({}, 20)) {
  ...
}
my $trust_products = $client->trusthub->v1->trust_products($sid)->fetch;
$client->trusthub->v1->trust_products($sid)->update(\%options);
$client->trusthub->v1->trust_products($sid)->delete;

DESCRIPTION

This file holds TrustProductsList, TrustProductsPage, TrustProductsContext and TrustProductsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

TrustProductsList

Returned by $client->trusthub->v1->trust_products. See also Twilio::ListResource.

create

my $trust_products = $client->trusthub->v1->trust_products->create($friendly_name, $email, $policy_sid, \%options);

Create a new Trust Product. Returns a TrustProductsInstance.

The required values are:

$friendly_name

The string that you assigned to describe the resource.

$email

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

$policy_sid

The unique string of a policy that is associated to the Trust Product resource.

The options are:

status_callback

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

read

my @records = $client->trusthub->v1->trust_products->read(\%options, $limit, $page_size);

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

The options are:

friendly_name

The string that you assigned to describe the resource.

policy_sid

The unique string of a policy that is associated to the Trust Product resource.

status

The verification status of the Trust Product resource. One of draft, pending-review, in-review, twilio-rejected or twilio-approved.

stream

my $stream = $client->trusthub->v1->trust_products->stream(\%options, $limit, $page_size);

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

page

my $page = $client->trusthub->v1->trust_products->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->trusthub->v1->trust_products->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->trusthub->v1->trust_products->get_context($sid);

Returns a TrustProductsContext, and makes no request.

TrustProductsPage

A Twilio::Page of TrustProductsInstance objects.

records_key

build_instance

Used by Twilio::Page.

TrustProductsContext

Returned by $client->trusthub->v1->trust_products($sid). It makes no request until one of these methods is called.

fetch

my $trust_products = $client->trusthub->v1->trust_products($sid)->fetch;

Fetch a specific Trust Product instance. Returns a TrustProductsInstance.

update

my $trust_products = $client->trusthub->v1->trust_products($sid)->update(\%options);

Updates a Trust Product in an account. Returns a TrustProductsInstance.

The options are:

email

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

friendly_name

The string that you assigned to describe the resource.

status

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

status_callback

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

delete

$client->trusthub->v1->trust_products($sid)->delete;

Delete a specific Trust Product. Returns true.

trust_products_channel_endpoint_assignment

my $list = $object->trust_products_channel_endpoint_assignment;

my $context = $object->trust_products_channel_endpoint_assignment($sid);

See Twilio::Rest::Trusthub::V1::TrustProducts::TrustProductsChannelEndpointAssignment.

trust_products_entity_assignments

my $list = $object->trust_products_entity_assignments;

my $context = $object->trust_products_entity_assignments($sid);

See Twilio::Rest::Trusthub::V1::TrustProducts::TrustProductsEntityAssignments.

trust_products_evaluations

my $list = $object->trust_products_evaluations;

my $context = $object->trust_products_evaluations($sid);

See Twilio::Rest::Trusthub::V1::TrustProducts::TrustProductsEvaluations.

TrustProductsInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The SID of the Account that created the Trust Product 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 Trust Product resource changes status.

errors

The error codes associated with the rejection of the Trust Product.

friendly_name

The string that you assigned to describe the resource.

The URLs of the Assigned Items of the Trust Product resource.

policy_sid

The unique string of the policy that is associated with the Trust Product resource.

sid

The unique string that we created to identify the Trust Product resource.

status

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

status_callback

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

url

The absolute URL of the Trust Product resource.

valid_until

The date and time in GMT in ISO 8601 format until which the resource will be valid. 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.