WebService::UPS::Address - Object to Represent Addresses
my $Package = WebService::UPS::TrackRequest->new; $Package->Username('kbrandt'); $Package->Password('topsecrent'); $Package->License('8C3D7EE8FZZZZZ4'); $Package->TrackingNumber('1ZA45Y5111111111'); print $Package->Username(); my $trackedpackage = $Package->requestTrack(); my $address = $trackedpackage->getShipperAddress(); print $address->getZip();
WebService::UPS::Address->new( _address_hash => $object->getShipperAddress());
The constructor method that creates a new address Object. You probably should not be calling this directly as above, rather it should returned from the WebService::UPS::TrackedPackage Object
You shouldn't be messing with it in general. But if you dump it with dumper, and you are clever, you might be able to access things that my module doesn't have getters for.
$address->getCity()
This and the following objects return strings.
$address->getState()
$address->getAddressLine1()
$address->getAddressLine2()
Kyle Brandt, kyle@kbrandt.com http://www.kbrandt.com
To install WebService::UPS::Address, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::UPS::Address
CPAN shell
perl -MCPAN -e shell install WebService::UPS::Address
For more information on module installation, please visit the detailed CPAN module installation guide.