NAME

Business::UPS::Tracking::Response - A response from the UPS webservice

SYNOPSIS

my $response = $request->run();
my $shipment = $response->shipment->[0];
say $shipment->ScheduledDelivery;

DESCRIPTION

This class represents a UPS tracking response. This class glues a Business::UPS::Tracking::Request object and a Business::UPS::Tracking::Shipment object togheter. All methods and accessors available in Business::UPS::Tracking::Shipment can also be accessed via this class.

ACCESSORS

request

The request that lead to this response. Business::UPS::Tracking::Request object.

xml

Parsed xml document. XML::LibXML::Document object

shipment

Array reference of shipments in the response ( Business::UPS::Tracking::Shipment::SmallPackage or Business::UPS::Tracking::Shipment::Freight objects)

CustomerContext

Customer context as supplied in the request