Conversation
📝 WalkthroughSummary by CodeRabbit릴리스 노트
Walkthrough결제 취소 시 환불 가능 기간(행사 시작일 기준 3일 전) 검증 로직이 추가되고, 결제 관련 로그 포맷과 로그 헬퍼 시그니처가 단순화되었으며, 해당 오류 코드와 로깅 유틸 변경이 반영되었습니다. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In
`@src/main/java/com/permitseoul/permitserver/domain/payment/api/service/PaymentService.java`:
- Around line 270-285: The validation in validateCancelAvailablePeriod uses
LocalDate.now() without a timezone which can mismatch event.getStartAt()
(causing wrong refund decisions); change the logic to compute today in the same
timezone as the event by deriving the ZoneId from the event timestamp (or
explicitly using ZoneId.of("Asia/Seoul") if event times are KST) and use that
zone when obtaining the current date so daysUntilEvent =
ChronoUnit.DAYS.between(todayInEventZone, eventDateInEventZone) compares
like-for-like (update references around event.getStartAt(), eventDate, today and
daysUntilEvent calculation in validateCancelAvailablePeriod).
🧹 Nitpick comments (1)
src/main/java/com/permitseoul/permitserver/domain/payment/api/service/PaymentService.java (1)
326-335:maskPaymentKey호출 방식 불일치 (minor)Line 362에서는 static import된
maskPaymentKey(paymentKey)를 사용하고, Line 138과 332에서는LogFormUtil.maskPaymentKey(...)를 명시적으로 호출합니다. 동작상 차이는 없지만, 한 가지 방식으로 통일하면 가독성이 향상됩니다.♻️ static import 방식으로 통일
- LogFormUtil.maskPaymentKey(tossPaymentResponse.paymentKey()), + maskPaymentKey(tossPaymentResponse.paymentKey()),- LogFormUtil.maskPaymentKey(paymentKey), + maskPaymentKey(paymentKey),Also applies to: 136-141, 362-362
🔥Pull requests
⛳️ 작업한 브랜치
👷 작업한 내용
🚨 참고 사항