Shipment::Service
version 3.10
use Shipment::Service; use Data::Currency; my $service = Shipment::Service->new( id => '02', name => 'Domestic Ground', cost => Data::Currency->new(10, 'USD'), );
Shipment::Service - a shipping service
This class defines a shipping service. It is used in a Shipment::Base class for listing available services or storing details about a rate.
The service id and carrier id as defined by a shipping service
type: String
A descriptive name for the service
The package type accepted by this service
type: Shipment::Package
The estimated transit days for the service
type: Number
The shipment date
type: DateAndTime
The estimated time of arrival
Whether or not the eta is guaranteed by the carrier
type: Bool
The cost of the service
type: Data::Currency
Any extra charges and adjustments that will be applied, but are not included in the cost
Available options for the service (this attribute was added for Purolator)
type: HashRef[Str]
Extra service charges (Insurance, Carbon Offset, etc) - this attribute was added for Temando
type: HashRef[Shipment::Service]
Andrew Baerg @ <andrew at pullingshots dot ca>
http://pullingshots.ca/
Issues can be submitted at https://github.com/pullingshots/Shipment/issues
Copyright (C) 2016 Andrew J Baerg, All Rights Reserved
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.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Andrew Baerg <baergaj@cpan.org>
This software is copyright (c) 2018 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.
To install Shipment, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Shipment
CPAN shell
perl -MCPAN -e shell install Shipment
For more information on module installation, please visit the detailed CPAN module installation guide.