Subversion Repositories SmartDukaan

Rev

Rev 13582 | Rev 13631 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13582 Rev 13610
Line 45... Line 45...
45
    ORDER_PLACED = 'Order Placed'
45
    ORDER_PLACED = 'Order Placed'
46
    ORDER_DELIVERED = 'Delivered'
46
    ORDER_DELIVERED = 'Delivered'
47
    ORDER_SHIPPED = 'Shipped' #Lets see if we can make use of it
47
    ORDER_SHIPPED = 'Shipped' #Lets see if we can make use of it
48
    ORDER_CANCELLED = 'Cancelled'
48
    ORDER_CANCELLED = 'Cancelled'
49
    
49
    
-
 
50
    CB_PENDING = 'Pending'
-
 
51
    CB_CREDITED = 'Credited to wallet'
-
 
52
    CB_NA = 'Not Applicable'
-
 
53
    CB_APPROVED = 'Approved'
-
 
54
    CB_CANCELLED = 'Cancelled'
-
 
55
    
50
    
56
    
51
    def __init__(self, store_id):
57
    def __init__(self, store_id):
52
        self.store_id = store_id
58
        self.store_id = store_id
53
        self.store_name = sourceMap[store_id]
59
        self.store_name = sourceMap[store_id]
54
    
60
    
Line 62... Line 68...
62
    def saveToAffiliate(self, offers):
68
    def saveToAffiliate(self, offers):
63
        raise NotImplementedError
69
        raise NotImplementedError
64
    
70
    
65
    def scrapeStoreOrders(self,):
71
    def scrapeStoreOrders(self,):
66
        raise NotImplementedError
72
        raise NotImplementedError
-
 
73
    
-
 
74
    '''
-
 
75
    To Settle payback for respective stores.
-
 
76
    Also ensures that settlement happens only for closed orders
-
 
77
    '''
-
 
78
    def settlePayBack(self,):
-
 
79
        raise NotImplemented
67
    '''
80
    '''
68
    Parses the order for specific store
81
    Parses the order for specific store
69
    
82
    
70
    order id, total amount, created on(now() if could not parse
83
    order id, total amount, created on(now() if could not parse
71
    suborder id, title, quantity, unit price, expected delivery date,
84
    suborder id, title, quantity, unit price, expected delivery date,
Line 75... Line 88...
75
    with respective cashback.
88
    with respective cashback.
76
    
89
    
77
    Possible fields to display for Not yet delivered orders are 
90
    Possible fields to display for Not yet delivered orders are 
78
    Product/Quantity/Amount/Store/CashbackAmount/OrderDate/ExpectedDelivery/OrderStaus/DetailedStatus/CashbackStatus
91
    Product/Quantity/Amount/Store/CashbackAmount/OrderDate/ExpectedDelivery/OrderStaus/DetailedStatus/CashbackStatus
79
    No need to show cancelled orders.
92
    No need to show cancelled orders.
80
    CashbackStatus - Pending/Approved/Cancelled/CreditedToWallet
93
    CashbackStatus - NotApplicable/Pending/Approved/Cancelled/CreditedToWallet
81
    OrderStatus - Placed/Cancelled/Delivered
94
    OrderStatus - Placed/Cancelled/Delivered
82
    '''
95
    '''
83
    def parseOrderRawHtml(self, orderId, subTagId, userId, rawHtml, orderSuccessUrl):
96
    def parseOrderRawHtml(self, orderId, subTagId, userId, rawHtml, orderSuccessUrl):
84
        
97
        
85
        pass
98
        pass