From 642607a4a6ea5d9786e9c91a109948e4da3ac1a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armando=20Rodr=C3=ADguez?= <127134616+armando-rodriguez-cko@users.noreply.github.com> Date: Thu, 21 Nov 2024 14:28:54 +0100 Subject: [PATCH] Update payment contexts properties and fix tests --- .../contexts/PaymentContextsAirlineData.java | 2 +- .../checkout/payments/RequestApmPaymentsIT.java | 17 ----------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/src/main/java/com/checkout/payments/contexts/PaymentContextsAirlineData.java b/src/main/java/com/checkout/payments/contexts/PaymentContextsAirlineData.java index bacf34be..6de5609e 100644 --- a/src/main/java/com/checkout/payments/contexts/PaymentContextsAirlineData.java +++ b/src/main/java/com/checkout/payments/contexts/PaymentContextsAirlineData.java @@ -14,7 +14,7 @@ @AllArgsConstructor public final class PaymentContextsAirlineData { - private List ticket; + private PaymentContextsTicket ticket; private List passenger; diff --git a/src/test/java/com/checkout/payments/RequestApmPaymentsIT.java b/src/test/java/com/checkout/payments/RequestApmPaymentsIT.java index 92d41979..37864ec1 100644 --- a/src/test/java/com/checkout/payments/RequestApmPaymentsIT.java +++ b/src/test/java/com/checkout/payments/RequestApmPaymentsIT.java @@ -478,23 +478,6 @@ void shouldMakeAlmaPayment() { checkErrorItem(() -> paymentsClient.requestPayment(paymentRequest), PAYEE_NOT_ONBOARDED); } - @Test - @Disabled("not available") - void shouldMakeKlarnaPayment() { - final PaymentRequest paymentRequest = PaymentRequest.builder() - .source(RequestKlarnaSource.builder() - .accountHolder(TestHelper.getAccountHolder()) - .build()) - .currency(Currency.EUR) - .amount(10L) - .capture(true) - .successUrl("https://testing.checkout.com/sucess") - .failureUrl("https://testing.checkout.com/failure") - .build(); - - checkErrorItem(() -> paymentsClient.requestPayment(paymentRequest), APM_SERVICE_UNAVAILABLE); - } - @Test void shouldMakeFawryPayment() { final PaymentRequest paymentRequest = PaymentRequest.builder()