The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Amazon::MWS::TypeMap

DESCRIPTION

Functions for mapping between types specified in the MWS API documentation and perl datatypes.

EXPORTED FUNCTIONS

to_amazon ( type, value )

Converts from a perl datatype to a string for use as an MWS param.

from_amazon ( type, value )

Converts from a string supplied by MWS to a perl datatype.

TYPES

string

A plain perl string.

boolean

When sent by amazon, true is converted to 1 and false to the empty string. When sent to amazon, any true value or false value will be properly converted.

datetime

Converted to and from DateTime objects.

AUTHOR

Paul Driver frodwith@cpan.org

LICENCE AND COPYRIGHT

Copyright (c) 2009, Plain Black Corporation http://plainblack.com. All rights reserved

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.