FlightDetailProxyController
프록시 서비스용 항공편 상세 조회 API 컨트롤러. 동기식으로 상세 정보를 즉시 반환한다.
필수 헤더
X-Triple-Sales-Channel: 판매 채널X-Triple-Sales-Funnel: 판매 퍼널
의존성
| 서비스 | 용도 |
|---|---|
| FlightDetailService | 항공편 상세 조회 |
| FareRuleService | 운임 규정 조회 |
메서드
getFlightDetail (Deprecated)
@Deprecated("버전업 후 쓰지 않을 예정입니다.")
fun getFlightDetail(
detailKey: String,
adult: Int, child: Int = 0, infant: Int = 0,
promotionPrincipleId: Long?,
naverDiscountInfo: String?
): ResponseEntity<InternalProxyFlightDetailView>단일 detailKey로 항공편 상세를 조회한다. 네이버 할인 정보 적용 가능.
| Caller | Callee |
|---|---|
HTTP GET /internals/proxy/flights/detail/{detailKey} | checkSearchablePassengers |
| FlightDetailService.getFlightDetail | |
| NaverPromotion.of | |
| InternalProxyFlightDetailView.of |
getFlightDetails
fun getFlightDetails(
detailKey1: String,
promotionPrincipleId1: Long?,
detailKey2: String?,
promotionPrincipleId2: Long?,
adult: Int, child: Int = 0, infant: Int = 0,
naverDiscountInfo: String?
): ResponseEntity<List<InternalProxyFlightDetailView>>1~2개 detailKey로 항공편 상세를 조회한다. MatrixVariable로 프로모션 ID를 전달한다.
| Caller | Callee |
|---|---|
HTTP GET /internals/proxy/flights/details/{detailKey1} | checkSearchablePassengers |
HTTP GET /internals/proxy/flights/details/{detailKey1}/{detailKey2} | FlightDetailService.getFlightDetails |
| InternalProxyFlightDetailView.of |
getFareRules (Deprecated)
@Deprecated("버전업 후 미사용 예정입니다.")
fun getFareRules(
detailKey: String,
adult: Int, child: Int = 0, infant: Int = 0
): ResponseEntity<List<InternalProxyFareRulesView>>운임 규정을 조회한다.
| Caller | Callee |
|---|---|
HTTP GET /internals/proxy/flights/detail/{detailKey}/fare-rules | FareRuleService.getFareRules |
| InternalProxyFareRulesView.of |
findFreeInstallment
fun findFreeInstallment(detailKey: String): ResponseEntity<CardBenefitProxyView>무이자 할부 카드 혜택을 조회한다.
| Caller | Callee |
|---|---|
HTTP GET /internals/proxy/flights/details/{detailKey}/benefit/free-installment | FlightDetailService.findFreeInstallment |
| CardBenefitProxyView.of |
getDetailKeys
fun getDetailKeys(
metaId: String,
listKey: UUID,
fareStrategy: MetaFareStrategy = LOWEST_REPRESENTATIVE_PROMOTION_FARE
): List<InternalFlightDetailKeyView>메타 ID로 detailKey 목록을 조회한다.
| Caller | Callee |
|---|---|
HTTP GET /internals/proxy/flights/details/keys?metaId=&listKey= | FlightDetailService.getDetailKeys |
| InternalFlightDetailKeyView.of |
특징
- 동기식 응답: 폴링 없이 즉시 결과 반환
- 멀티 detailKey: 최대 2개의 detailKey를 동시에 조회 가능 (멀티티켓용)
- 네이버 할인: naverDiscountInfo 파라미터로 네이버 프로모션 적용