Skip to content

Commit

Permalink
Fix: updateIsRefundRequested
Browse files Browse the repository at this point in the history
  • Loading branch information
nampongo committed Apr 14, 2024
1 parent c711040 commit e179686
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public void updateImpUid(String impUid) {
this.impUid = impUid;
}

public void updateIsRefundRequested() { isRefundRequested = true; }

public boolean isValidChallengePeriod(ZonedDateTime startDate, ZonedDateTime currentDate) {
long daysFromStart = ChronoUnit.DAYS.between(startDate, currentDate);
return daysFromStart >= 0 && daysFromStart < 14;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public String checkDepositRefundedOrNot(String email, Long myChallengeId) {
cancelImportPayment(String.valueOf(myChallenge.getImpUid()));
}

myChallenge.updateIsRefundRequested();
savePaymentRecord(myChallenge, member.getId(), status);
return message;
}
Expand Down

0 comments on commit e179686

Please sign in to comment.