-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed transaction history to return details of sender/receiver in o…
…ne record (#418) * #395: add wallet type to history * #412: change exchange transfer to have two transactions in each the system involved * #412: a bit refactoring and make tests green again! * #412: enabled IT tests with maven build * #412: used kafka testcontainer to provide dynamic kafka port * #412: add missed class! * #396: changed transaction history to return details of sender/receiver in one record * #396: optimize imports --------- Co-authored-by: Peyman <marchosiax@gmail.com> Co-authored-by: Benyamin <23664159+Benyamin001@users.noreply.github.com> Co-authored-by: Peyman <peyman.sepehrad@gmail.com>
- Loading branch information
1 parent
81a79d3
commit 33d8988
Showing
12 changed files
with
98 additions
and
54 deletions.
There are no files selected for viewing
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
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
18 changes: 18 additions & 0 deletions
18
...llet-core/src/main/kotlin/co/nilin/opex/wallet/core/model/TransactionWithDetailHistory.kt
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,18 @@ | ||
package co.nilin.opex.wallet.core.model | ||
|
||
import java.math.BigDecimal | ||
|
||
data class TransactionWithDetailHistory( | ||
val id: Long, | ||
val srcWallet: String, | ||
val destWallet: String, | ||
val senderUuid: String, | ||
val receiverUuid: String, | ||
val currency: String, | ||
val amount: BigDecimal, | ||
val description: String?, | ||
val ref: String?, | ||
val date: Long, | ||
val category: String, | ||
val additionalData: Map<String, Any>?, | ||
) |
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
19 changes: 19 additions & 0 deletions
19
...postgres/src/main/kotlin/co/nilin/opex/wallet/ports/postgres/dto/TransactionWithDetail.kt
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,19 @@ | ||
package co.nilin.opex.wallet.ports.postgres.dto | ||
|
||
import java.math.BigDecimal | ||
import java.time.LocalDateTime | ||
|
||
data class TransactionWithDetail( | ||
val id: Long, | ||
val srcWallet: String, | ||
val destWallet: String, | ||
val senderUuid: String, | ||
val receiverUuid: String, | ||
val currency: String, | ||
val amount: BigDecimal, | ||
val description: String?, | ||
val ref: String?, | ||
val date: LocalDateTime, | ||
val category: String, | ||
val detail: String?, | ||
) |
Oops, something went wrong.