-
Notifications
You must be signed in to change notification settings - Fork 0
✨ feat : Payment service 추가 #45
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
✨ feat : Payment service 추가 #45
Conversation
- 날짜형 변환
- FeignClient 기반
…/주문-연동 ✨feat : Payment service/feature/주문 연동
✨feat: Payment service/dev 통합
…/swagger ♻️ refactor: Payment service/feature/swagger
♻️ refactor : 결제 서버 미구현 부분 수정
…/swagger ♻️ refactor : OrderFeignPort 수정
♻️ refactor : 결제 서비스 주소 변경
|
Caution Review failedThe pull request is closed. Walkthrough이번 변경은 payment-service 모듈의 전체 구조를 도입하는 것으로, 도메인, 애플리케이션, 어댑터 계층, 외부 결제 연동, 주문 서비스 연동, API 컨트롤러, DTO, 공통 응답 및 예외 처리, Swagger 설정, Gradle 빌드 환경, CI/CD 워크플로우, 정적 리소스, 테스트 코드 등을 포함합니다. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant PaymentApi
participant PaymentService
participant TossPaymentAdapter
participant PaymentPersistenceAdapter
participant OrderFeignPort
Client->>PaymentApi: POST /api/v1/payments/confirm (ConfirmPaymentRequest)
PaymentApi->>PaymentService: savePayment(request)
PaymentService->>TossPaymentAdapter: requestConfirm(request)
TossPaymentAdapter-->>PaymentService: Toss 결제 승인 응답
PaymentService->>PaymentPersistenceAdapter: savePayment(Payment)
PaymentPersistenceAdapter-->>PaymentService: 저장된 Payment
PaymentService->>OrderFeignPort: completeOrder(orderId)
OrderFeignPort-->>PaymentService: 주문 완료 응답
PaymentService-->>PaymentApi: Payment 반환
PaymentApi-->>Client: ApiResponse<PaymentResponse>
sequenceDiagram
participant Client
participant PaymentApi
participant PaymentService
participant PaymentPersistenceAdapter
participant TossPaymentAdapter
participant OrderFeignPort
Client->>PaymentApi: DELETE /api/v1/payments/refund (CancelPaymentRequest)
PaymentApi->>PaymentService: deletePayment(request)
PaymentService->>PaymentPersistenceAdapter: loadPaymentByPaymentKey(paymentKey)
PaymentPersistenceAdapter-->>PaymentService: Payment 조회
PaymentService->>TossPaymentAdapter: requestPaymentCancel(paymentKey, reason)
TossPaymentAdapter-->>PaymentService: Toss 결제 취소 응답
PaymentService->>PaymentPersistenceAdapter: deletePayment(paymentId)
PaymentPersistenceAdapter-->>PaymentService: 삭제 완료
PaymentService->>OrderFeignPort: cancelOrder(orderId)
OrderFeignPort-->>PaymentService: 주문 취소 응답
PaymentService-->>PaymentApi: 취소 완료 메시지
PaymentApi-->>Client: ApiResponse<String>
Possibly related PRs
Suggested labels
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (36)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
0751dcc
into
gateway-service/feature/setting
✨ feat : Payment service 추가
Summary by CodeRabbit
신규 기능
버그 수정
문서화
테스트
환경설정/배포