Repository navigation
feat(order): 판매자 주문 상세 API를 제공한다 - #451
Merged
Merged
Conversation
- seller ownership 을 검증하는 주문 상세 GET 을 추가해 이행에 필요한 orderItemId 를 반환한다. - paymentAttemptId, paymentApprovalUrl, buyerRef 는 seller 응답에서 제외하고 cross-seller 및 buyer-only 경로 거부를 HTTP 통합 테스트로 검증한다. - 검증: SellerOrderDiscoveryIntegrationTest 2 tests, 전체 clean check 599 tests / 0 failures. Closes #449
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.
변경 요청 (Pull Request)
목적
orderId를 제공하지만 주문 항목(orderItemId)은 제공하지 않는다. 배송·환불 API는 orderItemId를 필수 입력으로 요구하고, genericGET /api/orders/{orderId}는 buyer ownership으로 보호되어 seller가 사용할 수 없다. 기존 발견 테스트도OrderService를 직접 호출해 HTTP 계약의 차이를 놓쳤다.변경 범위
GET /api/sellers/{sellerId}/orders/{orderId}seller 전용 주문 상세 응답과 HTTP/PostgreSQL 통합 테스트.근거와 설계
OrderHistoryPageResponse.Entry)는 주문 식별자와 상태만 담고, 배송·환불 요청은orderItemId를 요구한다. interceptor는/api/sellers/**에서 seller 소유권을 확인하며, orderId가 있는 seller 경로는 주문 항목도 seller 소유인지 확인한다. seller detail도 같은 경계를 따른다.OrderService.findSellerOrder(sellerId,orderId)에서 주문의 seller와 모든 항목 seller가 요청자와 일치하는지 재검증한다. 응답은 배송·환불에 필요한 항목 ID·SKU·상품·수량·금액·주문 상태만 포함한다.OrderResponse를 그대로 재사용하면 paymentAttemptId·paymentApprovalUrl 등 판매자가 알 필요 없는 결제 데이터도 노출된다. seller 전용SellerOrderDetailResponse를 추가해 응답 필드를 최소화한다.시각화
추적
변경 요약
검증
:application-module:test --tests '*SellerOrderDiscoveryIntegrationTest'통과(2 tests); 전체clean check:./gradlew clean check:BUILD SUCCESSFUL, 599 tests, 0 failures/errors..위험·후속 작업
검토 체크리스트
Closes #N또는Refs #N형식이 plain text임.