NAME
Amazon::MWS::XML::Response::OrderReport
DESCRIPTION
Class to handle the xml structures returned by the GetReport
with type OrderReport
.
The constructor is meant to be called by Amazon::MWS::Uploader when get_order_reports
is called. A list of objects of this class will be returned.
SYNOPSIS
my $order = Amazon::MWS::XML::Response::OrderReport->new(struct => $struct);
my @items = $order->items;
ACCESSORS
struct
Mandatory. Must be an hashref.
order_number
Our order ID. Read-write.
shipping_address
An Amazon::MWS::XML::Address instance, lazily built.
billing_address
An Amazon::MWS::XML::Address instance, lazily built.
METHODS
amazon_order_number
The buyer email.
order_date
The date when the order processing was complete or when the order was placed as a DateTime object.
items
Return a list of Amazon::MWS::XML::Response::OrderReport::Item, which acts (more or less) like Amazon::MWS::XML::OrderlineItem.
as_ack_order_hashref
Return a structure suitable create an the acknowledge feed.
can_be_imported
Compatibility method with Amazon::MWS::XML::Order. Given that this is a report, the order can be imported right away without checking. LFW.
order_status
Compatibility method.
currency
We check the items currency.
shipping_cost
The sum of the shipping of all the items (including taxes from the Amazon point of view).
subtotal
The sum of the items' subtotal
total_cost
The grand total
total_amazon_fee
The total of the amazon fees.
number_of_items
Total number of items.