Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1단계 방탈출 결제 / 배포] 몰리(김지민) 미션 제출합니다. #46

Merged
merged 26 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
37f366d
chore(/src): 기존 코드 마이그레이션
jminkkk May 29, 2024
60459e1
docs(data.sql): 요구사항 분석 작성
jminkkk May 29, 2024
02cfe1d
chore(/resources): 프론트 코드 추가 및 수정
jminkkk May 29, 2024
cf2aaeb
feat(PaymentProperties): 외부 API 결제 키 추가
jminkkk May 29, 2024
f14d05e
feat(ClientConfiguration): 외부 결제 Client 설정 추가
jminkkk May 29, 2024
6526ae9
feat(PaymentClient): 외부 API에 결제 요청을 보내는 PaymentClient 생성
jminkkk May 29, 2024
89e452c
feat(ReservationService, PaymentService): 예약 로직에서 결제 승인하는 기능 추가
jminkkk May 29, 2024
3750a51
feat(PaymentClient): 결제 API 호출 시 예외처리
jminkkk May 29, 2024
40b81f8
refactor(PaymentClient): 결제 관련 외부 Client 객체 추상화
jminkkk May 29, 2024
70cb8a0
refactor(ReservationServiceTest): 예약 시 FakePaymentClient 호출하도록 수정
jminkkk May 29, 2024
4664d31
refactor(ReservationIntegrationTest): 안쓰는 import 제거
jminkkk May 29, 2024
c5f4a34
refactor(GlobalExceptionHandler): 500 대 HttpServerErrorException 에러 처리
jminkkk May 30, 2024
8d4e573
refactor(ClientConfiguration): Authorization 헤더 상수로 변경
jminkkk May 30, 2024
0cb75e4
refactor(ClientConfiguration): 인증 헤더의 시크릿 키에서 상수 추출
jminkkk May 30, 2024
43d3457
refactor(ReservationService): admin, 일반 유저 예약 생성 중복 로직 제거
jminkkk May 30, 2024
cf8f2e9
refactor(RestClientConfiguration): ClientConfiguration를 더 명확하게 이름 변경
jminkkk May 31, 2024
fc576c4
refactor(GlobalExceptionHandler): HttpServerErrorException를 핸들링하는 메서드…
jminkkk May 31, 2024
846f338
refactor(TossClientErrorResponse): Toss에서 제공하는 에러 객체 이름 변경
jminkkk May 31, 2024
f7c1236
refactor(PaymentProperties): 결제 요청 시 필요한 비밀번호 값을 properties로 위치 이동
jminkkk May 31, 2024
e0f50e2
refactor(/payment, /toss): 결제 client 관련 파일들의 위치 수정
jminkkk May 31, 2024
06bbf14
refactor(TossPaymentErrorHandler): Toss 결제 처리 중 발생한 에러를 핸들링하는 객체 구현 및 등록
jminkkk Jun 1, 2024
e8ca752
refactor(TossErrorCodeNotForUser): 유저에게 보여주지 않을 토스 에러 코드 이넘으로 관리
jminkkk Jun 1, 2024
72a0361
test(TossRestClientTest): 토스 결제 승인 실패 시, 토스 에러 코드가 사용자에게 알리지 않을 사유라면 …
jminkkk Jun 1, 2024
09a27a8
test(FakePaymentClient): 결제 승인 요청 시 무조건 예외를 발생하는 keyword 추가 및 결제 오류 시…
jminkkk Jun 1, 2024
a8095d6
test(PaymentRestClientConfiguration): 타임아웃 설정
jminkkk Jun 1, 2024
aab08d3
test(GlobalExceptionHandler): SocketTimeoutException에 대한 핸들링 추가
jminkkk Jun 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'

implementation 'io.jsonwebtoken:jjwt-api:0.11.2'
implementation 'io.jsonwebtoken:jjwt-impl:0.11.2'
implementation 'io.jsonwebtoken:jjwt-gson:0.11.2'
implementation 'io.jsonwebtoken:jjwt:0.9.1'
implementation 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359'

annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'

runtimeOnly 'com.h2database:h2'

Expand Down
Loading