Subversion Repositories SmartDukaan

Rev

Rev 22049 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22049 Rev 22058
Line 39... Line 39...
39
        Copies attributes to thrift object
39
        Copies attributes to thrift object
40
        '''
40
        '''
41
        thriftObject = tUserWalletHistory()
41
        thriftObject = tUserWalletHistory()
42
        thriftObject.id = self.id
42
        thriftObject.id = self.id
43
        thriftObject.amount = self.amount
43
        thriftObject.amount = self.amount
-
 
44
        thriftObject.refundableAmount = self.refundable_amount
44
        thriftObject.walletId = self.wallet.id
45
        thriftObject.walletId = self.wallet.id
45
        thriftObject.timestamp = to_java_date(self.timestamp)
46
        thriftObject.timestamp = to_java_date(self.timestamp)
46
        thriftObject.referenceNumber = self.reference
47
        thriftObject.referenceNumber = self.reference
47
        thriftObject.referenceType = WalletReferenceType._NAMES_TO_VALUES.get(self.reference_type)
48
        thriftObject.referenceType = WalletReferenceType._NAMES_TO_VALUES.get(self.reference_type)
48
        thriftObject.description = self.description
49
        thriftObject.description = self.description