AirConsoleClient
AirConsole API를 호출하는 클라이언트. 검색 조건과 공급자 정보를 조회한다.
상속
ClientSupport 상속
설정
- endpoint:
infrastructureProperties.airConsole.internalEndpoint - timeout:
infrastructureProperties.airConsole.fuelTimeout
헤더
| 헤더 | 값 |
|---|---|
Content-Type | application/json |
X-Triple-Api-Origin | 고정값 |
X-Air-Sales-Channel | MDCHolder에서 조회 |
X-Air-Sales-Funnel | MDCHolder에서 조회 |
메서드
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}
| Caller | Callee |
|---|---|
| AirConsoleService.findSearchCondition | AirConsole API |
쿼리 파라미터:
- cabins (복수)
- tripType
- adult, child, infant
- channel, funnel
findSuppliers
fun findSuppliers(): List<Supplier>모든 공급자 목록을 조회한다. GET /international/suppliers
| Caller | Callee |
|---|---|
| AirConsoleService.findSuppliers | AirConsole API |
SearchConditionWrapper
| 필드 | 설명 |
|---|---|
searchConditions | GDS/NDC별 검색 조건 |
excludeMarketingAirlines | 제외 마케팅 항공사 |
excludeOperatingAirlines | 제외 운항 항공사 |
SearchCondition
| 필드 | 설명 |
|---|---|
supplier | 공급자 (1G, 1A, SQ 등) |
airlines | 검색할 항공사 목록 |
Supplier
| 필드 | 설명 |
|---|---|
code | 공급자 코드 |
prepayment | 선불 여부 |
특징
- 경로 기반 URL: 출발/도착 정보를 URL 경로에 포함
- LocationType 처리: CITY/AIRPORT 타입에 따라 IATA 코드 선택
- 예외 발생: 실패 시 SEARCH_FAILED 예외 발생