Skip to content

Commit 8cfd4e1

Browse files
committed
persists PaymentAccountCreatedOrUpdatedEvent
1 parent 2c73031 commit 8cfd4e1

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎build.sbt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ThisBuild / organization := "app.softnetwork"
22

33
name := "payment"
44

5-
ThisBuild / version := "0.8.0"
5+
ThisBuild / version := "0.8.1"
66

77
ThisBuild / scalaVersion := "2.12.18"
88

‎core/src/main/scala/app/softnetwork/payment/persistence/typed/PaymentBehavior.scala‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,13 @@ trait PaymentBehavior
13461346
keyValueDao.addKeyValue(walletId, entityId)
13471347
updatedPaymentAccount = updatedPaymentAccount.resetWalletId(Some(walletId))
13481348

1349-
var events: List[ExternalSchedulerEvent] = List.empty
1349+
var events: List[ExternalSchedulerEvent] =
1350+
List(
1351+
PaymentAccountCreatedOrUpdatedEvent.defaultInstance
1352+
.withLastUpdated(lastUpdated)
1353+
.withExternalUuid(updatedPaymentAccount.externalUuid)
1354+
.copy(profile = updatedPaymentAccount.profile)
1355+
)
13501356

13511357
if (
13521358
updatedPaymentAccount.legalUser && acceptedTermsOfPSP.getOrElse(

0 commit comments

Comments
 (0)