NAME

Net::Async::Webservice::UPS::Label - a label for a shipment request

VERSION

version 1.1.4

DESCRIPTION

This class is to be used in "ship_confirm" in Net::Async::Webservice::UPS to specify what kind of label you want in the response.

ATTRIBUTES

code

Required, enum of type "ImageType" in Net::Async::Webservice::UPS::Types, one of EPL, ZPL, SPL, STARPL, GIF.

METHODS

as_hash

Returns a hashref that, when passed through XML::Simple, will produce the XML fragment needed in UPS requests to represent this label. GIF labels get a UserAgent value of Mozilla/4.5, and others get a LabelStockSize of 4" by 6": that's what I think the UPS documentation say is required.

AUTHORS

  • Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>

  • Sherzod B. Ruzmetov <sherzodr@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.