From 6ec0fdba4c516be0e83f77d5e73a7bb92f47a8fd Mon Sep 17 00:00:00 2001 From: Vincent Kok Date: Mon, 23 Oct 2023 18:03:29 +0200 Subject: [PATCH] #330 Add support for the Klarna One payment method --- src/Mollie.Api/Models/Payment/PaymentMethod.cs | 1 + .../Framework/Factories/PaymentResponseFactoryTests.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Mollie.Api/Models/Payment/PaymentMethod.cs b/src/Mollie.Api/Models/Payment/PaymentMethod.cs index c1e1991a..bd7d1ebe 100644 --- a/src/Mollie.Api/Models/Payment/PaymentMethod.cs +++ b/src/Mollie.Api/Models/Payment/PaymentMethod.cs @@ -17,6 +17,7 @@ public static class PaymentMethod { public const string Refund = "refund"; public const string KlarnaPayLater = "klarnapaylater"; public const string KlarnaSliceIt = "klarnasliceit"; + public const string KlarnaOne = "klarna"; public const string Przelewy24 = "przelewy24"; public const string ApplePay = "applepay"; public const string MealVoucher = "mealvoucher"; diff --git a/tests/Mollie.Tests.Unit/Framework/Factories/PaymentResponseFactoryTests.cs b/tests/Mollie.Tests.Unit/Framework/Factories/PaymentResponseFactoryTests.cs index 85fdc2ae..1d14141c 100644 --- a/tests/Mollie.Tests.Unit/Framework/Factories/PaymentResponseFactoryTests.cs +++ b/tests/Mollie.Tests.Unit/Framework/Factories/PaymentResponseFactoryTests.cs @@ -26,6 +26,7 @@ public class PaymentResponseFactoryTests { [InlineData(PaymentMethod.Refund, typeof(PaymentResponse))] [InlineData(PaymentMethod.KlarnaPayLater, typeof(PaymentResponse))] [InlineData(PaymentMethod.KlarnaSliceIt, typeof(PaymentResponse))] + [InlineData(PaymentMethod.KlarnaOne, typeof(PaymentResponse))] [InlineData(PaymentMethod.Przelewy24, typeof(PaymentResponse))] [InlineData(PaymentMethod.ApplePay, typeof(PaymentResponse))] [InlineData(PaymentMethod.MealVoucher, typeof(PaymentResponse))]