NAME
Shipment::Service
VERSION
version 0.01120470
SYNOPSIS
use Shipment::Service;
use Data::Currency;
my $service = Shipment::Service->new(
id => '02',
name => 'Domestic Ground',
cost => Data::Currency->new(10, 'USD'),
);
NAME
Shipment::Service - a shipping service
ABOUT
This class defines a shipping service. It is used in a Shipment::Base class for listing available services or storing details about a rate.
Class Attributes
id, carrier_id
The service id and carrier id as defined by a shipping service
type: String
name, carrier_name, service_name
A descriptive name for the service
type: String
package
The package type accepted by this service
type: Shipment::Package
etd, pickup_etd
The estimated transit days for the service
type: Number
ship_date
The shipment date
type: DateTime
eta
The estimated time of arrival
type: DateTime
guaranteed
Whether or not the eta is guaranteed by the carrier
type: Bool
cost, base_cost, tax
The cost of the service
type: Data::Currency
extra_charges, adjustments
Any extra charges and adjustments that will be applied, but are not included in the cost
type: Data::Currency
options
Available options for the service (this attribute was added for Purolator)
type: HashRef[Str]
extras
Extra service charges (Insurance, Carbon Offset, etc) - this attribute was added for Temando
type: HashRef[Shipment::Service]
AUTHOR
Andrew Baerg @ <andrew at pullingshots dot ca>
http://pullingshots.ca/
BUGS
Please contact me directly.
COPYRIGHT
Copyright (C) 2010 Andrew J Baerg, All Rights Reserved
NO WARRANTY
Absolutely, positively NO WARRANTY, neither express or implied, is offered with this software. You use this software at your own risk. In case of loss, no person or entity owes you anything whatsoever. You have been warned.
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHORS
Andrew Baerg <baergaj@cpan.org>
Al Newkirk <awncorp@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Andrew Baerg.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.