Skip to content

Commit

Permalink
fix 'isRedeemed' field naming error in GiftCardResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshgngwr committed Jun 26, 2022
1 parent b79f1b7 commit 4a19b81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public class GiftCardResponse {
private int hourCredits;

@Schema(required = true, description = "whether the gift card has been redeemed.")
private boolean isRedeemed;
@NonNull
private Boolean isRedeemed;

@Schema(type = "integer", format = "int64", description = "optional epoch millis when the gift card expires.")
private OffsetDateTime expiresAt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ void getGiftCard_withValidCode() {
val response = assertDoesNotThrow(() -> service.getGiftCard(2L, code));
assertEquals(card.getCode(), response.getCode());
assertEquals(card.getHourCredits(), response.getHourCredits());
assertEquals(card.isRedeemed(), response.isRedeemed());
assertEquals(card.isRedeemed(), response.getIsRedeemed());
assertEquals(card.getExpiresAt(), response.getExpiresAt());
}

Expand Down

0 comments on commit 4a19b81

Please sign in to comment.