| Business-Shipping documentation | Contained in the Business-Shipping distribution. |
Business::Shipping::UPS_Online::Shipment
Syntatic sugar to avoid push @{$self->packages()}, $new_package;
Daniel Browning, db@kavod.com, http://www.kavod.com/
Copyright 2003-2011 Daniel Browning <db@kavod.com>. All rights reserved. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. See LICENSE for more info.
| Business-Shipping documentation | Contained in the Business-Shipping distribution. |
package Business::Shipping::UPS_Online::Shipment;
use Any::Moose; use Business::Shipping::Config; use Business::Shipping::Logging; use version; our $VERSION = qv('400'); extends 'Business::Shipping::Shipment::UPS'; # of 'Business::Shipping::UPS_Online::Package' objects has 'packages' => ( is => 'rw', isa => 'ArrayRef[Business::Shipping::UPS_Online::Package]', default => sub { [Business::Shipping::UPS_Online::Package->new()] }, auto_deref => 1 ); has 'max_weight' => (is => 'rw', default => 150); has 'cod' => (is => 'rw'); has 'cod_funds_code' => (is => 'rw'); has 'cod_value' => (is => 'rw');
sub packages_push { my ($self, $new_package) = @_; push @{ $self->packages() }, $new_package; return; } __PACKAGE__->meta()->make_immutable(); 1; __END__