Subversion Repositories SmartDukaan

Rev

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

Rev 16399 Rev 16547
Line 221... Line 221...
221
    
221
    
222
    def __init__(self, sku, category_id, thresholdPrice, rank):
222
    def __init__(self, sku, category_id, thresholdPrice, rank):
223
        self.sku = sku
223
        self.sku = sku
224
        self.category_id = category_id
224
        self.category_id = category_id
225
        self.thresholdPrice = thresholdPrice
225
        self.thresholdPrice = thresholdPrice
226
        self.rank = rank 
226
        self.rank = rank
-
 
227
 
227
    
228
    
228
 
229
 
229
class obj(object):
230
class obj(object):
230
    def __init__(self, d):
231
    def __init__(self, d):
231
        for a, b in d.items():
232
        for a, b in d.items():
232
            if isinstance(b, (list, tuple)):
233
            if isinstance(b, (list, tuple)):
233
                setattr(self, a, [obj(x) if isinstance(x, dict) else x for x in b])
234
                setattr(self, a, [obj(x) if isinstance(x, dict) else x for x in b])
234
            else:
235
            else:
235
                setattr(self, a, obj(b) if isinstance(b, dict) else b)
-
 
236
236
                setattr(self, a, obj(b) if isinstance(b, dict) else b)
-
 
237
 
-
 
238
class AppTransactions():
-
 
239
    def __init__(self, app_id, retailer_id, transaction_time, redirect_url, payout_status, payout_description, cashback_status, cash_back_description, payout_amount, payout_time, offer_price, overridenCashBack ,isCashBackOverriden):
-
 
240
        self.app_id = app_id
-
 
241
        self.retailer_id = retailer_id
-
 
242
        self.transaction_time = transaction_time
-
 
243
        self.redirect_url = redirect_url
-
 
244
        self.payout_status = payout_status
-
 
245
        self.payout_description = payout_description
-
 
246
        self.cashback_status = cashback_status
-
 
247
        self.cash_back_description = cash_back_description
-
 
248
        self.payout_amount = payout_amount
-
 
249
        self.payout_time = payout_time
-
 
250
        self.offer_price = offer_price
-
 
251
        self.overridenCashBack = overridenCashBack
-
 
252
        self.isCashBackOverriden = isCashBackOverriden
-
 
253
        
-
 
254
        
-
 
255
        
-
 
256
        
-
 
257
        
-
 
258
237
259