Rev 13781 | Rev 14145 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
'''Created on Jan 16, 2015@author: amit'''from main import Storeclass AffiliateInfo():subTagId = NoneconversionStatus = NoneadId = NoneadDate = NonepayOut = NoneofferName = NonestoreId = NonesaleAmount = NonesaleDate = Noneip = Nonedef __init__(self,subTagId, storeId, conversionStatus, adId, saleDate, payOut, offerName, ip, saleAmount):self.subTagId = subTagIdself.conversionStatus = conversionStatusself.adId = adIdself.payOut = payOutself.offerName = offerNameself.ip = ipself.saleAmount = saleAmountself.storeId = storeIdself.saleDate = saleDatedef __repr__(self):return Noneclass Order():orderId = NonesubOrders = NonedeliveryCharges = NoneuserId = NonemerchantOrderId = NonestoreId = NonediscountApplied = NonesubTagId = Noneclosed = NoneplacedOn = NonetotalAmount = NonepaidAmount = NoneorderSuccessUrl = Nonedef __init__(self, orderId, userId, subTagId, storeId, orderSuccessUrl, closed = False):self.orderId = orderIdself.userId = userIdself.subTagId = subTagIdself.closed = closedself.storeId = storeIdself.orderSuccessUrl = orderSuccessUrlclass SubOrder():status = NoneproductTitle = NoneestimatedDeliveryDate = NoneproductCode = NonedetailedStatus = NonemerchantSubOrderId = NoneproductUrl = NonecourierName = NoneunitPrice = NoneamountPaid = NoneofferDiscount = NonedeliveryCharges = NonetracingkUrl = NoneplacedOn = NonetrackingNumber = Nonequantity = NonecashBackStatus = NonecashBackAmount = NonecashBackPercentage = NoneimgUrl = Noneclosed = NonemissingAff = Nonedef __init__(self, productTitle, productUrl, placedOn, amountPaid, status=Store.ORDER_PLACED, quantity = 1):self.productTitle = productTitleself.productUrl = productUrlself.placedOn = placedOnself.amountPaid = amountPaidself.status = statusself.quantity = 1self.closed = Falseself.missingAff = True