NAME
Marketplace::Rakuten::Order::Item.
DESCRIPTION
Class to handle the xml structures representing a orderline item.
This modules doesn't do much, it just provides an uniform iterface with other Marketplace modules.
All Markteplace::<provider>::Order::Item classes implement the following methods:
- sku
- quantity
- price
- subtotal
- remote_shop_order_item
- merchant_order_item
-
This one should be a read-write accessor, because usually Ebay doesn't know about it.
ACCESSORS
struct
This hashref must be passed to the constructor, containing the XML structure.
order_number
The remote_shop_order_item is returned as the concatenation of the Rakuten's order number, a dash, and the item id.
Defaults to 'unknown'.
OTHER SHORTCUTS
remote_shop_order_item
It looks like the API just passes an id with the position:
item_id Integer ID der Bestell-Position
To be meaningful, the class will concatenate the order number with this.
rakuten_id
Either the variant id or the product id. You should have store the ids when uploading them, so you can use this id to look the real sku up and store it in the accessor.
variant_id
The rakuten variant id
product_id
The rakuten product id
sku
Rakuten's product_art_no. This appears to map to the actual variant's sku.