Amazon-MWS

 view release on metacpan or  search on metacpan

lib/Amazon/MWS/XML/Response/OrderReport/Item.pm  view on Meta::CPAN

package Amazon::MWS::XML::Response::OrderReport::Item;

use utf8;
use strict;
use warnings;
use MooX::Types::MooseLike::Base qw(Int Str HashRef);
use namespace::clean;
use Moo;

=head1 NAME

Amazon::MWS::XML::Response::OrderReport::Item

=head1 DESCRIPTION

Class which handles the xml structures reported by the C<GetReport>
with type C<OrderReport> in the C<Item> slot (the orderline's items).

The class should act like L<Amazon::MWS::XML::OrderlineItem> when
applicable.

=head1 ACCESSORS

They correspond to the documented structure. They should not be called
directly, though, prefer the methods above.

=over 4

=item Title              

=item Quantity           

=item SKU                

=item ItemPrice          

=item ProductTaxCode     

=item AmazonOrderItemCode

=item ItemFees           

=back

=cut

has Title               => (is => 'ro', isa => Str);
has Quantity            => (is => 'ro', isa => Int);
has SKU                 => (is => 'ro', isa => Str);
has ItemPrice           => (is => 'ro', isa => HashRef);
has ProductTaxCode      => (is => 'ro', isa => Str);
has AmazonOrderItemCode => (is => 'ro', isa => Str);
has ItemFees            => (is => 'ro', isa => HashRef);

=head2 merchant_order_item

Our id (read-write).

=head1 METHODS AND SHORTCUTS

All the methods are read only.

=over 4

=item total_price

The grand total for the item in the given quantity.

=item subtotal

If there are taxes in the amazon price component, including taxes, but
without shipping.

=item shipping

The shipping cost including taxes.

=item price

Individual price of a single item, including taxes (from the Amazon
point of view): subtotal / quantity.

=item shipping_netto

The shipping without the taxes (from the Amazon point of view).

=item price_netto

The price without taxes (from the Amazon point of view) for the
quantity.

=item item_tax

=item shipping_tax

=item amazon_fee

The price paid to amazon for the given item. It could be a negative
number.

=item quantity

=item currency

=item name

=item sku

=item amazon_order_item

=item as_ack_orderline_item_hashref

=back

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.509 second using v1.00-cache-2.02-grep-82fe00e-cpan-f73e49a70403 )