Marketplace::Ebay::Order
Class to handle the xml structures found in the GetOrders call.
http://developer.ebay.com/devzone/xml/docs/Reference/ebay/GetOrders.html
The aim is to have a consistent interface with Amazon::MWS::XML::Order so importing the orders can happens almost transparently.
The raw structure got from the XML parsing
Always returns ebay
ebay
By default, lookup the name from the shipping address. Defaults to true. Otherwise look it up from the first item. Prior to version 0.19, the name was looked up from the first item only.
read-write accessor for the (shop) order number so you can set this while importing it.
read-write accessor for the payment status, so the shop can set it while importing it.
Return true if both orderstatus and checkout status are completed
Return the order status and the payment status, separated by a colon.
Ebay order id.
Same as ebay_order_number
ebay_order_number
An arrayref with the TransactionArray.Transaction structure. This is used internally by items.
items
Return a list of Marketplace::Ebay::Order::Item objects.
Return a DateTime object with the creation time of the order.
The email of the buyer. Given that this is provided per item, the first one is used.
The first name of the buyer, looked up from the first item.
The last name of the buyer, looked up from the first item.
The BuyerCheckoutMessage's field of the order.
The order's ShippingServiceSelected.ShippingService value
The order's ShippingServiceSelected.ShippingServiceAdditionalCost value. I.e., the cost of the shipping for the other items ordered.
The order's ShippingServiceSelected.ShippingServiceCost value. This is the cost of the shipping for the first item.
The total cost of the shipping. It is the shipping_first_unit + the additional costs multiplied by the number of additional items.
shipping_first_unit
The total of the order, as reported by Ebay.
Sum of the subtotal of all items.
The currency code of the order (looked up in the total).
The CheckoutStatus.PaymentMethod value of the order.
Return true if all the items are marked as shipped.
Return the site where the order was placed. We have to loop over all the items and check if they match. If they don't, we throw an exception.
The ebay's username of the buyer.
To install Marketplace::Ebay, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Marketplace::Ebay
CPAN shell
perl -MCPAN -e shell install Marketplace::Ebay
For more information on module installation, please visit the detailed CPAN module installation guide.