From eb7b147059aef0136bd6bd6163eb07f611216fc7 Mon Sep 17 00:00:00 2001 From: Krzysztof Grzelak Date: Sat, 7 Feb 2026 19:22:44 +0100 Subject: [PATCH] update PaymentMethod enum --- src/Payment/Domain/Enum/PaymentMethod.php | 2 ++ tests/Unit/Application/Mapper/ChannelMapperTest.php | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Payment/Domain/Enum/PaymentMethod.php b/src/Payment/Domain/Enum/PaymentMethod.php index d46c01f..a159478 100644 --- a/src/Payment/Domain/Enum/PaymentMethod.php +++ b/src/Payment/Domain/Enum/PaymentMethod.php @@ -12,4 +12,6 @@ enum PaymentMethod: string case CARD = 'CARD'; case MOBILE_WALLET = 'MOBILE_WALLET'; case PAYSAFE = 'PAYSAFE'; + case MW = 'MW'; + case PAYPAL = 'PAYPAL'; } diff --git a/tests/Unit/Application/Mapper/ChannelMapperTest.php b/tests/Unit/Application/Mapper/ChannelMapperTest.php index 6bfa7e3..fba5da9 100644 --- a/tests/Unit/Application/Mapper/ChannelMapperTest.php +++ b/tests/Unit/Application/Mapper/ChannelMapperTest.php @@ -155,13 +155,15 @@ public function mapsEmptyCollection(): void #[Test] public function mapsAllPaymentMethods(): void { - $methods = ['BLIK', 'PBL', 'BNPL', 'CARD', 'MOBILE_WALLET']; + $methods = ['BLIK', 'PBL', 'BNPL', 'CARD', 'MOBILE_WALLET', 'MW', 'PAYPAL']; $expectedEnums = [ PaymentMethod::BLIK, PaymentMethod::PBL, PaymentMethod::BNPL, PaymentMethod::CARD, PaymentMethod::MOBILE_WALLET, + PaymentMethod::MW, + PaymentMethod::PAYPAL, ]; foreach ($methods as $index => $method) {