NAME

Shipment::Service

VERSION

version 0.01111510

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

The service id as defined by a shipping service

type: String

name

A descriptive name for the service

type: String

package

The package type accepted by this service

type: Shipment::Package

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

cost

The cost of the service

type: Data::Currency

options

Available options for the service

type: HashRef[Str]

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.