-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7cf1358
commit 0f8efcc
Showing
11 changed files
with
161 additions
and
160 deletions.
There are no files selected for viewing
40 changes: 0 additions & 40 deletions
40
src/main/java/com/learning/mfscreener/helper/NavSearchHelper.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
src/main/java/com/learning/mfscreener/helper/SpringContext.java
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
src/main/java/com/learning/mfscreener/models/portfolio/MergedTransaction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.learning.mfscreener.models.portfolio; | ||
|
||
import java.time.LocalDate; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class MergedTransaction { | ||
private final LocalDate date; | ||
private final List<UserTransactionDTO> transactions; | ||
|
||
public MergedTransaction(LocalDate date) { | ||
this.date = date; | ||
this.transactions = new ArrayList<>(); | ||
} | ||
|
||
public void add(UserTransactionDTO txn) { | ||
this.transactions.add(txn); | ||
} | ||
|
||
public LocalDate getDate() { | ||
return date; | ||
} | ||
|
||
public List<UserTransactionDTO> getTransactions() { | ||
return transactions; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/com/learning/mfscreener/models/portfolio/Transaction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.learning.mfscreener.models.portfolio; | ||
|
||
import java.math.BigDecimal; | ||
import java.time.LocalDate; | ||
|
||
public record Transaction(LocalDate txnDate, BigDecimal units, BigDecimal nav, BigDecimal tax) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.