NAME
Marketplace::Rakuten::Order
DESCRIPTION
Class to handle the xml structures returned by http://webservice.rakuten.de/documentation/method/get_orders
The aim is to have a consistent interface with Amazon::MWS::XML::Order so importing the orders can happens almost transparently.
ACCESSORS/METHODS
order
The raw structure got from the XML parsing
shop_type
Always returns rakuten
order_number
read-write accessor for the (shop) order number so you can set this while importing it.
payment_status
read-write accessor for the payment status, so the shop can set it while importing it.
order_status
Unclear (for now) what to do here. List of statuses:
- pending
-
Bestellung ist neu eingegangen
- editable
-
Bestellung ist zur Bearbeitung freigegeben
- shipped
-
Bestellung ist versendet
- payout
-
Bestellung ist ausbezahlt
- cancelled
-
Bestellung ist storniert
can_be_imported
It returns true if the status is pending or editable or payout.
remote_shop_order_id
The Rakuten order id.
items
Returns a list of Marketplace::Rakuten::Order::Item objects.
The billing address' email
first_name
The billing address' first name
last_name
The billing address' last name
comments
The buyer's comments.
order_date
Return a DateTime object with the creation time of the order.
shipping_method
It always returns nothing. The data is not provided by the remote service.
shipping_cost
The shipping costs of the order.
subtotal
Subtotal of the order, implemented as total cost minus the shipping cost.
total_cost
The total cost as provided by Rakuten.
payment_method
Mapping:
PP = Vorauskasse
CC = Kreditkarte
ELV = Lastschrift
ELV-AT = Lastschrift Österreich
SUE = Sofortüberweisung
CB = ClickAndBuy
INV = Rechnung
INV-AT = Rechnung Österreich
PAL = Paypal
GP = giropay
KLA = Klarna
MPA = mpass
BAR = Barzahlen
YAP = YAPITAL