Subversion Repositories SmartDukaan

Rev

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

Rev 7862 Rev 8942
Line 298... Line 298...
298
    }
298
    }
299
    
299
    
300
    public static double getInterestRate(long emiSchemeId){
300
    public static double getInterestRate(long emiSchemeId){
301
    	for(EmiScheme scheme: emiSchemes){
301
    	for(EmiScheme scheme: emiSchemes){
302
    		if(scheme.getId() == emiSchemeId){
302
    		if(scheme.getId() == emiSchemeId){
303
    			return scheme.getChargeValue();
303
    			return scheme.getInterestRate();
304
    		}
304
    		}
305
    	}
305
    	}
306
    	return 0;
306
    	return 0;
307
    }
307
    }
308
 
308
 
Line 326... Line 326...
326
    			arrayMap.put("gatewayId",scheme.getGatewayId());
326
    			arrayMap.put("gatewayId",scheme.getGatewayId());
327
    			arrayMap.put("minAmount",scheme.getMinAmount());
327
    			arrayMap.put("minAmount",scheme.getMinAmount());
328
    			arrayMap.put("tenure",scheme.getTenure());
328
    			arrayMap.put("tenure",scheme.getTenure());
329
    			arrayMap.put("tenureDescription",scheme.getTenureDescription());
329
    			arrayMap.put("tenureDescription",scheme.getTenureDescription());
330
    			arrayMap.put("id",scheme.getId());
330
    			arrayMap.put("id",scheme.getId());
-
 
331
    			arrayMap.put("interestRate",scheme.getInterestRate());
331
    			schemeList.add(arrayMap);
332
    			schemeList.add(arrayMap);
332
    		}
333
    		}
333
    		return new Gson().toJson(schemeList);
334
    		return new Gson().toJson(schemeList);
334
    	} else {
335
    	} else {
335
    		return emiSchemesInJSON;
336
    		return emiSchemesInJSON;