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