Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
챌린지가 (중간 취소 등 없이) 정상적으로종료되면COMPLETED_PENDING_SETTLEMENT의 상태가 됩니다.정산되지 않았음을 의미합니다.정산API를 추가하여 벌금 처리 등 챌린지를 완료할 수 있도록 합니다.COMPLETED_SETTLED로 변경됩니다.isPaidAll변수값이true로 변경됩니다.코드 내용
1. 정산 api를 위한 컨트롤러 메서드 생성
2. 정산 api를 위한 서비스 클래스 및 메서드 생성
COMPLETED_PENDING_SETTLEMENT인지 총 3가지를 확인합니다.3. 챌린지 상태 변경을 위한 set 메서드 추가
COMPLETED_SETTLED로 변경하고isPaidAll변수의 값을true로 변경합니다.4. 기타