Subversion Repositories SmartDukaan

Rev

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

Rev 20927 Rev 20954
Line 34... Line 34...
34
        '''
34
        '''
35
        thriftObject = tUserWallet()
35
        thriftObject = tUserWallet()
36
        thriftObject.id = self.id
36
        thriftObject.id = self.id
37
        thriftObject.userId = self.userId
37
        thriftObject.userId = self.userId
38
        thriftObject.amount = self.amount
38
        thriftObject.amount = self.amount
-
 
39
        thriftObject.refundable_amount = self.refundable_amount
39
        return thriftObject
40
        return thriftObject
40
        
41
        
41
    def from_thrift_object(self, thriftUserWallet):
42
    def from_thrift_object(self, thriftUserWallet):
42
        self.id = thriftUserWallet.id
43
        self.id = thriftUserWallet.id
43
        self.userId = thriftUserWallet.userId
44
        self.userId = thriftUserWallet.userId
44
        self.amount = thriftUserWallet.amount
45
        self.amount = thriftUserWallet.amount
-
 
46
        self.refundable_amount = thriftUserWallet.refundable_amount
45
        
47
        
46
    def is_valid(self):
48
    def is_valid(self):
47
        return True
49
        return True
48
50