Shipment::Package
version 3.10
use Shipment::Package; my $package = Shipment::Package->new( weight => 10, length => 18, width => 18, height => 24, );
Shipment::Package - a package to be shipped
This class defines a package to be shipped. It also includes attributes which are set after a shipment has been created (label, cost, tracking_id)
The package type id as defined by a shipping service
type: String
The package type as defined by a shipping service (i.e. "envelope")
A descriptive name for the package (i.e. "12x12x12 box")
Notes (i.e. to describe the package contents)
Whether or not the items being sent are fragile
The weight of the package. Units are determined by the Shipment::Base class
type: Number
The dimensions of the package. Units are determined by the Shipment::Base class
The value of the contents to be insured
type: Data::Currency
The value of the contents
The shipping label. Set by a Shipment::Base class
type: Shipment::Label
The tracking id. Set by a Shipment::Base class.
Also can be used to define a tracking id to cancel or track.
The cost to ship this package. Set by a Shipment::Base class
Items in the package. Typically used for commercial invoice.
type: ArrayRef[HashRef]
Example: [ { quantity => 2, description => 'Footbeds', customs_value => 40, weight => 0.4, origin_country => 'KR', }, ]
Andrew Baerg @ <andrew at pullingshots dot ca>
http://pullingshots.ca/
Issues can be submitted at https://github.com/pullingshots/Shipment/issues
Copyright (C) 2021 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.