Skip to content

Commit

Permalink
Fix payment method details name
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-rodriguez-cko committed Sep 20, 2024
1 parent e89cd8b commit 54a7d21
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@Data
@Builder
@AllArgsConstructor
public final class PaymentMethodsDetails {
public final class PaymentMethodDetails {

@SerializedName("display_name")
private String displayName;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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,
Expand All @@ -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;
Expand All @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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,
Expand All @@ -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;
Expand All @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 54a7d21

Please sign in to comment.