NAME

Twilio::Rest::Trusthub::V1::CustomerProfiles::CustomerProfilesEvaluations - The CustomerProfilesEvaluations resource

SYNOPSIS

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

my $customer_profiles_evaluations = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_evaluations->create($policy_sid);
for my $customer_profiles_evaluations ($client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_evaluations->read({}, 20)) {
  ...
}
my $customer_profiles_evaluations = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_evaluations($sid)->fetch;

DESCRIPTION

This file holds CustomerProfilesEvaluationsList, CustomerProfilesEvaluationsPage, CustomerProfilesEvaluationsContext and CustomerProfilesEvaluationsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

CustomerProfilesEvaluationsList

Returned by $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_evaluations. See also Twilio::ListResource.

create

my $customer_profiles_evaluations = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_evaluations->create($policy_sid);

Create a new Evaluation. Returns a CustomerProfilesEvaluationsInstance.

The required values are:

$policy_sid

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

read

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

Retrieve a list of Evaluations associated to the customer_profile resource. Returns the records as a list, fetching as many pages as it needs.

stream

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

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

page

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

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

get_page

my $page = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_evaluations->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_evaluations->get_context($sid);

Returns a CustomerProfilesEvaluationsContext, and makes no request.

CustomerProfilesEvaluationsPage

A Twilio::Page of CustomerProfilesEvaluationsInstance objects.

records_key

build_instance

Used by Twilio::Page.

CustomerProfilesEvaluationsContext

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

fetch

my $customer_profiles_evaluations = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_evaluations($sid)->fetch;

Fetch specific Evaluation Instance. Returns a CustomerProfilesEvaluationsInstance.

CustomerProfilesEvaluationsInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The SID of the Account that created the customer_profile resource.

customer_profile_sid

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

date_created

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

policy_sid

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

results

The results of the Evaluation which includes the valid and invalid attributes.

sid

The unique string that identifies the Evaluation resource.

status

One of compliant or noncompliant.

url

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.