From af5780a9f0f0cad760e9d7e578fe2cd938ba5d45 Mon Sep 17 00:00:00 2001 From: Giovanni Berti Date: Mon, 15 Apr 2024 11:03:43 +0200 Subject: [PATCH] fix(auth-request): add session id missing case for wallet card authorization --- .../handlers/TransactionRequestAuthorizationHandlerCommon.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/it/pagopa/transactions/commands/handlers/TransactionRequestAuthorizationHandlerCommon.java b/src/main/java/it/pagopa/transactions/commands/handlers/TransactionRequestAuthorizationHandlerCommon.java index eb4365b17..67df6a95d 100644 --- a/src/main/java/it/pagopa/transactions/commands/handlers/TransactionRequestAuthorizationHandlerCommon.java +++ b/src/main/java/it/pagopa/transactions/commands/handlers/TransactionRequestAuthorizationHandlerCommon.java @@ -362,6 +362,8 @@ private Mono invokeNpgConfirmPayment( Optional sessionId = switch (authorizationData.paymentSessionData()) { case PaymentSessionData.CardSessionData cardSessionData -> Optional.of(cardSessionData.sessionId()); + case PaymentSessionData.WalletCardSessionData walletCardSessionData -> walletCardSessionData.sessionId(); + default -> Optional.empty(); };