-
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.
Add put endpoint for depositing money.
Refactor inAdapter to be in single file Refactor Account out adapter. Add DepositAccount in port and moneyDeposited event.
- Loading branch information
1 parent
796ba8d
commit eb147dc
Showing
5 changed files
with
63 additions
and
13 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
7 changes: 7 additions & 0 deletions
7
...onaldemo/demoparent/transactions/application/port/inbound/account/DepositAccountInPort.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,7 @@ | ||
package io.holixon.cqrshexagonaldemo.demoparent.transactions.application.port.inbound.account | ||
|
||
import java.math.BigDecimal | ||
|
||
interface DepositAccountInPort { | ||
fun deposit(accountNumber: String, amount: BigDecimal) | ||
} |
6 changes: 6 additions & 0 deletions
6
...lixon/cqrshexagonaldemo/demoparent/transactions/domain/model/event/MoneyDepositedEvent.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,6 @@ | ||
package io.holixon.cqrshexagonaldemo.demoparent.transactions.domain.model.event | ||
|
||
import io.holixon.cqrshexagonaldemo.demoparent.transactions.domain.model.account.Iban | ||
import io.holixon.cqrshexagonaldemo.demoparent.transactions.domain.model.account.Money | ||
|
||
data class MoneyDepositedEvent(val iban: Iban, val balance: Money, val timeStamp: Long) : Event |
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