From 22741de8b88d4f69f5fd3b2e327660aab300e49a Mon Sep 17 00:00:00 2001 From: helmutm Date: Fri, 22 May 2009 09:34:27 +0000 Subject: [PATCH] add shipping info fields to order item interface git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3392 fd906abe-77d9-0310-91a1-e0d9ade77398 --- commerce/interfaces.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/commerce/interfaces.py b/commerce/interfaces.py index a4efd6f..edf195d 100644 --- a/commerce/interfaces.py +++ b/commerce/interfaces.py @@ -335,6 +335,8 @@ class IOrder(Interface): netValues = Attribute(u'A collection of net total values (IValue objects)' u'of the order.') total = Attribute(u'The total gross value (Decimal) of the order.') + orderDate = Attribute(u'The day the order was issued.') + orderType = Attribute(u'Some string used for identifying the type of the order.') class IOrderItem(ITrack): @@ -348,6 +350,8 @@ class IOrderItem(ITrack): required=True) product = Attribute(u'The product represented by this order item.') + productTitle = Attribute(u'Optional short description, especially ' + u'useful for pseudo products.') party = Attribute(u'The party (person, customer, session, ...) ' u'that is ordering the product.') shop = Attribute(u'The shop from which the product is ordered.') @@ -355,6 +359,10 @@ class IOrderItem(ITrack): unitPrice = Attribute(u'The basic unit price for one of the product ' u'items ordered.') fullPrice = Attribute(u'The full price for the quantity ordered.') + quantityShipped = Attribute(u'The total quantity that has been shipped ' + u'already.') + shippingInfo = Attribute(u'A list of mappings, with fields like: ' + u'shippingId, shippingDate, quantity, packageId') def remove(): """ Remove the order item from the order or cart.