From 5dbc98e2aab44b5130704221a4f7833cacfcfcc5 Mon Sep 17 00:00:00 2001 From: bimleshkanth Date: Fri, 13 Mar 2026 09:40:11 +0530 Subject: [PATCH 1/2] Added eclipse IDE project configuration file --- .project | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .project diff --git a/.project b/.project new file mode 100644 index 0000000..de87375 --- /dev/null +++ b/.project @@ -0,0 +1,11 @@ + + + walletAPI + + + + + + + + From c868643c2be77e9ab400f611fb7a9aaaafcdd0c0 Mon Sep 17 00:00:00 2001 From: bimleshkanth Date: Fri, 13 Mar 2026 09:58:22 +0530 Subject: [PATCH 2/2] Lead Developer implemented add money feature in feature/add-money branch --- .../edureka/wallet/Impl/WalletServiceImpl.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/java/com/edureka/wallet/Impl/WalletServiceImpl.java b/src/main/java/com/edureka/wallet/Impl/WalletServiceImpl.java index 5ff32e8..7cefeb2 100644 --- a/src/main/java/com/edureka/wallet/Impl/WalletServiceImpl.java +++ b/src/main/java/com/edureka/wallet/Impl/WalletServiceImpl.java @@ -26,5 +26,21 @@ public WalletDto getBalance(String emailId) { // Implemented return null; } + + @Override + public double addMoney(String userId, double amount) { + + Wallet wallet = walletRepository.get(userId); + + if(wallet == null){ + wallet = new Wallet(userId, 0); + } + + wallet.setBalance(wallet.getBalance() + amount); + + walletRepository.put(userId, wallet); + + return wallet.getBalance(); + } }