Amazon-MWS
view release on metacpan or search on metacpan
lib/Amazon/MWS/XML/Product.pm view on Meta::CPAN
package Amazon::MWS::XML::Product;
use strict;
use warnings;
use URI;
use Moo;
use MooX::Types::MooseLike::Base qw(:all);
=head1 NAME
Amazon::MWS::XML::Product
=head1 DESCRIPTION
Class to handle the products and emit data structures suitable for XML
generation.
=head1 ACCESSORS
They has to be passed to the constructor
=over 4
=item sku
Mandatory.
=item feeds_needed([qw/product inventory price image variants/])
If set to an arrayref, output only the selected feeds.
=item timestamp_string
An arbitrary string (usually a timestamp) which identifies the
revision of the product.
=item ean
=item asin
=item title
=item description
=item brand
=item category_code
=item product_data
This accessor should contain category-specific structures. This
appears to be needed when creating a product which is not present on
Amazon.
Example values:
{ CE => { ProductType => { PhoneAccessory => {} } } }
{ Sports => { ProductType => 'SportingGoods' } }
The exect structure to pass can be determined only looking at the
specific xsd file.
Please keep in mind that the category_code has nothing to do with this
structure, and doesn't even exist an exact mapping between these
categories and the listing categories.
Documentation from Amazon:
Section containing category-specific information such as variations.
Reference one or more of the following XSDs to complete the
ProductData section (only one category can be used for a given item).
Keep in mind that some of these product categories might not be
available for merchants on some Amazon websites. If a product category
is available to merchants on a particular Amazon website, then the XSD
files for that category are valid for that Amazon website as well.
=item inventory
Indicates whether or not an item is available (any positive number =
available; 0 = not available). Every time a quantity is sent for an
item, the existing quantity is replaced by the new quantity in the
feed.
This accessor is read-write because L<Amazon::MWS::Uploader> may want
to throttle the inventory. Other code is discouraged to use this as a
modifier.
=item ship_in_days
( run in 0.866 second using v1.01-cache-2.11-cpan-39bf76dae61 )