AirConsoleClient

AirConsole API를 호출하는 클라이언트. 검색 조건과 공급자 정보를 조회한다.

상속

ClientSupport 상속

설정

  • endpoint: infrastructureProperties.airConsole.internalEndpoint
  • timeout: infrastructureProperties.airConsole.fuelTimeout

헤더

헤더
Content-Typeapplication/json
X-Triple-Api-Origin고정값
X-Air-Sales-ChannelMDCHolder에서 조회
X-Air-Sales-FunnelMDCHolder에서 조회

메서드

findSearchCondition

fun findSearchCondition(
    adult: Int,
    child: Int,
    infant: Int,
    cabins: Set<CabinType>,
    originDestinationLocationInfos: List<OriginDestinationLocationInfo>,
    tripType: TripType,
    funnel: String,
): SearchConditionWrapper

검색 조건을 조회한다.

URL 형식:

/international/search-conditions/{type}:{origin}-{type}:{destination}/{date}
CallerCallee
AirConsoleService.findSearchConditionAirConsole API

쿼리 파라미터:

  • cabins (복수)
  • tripType
  • adult, child, infant
  • channel, funnel

findSuppliers

fun findSuppliers(): List<Supplier>

모든 공급자 목록을 조회한다. GET /international/suppliers

CallerCallee
AirConsoleService.findSuppliersAirConsole API

SearchConditionWrapper

필드설명
searchConditionsGDS/NDC별 검색 조건
excludeMarketingAirlines제외 마케팅 항공사
excludeOperatingAirlines제외 운항 항공사

SearchCondition

필드설명
supplier공급자 (1G, 1A, SQ 등)
airlines검색할 항공사 목록

Supplier

필드설명
code공급자 코드
prepayment선불 여부

특징

  • 경로 기반 URL: 출발/도착 정보를 URL 경로에 포함
  • LocationType 처리: CITY/AIRPORT 타입에 따라 IATA 코드 선택
  • 예외 발생: 실패 시 SEARCH_FAILED 예외 발생