W3C home > Mailing lists > Public > public-vocabs@w3.org > January 2014

Proposal: quantities and shipment details for Order

From: KÚvin Dunglas <dunglas@gmail.com>
Date: Sun, 26 Jan 2014 10:41:28 +0000
Message-ID: <CAOv1iQabw80uGkRkUAjHGTGb5gTC-XQooQfeL1s9ob1w38=2JA@mail.gmail.com>
To: public-vocabs@w3.org
Hi,

The new http://schema.org/Order type is great but, in my opinion, can
be extended to be more useful and to match more existing models.
The main drawback with this type is its support for multiple line items.

* Many merchants such as Amazon, CDiscount or LaRedoute handle status
at the order line level: one item can be "Processing" while another of
the same order (ordered in the same time) is "In Transit". In the
current vocable, the status is stored at the Order level, not at the
Order item level, so it's impossible to represent case explained
above.
* In the current vocable, there is no notion of quantity for an order
item. However, in almost all e-commerce platforms, a customer can
order several times the same "Offer". (For instance, you can buy 3
t-shirts with SKU ABCDE).

To fix this drawback, I propose to create a new type called OrderItem
with the following properties:
* quantity (Number): the number of acceptedOffer ordered
* acceptedOffer (Offer): the accepted offer
* orderItemStatus (OrderStatus): the order item status
* orderItemNumber (Text): the order item number

And to add a property orderItem to Order.

Another thing that will be great to include in this vocable is shipment details.

I propose to also add those properties to the new OrderItem type:
* carrier (Carrier): the carrier
* trackingNumber (Text): the tracking number
* trackingUrl (URL): the tracking URL
* shipmentDate (Date): the date of expedition

And an extendable enumeration of carriers (Carrier) with values Like
UPSCarrier, TNTCarrier...

What do you think of that?
-- 
KÚvin Dunglas

http://dunglas.fr
Received on Sunday, 26 January 2014 21:31:08 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 26 January 2014 21:31:09 UTC