Skip to content

Commit

Permalink
Added saved card response params
Browse files Browse the repository at this point in the history
  • Loading branch information
beratallahverdi committed Jul 25, 2024
1 parent 399fbc4 commit 3443717
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/io/craftgate/response/StoredCardResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,22 @@
import io.craftgate.model.CardType;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class StoredCardResponse {

private String binNumber;
private String lastFourDigits;
private String cardUserKey;
private String cardToken;
private String cardHolderName;
private String cardAlias;
private CardType cardType;
private CardAssociation cardAssociation;
private String cardBrand;
private String cardBankName;
private Long cardBankId;
private CardExpiryStatus cardExpiryStatus;
private LocalDateTime createdAt;
}
2 changes: 2 additions & 0 deletions src/test/java/io/craftgate/sample/PaymentSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3443717

Please sign in to comment.