From 7e0a0dcc2548bb7fa20617a41622c5825b4223b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Manciot?= Date: Tue, 21 Apr 2026 21:27:25 +0200 Subject: [PATCH] chore: bump version to 0.9.4 and update recurring payment card status handling Closed Issue #19 --- build.sbt | 2 +- .../persistence/typed/RecurringPaymentCommandHandler.scala | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 3c365a3..37501be 100644 --- a/build.sbt +++ b/build.sbt @@ -18,7 +18,7 @@ ThisBuild / organization := "app.softnetwork" name := "payment" -ThisBuild / version := "0.9.3" +ThisBuild / version := "0.9.4" ThisBuild / scalaVersion := scala212 diff --git a/core/src/main/scala/app/softnetwork/payment/persistence/typed/RecurringPaymentCommandHandler.scala b/core/src/main/scala/app/softnetwork/payment/persistence/typed/RecurringPaymentCommandHandler.scala index ed12bda..6bdb58b 100644 --- a/core/src/main/scala/app/softnetwork/payment/persistence/typed/RecurringPaymentCommandHandler.scala +++ b/core/src/main/scala/app/softnetwork/payment/persistence/typed/RecurringPaymentCommandHandler.scala @@ -297,7 +297,9 @@ trait RecurringPaymentCommandHandler List( RecurringPaymentRegisteredEvent.defaultInstance .withExternalUuid(paymentAccount.externalUuid) - .withRecurringPayment(recurringPayment) + .withRecurringPayment( + recurringPayment.withCardStatus(result.status) + ) ) ++ { if (result.status.isEnded) { // cancel scheduled payIn for recurring card payment List(