The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Marketplace::Ebay::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.

Items must implement the following methods:

sku
quantity
price

From the Ebay documentation:

The price of the order line item (transaction). This amount does not take into account shipping, sales tax, and other costs related to the order line item. If multiple units were purchased through a non- variation, fixed-price listing, consider this value the per-unit price. In this case, the TransactionPrice would be multiplied by the Transaction.QuantityPurchased value.

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.

OTHER SHORTCUTS

canonical_sku

The canonical sku.

variant_sku

The variant sku.

sku

This return either the variant's SKU, if present, or the canonical SKU.

shipping

The shipping costs. Always return 0, it's not something available in the orderline item.

is_shipped

Return the shipped time if defined. You should consider this a boolean.

email

Buyer's email.

first_name

Buyer's first name

last_name

Buyer's last name.

ebay_site

The ebay site id.