from dataclasses import dataclass
from typing import List, Optional


# OopCompanion:suppressRename

@dataclass
class AmenityProvider:
	name: str

@dataclass
class Amenity:
	description: str
	isChargeable: bool
	amenityType: str
	amenityProvider: AmenityProvider

@dataclass
class IncludedCheckedBags:
	quantity: int

@dataclass
class FareDetailsBySegment:
	segmentId: str
	cabin: str
	fareBasis: str
	brandedFare: str
	brandedFareLabel: str
	class_: str  # 'class' is a reserved keyword in Python; use 'class_' instead
	includedCheckedBags: IncludedCheckedBags
	amenities: List[Amenity]

@dataclass
class Price:
	currency: str
	total: str
	base: str

@dataclass
class Traveler:
	travelerId: str
	fareOption: str
	travelerType: str
	price: Price
	fareDetailsBySegment: List[FareDetailsBySegment]