Repository navigation
feat(order): 판매자 반품 조회 대기열을 제공한다 - #452
Merged
Merged
Conversation
- seller 소유 반품을 status filter와 keyset cursor로 조회하는 GET API를 추가한다. - seller 전용 response에서 buyerRef를 제외하고, V60 seller-history index 및 multi-seller/pagination 통합 테스트를 추가한다. - 검증: OrderRefundLifecycleIntegrationTest 24 tests 및 Checkstyle 통과.
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)
목적
/api/buyers/{buyerRef}/orders/{orderId}/returns는 seller가 사용할 수 없어 반품 수령·검수·환불 흐름이 HTTP로 시작 불가능했다.변경 범위
GET /api/sellers/{sellerId}/returnsseller return queue, 선택적 status filter, keyset cursor, seller 전용 응답 DTO(buyerRef 제외), V60 seller-history index, multi-seller/pagination 통합 테스트.근거와 설계
order_return에는 sellerId·requestedAt·returnId가 저장되지만 읽기 API는 buyerRef와 orderId를 요구했다. receipt·inspection POST는 sellerId·orderId·returnId를 요구한다.OrderReturnResponse는 buyerRef를 포함해 재사용하지 않는다. collection graph fetch와 페이지네이션의 곱집합/메모리 페이징을 피하기 위해 먼저 부모 ID 페이지를 조회하고 현재 페이지의 items만 한 번에 가져와 원래 순서를 복원한다. seller-history index 하나를 추가한다.limit/cursor/statusquery parameters. 잘못된 limit/cursor는INVALID_REQUEST; seller ownership은 기존 AccountOwnershipInterceptor, 데이터 필터는 service query에서 다시 적용.OrderRefundLifecycleIntegrationTest통과,git diff --check, Checkstyle 통과. 테스트는 두 반품을 한 seller에서 keyset 페이지화하고 다른 seller의 반품과 격리하며, buyerRef를 JSON에 포함하지 않는지 확인한다.시각화
추적
변경 요약
검증
:application-module:test --tests '*OrderRefundLifecycleIntegrationTest': 24 tests 통과../gradlew clean check:./gradlew clean check:BUILD SUCCESSFUL, 600 tests, 0 failures/errors..위험·후속 작업
검토 체크리스트
Closes #N또는Refs #N형식이 plain text임.INVALID_REQUEST.