From 54a7d21178c53c85d86b5b51a57d65b1d673aae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armando=20Rodr=C3=ADguez?= <127134616+armando-rodriguez-cko@users.noreply.github.com> Date: Fri, 20 Sep 2024 13:20:59 +0200 Subject: [PATCH] Fix payment method details name --- ...ymentMethodsDetails.java => PaymentMethodDetails.java} | 2 +- .../previous/request/source/apm/RequestKnetSource.java | 8 ++++---- .../payments/request/source/apm/RequestKnetSource.java | 8 ++++---- .../java/com/checkout/payments/RequestApmPaymentsIT.java | 2 +- .../checkout/payments/previous/RequestApmPaymentsIT.java | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) rename src/main/java/com/checkout/payments/{PaymentMethodsDetails.java => PaymentMethodDetails.java} (88%) diff --git a/src/main/java/com/checkout/payments/PaymentMethodsDetails.java b/src/main/java/com/checkout/payments/PaymentMethodDetails.java similarity index 88% rename from src/main/java/com/checkout/payments/PaymentMethodsDetails.java rename to src/main/java/com/checkout/payments/PaymentMethodDetails.java index e2db7a6d..2a7cf1a3 100644 --- a/src/main/java/com/checkout/payments/PaymentMethodsDetails.java +++ b/src/main/java/com/checkout/payments/PaymentMethodDetails.java @@ -8,7 +8,7 @@ @Data @Builder @AllArgsConstructor -public final class PaymentMethodsDetails { +public final class PaymentMethodDetails { @SerializedName("display_name") private String displayName; diff --git a/src/main/java/com/checkout/payments/previous/request/source/apm/RequestKnetSource.java b/src/main/java/com/checkout/payments/previous/request/source/apm/RequestKnetSource.java index 1b179ff2..4077d84a 100644 --- a/src/main/java/com/checkout/payments/previous/request/source/apm/RequestKnetSource.java +++ b/src/main/java/com/checkout/payments/previous/request/source/apm/RequestKnetSource.java @@ -1,7 +1,7 @@ package com.checkout.payments.previous.request.source.apm; import com.checkout.common.PaymentSourceType; -import com.checkout.payments.PaymentMethodsDetails; +import com.checkout.payments.PaymentMethodDetails; import com.checkout.payments.previous.request.source.AbstractRequestSource; import com.checkout.tokens.ApplePayTokenData; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ public final class RequestKnetSource extends AbstractRequestSource { private ApplePayTokenData tokenData; @SerializedName("payment_method_details") - private PaymentMethodsDetails paymentMethodsDetails; + private PaymentMethodDetails paymentMethodDetails; @Builder private RequestKnetSource(final String language, @@ -59,7 +59,7 @@ private RequestKnetSource(final String language, final String ptlf, final String tokenType, final ApplePayTokenData tokenData, - final PaymentMethodsDetails paymentMethodsDetails) { + final PaymentMethodDetails paymentMethodDetails) { super(PaymentSourceType.KNET); this.language = language; this.userDefinedField1 = userDefinedField1; @@ -71,7 +71,7 @@ private RequestKnetSource(final String language, this.ptlf = ptlf; this.tokenType = tokenType; this.tokenData = tokenData; - this.paymentMethodsDetails = paymentMethodsDetails; + this.paymentMethodDetails = paymentMethodDetails; } public RequestKnetSource() { diff --git a/src/main/java/com/checkout/payments/request/source/apm/RequestKnetSource.java b/src/main/java/com/checkout/payments/request/source/apm/RequestKnetSource.java index 7d94d002..fd6efb9a 100644 --- a/src/main/java/com/checkout/payments/request/source/apm/RequestKnetSource.java +++ b/src/main/java/com/checkout/payments/request/source/apm/RequestKnetSource.java @@ -1,7 +1,7 @@ package com.checkout.payments.request.source.apm; import com.checkout.common.PaymentSourceType; -import com.checkout.payments.PaymentMethodsDetails; +import com.checkout.payments.PaymentMethodDetails; import com.checkout.payments.request.source.AbstractRequestSource; import com.checkout.tokens.ApplePayTokenData; import com.google.gson.annotations.SerializedName; @@ -46,7 +46,7 @@ public final class RequestKnetSource extends AbstractRequestSource { private ApplePayTokenData tokenData; @SerializedName("payment_method_details") - private PaymentMethodsDetails paymentMethodsDetails; + private PaymentMethodDetails paymentMethodDetails; @Builder private RequestKnetSource(final String language, @@ -59,7 +59,7 @@ private RequestKnetSource(final String language, final String ptlf, final String tokenType, final ApplePayTokenData tokenData, - final PaymentMethodsDetails paymentMethodsDetails) { + final PaymentMethodDetails paymentMethodDetails) { super(PaymentSourceType.KNET); this.language = language; this.userDefinedField1 = userDefinedField1; @@ -71,7 +71,7 @@ private RequestKnetSource(final String language, this.ptlf = ptlf; this.tokenType = tokenType; this.tokenData = tokenData; - this.paymentMethodsDetails = paymentMethodsDetails; + this.paymentMethodDetails = paymentMethodDetails; } public RequestKnetSource() { diff --git a/src/test/java/com/checkout/payments/RequestApmPaymentsIT.java b/src/test/java/com/checkout/payments/RequestApmPaymentsIT.java index 0110602a..92d41979 100644 --- a/src/test/java/com/checkout/payments/RequestApmPaymentsIT.java +++ b/src/test/java/com/checkout/payments/RequestApmPaymentsIT.java @@ -365,7 +365,7 @@ void shouldMakeKnetPayment() { final PaymentRequest paymentRequest = PaymentRequest.builder() .source(RequestKnetSource.builder() .language("en") - .paymentMethodsDetails(PaymentMethodsDetails.builder() + .paymentMethodDetails(PaymentMethodDetails.builder() .displayName("name") .type("type") .network("card_network") diff --git a/src/test/java/com/checkout/payments/previous/RequestApmPaymentsIT.java b/src/test/java/com/checkout/payments/previous/RequestApmPaymentsIT.java index 4f5ad2c4..908ee945 100644 --- a/src/test/java/com/checkout/payments/previous/RequestApmPaymentsIT.java +++ b/src/test/java/com/checkout/payments/previous/RequestApmPaymentsIT.java @@ -3,7 +3,7 @@ import com.checkout.common.CountryCode; import com.checkout.common.Currency; import com.checkout.common.PaymentSourceType; -import com.checkout.payments.PaymentMethodsDetails; +import com.checkout.payments.PaymentMethodDetails; import com.checkout.payments.previous.request.PaymentRequest; import com.checkout.payments.previous.request.source.apm.IntegrationType; import com.checkout.payments.previous.request.source.apm.RequestAlipaySource; @@ -285,7 +285,7 @@ void shouldMakeKnetPayment() { final PaymentRequest paymentRequest = PaymentRequest.builder() .source(RequestKnetSource.builder() .language("en") - .paymentMethodsDetails(PaymentMethodsDetails.builder() + .paymentMethodDetails(PaymentMethodDetails.builder() .displayName("name") .type("type") .network("card_network")