From f90999f4724607a3a10a53e487e63c450e6fc0f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ertu=C4=9Frul=20Berat=20ALLAHVERD=C4=B0?= Date: Fri, 26 Jul 2024 12:08:54 +0300 Subject: [PATCH] Added saved card response params (#194) --- src/main/java/io/craftgate/response/StoredCardResponse.java | 4 ++++ src/test/java/io/craftgate/sample/PaymentSample.java | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/main/java/io/craftgate/response/StoredCardResponse.java b/src/main/java/io/craftgate/response/StoredCardResponse.java index c6ba1357..86cd2cd1 100644 --- a/src/main/java/io/craftgate/response/StoredCardResponse.java +++ b/src/main/java/io/craftgate/response/StoredCardResponse.java @@ -5,6 +5,8 @@ import io.craftgate.model.CardType; import lombok.Data; +import java.time.LocalDateTime; + @Data public class StoredCardResponse { @@ -12,6 +14,7 @@ public class StoredCardResponse { private String lastFourDigits; private String cardUserKey; private String cardToken; + private String cardHolderName; private String cardAlias; private CardType cardType; private CardAssociation cardAssociation; @@ -19,4 +22,5 @@ public class StoredCardResponse { private String cardBankName; private Long cardBankId; private CardExpiryStatus cardExpiryStatus; + private LocalDateTime createdAt; } diff --git a/src/test/java/io/craftgate/sample/PaymentSample.java b/src/test/java/io/craftgate/sample/PaymentSample.java index 80cd381d..d861af4d 100644 --- a/src/test/java/io/craftgate/sample/PaymentSample.java +++ b/src/test/java/io/craftgate/sample/PaymentSample.java @@ -1526,9 +1526,11 @@ void store_card() { assertNotNull(response); assertNotNull(response.getCardToken()); assertNotNull(response.getCardUserKey()); + assertNotNull(response.getCreatedAt()); assertEquals("525864", response.getBinNumber()); assertEquals("0001", response.getLastFourDigits()); assertEquals("My Other Cards", response.getCardAlias()); + assertEquals("Haluk Demir", response.getCardHolderName()); } @Test