Subversion Repositories SmartDukaan

Rev

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

Rev 21535 Rev 22043
Line 1848... Line 1848...
1848
        """
1848
        """
1849
        try:
1849
        try:
1850
            return get_user_wallet(userId).to_thrift_object()
1850
            return get_user_wallet(userId).to_thrift_object()
1851
        finally:
1851
        finally:
1852
            self.closeSession()
1852
            self.closeSession()
-
 
1853
            
-
 
1854
            
-
 
1855
    def getLatestUserWalletHistory(self, userId, offset, limit):
-
 
1856
        try:
-
 
1857
            return [userWalletHistory.to_thrift_object() for userWalletHistory in get_user_wallet_history(userId, offset, limit)]
-
 
1858
        finally:
-
 
1859
            self.closeSession()
1853
    
1860
    
1854
    def getUserWalletHistory(self, userId):
1861
    def getUserWalletHistory(self, userId):
1855
        """
1862
        """
1856
        Parameters:
1863
        Parameters:
1857
         - userId
1864
         - userId
1858
        """
1865
        """
1859
        try:
1866
        try:
1860
            return [wallet.to_thrift_object() for wallet in get_user_wallet_history(userId)]
1867
            return [userWalletHistory.to_thrift_object() for userWalletHistory in get_user_wallet_history(userId)]
1861
        finally:
1868
        finally:
1862
            self.closeSession()
1869
            self.closeSession()
1863
 
1870
 
1864
    def getServiceProviders(self, rechargeType, onlyActive):
1871
    def getServiceProviders(self, rechargeType, onlyActive):
1865
        """
1872
        """
Line 3279... Line 3286...
3279
            close_session()
3286
            close_session()
3280
            
3287
            
3281
    def getmypmsaprofile(self, associateEmail):
3288
    def getmypmsaprofile(self, associateEmail):
3282
        return to_t_pmsa(get_pmsa_user(None, associateEmail), "" ,"")
3289
        return to_t_pmsa(get_pmsa_user(None, associateEmail), "" ,"")
3283
    
3290
    
3284
    def creditUserWallet(self, userId, amount, cash_back):
3291
    def creditUserWallet(self, userId, amount, cash_back, shortDesc):
3285
        try:
3292
        try:
3286
            return credit_user_wallet(userId, amount, cash_back)
3293
            return credit_user_wallet(userId, amount, cash_back, shortDesc)
3287
        finally:
3294
        finally:
3288
            close_session()
3295
            close_session()
3289
    
3296
    
3290
            
3297
            
3291
        
3298