validate()rate_request()
Business::Shipping - Interface for shippers (UPS, USPS)
use Business::Shipping;
my $rate_request = Business::Shipping->rate_request(
shipper => 'Offline::UPS',
service => 'GNDRES',
from_zip => '98682',
to_zip => '98270',
weight => 5.00,
);
$rate_request->submit() or die $rate_request->user_error();
print $rate_request->total_charges();
Bundle::DBD::CSV (any) Cache::FileCache (any) Class::MethodMaker::Engine (any) Clone (any) Config::IniFiles (any) Crypt::SSLeay (any) Getopt::Mixed (any) Log::Log4perl (any) LWP::UserAgent (any) Math::BaseCnv (any) Scalar::Util (1.10) XML::DOM (any) XML::Simple (2.05)
perl -MCPAN -e 'install Bundle::Business::Shipping'
See the INSTALL file for more information.
=head1 ERROR/DEBUG HANDLING
Log4perl is used for logging error, debug, etc. messages. See config/log4perl.conf.
=head1 METHODS
Generic attribute setter.
Log and store errors that should be visibile to the user.
validate()Confirms that the object is valid. Checks that required attributes are set.
rate_request()This method is used to request shipping rate information from online providers or offline tables. A hash is accepted as input with the following key values:
Business::Shipping::SHIPPER. For example, UPS_Online.
Generates a subclass, such as a Shipment object.
Dan Browning <db@kavod.com>, Kavod Technologies, http://www.kavod.com.
Copyright (c) 2003-2004 Kavod Technologies, Dan Browning. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See LICENSE for more info.