From a370fc9a5eb87fa8b274059536b8da0da4611a57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armando=20Rodr=C3=ADguez?= <127134616+armando-rodriguez-cko@users.noreply.github.com> Date: Mon, 20 Nov 2023 15:18:59 +0100 Subject: [PATCH] Release 6.0.28 (#377) - Add optional property partner_merchant_advice_code --- gradle.properties | 2 +- .../payments/RequestApmPaymentsIT.java | 30 +++++++++++++++++-- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 01ec967b..1f90f0a1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ group=com.checkout -version=6.0.27 +version=6.0.28 maven2_url=https://oss.sonatype.org/service/local/staging/deploy/maven2/ snapshot_url=https://oss.sonatype.org/content/repositories/snapshots/ diff --git a/src/test/java/com/checkout/payments/RequestApmPaymentsIT.java b/src/test/java/com/checkout/payments/RequestApmPaymentsIT.java index 8f811dbb..5279c0f7 100644 --- a/src/test/java/com/checkout/payments/RequestApmPaymentsIT.java +++ b/src/test/java/com/checkout/payments/RequestApmPaymentsIT.java @@ -15,7 +15,30 @@ import com.checkout.common.Phone; import com.checkout.payments.request.PaymentCustomerRequest; import com.checkout.payments.request.PaymentRequest; -import com.checkout.payments.request.source.apm.*; +import com.checkout.payments.request.source.apm.RequestAfterPaySource; +import com.checkout.payments.request.source.apm.RequestAlipayPlusSource; +import com.checkout.payments.request.source.apm.RequestAlmaSource; +import com.checkout.payments.request.source.apm.RequestBancontactSource; +import com.checkout.payments.request.source.apm.RequestBenefitSource; +import com.checkout.payments.request.source.apm.RequestCvConnectSource; +import com.checkout.payments.request.source.apm.RequestEpsSource; +import com.checkout.payments.request.source.apm.RequestFawrySource; +import com.checkout.payments.request.source.apm.RequestGiropaySource; +import com.checkout.payments.request.source.apm.RequestIdealSource; +import com.checkout.payments.request.source.apm.RequestIllicadoSource; +import com.checkout.payments.request.source.apm.RequestKlarnaSource; +import com.checkout.payments.request.source.apm.RequestKnetSource; +import com.checkout.payments.request.source.apm.RequestMbwaySource; +import com.checkout.payments.request.source.apm.RequestMultiBancoSource; +import com.checkout.payments.request.source.apm.RequestP24Source; +import com.checkout.payments.request.source.apm.RequestPayPalSource; +import com.checkout.payments.request.source.apm.RequestPostFinanceSource; +import com.checkout.payments.request.source.apm.RequestQPaySource; +import com.checkout.payments.request.source.apm.RequestSepaSource; +import com.checkout.payments.request.source.apm.RequestSofortSource; +import com.checkout.payments.request.source.apm.RequestStcPaySource; +import com.checkout.payments.request.source.apm.RequestTamaraSource; +import com.checkout.payments.request.source.apm.RequestTrustlySource; import com.checkout.payments.response.GetPaymentResponse; import com.checkout.payments.response.PaymentResponse; import com.checkout.payments.response.source.AlternativePaymentSourceResponse; @@ -474,7 +497,10 @@ void shouldMakePayPalPayment() { .build())) .build(); - checkErrorItem(() -> paymentsClient.requestPayment(paymentRequest), PAYEE_NOT_ONBOARDED); + final PaymentResponse response = blocking(() -> checkoutApi.paymentsClient().requestPayment(paymentRequest)); + + assertNotNull(response); + assertNotNull(response.getId()); } @Test