ACCESSORS (they map the XML data)
- PromotionDiscount
- Title
- OrderItemId
- ASIN
- GiftWrapPrice
- GiftWrapTax
- SellerSKU
- ShippingPrice
- ShippingTax
- ShippingDiscount
- ItemTax
- ConditionId
- ItemPrice
- ConditionSubtypeId
- QuantityShipped
- QuantityOrdered
amazon_order_item
The amazon id for the given item (read-only)
remote_shop_order_item
Alias for amazon_order_item
merchant_order_item
Our id (read-write).
currency
The currency code.
price
Amazon report the item price's as the sum of the items, not the individual price. So we have to do a division for what we know as the item's price. This looks ugly anyway.
From http://docs.developer.amazonservices.com/en_US/orders/2013-09-01/Orders_ListOrderItems.html:
The selling price of the order item. Note that an order item is an item and a quantity. This means that the value of ItemPrice is equal to the selling price of the item multiplied by the quantity ordered. Note that ItemPrice excludes ShippingPrice and GiftWrapPrice.
shipping
The ShippingPrice amount.
subtotal
The price of the items for the given quantity (see above, price
).
as_ack_orderline_item_hashref
Return an hashref suitable for the building of an ack order feed.