@entur/create-offer-configurations-from-offer-to-buy
Advanced tools
Comparing version 2.1.0 to 3.0.0
@@ -1,14 +0,13 @@ | ||
import { OptionalProduct } from './types/offers2Types'; | ||
import { FareProductConfiguration, OfferToBuy } from './types/offersTypes'; | ||
import { OfferToBuy as OfferToBuy2 } from './types/offers2Types'; | ||
import { FareProductConfiguration, Offer, OfferToBuy } from './types/offersTypes'; | ||
import { OfferConfiguration } from './types/reserveOfferTypes'; | ||
export declare type SetRequired<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>; | ||
/** | ||
* This is a stripped down version of the Offer types, | ||
* containing only the root keys that we need. | ||
* These are stripped down versions of the Offer types, | ||
* containing only the data that we need. | ||
* The hope is that this will lead to fewer updates because | ||
* the type has changed. | ||
*/ | ||
declare type StrippedOptionalProduct = Pick<OptionalProduct, 'id' | 'selectableId'>; | ||
declare type StrippedFareProductConfiguration = Pick<FareProductConfiguration, 'id' | 'selectableId'>; | ||
declare type StrippedOffer = { | ||
declare type StrippedOffer = Pick<Offer, 'id'> & { | ||
salesPackageConfig: { | ||
@@ -30,4 +29,3 @@ fareProducts: StrippedFareProductConfiguration[]; | ||
*/ | ||
export declare function createOfferConfigurationsFromOfferToBuy(offerToBuy: OfferToBuy, offerOrOptionalProducts: StrippedOffer | StrippedOptionalProduct[]): OfferConfigurationWithCountOne[]; | ||
export declare function getSelectableProductIdsMatchingNetexIdFromProducts(products: StrippedFareProductConfiguration[] | StrippedOptionalProduct[], netexId: string): string[]; | ||
export declare function createOfferConfigurationsFromOfferToBuy(offerToBuy: OfferToBuy | OfferToBuy2, offerIfUsingOffersApiV1?: StrippedOffer): OfferConfigurationWithCountOne[]; | ||
export {}; |
@@ -8,13 +8,5 @@ /** | ||
/** Versioned object ref version */ | ||
version: string; | ||
version?: string; | ||
} | ||
/** | ||
* There are two supported algorithms for comparing offers; TOTAL_PRICE and BEFORE_SDR. TOTAL_PRICE: This is the default algorithm used if not specified, this only looks at the total price of the offers and finds the cheapest, if two offers have the same price, the one with the least amount of offers in the combination is chosen. BEFORE_SDR: This algorithm unapplies all sales discount rights in the offers before comparing prices, when the price of two combinations is the same, the combination containing the most amount of SDRs is chosen, thereafter if the amount is the same the combination with the least amount of offers in the combination is chosen. | ||
* @example TOTAL_PRICE | ||
*/ | ||
export declare enum PriceComparisonAlgorithm { | ||
TOTAL_PRICE = "TOTAL_PRICE", | ||
BEFORE_SDR = "BEFORE_SDR" | ||
} | ||
/** | ||
* A discount might be given based on previous transactions if CappedDiscountRequest was specified. | ||
@@ -44,29 +36,2 @@ */ | ||
/** | ||
* A request used to search for extension products valid between zones. | ||
*/ | ||
export interface SearchExtensionZonesRequest { | ||
recommendationConfig?: RecommendationConfig; | ||
/** | ||
* The expected start time of travel. | ||
* @format date-time | ||
*/ | ||
travelDate: string; | ||
/** | ||
* The id of the origin zone. | ||
* @example RUT:TariffZone:1 | ||
*/ | ||
from: string; | ||
/** A specification of an existing ticket. */ | ||
existingTicket: ExistingTicket; | ||
/** | ||
* The id of the destination zone. | ||
* @example ENT:TariffZone:3N | ||
*/ | ||
to: string; | ||
/** A specification of a traveller. */ | ||
traveller: Traveller; | ||
/** Optional sequence of via zones. */ | ||
via?: string[]; | ||
} | ||
/** | ||
* id and and name of an organisation | ||
@@ -87,13 +52,2 @@ */ | ||
/** | ||
* A request used to search for extension products for a specified trip. | ||
*/ | ||
export interface SearchExtensionTripRequest { | ||
/** List of legs constituting a suggested sequence of rides and links for a specific trip. */ | ||
tripPattern: TripPatternRequest; | ||
/** A specification of an existing ticket. */ | ||
existingTicket: ExistingTicket; | ||
/** A specification of a traveller. */ | ||
traveller: Traveller; | ||
} | ||
/** | ||
* A reference to a group with price data. | ||
@@ -127,3 +81,3 @@ */ | ||
*/ | ||
pricingBasis?: PricingBasis; | ||
pricingBasis?: PricingBasisEnum; | ||
/** The ID of the object on the format < context : type : instance name > */ | ||
@@ -138,22 +92,22 @@ id: string; | ||
* The mode of transport or access (e.g., foot) used when traversing this leg. | ||
* @example rail | ||
* @example RAIL | ||
*/ | ||
export declare enum TransportModeEnum { | ||
Air = "air", | ||
Bicycle = "bicycle", | ||
Bus = "bus", | ||
Cableway = "cableway", | ||
Car = "car", | ||
Water = "water", | ||
Funicular = "funicular", | ||
Lift = "lift", | ||
Rail = "rail", | ||
Metro = "metro", | ||
Tram = "tram", | ||
Coach = "coach", | ||
Transit = "transit", | ||
Foot = "foot", | ||
CarPark = "car_park", | ||
CarPickup = "car_pickup", | ||
CarDropoff = "car_dropoff" | ||
AIR = "AIR", | ||
BICYCLE = "BICYCLE", | ||
BUS = "BUS", | ||
CABLEWAY = "CABLEWAY", | ||
CAR = "CAR", | ||
WATER = "WATER", | ||
FUNICULAR = "FUNICULAR", | ||
LIFT = "LIFT", | ||
RAIL = "RAIL", | ||
METRO = "METRO", | ||
TRAM = "TRAM", | ||
COACH = "COACH", | ||
TRANSIT = "TRANSIT", | ||
FOOT = "FOOT", | ||
CAR_PARK = "CAR_PARK", | ||
CAR_PICKUP = "CAR_PICKUP", | ||
CAR_DROPOFF = "CAR_DROPOFF" | ||
} | ||
@@ -177,2 +131,4 @@ /** | ||
from: string; | ||
/** A specification of an existing ticket. */ | ||
existingTicket?: ExistingTicket; | ||
/** | ||
@@ -186,2 +142,26 @@ * The id of the destination zone. | ||
} | ||
/** | ||
* @example BICYCLE | ||
*/ | ||
export declare enum BaggageTypeEnum { | ||
HANDBAG = "HANDBAG", | ||
HAND_LUGGAGE = "HAND_LUGGAGE", | ||
SMALL_SUITCASE = "SMALL_SUITCASE", | ||
SUITCASE = "SUITCASE", | ||
TRUNK = "TRUNK", | ||
OVERSIZE_ITEM = "OVERSIZE_ITEM", | ||
BICYCLE = "BICYCLE", | ||
SPORTING_EQUIPMENT = "SPORTING_EQUIPMENT", | ||
SKIS = "SKIS", | ||
MUSICAL_INSTRUMENT = "MUSICAL_INSTRUMENT", | ||
PUSH_CHAIR = "PUSH_CHAIR", | ||
MOTORIZED_WHEELCHAIR = "MOTORIZED_WHEELCHAIR", | ||
LARGE_MOTORIZED_WHEELCHAIR = "LARGE_MOTORIZED_WHEELCHAIR", | ||
WHEELCHAIR = "WHEELCHAIR", | ||
SMALL_ANIMAL = "SMALL_ANIMAL", | ||
ANIMAL = "ANIMAL", | ||
GAME = "GAME", | ||
MOTORCYCLE = "MOTORCYCLE", | ||
OTHER = "OTHER" | ||
} | ||
export interface ServiceJourneySummary { | ||
@@ -291,12 +271,2 @@ /** @example NSB:ServiceJourney:56789 */ | ||
/** | ||
* @example TRIP_CARNET | ||
*/ | ||
export declare enum ProductType { | ||
TRIP_CARNET = "TRIP_CARNET", | ||
PASS_CARNET = "PASS_CARNET", | ||
UNIT_COUPONS = "UNIT_COUPONS", | ||
STORED_VALUE = "STORED_VALUE", | ||
OTHER = "OTHER" | ||
} | ||
/** | ||
* Representation of a optional product that can be selected together with mandatory products in an offer | ||
@@ -323,3 +293,3 @@ */ | ||
id: string; | ||
supplementProductType?: SupplementProductType; | ||
supplementProductType?: SupplementProductTypeEnum; | ||
/** @example NSB:Version:V1 */ | ||
@@ -511,3 +481,3 @@ version: string; | ||
/** Validity parameters */ | ||
validityParameters?: string[]; | ||
validityParameters?: VersionedObjectRef[]; | ||
/** Limitations */ | ||
@@ -574,117 +544,117 @@ limitations?: VersionedObjectRef[]; | ||
* The transport sub mode (e.g., localBus or expressBus) used when traversing this leg. Null if leg is not a ride | ||
* @example local | ||
* @example LOCAL | ||
*/ | ||
export declare enum TransportSubModeEnum { | ||
Unknown = "unknown", | ||
Undefined = "undefined", | ||
InternationalFlight = "internationalFlight", | ||
DomesticFlight = "domesticFlight", | ||
IntercontinentalFlight = "intercontinentalFlight", | ||
DomesticScheduledFlight = "domesticScheduledFlight", | ||
ShuttleFlight = "shuttleFlight", | ||
IntercontinentalCharterFlight = "intercontinentalCharterFlight", | ||
InternationalCharterFlight = "internationalCharterFlight", | ||
RoundTripCharterFlight = "roundTripCharterFlight", | ||
SightseeingFlight = "sightseeingFlight", | ||
HelicopterService = "helicopterService", | ||
DomesticCharterFlight = "domesticCharterFlight", | ||
SchengenAreaFlight = "SchengenAreaFlight", | ||
AirshipService = "airshipService", | ||
ShortHaulInternationalFlight = "shortHaulInternationalFlight", | ||
CanalBarge = "canalBarge", | ||
LocalBus = "localBus", | ||
RegionalBus = "regionalBus", | ||
ExpressBus = "expressBus", | ||
NightBus = "nightBus", | ||
PostBus = "postBus", | ||
SpecialNeedsBus = "specialNeedsBus", | ||
MobilityBus = "mobilityBus", | ||
MobilityBusForRegisteredDisabled = "mobilityBusForRegisteredDisabled", | ||
SightseeingBus = "sightseeingBus", | ||
ShuttleBus = "shuttleBus", | ||
HighFrequencyBus = "highFrequencyBus", | ||
DedicatedLaneBus = "dedicatedLaneBus", | ||
SchoolBus = "schoolBus", | ||
SchoolAndPublicServiceBus = "schoolAndPublicServiceBus", | ||
RailReplacementBus = "railReplacementBus", | ||
DemandAndResponseBus = "demandAndResponseBus", | ||
AirportLinkBus = "airportLinkBus", | ||
InternationalCoach = "internationalCoach", | ||
NationalCoach = "nationalCoach", | ||
ShuttleCoach = "shuttleCoach", | ||
RegionalCoach = "regionalCoach", | ||
SpecialCoach = "specialCoach", | ||
SchoolCoach = "schoolCoach", | ||
SightseeingCoach = "sightseeingCoach", | ||
TouristCoach = "touristCoach", | ||
CommuterCoach = "commuterCoach", | ||
Funicular = "funicular", | ||
StreetCableCar = "streetCableCar", | ||
AllFunicularServices = "allFunicularServices", | ||
UndefinedFunicular = "undefinedFunicular", | ||
Metro = "metro", | ||
Tube = "tube", | ||
UrbanRailway = "urbanRailway", | ||
CityTram = "cityTram", | ||
LocalTram = "localTram", | ||
RegionalTram = "regionalTram", | ||
SightseeingTram = "sightseeingTram", | ||
ShuttleTram = "shuttleTram", | ||
TrainTram = "trainTram", | ||
Telecabin = "telecabin", | ||
CableCar = "cableCar", | ||
Lift = "lift", | ||
ChairLift = "chairLift", | ||
DragLift = "dragLift", | ||
TelecabinLink = "telecabinLink", | ||
Local = "local", | ||
HighSpeedRail = "highSpeedRail", | ||
SuburbanRailway = "suburbanRailway", | ||
RegionalRail = "regionalRail", | ||
InterregionalRail = "interregionalRail", | ||
LongDistance = "longDistance", | ||
International = "international", | ||
SleeperRailService = "sleeperRailService", | ||
NightRail = "nightRail", | ||
CarTransportRailService = "carTransportRailService", | ||
TouristRailway = "touristRailway", | ||
AirportLinkRail = "airportLinkRail", | ||
RailShuttle = "railShuttle", | ||
ReplacementRailService = "replacementRailService", | ||
SpecialTrain = "specialTrain", | ||
CrossCountryRail = "crossCountryRail", | ||
RackAndPinionRailway = "rackAndPinionRailway", | ||
InternationalCarFerry = "internationalCarFerry", | ||
NationalCarFerry = "nationalCarFerry", | ||
RegionalCarFerry = "regionalCarFerry", | ||
LocalCarFerry = "localCarFerry", | ||
InternationalPassengerFerry = "internationalPassengerFerry", | ||
NationalPassengerFerry = "nationalPassengerFerry", | ||
RegionalPassengerFerry = "regionalPassengerFerry", | ||
LocalPassengerFerry = "localPassengerFerry", | ||
PostBoat = "postBoat", | ||
TrainFerry = "trainFerry", | ||
RoadFerryLink = "roadFerryLink", | ||
AirportBoatLink = "airportBoatLink", | ||
HighSpeedVehicleService = "highSpeedVehicleService", | ||
HighSpeedPassengerService = "highSpeedPassengerService", | ||
SightseeingService = "sightseeingService", | ||
SchoolBoat = "schoolBoat", | ||
CableFerry = "cableFerry", | ||
RiverBus = "riverBus", | ||
ScheduledFerry = "scheduledFerry", | ||
ShuttleFerryService = "shuttleFerryService", | ||
CommunalTaxi = "communalTaxi", | ||
CharterTaxi = "charterTaxi", | ||
WaterTaxi = "waterTaxi", | ||
RailTaxi = "railTaxi", | ||
BikeTaxi = "bikeTaxi", | ||
BlackCab = "blackCab", | ||
MiniCab = "miniCab", | ||
AllTaxiServices = "allTaxiServices", | ||
HireCar = "hireCar", | ||
HireVan = "hireVan", | ||
HireMotorbike = "hireMotorbike", | ||
HireCycle = "hireCycle", | ||
AllHireVehicles = "allHireVehicles" | ||
UNKNOWN = "UNKNOWN", | ||
UNDEFINED = "UNDEFINED", | ||
INTERNATIONAL_FLIGHT = "INTERNATIONAL_FLIGHT", | ||
DOMESTIC_FLIGHT = "DOMESTIC_FLIGHT", | ||
INTERCONTINENTAL_FLIGHT = "INTERCONTINENTAL_FLIGHT", | ||
DOMESTIC_SCHEDULED_FLIGHT = "DOMESTIC_SCHEDULED_FLIGHT", | ||
SHUTTLE_FLIGHT = "SHUTTLE_FLIGHT", | ||
INTERCONTINENTAL_CHARTER_FLIGHT = "INTERCONTINENTAL_CHARTER_FLIGHT", | ||
INTERNATIONAL_CHARTER_FLIGHT = "INTERNATIONAL_CHARTER_FLIGHT", | ||
ROUND_TRIP_CHARTER_FLIGHT = "ROUND_TRIP_CHARTER_FLIGHT", | ||
SIGHTSEEING_FLIGHT = "SIGHTSEEING_FLIGHT", | ||
HELICOPTER_SERVICE = "HELICOPTER_SERVICE", | ||
DOMESTIC_CHARTER_FLIGHT = "DOMESTIC_CHARTER_FLIGHT", | ||
SCHENGEN_AREA_FLIGHT = "SCHENGEN_AREA_FLIGHT", | ||
AIRSHIP_SERVICE = "AIRSHIP_SERVICE", | ||
SHORT_HAUL_INTERNATIONAL_FLIGHT = "SHORT_HAUL_INTERNATIONAL_FLIGHT", | ||
CANAL_BARGE = "CANAL_BARGE", | ||
LOCAL_BUS = "LOCAL_BUS", | ||
REGIONAL_BUS = "REGIONAL_BUS", | ||
EXPRESS_BUS = "EXPRESS_BUS", | ||
NIGHT_BUS = "NIGHT_BUS", | ||
POST_BUS = "POST_BUS", | ||
SPECIAL_NEEDS_BUS = "SPECIAL_NEEDS_BUS", | ||
MOBILITY_BUS = "MOBILITY_BUS", | ||
MOBILITY_BUS_FOR_REGISTERED_DISABLED = "MOBILITY_BUS_FOR_REGISTERED_DISABLED", | ||
SIGHTSEEING_BUS = "SIGHTSEEING_BUS", | ||
SHUTTLE_BUS = "SHUTTLE_BUS", | ||
HIGH_FREQUENCY_BUS = "HIGH_FREQUENCY_BUS", | ||
DEDICATED_LANE_BUS = "DEDICATED_LANE_BUS", | ||
SCHOOL_BUS = "SCHOOL_BUS", | ||
SCHOOL_AND_PUBLIC_SERVICE_BUS = "SCHOOL_AND_PUBLIC_SERVICE_BUS", | ||
RAIL_REPLACEMENT_BUS = "RAIL_REPLACEMENT_BUS", | ||
DEMAND_AND_RESPONSE_BUS = "DEMAND_AND_RESPONSE_BUS", | ||
AIRPORT_LINK_BUS = "AIRPORT_LINK_BUS", | ||
INTERNATIONAL_COACH = "INTERNATIONAL_COACH", | ||
NATIONAL_COACH = "NATIONAL_COACH", | ||
SHUTTLE_COACH = "SHUTTLE_COACH", | ||
REGIONAL_COACH = "REGIONAL_COACH", | ||
SPECIAL_COACH = "SPECIAL_COACH", | ||
SCHOOL_COACH = "SCHOOL_COACH", | ||
SIGHTSEEING_COACH = "SIGHTSEEING_COACH", | ||
TOURIST_COACH = "TOURIST_COACH", | ||
COMMUTER_COACH = "COMMUTER_COACH", | ||
FUNICULAR = "FUNICULAR", | ||
STREET_CABLE_CAR = "STREET_CABLE_CAR", | ||
ALL_FUNICULAR_SERVICES = "ALL_FUNICULAR_SERVICES", | ||
UNDEFINED_FUNICULAR = "UNDEFINED_FUNICULAR", | ||
METRO = "METRO", | ||
TUBE = "TUBE", | ||
URBAN_RAILWAY = "URBAN_RAILWAY", | ||
CITY_TRAM = "CITY_TRAM", | ||
LOCAL_TRAM = "LOCAL_TRAM", | ||
REGIONAL_TRAM = "REGIONAL_TRAM", | ||
SIGHTSEEING_TRAM = "SIGHTSEEING_TRAM", | ||
SHUTTLE_TRAM = "SHUTTLE_TRAM", | ||
TRAIN_TRAM = "TRAIN_TRAM", | ||
TELECABIN = "TELECABIN", | ||
CABLE_CAR = "CABLE_CAR", | ||
LIFT = "LIFT", | ||
CHAIR_LIFT = "CHAIR_LIFT", | ||
DRAG_LIFT = "DRAG_LIFT", | ||
TELECABIN_LINK = "TELECABIN_LINK", | ||
LOCAL = "LOCAL", | ||
HIGH_SPEED_RAIL = "HIGH_SPEED_RAIL", | ||
SUBURBAN_RAILWAY = "SUBURBAN_RAILWAY", | ||
REGIONAL_RAIL = "REGIONAL_RAIL", | ||
INTERREGIONAL_RAIL = "INTERREGIONAL_RAIL", | ||
LONG_DISTANCE = "LONG_DISTANCE", | ||
INTERNATIONAL = "INTERNATIONAL", | ||
SLEEPER_RAIL_SERVICE = "SLEEPER_RAIL_SERVICE", | ||
NIGHT_RAIL = "NIGHT_RAIL", | ||
CAR_TRANSPORT_RAIL_SERVICE = "CAR_TRANSPORT_RAIL_SERVICE", | ||
TOURIST_RAILWAY = "TOURIST_RAILWAY", | ||
AIRPORT_LINK_RAIL = "AIRPORT_LINK_RAIL", | ||
RAIL_SHUTTLE = "RAIL_SHUTTLE", | ||
REPLACEMENT_RAIL_SERVICE = "REPLACEMENT_RAIL_SERVICE", | ||
SPECIAL_TRAIN = "SPECIAL_TRAIN", | ||
CROSS_COUNTRY_RAIL = "CROSS_COUNTRY_RAIL", | ||
RACK_AND_PINION_RAILWAY = "RACK_AND_PINION_RAILWAY", | ||
INTERNATIONAL_CAR_FERRY = "INTERNATIONAL_CAR_FERRY", | ||
NATIONAL_CAR_FERRY = "NATIONAL_CAR_FERRY", | ||
REGIONAL_CAR_FERRY = "REGIONAL_CAR_FERRY", | ||
LOCAL_CAR_FERRY = "LOCAL_CAR_FERRY", | ||
INTERNATIONAL_PASSENGER_FERRY = "INTERNATIONAL_PASSENGER_FERRY", | ||
NATIONAL_PASSENGER_FERRY = "NATIONAL_PASSENGER_FERRY", | ||
REGIONAL_PASSENGER_FERRY = "REGIONAL_PASSENGER_FERRY", | ||
LOCAL_PASSENGER_FERRY = "LOCAL_PASSENGER_FERRY", | ||
POST_BOAT = "POST_BOAT", | ||
TRAIN_FERRY = "TRAIN_FERRY", | ||
ROAD_FERRY_LINK = "ROAD_FERRY_LINK", | ||
AIRPORT_BOAT_LINK = "AIRPORT_BOAT_LINK", | ||
HIGH_SPEED_VEHICLE_SERVICE = "HIGH_SPEED_VEHICLE_SERVICE", | ||
HIGH_SPEED_PASSENGER_SERVICE = "HIGH_SPEED_PASSENGER_SERVICE", | ||
SIGHTSEEING_SERVICE = "SIGHTSEEING_SERVICE", | ||
SCHOOL_BOAT = "SCHOOL_BOAT", | ||
CABLE_FERRY = "CABLE_FERRY", | ||
RIVER_BUS = "RIVER_BUS", | ||
SCHEDULED_FERRY = "SCHEDULED_FERRY", | ||
SHUTTLE_FERRY_SERVICE = "SHUTTLE_FERRY_SERVICE", | ||
COMMUNAL_TAXI = "COMMUNAL_TAXI", | ||
CHARTER_TAXI = "CHARTER_TAXI", | ||
WATER_TAXI = "WATER_TAXI", | ||
RAIL_TAXI = "RAIL_TAXI", | ||
BIKE_TAXI = "BIKE_TAXI", | ||
BLACK_CAB = "BLACK_CAB", | ||
MINI_CAB = "MINI_CAB", | ||
ALL_TAXI_SERVICES = "ALL_TAXI_SERVICES", | ||
HIRE_CAR = "HIRE_CAR", | ||
HIRE_VAN = "HIRE_VAN", | ||
HIRE_MOTORBIKE = "HIRE_MOTORBIKE", | ||
HIRE_CYCLE = "HIRE_CYCLE", | ||
ALL_HIRE_VEHICLES = "ALL_HIRE_VEHICLES" | ||
} | ||
@@ -788,3 +758,3 @@ /** | ||
seatMapIsAvailable: boolean; | ||
reservingRequirement?: ReservingRequirement; | ||
reservingRequirement?: ReservingRequirementEnum; | ||
serviceJourney: ServiceJourneySummary; | ||
@@ -795,3 +765,3 @@ } | ||
*/ | ||
export declare enum SupplementProductType { | ||
export declare enum SupplementProductTypeEnum { | ||
SEAT_RESERVATION = "SEAT_RESERVATION", | ||
@@ -906,2 +876,4 @@ BICYCLE = "BICYCLE", | ||
tripPattern: TripPatternRequest; | ||
/** A specification of an existing ticket. */ | ||
existingTicket?: ExistingTicket; | ||
/** A configuration of how to group travellers in offers. */ | ||
@@ -926,4 +898,2 @@ groupConfig?: GroupConfig; | ||
export interface Traveller { | ||
/** A filter for what kind of luggage the traveller wants offers for. The type is enum as string with the following possible values: HANDBAG, HAND_LUGGAGE, SMALL_SUITCASE, SUITCASE, TRUNK, OVERSIZE_ITEM, BICYCLE, SPORTING_EQUIPMENT, SKIS, MUSICAL_INSTRUMENT, PUSH_CHAIR, MOTORIZED_WHEELCHAIR,LARGE_MOTORIZED_WHEELCHAIR, WHEELCHAIR, SMALL_ANIMAL, ANIMAL, GAME, MOTORCYCLE, OTHER */ | ||
luggageTypes?: LuggageAllowance[]; | ||
/** A list of references to products that the traveller already owns */ | ||
@@ -933,2 +903,4 @@ productIds?: string[]; | ||
cappingSpecification?: CappingSpecification; | ||
/** A filter for what kind of luggage the traveller wants offers for. The type is enum as string with the following possible values: HANDBAG, HAND_LUGGAGE, SMALL_SUITCASE, SUITCASE, TRUNK, OVERSIZE_ITEM, BICYCLE, SPORTING_EQUIPMENT, SKIS, MUSICAL_INSTRUMENT, PUSH_CHAIR, MOTORIZED_WHEELCHAIR,LARGE_MOTORIZED_WHEELCHAIR, WHEELCHAIR, SMALL_ANIMAL, ANIMAL, GAME, MOTORCYCLE, OTHER */ | ||
baggageTypes?: BaggageTypeEnum[]; | ||
/** | ||
@@ -948,2 +920,22 @@ * Identifier of the traveller. Only unique within an http-transaction with Products. | ||
/** | ||
* @example RESERVATIONS_COMPULSORY | ||
*/ | ||
export declare enum ReservingRequirementEnum { | ||
RESERVATIONS_COMPULSORY = "RESERVATIONS_COMPULSORY", | ||
RESERVATIONS_COMPULSORY_FOR_GROUPS = "RESERVATIONS_COMPULSORY_FOR_GROUPS", | ||
RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS = "RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS", | ||
RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION = "RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION", | ||
RESERVATIONS_RECOMMENDED = "RESERVATIONS_RECOMMENDED", | ||
RESERVATIONS_POSSIBLE = "RESERVATIONS_POSSIBLE", | ||
RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS = "RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS", | ||
RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS = "RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS", | ||
RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES = "RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES", | ||
GROUP_BOOKING_RESTRICTED = "GROUP_BOOKING_RESTRICTED", | ||
NO_GROUPS_ALLOWED = "NO_GROUPS_ALLOWED", | ||
NO_RESERVATIONS_POSSIBLE = "NO_RESERVATIONS_POSSIBLE", | ||
WHEELCHAIR_ONLY_RESERVATIONS = "WHEELCHAIR_ONLY_RESERVATIONS", | ||
BICYCLE_RESERVATIONS_COMPULSORY = "BICYCLE_RESERVATIONS_COMPULSORY", | ||
RESERVATION_SUPPLEMENT_CHARGED = "RESERVATION_SUPPLEMENT_CHARGED" | ||
} | ||
/** | ||
* A configuration of how to group travellers in offers. | ||
@@ -992,2 +984,10 @@ */ | ||
/** | ||
* There are two supported algorithms for comparing offers; TOTAL_PRICE and BEFORE_SDR. TOTAL_PRICE: This is the default algorithm used if not specified, this only looks at the total price of the offers and finds the cheapest, if two offers have the same price, the one with the least amount of offers in the combination is chosen. BEFORE_SDR: This algorithm unapplies all sales discount rights in the offers before comparing prices, when the price of two combinations is the same, the combination containing the most amount of SDRs is chosen, thereafter if the amount is the same the combination with the least amount of offers in the combination is chosen. | ||
* @example TOTAL_PRICE | ||
*/ | ||
export declare enum PriceComparisonAlgorithmEnum { | ||
TOTAL_PRICE = "TOTAL_PRICE", | ||
BEFORE_SDR = "BEFORE_SDR" | ||
} | ||
/** | ||
* A specification of which travellers can use an offer, along with limitations on the number of travellers that must be selected from the group for the OFFER to be valid. | ||
@@ -1012,2 +1012,10 @@ */ | ||
/** | ||
* Identify zone or stopPlace in a journeySpec | ||
*/ | ||
export interface PlaceInJourneySpec { | ||
/** A stop place */ | ||
stopPlace?: StopPlace; | ||
zoneId?: string; | ||
} | ||
/** | ||
* A reference to the resource that is priced in this offer, e.g. a specific 'TripPattern'. | ||
@@ -1046,6 +1054,6 @@ */ | ||
*/ | ||
journeyOrganizeAlgorithm?: JourneyOrganizeAlgorithm; | ||
journeyOrganizeAlgorithm?: JourneyOrganizeAlgorithmEnum; | ||
mixinOffersWithHigherFlexibility?: boolean; | ||
/** There are two supported algorithms for comparing offers; TOTAL_PRICE and BEFORE_SDR. TOTAL_PRICE: This is the default algorithm used if not specified, this only looks at the total price of the offers and finds the cheapest, if two offers have the same price, the one with the least amount of offers in the combination is chosen. BEFORE_SDR: This algorithm unapplies all sales discount rights in the offers before comparing prices, when the price of two combinations is the same, the combination containing the most amount of SDRs is chosen, thereafter if the amount is the same the combination with the least amount of offers in the combination is chosen. */ | ||
priceComparisonAlgorithm?: PriceComparisonAlgorithm; | ||
priceComparisonAlgorithm?: PriceComparisonAlgorithmEnum; | ||
onlyIncludeRecommendedOffers?: boolean; | ||
@@ -1055,22 +1063,2 @@ onlyIncludeRecommendationsWithOffersToBuy?: boolean; | ||
/** | ||
* @example RESERVATIONS_COMPULSORY | ||
*/ | ||
export declare enum ReservingRequirement { | ||
RESERVATIONS_COMPULSORY = "RESERVATIONS_COMPULSORY", | ||
RESERVATIONS_COMPULSORY_FOR_GROUPS = "RESERVATIONS_COMPULSORY_FOR_GROUPS", | ||
RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS = "RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS", | ||
RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION = "RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION", | ||
RESERVATIONS_RECOMMENDED = "RESERVATIONS_RECOMMENDED", | ||
RESERVATIONS_POSSIBLE = "RESERVATIONS_POSSIBLE", | ||
RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS = "RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS", | ||
RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS = "RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS", | ||
RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES = "RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES", | ||
GROUP_BOOKING_RESTRICTED = "GROUP_BOOKING_RESTRICTED", | ||
NO_GROUPS_ALLOWED = "NO_GROUPS_ALLOWED", | ||
NO_RESERVATIONS_POSSIBLE = "NO_RESERVATIONS_POSSIBLE", | ||
WHEELCHAIR_ONLY_RESERVATIONS = "WHEELCHAIR_ONLY_RESERVATIONS", | ||
BICYCLE_RESERVATIONS_COMPULSORY = "BICYCLE_RESERVATIONS_COMPULSORY", | ||
RESERVATION_SUPPLEMENT_CHARGED = "RESERVATION_SUPPLEMENT_CHARGED" | ||
} | ||
/** | ||
* Reference to a Validable Element and its configuration. | ||
@@ -1140,2 +1128,12 @@ */ | ||
/** | ||
* @example TRIP_CARNET | ||
*/ | ||
export declare enum ProductTypeEnum { | ||
TRIP_CARNET = "TRIP_CARNET", | ||
PASS_CARNET = "PASS_CARNET", | ||
UNIT_COUPONS = "UNIT_COUPONS", | ||
STORED_VALUE = "STORED_VALUE", | ||
OTHER = "OTHER" | ||
} | ||
/** | ||
* @example DAY_PASS | ||
@@ -1264,3 +1262,3 @@ */ | ||
prices: Price[]; | ||
productType?: ProductType; | ||
productType?: ProductTypeEnum; | ||
/** Specific parameter assignments */ | ||
@@ -1282,3 +1280,3 @@ specificParameterAssignments?: SpecificParameterAssignment[]; | ||
optional: boolean; | ||
supplementProductType?: SupplementProductType; | ||
supplementProductType?: SupplementProductTypeEnum; | ||
/** The price contribution shows how much this node contributes on the total price. */ | ||
@@ -1305,3 +1303,2 @@ priceContributions: Price[]; | ||
duration?: string; | ||
luggageAllowances?: LuggageAllowance[]; | ||
accommodations?: AccommodationForServiceJourney[]; | ||
@@ -1316,2 +1313,3 @@ fareClasses?: FareClassEnum[]; | ||
organisation: OrganisationSummary; | ||
baggageTypes?: BaggageTypeEnum[]; | ||
/** @example ENT:UserProfile:Adult */ | ||
@@ -1439,2 +1437,14 @@ userProfileId?: string; | ||
/** | ||
* There are three supported algorithms for organizing how we present each combination of journeys. Given three journeys in the trip pattern; SJ-1, SJ-2, SJ-3 the three algorithms will generate these combinations: | ||
SUBSEQUENT_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2), (SJ-2, SJ-3), (SJ-1, SJ-2, SJ-3) | ||
FOR_EACH_AND_GROUPED_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2, SJ-3) | ||
COMBINATIONS_FROM_OFFERS: Will only organize by unique journey combinations covered by offers. | ||
* @example FOR_EACH_AND_GROUPED_COMBINATIONS | ||
*/ | ||
export declare enum JourneyOrganizeAlgorithmEnum { | ||
SUBSEQUENT_COMBINATIONS = "SUBSEQUENT_COMBINATIONS", | ||
COMBINATIONS_FROM_OFFERS = "COMBINATIONS_FROM_OFFERS", | ||
FOR_EACH_AND_GROUPED_COMBINATIONS = "FOR_EACH_AND_GROUPED_COMBINATIONS" | ||
} | ||
/** | ||
* A user type | ||
@@ -1589,38 +1599,2 @@ * @example ADULT | ||
/** | ||
* There are three supported algorithms for organizing how we present each combination of journeys. Given three journeys in the trip pattern; SJ-1, SJ-2, SJ-3 the three algorithms will generate these combinations: | ||
SUBSEQUENT_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2), (SJ-2, SJ-3), (SJ-1, SJ-2, SJ-3) | ||
FOR_EACH_AND_GROUPED_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2, SJ-3) | ||
COMBINATIONS_FROM_OFFERS: Will only organize by unique journey combinations covered by offers. | ||
* @example FOR_EACH_AND_GROUPED_COMBINATIONS | ||
*/ | ||
export declare enum JourneyOrganizeAlgorithm { | ||
SUBSEQUENT_COMBINATIONS = "SUBSEQUENT_COMBINATIONS", | ||
COMBINATIONS_FROM_OFFERS = "COMBINATIONS_FROM_OFFERS", | ||
FOR_EACH_AND_GROUPED_COMBINATIONS = "FOR_EACH_AND_GROUPED_COMBINATIONS" | ||
} | ||
/** | ||
* @example BICYCLE | ||
*/ | ||
export declare enum LuggageAllowance { | ||
HANDBAG = "HANDBAG", | ||
HAND_LUGGAGE = "HAND_LUGGAGE", | ||
SMALL_SUITCASE = "SMALL_SUITCASE", | ||
SUITCASE = "SUITCASE", | ||
TRUNK = "TRUNK", | ||
OVERSIZE_ITEM = "OVERSIZE_ITEM", | ||
BICYCLE = "BICYCLE", | ||
SPORTING_EQUIPMENT = "SPORTING_EQUIPMENT", | ||
SKIS = "SKIS", | ||
MUSICAL_INSTRUMENT = "MUSICAL_INSTRUMENT", | ||
PUSH_CHAIR = "PUSH_CHAIR", | ||
MOTORIZED_WHEELCHAIR = "MOTORIZED_WHEELCHAIR", | ||
LARGE_MOTORIZED_WHEELCHAIR = "LARGE_MOTORIZED_WHEELCHAIR", | ||
WHEELCHAIR = "WHEELCHAIR", | ||
SMALL_ANIMAL = "SMALL_ANIMAL", | ||
ANIMAL = "ANIMAL", | ||
GAME = "GAME", | ||
MOTORCYCLE = "MOTORCYCLE", | ||
OTHER = "OTHER" | ||
} | ||
/** | ||
* A reference to a user profile and price data. | ||
@@ -1655,2 +1629,37 @@ */ | ||
/** | ||
* Collection of attributes that characterize a journey. | ||
*/ | ||
export interface JourneySpec { | ||
/** The mode of transport or access (e.g., foot) used when traversing this leg. */ | ||
mode?: TransportModeEnum; | ||
/** | ||
* NeTEx-id of line | ||
* @example GJB:Line:R30 | ||
*/ | ||
line?: string; | ||
/** | ||
* NeTEx-id of authority. | ||
* @example ENT:Authority:ENT | ||
*/ | ||
authority?: string; | ||
/** The transport sub mode (e.g., localBus or expressBus) used when traversing this leg. Null if leg is not a ride */ | ||
transportSubmode?: TransportSubModeEnum; | ||
/** | ||
* @format date-time | ||
* @example 2020-05-13T07:19:30.389Z | ||
*/ | ||
startTime?: string; | ||
/** | ||
* @format date-time | ||
* @example 2020-05-13T09:19:30.389Z | ||
*/ | ||
endTime?: string; | ||
placesInJourney?: PlaceInJourneySpec[]; | ||
/** | ||
* NeTEx-id of Operator. | ||
* @example RUT:Operator:210 | ||
*/ | ||
operator?: string; | ||
} | ||
/** | ||
* List of legs constituting a suggested sequence of rides and links for a specific trip. | ||
@@ -1749,11 +1758,2 @@ */ | ||
/** | ||
* Basis on which pricing is done - per whole group | ||
or per member. | ||
* @example PER_OFFER | ||
*/ | ||
export declare enum PricingBasis { | ||
PER_OFFER = "PER_OFFER", | ||
PER_PERSON = "PER_PERSON" | ||
} | ||
/** | ||
* A list of coordinates encoded as a polyline string (see http://code.google.com/apis/maps/documentation/polylinealgorithm.html) | ||
@@ -1789,1 +1789,10 @@ */ | ||
} | ||
/** | ||
* Basis on which pricing is done - per whole group | ||
or per member. | ||
* @example PER_OFFER | ||
*/ | ||
export declare enum PricingBasisEnum { | ||
PER_OFFER = "PER_OFFER", | ||
PER_PERSON = "PER_PERSON" | ||
} |
@@ -13,36 +13,52 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PricingBasis = exports.LuggageAllowance = exports.JourneyOrganizeAlgorithm = exports.UserTypeEnum = exports.DurationEnum = exports.ReservingRequirement = exports.AccommodationFacilityForRecommendationsEnum = exports.UnavailableEnum = exports.SupplementProductType = exports.TransportSubModeEnum = exports.ProductType = exports.FareClassEnum = exports.TypeOfRecommendationEnum = exports.AccommodationFacilityEnum = exports.TransportModeEnum = exports.PriceComparisonAlgorithm = void 0; | ||
exports.PricingBasisEnum = exports.UserTypeEnum = exports.JourneyOrganizeAlgorithmEnum = exports.DurationEnum = exports.ProductTypeEnum = exports.PriceComparisonAlgorithmEnum = exports.AccommodationFacilityForRecommendationsEnum = exports.UnavailableEnum = exports.ReservingRequirementEnum = exports.SupplementProductTypeEnum = exports.TransportSubModeEnum = exports.FareClassEnum = exports.TypeOfRecommendationEnum = exports.AccommodationFacilityEnum = exports.BaggageTypeEnum = exports.TransportModeEnum = void 0; | ||
/** | ||
* There are two supported algorithms for comparing offers; TOTAL_PRICE and BEFORE_SDR. TOTAL_PRICE: This is the default algorithm used if not specified, this only looks at the total price of the offers and finds the cheapest, if two offers have the same price, the one with the least amount of offers in the combination is chosen. BEFORE_SDR: This algorithm unapplies all sales discount rights in the offers before comparing prices, when the price of two combinations is the same, the combination containing the most amount of SDRs is chosen, thereafter if the amount is the same the combination with the least amount of offers in the combination is chosen. | ||
* @example TOTAL_PRICE | ||
*/ | ||
var PriceComparisonAlgorithm; | ||
(function (PriceComparisonAlgorithm) { | ||
PriceComparisonAlgorithm["TOTAL_PRICE"] = "TOTAL_PRICE"; | ||
PriceComparisonAlgorithm["BEFORE_SDR"] = "BEFORE_SDR"; | ||
})(PriceComparisonAlgorithm = exports.PriceComparisonAlgorithm || (exports.PriceComparisonAlgorithm = {})); | ||
/** | ||
* The mode of transport or access (e.g., foot) used when traversing this leg. | ||
* @example rail | ||
* @example RAIL | ||
*/ | ||
var TransportModeEnum; | ||
(function (TransportModeEnum) { | ||
TransportModeEnum["Air"] = "air"; | ||
TransportModeEnum["Bicycle"] = "bicycle"; | ||
TransportModeEnum["Bus"] = "bus"; | ||
TransportModeEnum["Cableway"] = "cableway"; | ||
TransportModeEnum["Car"] = "car"; | ||
TransportModeEnum["Water"] = "water"; | ||
TransportModeEnum["Funicular"] = "funicular"; | ||
TransportModeEnum["Lift"] = "lift"; | ||
TransportModeEnum["Rail"] = "rail"; | ||
TransportModeEnum["Metro"] = "metro"; | ||
TransportModeEnum["Tram"] = "tram"; | ||
TransportModeEnum["Coach"] = "coach"; | ||
TransportModeEnum["Transit"] = "transit"; | ||
TransportModeEnum["Foot"] = "foot"; | ||
TransportModeEnum["CarPark"] = "car_park"; | ||
TransportModeEnum["CarPickup"] = "car_pickup"; | ||
TransportModeEnum["CarDropoff"] = "car_dropoff"; | ||
TransportModeEnum["AIR"] = "AIR"; | ||
TransportModeEnum["BICYCLE"] = "BICYCLE"; | ||
TransportModeEnum["BUS"] = "BUS"; | ||
TransportModeEnum["CABLEWAY"] = "CABLEWAY"; | ||
TransportModeEnum["CAR"] = "CAR"; | ||
TransportModeEnum["WATER"] = "WATER"; | ||
TransportModeEnum["FUNICULAR"] = "FUNICULAR"; | ||
TransportModeEnum["LIFT"] = "LIFT"; | ||
TransportModeEnum["RAIL"] = "RAIL"; | ||
TransportModeEnum["METRO"] = "METRO"; | ||
TransportModeEnum["TRAM"] = "TRAM"; | ||
TransportModeEnum["COACH"] = "COACH"; | ||
TransportModeEnum["TRANSIT"] = "TRANSIT"; | ||
TransportModeEnum["FOOT"] = "FOOT"; | ||
TransportModeEnum["CAR_PARK"] = "CAR_PARK"; | ||
TransportModeEnum["CAR_PICKUP"] = "CAR_PICKUP"; | ||
TransportModeEnum["CAR_DROPOFF"] = "CAR_DROPOFF"; | ||
})(TransportModeEnum = exports.TransportModeEnum || (exports.TransportModeEnum = {})); | ||
/** | ||
* @example BICYCLE | ||
*/ | ||
var BaggageTypeEnum; | ||
(function (BaggageTypeEnum) { | ||
BaggageTypeEnum["HANDBAG"] = "HANDBAG"; | ||
BaggageTypeEnum["HAND_LUGGAGE"] = "HAND_LUGGAGE"; | ||
BaggageTypeEnum["SMALL_SUITCASE"] = "SMALL_SUITCASE"; | ||
BaggageTypeEnum["SUITCASE"] = "SUITCASE"; | ||
BaggageTypeEnum["TRUNK"] = "TRUNK"; | ||
BaggageTypeEnum["OVERSIZE_ITEM"] = "OVERSIZE_ITEM"; | ||
BaggageTypeEnum["BICYCLE"] = "BICYCLE"; | ||
BaggageTypeEnum["SPORTING_EQUIPMENT"] = "SPORTING_EQUIPMENT"; | ||
BaggageTypeEnum["SKIS"] = "SKIS"; | ||
BaggageTypeEnum["MUSICAL_INSTRUMENT"] = "MUSICAL_INSTRUMENT"; | ||
BaggageTypeEnum["PUSH_CHAIR"] = "PUSH_CHAIR"; | ||
BaggageTypeEnum["MOTORIZED_WHEELCHAIR"] = "MOTORIZED_WHEELCHAIR"; | ||
BaggageTypeEnum["LARGE_MOTORIZED_WHEELCHAIR"] = "LARGE_MOTORIZED_WHEELCHAIR"; | ||
BaggageTypeEnum["WHEELCHAIR"] = "WHEELCHAIR"; | ||
BaggageTypeEnum["SMALL_ANIMAL"] = "SMALL_ANIMAL"; | ||
BaggageTypeEnum["ANIMAL"] = "ANIMAL"; | ||
BaggageTypeEnum["GAME"] = "GAME"; | ||
BaggageTypeEnum["MOTORCYCLE"] = "MOTORCYCLE"; | ||
BaggageTypeEnum["OTHER"] = "OTHER"; | ||
})(BaggageTypeEnum = exports.BaggageTypeEnum || (exports.BaggageTypeEnum = {})); | ||
var AccommodationFacilityEnum; | ||
@@ -94,130 +110,119 @@ (function (AccommodationFacilityEnum) { | ||
/** | ||
* @example TRIP_CARNET | ||
*/ | ||
var ProductType; | ||
(function (ProductType) { | ||
ProductType["TRIP_CARNET"] = "TRIP_CARNET"; | ||
ProductType["PASS_CARNET"] = "PASS_CARNET"; | ||
ProductType["UNIT_COUPONS"] = "UNIT_COUPONS"; | ||
ProductType["STORED_VALUE"] = "STORED_VALUE"; | ||
ProductType["OTHER"] = "OTHER"; | ||
})(ProductType = exports.ProductType || (exports.ProductType = {})); | ||
/** | ||
* The transport sub mode (e.g., localBus or expressBus) used when traversing this leg. Null if leg is not a ride | ||
* @example local | ||
* @example LOCAL | ||
*/ | ||
var TransportSubModeEnum; | ||
(function (TransportSubModeEnum) { | ||
TransportSubModeEnum["Unknown"] = "unknown"; | ||
TransportSubModeEnum["Undefined"] = "undefined"; | ||
TransportSubModeEnum["InternationalFlight"] = "internationalFlight"; | ||
TransportSubModeEnum["DomesticFlight"] = "domesticFlight"; | ||
TransportSubModeEnum["IntercontinentalFlight"] = "intercontinentalFlight"; | ||
TransportSubModeEnum["DomesticScheduledFlight"] = "domesticScheduledFlight"; | ||
TransportSubModeEnum["ShuttleFlight"] = "shuttleFlight"; | ||
TransportSubModeEnum["IntercontinentalCharterFlight"] = "intercontinentalCharterFlight"; | ||
TransportSubModeEnum["InternationalCharterFlight"] = "internationalCharterFlight"; | ||
TransportSubModeEnum["RoundTripCharterFlight"] = "roundTripCharterFlight"; | ||
TransportSubModeEnum["SightseeingFlight"] = "sightseeingFlight"; | ||
TransportSubModeEnum["HelicopterService"] = "helicopterService"; | ||
TransportSubModeEnum["DomesticCharterFlight"] = "domesticCharterFlight"; | ||
TransportSubModeEnum["SchengenAreaFlight"] = "SchengenAreaFlight"; | ||
TransportSubModeEnum["AirshipService"] = "airshipService"; | ||
TransportSubModeEnum["ShortHaulInternationalFlight"] = "shortHaulInternationalFlight"; | ||
TransportSubModeEnum["CanalBarge"] = "canalBarge"; | ||
TransportSubModeEnum["LocalBus"] = "localBus"; | ||
TransportSubModeEnum["RegionalBus"] = "regionalBus"; | ||
TransportSubModeEnum["ExpressBus"] = "expressBus"; | ||
TransportSubModeEnum["NightBus"] = "nightBus"; | ||
TransportSubModeEnum["PostBus"] = "postBus"; | ||
TransportSubModeEnum["SpecialNeedsBus"] = "specialNeedsBus"; | ||
TransportSubModeEnum["MobilityBus"] = "mobilityBus"; | ||
TransportSubModeEnum["MobilityBusForRegisteredDisabled"] = "mobilityBusForRegisteredDisabled"; | ||
TransportSubModeEnum["SightseeingBus"] = "sightseeingBus"; | ||
TransportSubModeEnum["ShuttleBus"] = "shuttleBus"; | ||
TransportSubModeEnum["HighFrequencyBus"] = "highFrequencyBus"; | ||
TransportSubModeEnum["DedicatedLaneBus"] = "dedicatedLaneBus"; | ||
TransportSubModeEnum["SchoolBus"] = "schoolBus"; | ||
TransportSubModeEnum["SchoolAndPublicServiceBus"] = "schoolAndPublicServiceBus"; | ||
TransportSubModeEnum["RailReplacementBus"] = "railReplacementBus"; | ||
TransportSubModeEnum["DemandAndResponseBus"] = "demandAndResponseBus"; | ||
TransportSubModeEnum["AirportLinkBus"] = "airportLinkBus"; | ||
TransportSubModeEnum["InternationalCoach"] = "internationalCoach"; | ||
TransportSubModeEnum["NationalCoach"] = "nationalCoach"; | ||
TransportSubModeEnum["ShuttleCoach"] = "shuttleCoach"; | ||
TransportSubModeEnum["RegionalCoach"] = "regionalCoach"; | ||
TransportSubModeEnum["SpecialCoach"] = "specialCoach"; | ||
TransportSubModeEnum["SchoolCoach"] = "schoolCoach"; | ||
TransportSubModeEnum["SightseeingCoach"] = "sightseeingCoach"; | ||
TransportSubModeEnum["TouristCoach"] = "touristCoach"; | ||
TransportSubModeEnum["CommuterCoach"] = "commuterCoach"; | ||
TransportSubModeEnum["Funicular"] = "funicular"; | ||
TransportSubModeEnum["StreetCableCar"] = "streetCableCar"; | ||
TransportSubModeEnum["AllFunicularServices"] = "allFunicularServices"; | ||
TransportSubModeEnum["UndefinedFunicular"] = "undefinedFunicular"; | ||
TransportSubModeEnum["Metro"] = "metro"; | ||
TransportSubModeEnum["Tube"] = "tube"; | ||
TransportSubModeEnum["UrbanRailway"] = "urbanRailway"; | ||
TransportSubModeEnum["CityTram"] = "cityTram"; | ||
TransportSubModeEnum["LocalTram"] = "localTram"; | ||
TransportSubModeEnum["RegionalTram"] = "regionalTram"; | ||
TransportSubModeEnum["SightseeingTram"] = "sightseeingTram"; | ||
TransportSubModeEnum["ShuttleTram"] = "shuttleTram"; | ||
TransportSubModeEnum["TrainTram"] = "trainTram"; | ||
TransportSubModeEnum["Telecabin"] = "telecabin"; | ||
TransportSubModeEnum["CableCar"] = "cableCar"; | ||
TransportSubModeEnum["Lift"] = "lift"; | ||
TransportSubModeEnum["ChairLift"] = "chairLift"; | ||
TransportSubModeEnum["DragLift"] = "dragLift"; | ||
TransportSubModeEnum["TelecabinLink"] = "telecabinLink"; | ||
TransportSubModeEnum["Local"] = "local"; | ||
TransportSubModeEnum["HighSpeedRail"] = "highSpeedRail"; | ||
TransportSubModeEnum["SuburbanRailway"] = "suburbanRailway"; | ||
TransportSubModeEnum["RegionalRail"] = "regionalRail"; | ||
TransportSubModeEnum["InterregionalRail"] = "interregionalRail"; | ||
TransportSubModeEnum["LongDistance"] = "longDistance"; | ||
TransportSubModeEnum["International"] = "international"; | ||
TransportSubModeEnum["SleeperRailService"] = "sleeperRailService"; | ||
TransportSubModeEnum["NightRail"] = "nightRail"; | ||
TransportSubModeEnum["CarTransportRailService"] = "carTransportRailService"; | ||
TransportSubModeEnum["TouristRailway"] = "touristRailway"; | ||
TransportSubModeEnum["AirportLinkRail"] = "airportLinkRail"; | ||
TransportSubModeEnum["RailShuttle"] = "railShuttle"; | ||
TransportSubModeEnum["ReplacementRailService"] = "replacementRailService"; | ||
TransportSubModeEnum["SpecialTrain"] = "specialTrain"; | ||
TransportSubModeEnum["CrossCountryRail"] = "crossCountryRail"; | ||
TransportSubModeEnum["RackAndPinionRailway"] = "rackAndPinionRailway"; | ||
TransportSubModeEnum["InternationalCarFerry"] = "internationalCarFerry"; | ||
TransportSubModeEnum["NationalCarFerry"] = "nationalCarFerry"; | ||
TransportSubModeEnum["RegionalCarFerry"] = "regionalCarFerry"; | ||
TransportSubModeEnum["LocalCarFerry"] = "localCarFerry"; | ||
TransportSubModeEnum["InternationalPassengerFerry"] = "internationalPassengerFerry"; | ||
TransportSubModeEnum["NationalPassengerFerry"] = "nationalPassengerFerry"; | ||
TransportSubModeEnum["RegionalPassengerFerry"] = "regionalPassengerFerry"; | ||
TransportSubModeEnum["LocalPassengerFerry"] = "localPassengerFerry"; | ||
TransportSubModeEnum["PostBoat"] = "postBoat"; | ||
TransportSubModeEnum["TrainFerry"] = "trainFerry"; | ||
TransportSubModeEnum["RoadFerryLink"] = "roadFerryLink"; | ||
TransportSubModeEnum["AirportBoatLink"] = "airportBoatLink"; | ||
TransportSubModeEnum["HighSpeedVehicleService"] = "highSpeedVehicleService"; | ||
TransportSubModeEnum["HighSpeedPassengerService"] = "highSpeedPassengerService"; | ||
TransportSubModeEnum["SightseeingService"] = "sightseeingService"; | ||
TransportSubModeEnum["SchoolBoat"] = "schoolBoat"; | ||
TransportSubModeEnum["CableFerry"] = "cableFerry"; | ||
TransportSubModeEnum["RiverBus"] = "riverBus"; | ||
TransportSubModeEnum["ScheduledFerry"] = "scheduledFerry"; | ||
TransportSubModeEnum["ShuttleFerryService"] = "shuttleFerryService"; | ||
TransportSubModeEnum["CommunalTaxi"] = "communalTaxi"; | ||
TransportSubModeEnum["CharterTaxi"] = "charterTaxi"; | ||
TransportSubModeEnum["WaterTaxi"] = "waterTaxi"; | ||
TransportSubModeEnum["RailTaxi"] = "railTaxi"; | ||
TransportSubModeEnum["BikeTaxi"] = "bikeTaxi"; | ||
TransportSubModeEnum["BlackCab"] = "blackCab"; | ||
TransportSubModeEnum["MiniCab"] = "miniCab"; | ||
TransportSubModeEnum["AllTaxiServices"] = "allTaxiServices"; | ||
TransportSubModeEnum["HireCar"] = "hireCar"; | ||
TransportSubModeEnum["HireVan"] = "hireVan"; | ||
TransportSubModeEnum["HireMotorbike"] = "hireMotorbike"; | ||
TransportSubModeEnum["HireCycle"] = "hireCycle"; | ||
TransportSubModeEnum["AllHireVehicles"] = "allHireVehicles"; | ||
TransportSubModeEnum["UNKNOWN"] = "UNKNOWN"; | ||
TransportSubModeEnum["UNDEFINED"] = "UNDEFINED"; | ||
TransportSubModeEnum["INTERNATIONAL_FLIGHT"] = "INTERNATIONAL_FLIGHT"; | ||
TransportSubModeEnum["DOMESTIC_FLIGHT"] = "DOMESTIC_FLIGHT"; | ||
TransportSubModeEnum["INTERCONTINENTAL_FLIGHT"] = "INTERCONTINENTAL_FLIGHT"; | ||
TransportSubModeEnum["DOMESTIC_SCHEDULED_FLIGHT"] = "DOMESTIC_SCHEDULED_FLIGHT"; | ||
TransportSubModeEnum["SHUTTLE_FLIGHT"] = "SHUTTLE_FLIGHT"; | ||
TransportSubModeEnum["INTERCONTINENTAL_CHARTER_FLIGHT"] = "INTERCONTINENTAL_CHARTER_FLIGHT"; | ||
TransportSubModeEnum["INTERNATIONAL_CHARTER_FLIGHT"] = "INTERNATIONAL_CHARTER_FLIGHT"; | ||
TransportSubModeEnum["ROUND_TRIP_CHARTER_FLIGHT"] = "ROUND_TRIP_CHARTER_FLIGHT"; | ||
TransportSubModeEnum["SIGHTSEEING_FLIGHT"] = "SIGHTSEEING_FLIGHT"; | ||
TransportSubModeEnum["HELICOPTER_SERVICE"] = "HELICOPTER_SERVICE"; | ||
TransportSubModeEnum["DOMESTIC_CHARTER_FLIGHT"] = "DOMESTIC_CHARTER_FLIGHT"; | ||
TransportSubModeEnum["SCHENGEN_AREA_FLIGHT"] = "SCHENGEN_AREA_FLIGHT"; | ||
TransportSubModeEnum["AIRSHIP_SERVICE"] = "AIRSHIP_SERVICE"; | ||
TransportSubModeEnum["SHORT_HAUL_INTERNATIONAL_FLIGHT"] = "SHORT_HAUL_INTERNATIONAL_FLIGHT"; | ||
TransportSubModeEnum["CANAL_BARGE"] = "CANAL_BARGE"; | ||
TransportSubModeEnum["LOCAL_BUS"] = "LOCAL_BUS"; | ||
TransportSubModeEnum["REGIONAL_BUS"] = "REGIONAL_BUS"; | ||
TransportSubModeEnum["EXPRESS_BUS"] = "EXPRESS_BUS"; | ||
TransportSubModeEnum["NIGHT_BUS"] = "NIGHT_BUS"; | ||
TransportSubModeEnum["POST_BUS"] = "POST_BUS"; | ||
TransportSubModeEnum["SPECIAL_NEEDS_BUS"] = "SPECIAL_NEEDS_BUS"; | ||
TransportSubModeEnum["MOBILITY_BUS"] = "MOBILITY_BUS"; | ||
TransportSubModeEnum["MOBILITY_BUS_FOR_REGISTERED_DISABLED"] = "MOBILITY_BUS_FOR_REGISTERED_DISABLED"; | ||
TransportSubModeEnum["SIGHTSEEING_BUS"] = "SIGHTSEEING_BUS"; | ||
TransportSubModeEnum["SHUTTLE_BUS"] = "SHUTTLE_BUS"; | ||
TransportSubModeEnum["HIGH_FREQUENCY_BUS"] = "HIGH_FREQUENCY_BUS"; | ||
TransportSubModeEnum["DEDICATED_LANE_BUS"] = "DEDICATED_LANE_BUS"; | ||
TransportSubModeEnum["SCHOOL_BUS"] = "SCHOOL_BUS"; | ||
TransportSubModeEnum["SCHOOL_AND_PUBLIC_SERVICE_BUS"] = "SCHOOL_AND_PUBLIC_SERVICE_BUS"; | ||
TransportSubModeEnum["RAIL_REPLACEMENT_BUS"] = "RAIL_REPLACEMENT_BUS"; | ||
TransportSubModeEnum["DEMAND_AND_RESPONSE_BUS"] = "DEMAND_AND_RESPONSE_BUS"; | ||
TransportSubModeEnum["AIRPORT_LINK_BUS"] = "AIRPORT_LINK_BUS"; | ||
TransportSubModeEnum["INTERNATIONAL_COACH"] = "INTERNATIONAL_COACH"; | ||
TransportSubModeEnum["NATIONAL_COACH"] = "NATIONAL_COACH"; | ||
TransportSubModeEnum["SHUTTLE_COACH"] = "SHUTTLE_COACH"; | ||
TransportSubModeEnum["REGIONAL_COACH"] = "REGIONAL_COACH"; | ||
TransportSubModeEnum["SPECIAL_COACH"] = "SPECIAL_COACH"; | ||
TransportSubModeEnum["SCHOOL_COACH"] = "SCHOOL_COACH"; | ||
TransportSubModeEnum["SIGHTSEEING_COACH"] = "SIGHTSEEING_COACH"; | ||
TransportSubModeEnum["TOURIST_COACH"] = "TOURIST_COACH"; | ||
TransportSubModeEnum["COMMUTER_COACH"] = "COMMUTER_COACH"; | ||
TransportSubModeEnum["FUNICULAR"] = "FUNICULAR"; | ||
TransportSubModeEnum["STREET_CABLE_CAR"] = "STREET_CABLE_CAR"; | ||
TransportSubModeEnum["ALL_FUNICULAR_SERVICES"] = "ALL_FUNICULAR_SERVICES"; | ||
TransportSubModeEnum["UNDEFINED_FUNICULAR"] = "UNDEFINED_FUNICULAR"; | ||
TransportSubModeEnum["METRO"] = "METRO"; | ||
TransportSubModeEnum["TUBE"] = "TUBE"; | ||
TransportSubModeEnum["URBAN_RAILWAY"] = "URBAN_RAILWAY"; | ||
TransportSubModeEnum["CITY_TRAM"] = "CITY_TRAM"; | ||
TransportSubModeEnum["LOCAL_TRAM"] = "LOCAL_TRAM"; | ||
TransportSubModeEnum["REGIONAL_TRAM"] = "REGIONAL_TRAM"; | ||
TransportSubModeEnum["SIGHTSEEING_TRAM"] = "SIGHTSEEING_TRAM"; | ||
TransportSubModeEnum["SHUTTLE_TRAM"] = "SHUTTLE_TRAM"; | ||
TransportSubModeEnum["TRAIN_TRAM"] = "TRAIN_TRAM"; | ||
TransportSubModeEnum["TELECABIN"] = "TELECABIN"; | ||
TransportSubModeEnum["CABLE_CAR"] = "CABLE_CAR"; | ||
TransportSubModeEnum["LIFT"] = "LIFT"; | ||
TransportSubModeEnum["CHAIR_LIFT"] = "CHAIR_LIFT"; | ||
TransportSubModeEnum["DRAG_LIFT"] = "DRAG_LIFT"; | ||
TransportSubModeEnum["TELECABIN_LINK"] = "TELECABIN_LINK"; | ||
TransportSubModeEnum["LOCAL"] = "LOCAL"; | ||
TransportSubModeEnum["HIGH_SPEED_RAIL"] = "HIGH_SPEED_RAIL"; | ||
TransportSubModeEnum["SUBURBAN_RAILWAY"] = "SUBURBAN_RAILWAY"; | ||
TransportSubModeEnum["REGIONAL_RAIL"] = "REGIONAL_RAIL"; | ||
TransportSubModeEnum["INTERREGIONAL_RAIL"] = "INTERREGIONAL_RAIL"; | ||
TransportSubModeEnum["LONG_DISTANCE"] = "LONG_DISTANCE"; | ||
TransportSubModeEnum["INTERNATIONAL"] = "INTERNATIONAL"; | ||
TransportSubModeEnum["SLEEPER_RAIL_SERVICE"] = "SLEEPER_RAIL_SERVICE"; | ||
TransportSubModeEnum["NIGHT_RAIL"] = "NIGHT_RAIL"; | ||
TransportSubModeEnum["CAR_TRANSPORT_RAIL_SERVICE"] = "CAR_TRANSPORT_RAIL_SERVICE"; | ||
TransportSubModeEnum["TOURIST_RAILWAY"] = "TOURIST_RAILWAY"; | ||
TransportSubModeEnum["AIRPORT_LINK_RAIL"] = "AIRPORT_LINK_RAIL"; | ||
TransportSubModeEnum["RAIL_SHUTTLE"] = "RAIL_SHUTTLE"; | ||
TransportSubModeEnum["REPLACEMENT_RAIL_SERVICE"] = "REPLACEMENT_RAIL_SERVICE"; | ||
TransportSubModeEnum["SPECIAL_TRAIN"] = "SPECIAL_TRAIN"; | ||
TransportSubModeEnum["CROSS_COUNTRY_RAIL"] = "CROSS_COUNTRY_RAIL"; | ||
TransportSubModeEnum["RACK_AND_PINION_RAILWAY"] = "RACK_AND_PINION_RAILWAY"; | ||
TransportSubModeEnum["INTERNATIONAL_CAR_FERRY"] = "INTERNATIONAL_CAR_FERRY"; | ||
TransportSubModeEnum["NATIONAL_CAR_FERRY"] = "NATIONAL_CAR_FERRY"; | ||
TransportSubModeEnum["REGIONAL_CAR_FERRY"] = "REGIONAL_CAR_FERRY"; | ||
TransportSubModeEnum["LOCAL_CAR_FERRY"] = "LOCAL_CAR_FERRY"; | ||
TransportSubModeEnum["INTERNATIONAL_PASSENGER_FERRY"] = "INTERNATIONAL_PASSENGER_FERRY"; | ||
TransportSubModeEnum["NATIONAL_PASSENGER_FERRY"] = "NATIONAL_PASSENGER_FERRY"; | ||
TransportSubModeEnum["REGIONAL_PASSENGER_FERRY"] = "REGIONAL_PASSENGER_FERRY"; | ||
TransportSubModeEnum["LOCAL_PASSENGER_FERRY"] = "LOCAL_PASSENGER_FERRY"; | ||
TransportSubModeEnum["POST_BOAT"] = "POST_BOAT"; | ||
TransportSubModeEnum["TRAIN_FERRY"] = "TRAIN_FERRY"; | ||
TransportSubModeEnum["ROAD_FERRY_LINK"] = "ROAD_FERRY_LINK"; | ||
TransportSubModeEnum["AIRPORT_BOAT_LINK"] = "AIRPORT_BOAT_LINK"; | ||
TransportSubModeEnum["HIGH_SPEED_VEHICLE_SERVICE"] = "HIGH_SPEED_VEHICLE_SERVICE"; | ||
TransportSubModeEnum["HIGH_SPEED_PASSENGER_SERVICE"] = "HIGH_SPEED_PASSENGER_SERVICE"; | ||
TransportSubModeEnum["SIGHTSEEING_SERVICE"] = "SIGHTSEEING_SERVICE"; | ||
TransportSubModeEnum["SCHOOL_BOAT"] = "SCHOOL_BOAT"; | ||
TransportSubModeEnum["CABLE_FERRY"] = "CABLE_FERRY"; | ||
TransportSubModeEnum["RIVER_BUS"] = "RIVER_BUS"; | ||
TransportSubModeEnum["SCHEDULED_FERRY"] = "SCHEDULED_FERRY"; | ||
TransportSubModeEnum["SHUTTLE_FERRY_SERVICE"] = "SHUTTLE_FERRY_SERVICE"; | ||
TransportSubModeEnum["COMMUNAL_TAXI"] = "COMMUNAL_TAXI"; | ||
TransportSubModeEnum["CHARTER_TAXI"] = "CHARTER_TAXI"; | ||
TransportSubModeEnum["WATER_TAXI"] = "WATER_TAXI"; | ||
TransportSubModeEnum["RAIL_TAXI"] = "RAIL_TAXI"; | ||
TransportSubModeEnum["BIKE_TAXI"] = "BIKE_TAXI"; | ||
TransportSubModeEnum["BLACK_CAB"] = "BLACK_CAB"; | ||
TransportSubModeEnum["MINI_CAB"] = "MINI_CAB"; | ||
TransportSubModeEnum["ALL_TAXI_SERVICES"] = "ALL_TAXI_SERVICES"; | ||
TransportSubModeEnum["HIRE_CAR"] = "HIRE_CAR"; | ||
TransportSubModeEnum["HIRE_VAN"] = "HIRE_VAN"; | ||
TransportSubModeEnum["HIRE_MOTORBIKE"] = "HIRE_MOTORBIKE"; | ||
TransportSubModeEnum["HIRE_CYCLE"] = "HIRE_CYCLE"; | ||
TransportSubModeEnum["ALL_HIRE_VEHICLES"] = "ALL_HIRE_VEHICLES"; | ||
})(TransportSubModeEnum = exports.TransportSubModeEnum || (exports.TransportSubModeEnum = {})); | ||
@@ -227,18 +232,39 @@ /** | ||
*/ | ||
var SupplementProductType; | ||
(function (SupplementProductType) { | ||
SupplementProductType["SEAT_RESERVATION"] = "SEAT_RESERVATION"; | ||
SupplementProductType["BICYCLE"] = "BICYCLE"; | ||
SupplementProductType["DOG"] = "DOG"; | ||
SupplementProductType["ANIMAL"] = "ANIMAL"; | ||
SupplementProductType["MEAL"] = "MEAL"; | ||
SupplementProductType["WIFI"] = "WIFI"; | ||
SupplementProductType["EXTRA_LUGGAGE"] = "EXTRA_LUGGAGE"; | ||
SupplementProductType["PENALTY"] = "PENALTY"; | ||
SupplementProductType["UPGRADE"] = "UPGRADE"; | ||
SupplementProductType["JOURNEY_EXTENSION"] = "JOURNEY_EXTENSION"; | ||
SupplementProductType["JOURNEY_ADD_ON"] = "JOURNEY_ADD_ON"; | ||
SupplementProductType["EVENT_ADD_ON"] = "EVENT_ADD_ON"; | ||
SupplementProductType["PARKING"] = "PARKING"; | ||
})(SupplementProductType = exports.SupplementProductType || (exports.SupplementProductType = {})); | ||
var SupplementProductTypeEnum; | ||
(function (SupplementProductTypeEnum) { | ||
SupplementProductTypeEnum["SEAT_RESERVATION"] = "SEAT_RESERVATION"; | ||
SupplementProductTypeEnum["BICYCLE"] = "BICYCLE"; | ||
SupplementProductTypeEnum["DOG"] = "DOG"; | ||
SupplementProductTypeEnum["ANIMAL"] = "ANIMAL"; | ||
SupplementProductTypeEnum["MEAL"] = "MEAL"; | ||
SupplementProductTypeEnum["WIFI"] = "WIFI"; | ||
SupplementProductTypeEnum["EXTRA_LUGGAGE"] = "EXTRA_LUGGAGE"; | ||
SupplementProductTypeEnum["PENALTY"] = "PENALTY"; | ||
SupplementProductTypeEnum["UPGRADE"] = "UPGRADE"; | ||
SupplementProductTypeEnum["JOURNEY_EXTENSION"] = "JOURNEY_EXTENSION"; | ||
SupplementProductTypeEnum["JOURNEY_ADD_ON"] = "JOURNEY_ADD_ON"; | ||
SupplementProductTypeEnum["EVENT_ADD_ON"] = "EVENT_ADD_ON"; | ||
SupplementProductTypeEnum["PARKING"] = "PARKING"; | ||
})(SupplementProductTypeEnum = exports.SupplementProductTypeEnum || (exports.SupplementProductTypeEnum = {})); | ||
/** | ||
* @example RESERVATIONS_COMPULSORY | ||
*/ | ||
var ReservingRequirementEnum; | ||
(function (ReservingRequirementEnum) { | ||
ReservingRequirementEnum["RESERVATIONS_COMPULSORY"] = "RESERVATIONS_COMPULSORY"; | ||
ReservingRequirementEnum["RESERVATIONS_COMPULSORY_FOR_GROUPS"] = "RESERVATIONS_COMPULSORY_FOR_GROUPS"; | ||
ReservingRequirementEnum["RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS"] = "RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS"; | ||
ReservingRequirementEnum["RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION"] = "RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION"; | ||
ReservingRequirementEnum["RESERVATIONS_RECOMMENDED"] = "RESERVATIONS_RECOMMENDED"; | ||
ReservingRequirementEnum["RESERVATIONS_POSSIBLE"] = "RESERVATIONS_POSSIBLE"; | ||
ReservingRequirementEnum["RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS"] = "RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS"; | ||
ReservingRequirementEnum["RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS"] = "RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS"; | ||
ReservingRequirementEnum["RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES"] = "RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES"; | ||
ReservingRequirementEnum["GROUP_BOOKING_RESTRICTED"] = "GROUP_BOOKING_RESTRICTED"; | ||
ReservingRequirementEnum["NO_GROUPS_ALLOWED"] = "NO_GROUPS_ALLOWED"; | ||
ReservingRequirementEnum["NO_RESERVATIONS_POSSIBLE"] = "NO_RESERVATIONS_POSSIBLE"; | ||
ReservingRequirementEnum["WHEELCHAIR_ONLY_RESERVATIONS"] = "WHEELCHAIR_ONLY_RESERVATIONS"; | ||
ReservingRequirementEnum["BICYCLE_RESERVATIONS_COMPULSORY"] = "BICYCLE_RESERVATIONS_COMPULSORY"; | ||
ReservingRequirementEnum["RESERVATION_SUPPLEMENT_CHARGED"] = "RESERVATION_SUPPLEMENT_CHARGED"; | ||
})(ReservingRequirementEnum = exports.ReservingRequirementEnum || (exports.ReservingRequirementEnum = {})); | ||
var UnavailableEnum; | ||
@@ -261,23 +287,22 @@ (function (UnavailableEnum) { | ||
/** | ||
* @example RESERVATIONS_COMPULSORY | ||
* There are two supported algorithms for comparing offers; TOTAL_PRICE and BEFORE_SDR. TOTAL_PRICE: This is the default algorithm used if not specified, this only looks at the total price of the offers and finds the cheapest, if two offers have the same price, the one with the least amount of offers in the combination is chosen. BEFORE_SDR: This algorithm unapplies all sales discount rights in the offers before comparing prices, when the price of two combinations is the same, the combination containing the most amount of SDRs is chosen, thereafter if the amount is the same the combination with the least amount of offers in the combination is chosen. | ||
* @example TOTAL_PRICE | ||
*/ | ||
var ReservingRequirement; | ||
(function (ReservingRequirement) { | ||
ReservingRequirement["RESERVATIONS_COMPULSORY"] = "RESERVATIONS_COMPULSORY"; | ||
ReservingRequirement["RESERVATIONS_COMPULSORY_FOR_GROUPS"] = "RESERVATIONS_COMPULSORY_FOR_GROUPS"; | ||
ReservingRequirement["RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS"] = "RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS"; | ||
ReservingRequirement["RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION"] = "RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION"; | ||
ReservingRequirement["RESERVATIONS_RECOMMENDED"] = "RESERVATIONS_RECOMMENDED"; | ||
ReservingRequirement["RESERVATIONS_POSSIBLE"] = "RESERVATIONS_POSSIBLE"; | ||
ReservingRequirement["RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS"] = "RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS"; | ||
ReservingRequirement["RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS"] = "RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS"; | ||
ReservingRequirement["RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES"] = "RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES"; | ||
ReservingRequirement["GROUP_BOOKING_RESTRICTED"] = "GROUP_BOOKING_RESTRICTED"; | ||
ReservingRequirement["NO_GROUPS_ALLOWED"] = "NO_GROUPS_ALLOWED"; | ||
ReservingRequirement["NO_RESERVATIONS_POSSIBLE"] = "NO_RESERVATIONS_POSSIBLE"; | ||
ReservingRequirement["WHEELCHAIR_ONLY_RESERVATIONS"] = "WHEELCHAIR_ONLY_RESERVATIONS"; | ||
ReservingRequirement["BICYCLE_RESERVATIONS_COMPULSORY"] = "BICYCLE_RESERVATIONS_COMPULSORY"; | ||
ReservingRequirement["RESERVATION_SUPPLEMENT_CHARGED"] = "RESERVATION_SUPPLEMENT_CHARGED"; | ||
})(ReservingRequirement = exports.ReservingRequirement || (exports.ReservingRequirement = {})); | ||
var PriceComparisonAlgorithmEnum; | ||
(function (PriceComparisonAlgorithmEnum) { | ||
PriceComparisonAlgorithmEnum["TOTAL_PRICE"] = "TOTAL_PRICE"; | ||
PriceComparisonAlgorithmEnum["BEFORE_SDR"] = "BEFORE_SDR"; | ||
})(PriceComparisonAlgorithmEnum = exports.PriceComparisonAlgorithmEnum || (exports.PriceComparisonAlgorithmEnum = {})); | ||
/** | ||
* @example TRIP_CARNET | ||
*/ | ||
var ProductTypeEnum; | ||
(function (ProductTypeEnum) { | ||
ProductTypeEnum["TRIP_CARNET"] = "TRIP_CARNET"; | ||
ProductTypeEnum["PASS_CARNET"] = "PASS_CARNET"; | ||
ProductTypeEnum["UNIT_COUPONS"] = "UNIT_COUPONS"; | ||
ProductTypeEnum["STORED_VALUE"] = "STORED_VALUE"; | ||
ProductTypeEnum["OTHER"] = "OTHER"; | ||
})(ProductTypeEnum = exports.ProductTypeEnum || (exports.ProductTypeEnum = {})); | ||
/** | ||
* @example DAY_PASS | ||
@@ -300,2 +325,15 @@ */ | ||
/** | ||
* There are three supported algorithms for organizing how we present each combination of journeys. Given three journeys in the trip pattern; SJ-1, SJ-2, SJ-3 the three algorithms will generate these combinations: | ||
SUBSEQUENT_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2), (SJ-2, SJ-3), (SJ-1, SJ-2, SJ-3) | ||
FOR_EACH_AND_GROUPED_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2, SJ-3) | ||
COMBINATIONS_FROM_OFFERS: Will only organize by unique journey combinations covered by offers. | ||
* @example FOR_EACH_AND_GROUPED_COMBINATIONS | ||
*/ | ||
var JourneyOrganizeAlgorithmEnum; | ||
(function (JourneyOrganizeAlgorithmEnum) { | ||
JourneyOrganizeAlgorithmEnum["SUBSEQUENT_COMBINATIONS"] = "SUBSEQUENT_COMBINATIONS"; | ||
JourneyOrganizeAlgorithmEnum["COMBINATIONS_FROM_OFFERS"] = "COMBINATIONS_FROM_OFFERS"; | ||
JourneyOrganizeAlgorithmEnum["FOR_EACH_AND_GROUPED_COMBINATIONS"] = "FOR_EACH_AND_GROUPED_COMBINATIONS"; | ||
})(JourneyOrganizeAlgorithmEnum = exports.JourneyOrganizeAlgorithmEnum || (exports.JourneyOrganizeAlgorithmEnum = {})); | ||
/** | ||
* A user type | ||
@@ -318,40 +356,2 @@ * @example ADULT | ||
/** | ||
* There are three supported algorithms for organizing how we present each combination of journeys. Given three journeys in the trip pattern; SJ-1, SJ-2, SJ-3 the three algorithms will generate these combinations: | ||
SUBSEQUENT_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2), (SJ-2, SJ-3), (SJ-1, SJ-2, SJ-3) | ||
FOR_EACH_AND_GROUPED_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2, SJ-3) | ||
COMBINATIONS_FROM_OFFERS: Will only organize by unique journey combinations covered by offers. | ||
* @example FOR_EACH_AND_GROUPED_COMBINATIONS | ||
*/ | ||
var JourneyOrganizeAlgorithm; | ||
(function (JourneyOrganizeAlgorithm) { | ||
JourneyOrganizeAlgorithm["SUBSEQUENT_COMBINATIONS"] = "SUBSEQUENT_COMBINATIONS"; | ||
JourneyOrganizeAlgorithm["COMBINATIONS_FROM_OFFERS"] = "COMBINATIONS_FROM_OFFERS"; | ||
JourneyOrganizeAlgorithm["FOR_EACH_AND_GROUPED_COMBINATIONS"] = "FOR_EACH_AND_GROUPED_COMBINATIONS"; | ||
})(JourneyOrganizeAlgorithm = exports.JourneyOrganizeAlgorithm || (exports.JourneyOrganizeAlgorithm = {})); | ||
/** | ||
* @example BICYCLE | ||
*/ | ||
var LuggageAllowance; | ||
(function (LuggageAllowance) { | ||
LuggageAllowance["HANDBAG"] = "HANDBAG"; | ||
LuggageAllowance["HAND_LUGGAGE"] = "HAND_LUGGAGE"; | ||
LuggageAllowance["SMALL_SUITCASE"] = "SMALL_SUITCASE"; | ||
LuggageAllowance["SUITCASE"] = "SUITCASE"; | ||
LuggageAllowance["TRUNK"] = "TRUNK"; | ||
LuggageAllowance["OVERSIZE_ITEM"] = "OVERSIZE_ITEM"; | ||
LuggageAllowance["BICYCLE"] = "BICYCLE"; | ||
LuggageAllowance["SPORTING_EQUIPMENT"] = "SPORTING_EQUIPMENT"; | ||
LuggageAllowance["SKIS"] = "SKIS"; | ||
LuggageAllowance["MUSICAL_INSTRUMENT"] = "MUSICAL_INSTRUMENT"; | ||
LuggageAllowance["PUSH_CHAIR"] = "PUSH_CHAIR"; | ||
LuggageAllowance["MOTORIZED_WHEELCHAIR"] = "MOTORIZED_WHEELCHAIR"; | ||
LuggageAllowance["LARGE_MOTORIZED_WHEELCHAIR"] = "LARGE_MOTORIZED_WHEELCHAIR"; | ||
LuggageAllowance["WHEELCHAIR"] = "WHEELCHAIR"; | ||
LuggageAllowance["SMALL_ANIMAL"] = "SMALL_ANIMAL"; | ||
LuggageAllowance["ANIMAL"] = "ANIMAL"; | ||
LuggageAllowance["GAME"] = "GAME"; | ||
LuggageAllowance["MOTORCYCLE"] = "MOTORCYCLE"; | ||
LuggageAllowance["OTHER"] = "OTHER"; | ||
})(LuggageAllowance = exports.LuggageAllowance || (exports.LuggageAllowance = {})); | ||
/** | ||
* Basis on which pricing is done - per whole group | ||
@@ -361,6 +361,6 @@ or per member. | ||
*/ | ||
var PricingBasis; | ||
(function (PricingBasis) { | ||
PricingBasis["PER_OFFER"] = "PER_OFFER"; | ||
PricingBasis["PER_PERSON"] = "PER_PERSON"; | ||
})(PricingBasis = exports.PricingBasis || (exports.PricingBasis = {})); | ||
var PricingBasisEnum; | ||
(function (PricingBasisEnum) { | ||
PricingBasisEnum["PER_OFFER"] = "PER_OFFER"; | ||
PricingBasisEnum["PER_PERSON"] = "PER_PERSON"; | ||
})(PricingBasisEnum = exports.PricingBasisEnum || (exports.PricingBasisEnum = {})); |
@@ -1,14 +0,13 @@ | ||
import { OptionalProduct } from './types/offers2Types'; | ||
import { FareProductConfiguration, OfferToBuy } from './types/offersTypes'; | ||
import { OfferToBuy as OfferToBuy2 } from './types/offers2Types'; | ||
import { FareProductConfiguration, Offer, OfferToBuy } from './types/offersTypes'; | ||
import { OfferConfiguration } from './types/reserveOfferTypes'; | ||
export declare type SetRequired<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>; | ||
/** | ||
* This is a stripped down version of the Offer types, | ||
* containing only the root keys that we need. | ||
* These are stripped down versions of the Offer types, | ||
* containing only the data that we need. | ||
* The hope is that this will lead to fewer updates because | ||
* the type has changed. | ||
*/ | ||
declare type StrippedOptionalProduct = Pick<OptionalProduct, 'id' | 'selectableId'>; | ||
declare type StrippedFareProductConfiguration = Pick<FareProductConfiguration, 'id' | 'selectableId'>; | ||
declare type StrippedOffer = { | ||
declare type StrippedOffer = Pick<Offer, 'id'> & { | ||
salesPackageConfig: { | ||
@@ -30,4 +29,3 @@ fareProducts: StrippedFareProductConfiguration[]; | ||
*/ | ||
export declare function createOfferConfigurationsFromOfferToBuy(offerToBuy: OfferToBuy, offerOrOptionalProducts: StrippedOffer | StrippedOptionalProduct[]): OfferConfigurationWithCountOne[]; | ||
export declare function getSelectableProductIdsMatchingNetexIdFromProducts(products: StrippedFareProductConfiguration[] | StrippedOptionalProduct[], netexId: string): string[]; | ||
export declare function createOfferConfigurationsFromOfferToBuy(offerToBuy: OfferToBuy | OfferToBuy2, offerIfUsingOffersApiV1?: StrippedOffer): OfferConfigurationWithCountOne[]; | ||
export {}; |
@@ -10,23 +10,34 @@ /** | ||
*/ | ||
export function createOfferConfigurationsFromOfferToBuy(offerToBuy, offerOrOptionalProducts) { | ||
const netexIds = offerToBuy.withUpgradeProducts; | ||
const offerConfigurationsWithOnlyNetexIdsAsSelectableProductIds = offerToBuy.possibleTravellerIds.map((travellerIds) => ({ | ||
export function createOfferConfigurationsFromOfferToBuy(offerToBuy, offerIfUsingOffersApiV1) { | ||
const selectableProductIds = extractSelectableProductIds(offerToBuy, offerIfUsingOffersApiV1); | ||
return offerToBuy.possibleTravellerIds.map((selectedTravellerIds) => ({ | ||
offerId: offerToBuy.id, | ||
selectableProductIds: netexIds, | ||
selectedTravellerIds: travellerIds | ||
selectableProductIds, | ||
selectedTravellerIds | ||
})); | ||
return offerConfigurationsWithOnlyNetexIdsAsSelectableProductIds.map((offerConfiguration) => ({ | ||
...offerConfiguration, | ||
selectableProductIds: offerConfiguration.selectableProductIds.flatMap((netexId) => getSelectableProductIdsMatchingNetexIdFromProducts(isOffer(offerOrOptionalProducts) | ||
? offerOrOptionalProducts.salesPackageConfig.fareProducts | ||
: offerOrOptionalProducts, netexId)) | ||
})); | ||
} | ||
export function getSelectableProductIdsMatchingNetexIdFromProducts(products, netexId) { | ||
return products | ||
function extractSelectableProductIds(offerToBuy, offerIfUsingOffersApiV1) { | ||
const offerToBuyIsFromOffersV2 = 'selectableProductIds' in offerToBuy; | ||
if (offerToBuyIsFromOffersV2) { | ||
return offerToBuy.selectableProductIds; | ||
} | ||
if (!offerIfUsingOffersApiV1) { | ||
const netexIds = offerToBuy.withUpgradeProducts; | ||
const userShouldHaveSuppliedAnOffer = netexIds.length > 0; | ||
if (userShouldHaveSuppliedAnOffer) { | ||
throw new Error(`offerToBuy.withUpgradeProducts contains product IDs (${JSON.stringify(netexIds)}), but the second argument was undefined. Supply the offer referenced by offerToBuy (id: ${offerToBuy.id}) to fix this error.`); | ||
} | ||
return []; | ||
} | ||
return getSelectableProductIdsMatchingNetexIdFromOffer(offerToBuy, offerIfUsingOffersApiV1); | ||
} | ||
function getSelectableProductIdsMatchingNetexIdFromOffer(offerToBuy, offerFromV1) { | ||
if (offerToBuy.id !== offerFromV1.id) { | ||
throw new Error(`The ID of the offer you supplied (${offerFromV1.id}) does not match the ID of the offerToBuy (${offerToBuy.id}). Supply the referenced offer to fix this error.`); | ||
} | ||
const netexIds = offerToBuy.withUpgradeProducts; | ||
const { fareProducts } = offerFromV1.salesPackageConfig; | ||
return netexIds.flatMap((netexId) => fareProducts | ||
.filter((product) => product.id === netexId) | ||
.map((product) => product.selectableId); | ||
.map((product) => product.selectableId)); | ||
} | ||
function isOffer(offerOrOptionalProducts) { | ||
return 'salesPackageConfig' in offerOrOptionalProducts; | ||
} |
@@ -8,13 +8,5 @@ /** | ||
/** Versioned object ref version */ | ||
version: string; | ||
version?: string; | ||
} | ||
/** | ||
* There are two supported algorithms for comparing offers; TOTAL_PRICE and BEFORE_SDR. TOTAL_PRICE: This is the default algorithm used if not specified, this only looks at the total price of the offers and finds the cheapest, if two offers have the same price, the one with the least amount of offers in the combination is chosen. BEFORE_SDR: This algorithm unapplies all sales discount rights in the offers before comparing prices, when the price of two combinations is the same, the combination containing the most amount of SDRs is chosen, thereafter if the amount is the same the combination with the least amount of offers in the combination is chosen. | ||
* @example TOTAL_PRICE | ||
*/ | ||
export declare enum PriceComparisonAlgorithm { | ||
TOTAL_PRICE = "TOTAL_PRICE", | ||
BEFORE_SDR = "BEFORE_SDR" | ||
} | ||
/** | ||
* A discount might be given based on previous transactions if CappedDiscountRequest was specified. | ||
@@ -44,29 +36,2 @@ */ | ||
/** | ||
* A request used to search for extension products valid between zones. | ||
*/ | ||
export interface SearchExtensionZonesRequest { | ||
recommendationConfig?: RecommendationConfig; | ||
/** | ||
* The expected start time of travel. | ||
* @format date-time | ||
*/ | ||
travelDate: string; | ||
/** | ||
* The id of the origin zone. | ||
* @example RUT:TariffZone:1 | ||
*/ | ||
from: string; | ||
/** A specification of an existing ticket. */ | ||
existingTicket: ExistingTicket; | ||
/** | ||
* The id of the destination zone. | ||
* @example ENT:TariffZone:3N | ||
*/ | ||
to: string; | ||
/** A specification of a traveller. */ | ||
traveller: Traveller; | ||
/** Optional sequence of via zones. */ | ||
via?: string[]; | ||
} | ||
/** | ||
* id and and name of an organisation | ||
@@ -87,13 +52,2 @@ */ | ||
/** | ||
* A request used to search for extension products for a specified trip. | ||
*/ | ||
export interface SearchExtensionTripRequest { | ||
/** List of legs constituting a suggested sequence of rides and links for a specific trip. */ | ||
tripPattern: TripPatternRequest; | ||
/** A specification of an existing ticket. */ | ||
existingTicket: ExistingTicket; | ||
/** A specification of a traveller. */ | ||
traveller: Traveller; | ||
} | ||
/** | ||
* A reference to a group with price data. | ||
@@ -127,3 +81,3 @@ */ | ||
*/ | ||
pricingBasis?: PricingBasis; | ||
pricingBasis?: PricingBasisEnum; | ||
/** The ID of the object on the format < context : type : instance name > */ | ||
@@ -138,22 +92,22 @@ id: string; | ||
* The mode of transport or access (e.g., foot) used when traversing this leg. | ||
* @example rail | ||
* @example RAIL | ||
*/ | ||
export declare enum TransportModeEnum { | ||
Air = "air", | ||
Bicycle = "bicycle", | ||
Bus = "bus", | ||
Cableway = "cableway", | ||
Car = "car", | ||
Water = "water", | ||
Funicular = "funicular", | ||
Lift = "lift", | ||
Rail = "rail", | ||
Metro = "metro", | ||
Tram = "tram", | ||
Coach = "coach", | ||
Transit = "transit", | ||
Foot = "foot", | ||
CarPark = "car_park", | ||
CarPickup = "car_pickup", | ||
CarDropoff = "car_dropoff" | ||
AIR = "AIR", | ||
BICYCLE = "BICYCLE", | ||
BUS = "BUS", | ||
CABLEWAY = "CABLEWAY", | ||
CAR = "CAR", | ||
WATER = "WATER", | ||
FUNICULAR = "FUNICULAR", | ||
LIFT = "LIFT", | ||
RAIL = "RAIL", | ||
METRO = "METRO", | ||
TRAM = "TRAM", | ||
COACH = "COACH", | ||
TRANSIT = "TRANSIT", | ||
FOOT = "FOOT", | ||
CAR_PARK = "CAR_PARK", | ||
CAR_PICKUP = "CAR_PICKUP", | ||
CAR_DROPOFF = "CAR_DROPOFF" | ||
} | ||
@@ -177,2 +131,4 @@ /** | ||
from: string; | ||
/** A specification of an existing ticket. */ | ||
existingTicket?: ExistingTicket; | ||
/** | ||
@@ -186,2 +142,26 @@ * The id of the destination zone. | ||
} | ||
/** | ||
* @example BICYCLE | ||
*/ | ||
export declare enum BaggageTypeEnum { | ||
HANDBAG = "HANDBAG", | ||
HAND_LUGGAGE = "HAND_LUGGAGE", | ||
SMALL_SUITCASE = "SMALL_SUITCASE", | ||
SUITCASE = "SUITCASE", | ||
TRUNK = "TRUNK", | ||
OVERSIZE_ITEM = "OVERSIZE_ITEM", | ||
BICYCLE = "BICYCLE", | ||
SPORTING_EQUIPMENT = "SPORTING_EQUIPMENT", | ||
SKIS = "SKIS", | ||
MUSICAL_INSTRUMENT = "MUSICAL_INSTRUMENT", | ||
PUSH_CHAIR = "PUSH_CHAIR", | ||
MOTORIZED_WHEELCHAIR = "MOTORIZED_WHEELCHAIR", | ||
LARGE_MOTORIZED_WHEELCHAIR = "LARGE_MOTORIZED_WHEELCHAIR", | ||
WHEELCHAIR = "WHEELCHAIR", | ||
SMALL_ANIMAL = "SMALL_ANIMAL", | ||
ANIMAL = "ANIMAL", | ||
GAME = "GAME", | ||
MOTORCYCLE = "MOTORCYCLE", | ||
OTHER = "OTHER" | ||
} | ||
export interface ServiceJourneySummary { | ||
@@ -291,12 +271,2 @@ /** @example NSB:ServiceJourney:56789 */ | ||
/** | ||
* @example TRIP_CARNET | ||
*/ | ||
export declare enum ProductType { | ||
TRIP_CARNET = "TRIP_CARNET", | ||
PASS_CARNET = "PASS_CARNET", | ||
UNIT_COUPONS = "UNIT_COUPONS", | ||
STORED_VALUE = "STORED_VALUE", | ||
OTHER = "OTHER" | ||
} | ||
/** | ||
* Representation of a optional product that can be selected together with mandatory products in an offer | ||
@@ -323,3 +293,3 @@ */ | ||
id: string; | ||
supplementProductType?: SupplementProductType; | ||
supplementProductType?: SupplementProductTypeEnum; | ||
/** @example NSB:Version:V1 */ | ||
@@ -511,3 +481,3 @@ version: string; | ||
/** Validity parameters */ | ||
validityParameters?: string[]; | ||
validityParameters?: VersionedObjectRef[]; | ||
/** Limitations */ | ||
@@ -574,117 +544,117 @@ limitations?: VersionedObjectRef[]; | ||
* The transport sub mode (e.g., localBus or expressBus) used when traversing this leg. Null if leg is not a ride | ||
* @example local | ||
* @example LOCAL | ||
*/ | ||
export declare enum TransportSubModeEnum { | ||
Unknown = "unknown", | ||
Undefined = "undefined", | ||
InternationalFlight = "internationalFlight", | ||
DomesticFlight = "domesticFlight", | ||
IntercontinentalFlight = "intercontinentalFlight", | ||
DomesticScheduledFlight = "domesticScheduledFlight", | ||
ShuttleFlight = "shuttleFlight", | ||
IntercontinentalCharterFlight = "intercontinentalCharterFlight", | ||
InternationalCharterFlight = "internationalCharterFlight", | ||
RoundTripCharterFlight = "roundTripCharterFlight", | ||
SightseeingFlight = "sightseeingFlight", | ||
HelicopterService = "helicopterService", | ||
DomesticCharterFlight = "domesticCharterFlight", | ||
SchengenAreaFlight = "SchengenAreaFlight", | ||
AirshipService = "airshipService", | ||
ShortHaulInternationalFlight = "shortHaulInternationalFlight", | ||
CanalBarge = "canalBarge", | ||
LocalBus = "localBus", | ||
RegionalBus = "regionalBus", | ||
ExpressBus = "expressBus", | ||
NightBus = "nightBus", | ||
PostBus = "postBus", | ||
SpecialNeedsBus = "specialNeedsBus", | ||
MobilityBus = "mobilityBus", | ||
MobilityBusForRegisteredDisabled = "mobilityBusForRegisteredDisabled", | ||
SightseeingBus = "sightseeingBus", | ||
ShuttleBus = "shuttleBus", | ||
HighFrequencyBus = "highFrequencyBus", | ||
DedicatedLaneBus = "dedicatedLaneBus", | ||
SchoolBus = "schoolBus", | ||
SchoolAndPublicServiceBus = "schoolAndPublicServiceBus", | ||
RailReplacementBus = "railReplacementBus", | ||
DemandAndResponseBus = "demandAndResponseBus", | ||
AirportLinkBus = "airportLinkBus", | ||
InternationalCoach = "internationalCoach", | ||
NationalCoach = "nationalCoach", | ||
ShuttleCoach = "shuttleCoach", | ||
RegionalCoach = "regionalCoach", | ||
SpecialCoach = "specialCoach", | ||
SchoolCoach = "schoolCoach", | ||
SightseeingCoach = "sightseeingCoach", | ||
TouristCoach = "touristCoach", | ||
CommuterCoach = "commuterCoach", | ||
Funicular = "funicular", | ||
StreetCableCar = "streetCableCar", | ||
AllFunicularServices = "allFunicularServices", | ||
UndefinedFunicular = "undefinedFunicular", | ||
Metro = "metro", | ||
Tube = "tube", | ||
UrbanRailway = "urbanRailway", | ||
CityTram = "cityTram", | ||
LocalTram = "localTram", | ||
RegionalTram = "regionalTram", | ||
SightseeingTram = "sightseeingTram", | ||
ShuttleTram = "shuttleTram", | ||
TrainTram = "trainTram", | ||
Telecabin = "telecabin", | ||
CableCar = "cableCar", | ||
Lift = "lift", | ||
ChairLift = "chairLift", | ||
DragLift = "dragLift", | ||
TelecabinLink = "telecabinLink", | ||
Local = "local", | ||
HighSpeedRail = "highSpeedRail", | ||
SuburbanRailway = "suburbanRailway", | ||
RegionalRail = "regionalRail", | ||
InterregionalRail = "interregionalRail", | ||
LongDistance = "longDistance", | ||
International = "international", | ||
SleeperRailService = "sleeperRailService", | ||
NightRail = "nightRail", | ||
CarTransportRailService = "carTransportRailService", | ||
TouristRailway = "touristRailway", | ||
AirportLinkRail = "airportLinkRail", | ||
RailShuttle = "railShuttle", | ||
ReplacementRailService = "replacementRailService", | ||
SpecialTrain = "specialTrain", | ||
CrossCountryRail = "crossCountryRail", | ||
RackAndPinionRailway = "rackAndPinionRailway", | ||
InternationalCarFerry = "internationalCarFerry", | ||
NationalCarFerry = "nationalCarFerry", | ||
RegionalCarFerry = "regionalCarFerry", | ||
LocalCarFerry = "localCarFerry", | ||
InternationalPassengerFerry = "internationalPassengerFerry", | ||
NationalPassengerFerry = "nationalPassengerFerry", | ||
RegionalPassengerFerry = "regionalPassengerFerry", | ||
LocalPassengerFerry = "localPassengerFerry", | ||
PostBoat = "postBoat", | ||
TrainFerry = "trainFerry", | ||
RoadFerryLink = "roadFerryLink", | ||
AirportBoatLink = "airportBoatLink", | ||
HighSpeedVehicleService = "highSpeedVehicleService", | ||
HighSpeedPassengerService = "highSpeedPassengerService", | ||
SightseeingService = "sightseeingService", | ||
SchoolBoat = "schoolBoat", | ||
CableFerry = "cableFerry", | ||
RiverBus = "riverBus", | ||
ScheduledFerry = "scheduledFerry", | ||
ShuttleFerryService = "shuttleFerryService", | ||
CommunalTaxi = "communalTaxi", | ||
CharterTaxi = "charterTaxi", | ||
WaterTaxi = "waterTaxi", | ||
RailTaxi = "railTaxi", | ||
BikeTaxi = "bikeTaxi", | ||
BlackCab = "blackCab", | ||
MiniCab = "miniCab", | ||
AllTaxiServices = "allTaxiServices", | ||
HireCar = "hireCar", | ||
HireVan = "hireVan", | ||
HireMotorbike = "hireMotorbike", | ||
HireCycle = "hireCycle", | ||
AllHireVehicles = "allHireVehicles" | ||
UNKNOWN = "UNKNOWN", | ||
UNDEFINED = "UNDEFINED", | ||
INTERNATIONAL_FLIGHT = "INTERNATIONAL_FLIGHT", | ||
DOMESTIC_FLIGHT = "DOMESTIC_FLIGHT", | ||
INTERCONTINENTAL_FLIGHT = "INTERCONTINENTAL_FLIGHT", | ||
DOMESTIC_SCHEDULED_FLIGHT = "DOMESTIC_SCHEDULED_FLIGHT", | ||
SHUTTLE_FLIGHT = "SHUTTLE_FLIGHT", | ||
INTERCONTINENTAL_CHARTER_FLIGHT = "INTERCONTINENTAL_CHARTER_FLIGHT", | ||
INTERNATIONAL_CHARTER_FLIGHT = "INTERNATIONAL_CHARTER_FLIGHT", | ||
ROUND_TRIP_CHARTER_FLIGHT = "ROUND_TRIP_CHARTER_FLIGHT", | ||
SIGHTSEEING_FLIGHT = "SIGHTSEEING_FLIGHT", | ||
HELICOPTER_SERVICE = "HELICOPTER_SERVICE", | ||
DOMESTIC_CHARTER_FLIGHT = "DOMESTIC_CHARTER_FLIGHT", | ||
SCHENGEN_AREA_FLIGHT = "SCHENGEN_AREA_FLIGHT", | ||
AIRSHIP_SERVICE = "AIRSHIP_SERVICE", | ||
SHORT_HAUL_INTERNATIONAL_FLIGHT = "SHORT_HAUL_INTERNATIONAL_FLIGHT", | ||
CANAL_BARGE = "CANAL_BARGE", | ||
LOCAL_BUS = "LOCAL_BUS", | ||
REGIONAL_BUS = "REGIONAL_BUS", | ||
EXPRESS_BUS = "EXPRESS_BUS", | ||
NIGHT_BUS = "NIGHT_BUS", | ||
POST_BUS = "POST_BUS", | ||
SPECIAL_NEEDS_BUS = "SPECIAL_NEEDS_BUS", | ||
MOBILITY_BUS = "MOBILITY_BUS", | ||
MOBILITY_BUS_FOR_REGISTERED_DISABLED = "MOBILITY_BUS_FOR_REGISTERED_DISABLED", | ||
SIGHTSEEING_BUS = "SIGHTSEEING_BUS", | ||
SHUTTLE_BUS = "SHUTTLE_BUS", | ||
HIGH_FREQUENCY_BUS = "HIGH_FREQUENCY_BUS", | ||
DEDICATED_LANE_BUS = "DEDICATED_LANE_BUS", | ||
SCHOOL_BUS = "SCHOOL_BUS", | ||
SCHOOL_AND_PUBLIC_SERVICE_BUS = "SCHOOL_AND_PUBLIC_SERVICE_BUS", | ||
RAIL_REPLACEMENT_BUS = "RAIL_REPLACEMENT_BUS", | ||
DEMAND_AND_RESPONSE_BUS = "DEMAND_AND_RESPONSE_BUS", | ||
AIRPORT_LINK_BUS = "AIRPORT_LINK_BUS", | ||
INTERNATIONAL_COACH = "INTERNATIONAL_COACH", | ||
NATIONAL_COACH = "NATIONAL_COACH", | ||
SHUTTLE_COACH = "SHUTTLE_COACH", | ||
REGIONAL_COACH = "REGIONAL_COACH", | ||
SPECIAL_COACH = "SPECIAL_COACH", | ||
SCHOOL_COACH = "SCHOOL_COACH", | ||
SIGHTSEEING_COACH = "SIGHTSEEING_COACH", | ||
TOURIST_COACH = "TOURIST_COACH", | ||
COMMUTER_COACH = "COMMUTER_COACH", | ||
FUNICULAR = "FUNICULAR", | ||
STREET_CABLE_CAR = "STREET_CABLE_CAR", | ||
ALL_FUNICULAR_SERVICES = "ALL_FUNICULAR_SERVICES", | ||
UNDEFINED_FUNICULAR = "UNDEFINED_FUNICULAR", | ||
METRO = "METRO", | ||
TUBE = "TUBE", | ||
URBAN_RAILWAY = "URBAN_RAILWAY", | ||
CITY_TRAM = "CITY_TRAM", | ||
LOCAL_TRAM = "LOCAL_TRAM", | ||
REGIONAL_TRAM = "REGIONAL_TRAM", | ||
SIGHTSEEING_TRAM = "SIGHTSEEING_TRAM", | ||
SHUTTLE_TRAM = "SHUTTLE_TRAM", | ||
TRAIN_TRAM = "TRAIN_TRAM", | ||
TELECABIN = "TELECABIN", | ||
CABLE_CAR = "CABLE_CAR", | ||
LIFT = "LIFT", | ||
CHAIR_LIFT = "CHAIR_LIFT", | ||
DRAG_LIFT = "DRAG_LIFT", | ||
TELECABIN_LINK = "TELECABIN_LINK", | ||
LOCAL = "LOCAL", | ||
HIGH_SPEED_RAIL = "HIGH_SPEED_RAIL", | ||
SUBURBAN_RAILWAY = "SUBURBAN_RAILWAY", | ||
REGIONAL_RAIL = "REGIONAL_RAIL", | ||
INTERREGIONAL_RAIL = "INTERREGIONAL_RAIL", | ||
LONG_DISTANCE = "LONG_DISTANCE", | ||
INTERNATIONAL = "INTERNATIONAL", | ||
SLEEPER_RAIL_SERVICE = "SLEEPER_RAIL_SERVICE", | ||
NIGHT_RAIL = "NIGHT_RAIL", | ||
CAR_TRANSPORT_RAIL_SERVICE = "CAR_TRANSPORT_RAIL_SERVICE", | ||
TOURIST_RAILWAY = "TOURIST_RAILWAY", | ||
AIRPORT_LINK_RAIL = "AIRPORT_LINK_RAIL", | ||
RAIL_SHUTTLE = "RAIL_SHUTTLE", | ||
REPLACEMENT_RAIL_SERVICE = "REPLACEMENT_RAIL_SERVICE", | ||
SPECIAL_TRAIN = "SPECIAL_TRAIN", | ||
CROSS_COUNTRY_RAIL = "CROSS_COUNTRY_RAIL", | ||
RACK_AND_PINION_RAILWAY = "RACK_AND_PINION_RAILWAY", | ||
INTERNATIONAL_CAR_FERRY = "INTERNATIONAL_CAR_FERRY", | ||
NATIONAL_CAR_FERRY = "NATIONAL_CAR_FERRY", | ||
REGIONAL_CAR_FERRY = "REGIONAL_CAR_FERRY", | ||
LOCAL_CAR_FERRY = "LOCAL_CAR_FERRY", | ||
INTERNATIONAL_PASSENGER_FERRY = "INTERNATIONAL_PASSENGER_FERRY", | ||
NATIONAL_PASSENGER_FERRY = "NATIONAL_PASSENGER_FERRY", | ||
REGIONAL_PASSENGER_FERRY = "REGIONAL_PASSENGER_FERRY", | ||
LOCAL_PASSENGER_FERRY = "LOCAL_PASSENGER_FERRY", | ||
POST_BOAT = "POST_BOAT", | ||
TRAIN_FERRY = "TRAIN_FERRY", | ||
ROAD_FERRY_LINK = "ROAD_FERRY_LINK", | ||
AIRPORT_BOAT_LINK = "AIRPORT_BOAT_LINK", | ||
HIGH_SPEED_VEHICLE_SERVICE = "HIGH_SPEED_VEHICLE_SERVICE", | ||
HIGH_SPEED_PASSENGER_SERVICE = "HIGH_SPEED_PASSENGER_SERVICE", | ||
SIGHTSEEING_SERVICE = "SIGHTSEEING_SERVICE", | ||
SCHOOL_BOAT = "SCHOOL_BOAT", | ||
CABLE_FERRY = "CABLE_FERRY", | ||
RIVER_BUS = "RIVER_BUS", | ||
SCHEDULED_FERRY = "SCHEDULED_FERRY", | ||
SHUTTLE_FERRY_SERVICE = "SHUTTLE_FERRY_SERVICE", | ||
COMMUNAL_TAXI = "COMMUNAL_TAXI", | ||
CHARTER_TAXI = "CHARTER_TAXI", | ||
WATER_TAXI = "WATER_TAXI", | ||
RAIL_TAXI = "RAIL_TAXI", | ||
BIKE_TAXI = "BIKE_TAXI", | ||
BLACK_CAB = "BLACK_CAB", | ||
MINI_CAB = "MINI_CAB", | ||
ALL_TAXI_SERVICES = "ALL_TAXI_SERVICES", | ||
HIRE_CAR = "HIRE_CAR", | ||
HIRE_VAN = "HIRE_VAN", | ||
HIRE_MOTORBIKE = "HIRE_MOTORBIKE", | ||
HIRE_CYCLE = "HIRE_CYCLE", | ||
ALL_HIRE_VEHICLES = "ALL_HIRE_VEHICLES" | ||
} | ||
@@ -788,3 +758,3 @@ /** | ||
seatMapIsAvailable: boolean; | ||
reservingRequirement?: ReservingRequirement; | ||
reservingRequirement?: ReservingRequirementEnum; | ||
serviceJourney: ServiceJourneySummary; | ||
@@ -795,3 +765,3 @@ } | ||
*/ | ||
export declare enum SupplementProductType { | ||
export declare enum SupplementProductTypeEnum { | ||
SEAT_RESERVATION = "SEAT_RESERVATION", | ||
@@ -906,2 +876,4 @@ BICYCLE = "BICYCLE", | ||
tripPattern: TripPatternRequest; | ||
/** A specification of an existing ticket. */ | ||
existingTicket?: ExistingTicket; | ||
/** A configuration of how to group travellers in offers. */ | ||
@@ -926,4 +898,2 @@ groupConfig?: GroupConfig; | ||
export interface Traveller { | ||
/** A filter for what kind of luggage the traveller wants offers for. The type is enum as string with the following possible values: HANDBAG, HAND_LUGGAGE, SMALL_SUITCASE, SUITCASE, TRUNK, OVERSIZE_ITEM, BICYCLE, SPORTING_EQUIPMENT, SKIS, MUSICAL_INSTRUMENT, PUSH_CHAIR, MOTORIZED_WHEELCHAIR,LARGE_MOTORIZED_WHEELCHAIR, WHEELCHAIR, SMALL_ANIMAL, ANIMAL, GAME, MOTORCYCLE, OTHER */ | ||
luggageTypes?: LuggageAllowance[]; | ||
/** A list of references to products that the traveller already owns */ | ||
@@ -933,2 +903,4 @@ productIds?: string[]; | ||
cappingSpecification?: CappingSpecification; | ||
/** A filter for what kind of luggage the traveller wants offers for. The type is enum as string with the following possible values: HANDBAG, HAND_LUGGAGE, SMALL_SUITCASE, SUITCASE, TRUNK, OVERSIZE_ITEM, BICYCLE, SPORTING_EQUIPMENT, SKIS, MUSICAL_INSTRUMENT, PUSH_CHAIR, MOTORIZED_WHEELCHAIR,LARGE_MOTORIZED_WHEELCHAIR, WHEELCHAIR, SMALL_ANIMAL, ANIMAL, GAME, MOTORCYCLE, OTHER */ | ||
baggageTypes?: BaggageTypeEnum[]; | ||
/** | ||
@@ -948,2 +920,22 @@ * Identifier of the traveller. Only unique within an http-transaction with Products. | ||
/** | ||
* @example RESERVATIONS_COMPULSORY | ||
*/ | ||
export declare enum ReservingRequirementEnum { | ||
RESERVATIONS_COMPULSORY = "RESERVATIONS_COMPULSORY", | ||
RESERVATIONS_COMPULSORY_FOR_GROUPS = "RESERVATIONS_COMPULSORY_FOR_GROUPS", | ||
RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS = "RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS", | ||
RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION = "RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION", | ||
RESERVATIONS_RECOMMENDED = "RESERVATIONS_RECOMMENDED", | ||
RESERVATIONS_POSSIBLE = "RESERVATIONS_POSSIBLE", | ||
RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS = "RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS", | ||
RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS = "RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS", | ||
RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES = "RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES", | ||
GROUP_BOOKING_RESTRICTED = "GROUP_BOOKING_RESTRICTED", | ||
NO_GROUPS_ALLOWED = "NO_GROUPS_ALLOWED", | ||
NO_RESERVATIONS_POSSIBLE = "NO_RESERVATIONS_POSSIBLE", | ||
WHEELCHAIR_ONLY_RESERVATIONS = "WHEELCHAIR_ONLY_RESERVATIONS", | ||
BICYCLE_RESERVATIONS_COMPULSORY = "BICYCLE_RESERVATIONS_COMPULSORY", | ||
RESERVATION_SUPPLEMENT_CHARGED = "RESERVATION_SUPPLEMENT_CHARGED" | ||
} | ||
/** | ||
* A configuration of how to group travellers in offers. | ||
@@ -992,2 +984,10 @@ */ | ||
/** | ||
* There are two supported algorithms for comparing offers; TOTAL_PRICE and BEFORE_SDR. TOTAL_PRICE: This is the default algorithm used if not specified, this only looks at the total price of the offers and finds the cheapest, if two offers have the same price, the one with the least amount of offers in the combination is chosen. BEFORE_SDR: This algorithm unapplies all sales discount rights in the offers before comparing prices, when the price of two combinations is the same, the combination containing the most amount of SDRs is chosen, thereafter if the amount is the same the combination with the least amount of offers in the combination is chosen. | ||
* @example TOTAL_PRICE | ||
*/ | ||
export declare enum PriceComparisonAlgorithmEnum { | ||
TOTAL_PRICE = "TOTAL_PRICE", | ||
BEFORE_SDR = "BEFORE_SDR" | ||
} | ||
/** | ||
* A specification of which travellers can use an offer, along with limitations on the number of travellers that must be selected from the group for the OFFER to be valid. | ||
@@ -1012,2 +1012,10 @@ */ | ||
/** | ||
* Identify zone or stopPlace in a journeySpec | ||
*/ | ||
export interface PlaceInJourneySpec { | ||
/** A stop place */ | ||
stopPlace?: StopPlace; | ||
zoneId?: string; | ||
} | ||
/** | ||
* A reference to the resource that is priced in this offer, e.g. a specific 'TripPattern'. | ||
@@ -1046,6 +1054,6 @@ */ | ||
*/ | ||
journeyOrganizeAlgorithm?: JourneyOrganizeAlgorithm; | ||
journeyOrganizeAlgorithm?: JourneyOrganizeAlgorithmEnum; | ||
mixinOffersWithHigherFlexibility?: boolean; | ||
/** There are two supported algorithms for comparing offers; TOTAL_PRICE and BEFORE_SDR. TOTAL_PRICE: This is the default algorithm used if not specified, this only looks at the total price of the offers and finds the cheapest, if two offers have the same price, the one with the least amount of offers in the combination is chosen. BEFORE_SDR: This algorithm unapplies all sales discount rights in the offers before comparing prices, when the price of two combinations is the same, the combination containing the most amount of SDRs is chosen, thereafter if the amount is the same the combination with the least amount of offers in the combination is chosen. */ | ||
priceComparisonAlgorithm?: PriceComparisonAlgorithm; | ||
priceComparisonAlgorithm?: PriceComparisonAlgorithmEnum; | ||
onlyIncludeRecommendedOffers?: boolean; | ||
@@ -1055,22 +1063,2 @@ onlyIncludeRecommendationsWithOffersToBuy?: boolean; | ||
/** | ||
* @example RESERVATIONS_COMPULSORY | ||
*/ | ||
export declare enum ReservingRequirement { | ||
RESERVATIONS_COMPULSORY = "RESERVATIONS_COMPULSORY", | ||
RESERVATIONS_COMPULSORY_FOR_GROUPS = "RESERVATIONS_COMPULSORY_FOR_GROUPS", | ||
RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS = "RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS", | ||
RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION = "RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION", | ||
RESERVATIONS_RECOMMENDED = "RESERVATIONS_RECOMMENDED", | ||
RESERVATIONS_POSSIBLE = "RESERVATIONS_POSSIBLE", | ||
RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS = "RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS", | ||
RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS = "RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS", | ||
RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES = "RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES", | ||
GROUP_BOOKING_RESTRICTED = "GROUP_BOOKING_RESTRICTED", | ||
NO_GROUPS_ALLOWED = "NO_GROUPS_ALLOWED", | ||
NO_RESERVATIONS_POSSIBLE = "NO_RESERVATIONS_POSSIBLE", | ||
WHEELCHAIR_ONLY_RESERVATIONS = "WHEELCHAIR_ONLY_RESERVATIONS", | ||
BICYCLE_RESERVATIONS_COMPULSORY = "BICYCLE_RESERVATIONS_COMPULSORY", | ||
RESERVATION_SUPPLEMENT_CHARGED = "RESERVATION_SUPPLEMENT_CHARGED" | ||
} | ||
/** | ||
* Reference to a Validable Element and its configuration. | ||
@@ -1140,2 +1128,12 @@ */ | ||
/** | ||
* @example TRIP_CARNET | ||
*/ | ||
export declare enum ProductTypeEnum { | ||
TRIP_CARNET = "TRIP_CARNET", | ||
PASS_CARNET = "PASS_CARNET", | ||
UNIT_COUPONS = "UNIT_COUPONS", | ||
STORED_VALUE = "STORED_VALUE", | ||
OTHER = "OTHER" | ||
} | ||
/** | ||
* @example DAY_PASS | ||
@@ -1264,3 +1262,3 @@ */ | ||
prices: Price[]; | ||
productType?: ProductType; | ||
productType?: ProductTypeEnum; | ||
/** Specific parameter assignments */ | ||
@@ -1282,3 +1280,3 @@ specificParameterAssignments?: SpecificParameterAssignment[]; | ||
optional: boolean; | ||
supplementProductType?: SupplementProductType; | ||
supplementProductType?: SupplementProductTypeEnum; | ||
/** The price contribution shows how much this node contributes on the total price. */ | ||
@@ -1305,3 +1303,2 @@ priceContributions: Price[]; | ||
duration?: string; | ||
luggageAllowances?: LuggageAllowance[]; | ||
accommodations?: AccommodationForServiceJourney[]; | ||
@@ -1316,2 +1313,3 @@ fareClasses?: FareClassEnum[]; | ||
organisation: OrganisationSummary; | ||
baggageTypes?: BaggageTypeEnum[]; | ||
/** @example ENT:UserProfile:Adult */ | ||
@@ -1439,2 +1437,14 @@ userProfileId?: string; | ||
/** | ||
* There are three supported algorithms for organizing how we present each combination of journeys. Given three journeys in the trip pattern; SJ-1, SJ-2, SJ-3 the three algorithms will generate these combinations: | ||
SUBSEQUENT_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2), (SJ-2, SJ-3), (SJ-1, SJ-2, SJ-3) | ||
FOR_EACH_AND_GROUPED_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2, SJ-3) | ||
COMBINATIONS_FROM_OFFERS: Will only organize by unique journey combinations covered by offers. | ||
* @example FOR_EACH_AND_GROUPED_COMBINATIONS | ||
*/ | ||
export declare enum JourneyOrganizeAlgorithmEnum { | ||
SUBSEQUENT_COMBINATIONS = "SUBSEQUENT_COMBINATIONS", | ||
COMBINATIONS_FROM_OFFERS = "COMBINATIONS_FROM_OFFERS", | ||
FOR_EACH_AND_GROUPED_COMBINATIONS = "FOR_EACH_AND_GROUPED_COMBINATIONS" | ||
} | ||
/** | ||
* A user type | ||
@@ -1589,38 +1599,2 @@ * @example ADULT | ||
/** | ||
* There are three supported algorithms for organizing how we present each combination of journeys. Given three journeys in the trip pattern; SJ-1, SJ-2, SJ-3 the three algorithms will generate these combinations: | ||
SUBSEQUENT_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2), (SJ-2, SJ-3), (SJ-1, SJ-2, SJ-3) | ||
FOR_EACH_AND_GROUPED_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2, SJ-3) | ||
COMBINATIONS_FROM_OFFERS: Will only organize by unique journey combinations covered by offers. | ||
* @example FOR_EACH_AND_GROUPED_COMBINATIONS | ||
*/ | ||
export declare enum JourneyOrganizeAlgorithm { | ||
SUBSEQUENT_COMBINATIONS = "SUBSEQUENT_COMBINATIONS", | ||
COMBINATIONS_FROM_OFFERS = "COMBINATIONS_FROM_OFFERS", | ||
FOR_EACH_AND_GROUPED_COMBINATIONS = "FOR_EACH_AND_GROUPED_COMBINATIONS" | ||
} | ||
/** | ||
* @example BICYCLE | ||
*/ | ||
export declare enum LuggageAllowance { | ||
HANDBAG = "HANDBAG", | ||
HAND_LUGGAGE = "HAND_LUGGAGE", | ||
SMALL_SUITCASE = "SMALL_SUITCASE", | ||
SUITCASE = "SUITCASE", | ||
TRUNK = "TRUNK", | ||
OVERSIZE_ITEM = "OVERSIZE_ITEM", | ||
BICYCLE = "BICYCLE", | ||
SPORTING_EQUIPMENT = "SPORTING_EQUIPMENT", | ||
SKIS = "SKIS", | ||
MUSICAL_INSTRUMENT = "MUSICAL_INSTRUMENT", | ||
PUSH_CHAIR = "PUSH_CHAIR", | ||
MOTORIZED_WHEELCHAIR = "MOTORIZED_WHEELCHAIR", | ||
LARGE_MOTORIZED_WHEELCHAIR = "LARGE_MOTORIZED_WHEELCHAIR", | ||
WHEELCHAIR = "WHEELCHAIR", | ||
SMALL_ANIMAL = "SMALL_ANIMAL", | ||
ANIMAL = "ANIMAL", | ||
GAME = "GAME", | ||
MOTORCYCLE = "MOTORCYCLE", | ||
OTHER = "OTHER" | ||
} | ||
/** | ||
* A reference to a user profile and price data. | ||
@@ -1655,2 +1629,37 @@ */ | ||
/** | ||
* Collection of attributes that characterize a journey. | ||
*/ | ||
export interface JourneySpec { | ||
/** The mode of transport or access (e.g., foot) used when traversing this leg. */ | ||
mode?: TransportModeEnum; | ||
/** | ||
* NeTEx-id of line | ||
* @example GJB:Line:R30 | ||
*/ | ||
line?: string; | ||
/** | ||
* NeTEx-id of authority. | ||
* @example ENT:Authority:ENT | ||
*/ | ||
authority?: string; | ||
/** The transport sub mode (e.g., localBus or expressBus) used when traversing this leg. Null if leg is not a ride */ | ||
transportSubmode?: TransportSubModeEnum; | ||
/** | ||
* @format date-time | ||
* @example 2020-05-13T07:19:30.389Z | ||
*/ | ||
startTime?: string; | ||
/** | ||
* @format date-time | ||
* @example 2020-05-13T09:19:30.389Z | ||
*/ | ||
endTime?: string; | ||
placesInJourney?: PlaceInJourneySpec[]; | ||
/** | ||
* NeTEx-id of Operator. | ||
* @example RUT:Operator:210 | ||
*/ | ||
operator?: string; | ||
} | ||
/** | ||
* List of legs constituting a suggested sequence of rides and links for a specific trip. | ||
@@ -1749,11 +1758,2 @@ */ | ||
/** | ||
* Basis on which pricing is done - per whole group | ||
or per member. | ||
* @example PER_OFFER | ||
*/ | ||
export declare enum PricingBasis { | ||
PER_OFFER = "PER_OFFER", | ||
PER_PERSON = "PER_PERSON" | ||
} | ||
/** | ||
* A list of coordinates encoded as a polyline string (see http://code.google.com/apis/maps/documentation/polylinealgorithm.html) | ||
@@ -1789,1 +1789,10 @@ */ | ||
} | ||
/** | ||
* Basis on which pricing is done - per whole group | ||
or per member. | ||
* @example PER_OFFER | ||
*/ | ||
export declare enum PricingBasisEnum { | ||
PER_OFFER = "PER_OFFER", | ||
PER_PERSON = "PER_PERSON" | ||
} |
@@ -12,34 +12,50 @@ /* eslint-disable */ | ||
/** | ||
* There are two supported algorithms for comparing offers; TOTAL_PRICE and BEFORE_SDR. TOTAL_PRICE: This is the default algorithm used if not specified, this only looks at the total price of the offers and finds the cheapest, if two offers have the same price, the one with the least amount of offers in the combination is chosen. BEFORE_SDR: This algorithm unapplies all sales discount rights in the offers before comparing prices, when the price of two combinations is the same, the combination containing the most amount of SDRs is chosen, thereafter if the amount is the same the combination with the least amount of offers in the combination is chosen. | ||
* @example TOTAL_PRICE | ||
*/ | ||
export var PriceComparisonAlgorithm; | ||
(function (PriceComparisonAlgorithm) { | ||
PriceComparisonAlgorithm["TOTAL_PRICE"] = "TOTAL_PRICE"; | ||
PriceComparisonAlgorithm["BEFORE_SDR"] = "BEFORE_SDR"; | ||
})(PriceComparisonAlgorithm || (PriceComparisonAlgorithm = {})); | ||
/** | ||
* The mode of transport or access (e.g., foot) used when traversing this leg. | ||
* @example rail | ||
* @example RAIL | ||
*/ | ||
export var TransportModeEnum; | ||
(function (TransportModeEnum) { | ||
TransportModeEnum["Air"] = "air"; | ||
TransportModeEnum["Bicycle"] = "bicycle"; | ||
TransportModeEnum["Bus"] = "bus"; | ||
TransportModeEnum["Cableway"] = "cableway"; | ||
TransportModeEnum["Car"] = "car"; | ||
TransportModeEnum["Water"] = "water"; | ||
TransportModeEnum["Funicular"] = "funicular"; | ||
TransportModeEnum["Lift"] = "lift"; | ||
TransportModeEnum["Rail"] = "rail"; | ||
TransportModeEnum["Metro"] = "metro"; | ||
TransportModeEnum["Tram"] = "tram"; | ||
TransportModeEnum["Coach"] = "coach"; | ||
TransportModeEnum["Transit"] = "transit"; | ||
TransportModeEnum["Foot"] = "foot"; | ||
TransportModeEnum["CarPark"] = "car_park"; | ||
TransportModeEnum["CarPickup"] = "car_pickup"; | ||
TransportModeEnum["CarDropoff"] = "car_dropoff"; | ||
TransportModeEnum["AIR"] = "AIR"; | ||
TransportModeEnum["BICYCLE"] = "BICYCLE"; | ||
TransportModeEnum["BUS"] = "BUS"; | ||
TransportModeEnum["CABLEWAY"] = "CABLEWAY"; | ||
TransportModeEnum["CAR"] = "CAR"; | ||
TransportModeEnum["WATER"] = "WATER"; | ||
TransportModeEnum["FUNICULAR"] = "FUNICULAR"; | ||
TransportModeEnum["LIFT"] = "LIFT"; | ||
TransportModeEnum["RAIL"] = "RAIL"; | ||
TransportModeEnum["METRO"] = "METRO"; | ||
TransportModeEnum["TRAM"] = "TRAM"; | ||
TransportModeEnum["COACH"] = "COACH"; | ||
TransportModeEnum["TRANSIT"] = "TRANSIT"; | ||
TransportModeEnum["FOOT"] = "FOOT"; | ||
TransportModeEnum["CAR_PARK"] = "CAR_PARK"; | ||
TransportModeEnum["CAR_PICKUP"] = "CAR_PICKUP"; | ||
TransportModeEnum["CAR_DROPOFF"] = "CAR_DROPOFF"; | ||
})(TransportModeEnum || (TransportModeEnum = {})); | ||
/** | ||
* @example BICYCLE | ||
*/ | ||
export var BaggageTypeEnum; | ||
(function (BaggageTypeEnum) { | ||
BaggageTypeEnum["HANDBAG"] = "HANDBAG"; | ||
BaggageTypeEnum["HAND_LUGGAGE"] = "HAND_LUGGAGE"; | ||
BaggageTypeEnum["SMALL_SUITCASE"] = "SMALL_SUITCASE"; | ||
BaggageTypeEnum["SUITCASE"] = "SUITCASE"; | ||
BaggageTypeEnum["TRUNK"] = "TRUNK"; | ||
BaggageTypeEnum["OVERSIZE_ITEM"] = "OVERSIZE_ITEM"; | ||
BaggageTypeEnum["BICYCLE"] = "BICYCLE"; | ||
BaggageTypeEnum["SPORTING_EQUIPMENT"] = "SPORTING_EQUIPMENT"; | ||
BaggageTypeEnum["SKIS"] = "SKIS"; | ||
BaggageTypeEnum["MUSICAL_INSTRUMENT"] = "MUSICAL_INSTRUMENT"; | ||
BaggageTypeEnum["PUSH_CHAIR"] = "PUSH_CHAIR"; | ||
BaggageTypeEnum["MOTORIZED_WHEELCHAIR"] = "MOTORIZED_WHEELCHAIR"; | ||
BaggageTypeEnum["LARGE_MOTORIZED_WHEELCHAIR"] = "LARGE_MOTORIZED_WHEELCHAIR"; | ||
BaggageTypeEnum["WHEELCHAIR"] = "WHEELCHAIR"; | ||
BaggageTypeEnum["SMALL_ANIMAL"] = "SMALL_ANIMAL"; | ||
BaggageTypeEnum["ANIMAL"] = "ANIMAL"; | ||
BaggageTypeEnum["GAME"] = "GAME"; | ||
BaggageTypeEnum["MOTORCYCLE"] = "MOTORCYCLE"; | ||
BaggageTypeEnum["OTHER"] = "OTHER"; | ||
})(BaggageTypeEnum || (BaggageTypeEnum = {})); | ||
export var AccommodationFacilityEnum; | ||
@@ -91,130 +107,119 @@ (function (AccommodationFacilityEnum) { | ||
/** | ||
* @example TRIP_CARNET | ||
*/ | ||
export var ProductType; | ||
(function (ProductType) { | ||
ProductType["TRIP_CARNET"] = "TRIP_CARNET"; | ||
ProductType["PASS_CARNET"] = "PASS_CARNET"; | ||
ProductType["UNIT_COUPONS"] = "UNIT_COUPONS"; | ||
ProductType["STORED_VALUE"] = "STORED_VALUE"; | ||
ProductType["OTHER"] = "OTHER"; | ||
})(ProductType || (ProductType = {})); | ||
/** | ||
* The transport sub mode (e.g., localBus or expressBus) used when traversing this leg. Null if leg is not a ride | ||
* @example local | ||
* @example LOCAL | ||
*/ | ||
export var TransportSubModeEnum; | ||
(function (TransportSubModeEnum) { | ||
TransportSubModeEnum["Unknown"] = "unknown"; | ||
TransportSubModeEnum["Undefined"] = "undefined"; | ||
TransportSubModeEnum["InternationalFlight"] = "internationalFlight"; | ||
TransportSubModeEnum["DomesticFlight"] = "domesticFlight"; | ||
TransportSubModeEnum["IntercontinentalFlight"] = "intercontinentalFlight"; | ||
TransportSubModeEnum["DomesticScheduledFlight"] = "domesticScheduledFlight"; | ||
TransportSubModeEnum["ShuttleFlight"] = "shuttleFlight"; | ||
TransportSubModeEnum["IntercontinentalCharterFlight"] = "intercontinentalCharterFlight"; | ||
TransportSubModeEnum["InternationalCharterFlight"] = "internationalCharterFlight"; | ||
TransportSubModeEnum["RoundTripCharterFlight"] = "roundTripCharterFlight"; | ||
TransportSubModeEnum["SightseeingFlight"] = "sightseeingFlight"; | ||
TransportSubModeEnum["HelicopterService"] = "helicopterService"; | ||
TransportSubModeEnum["DomesticCharterFlight"] = "domesticCharterFlight"; | ||
TransportSubModeEnum["SchengenAreaFlight"] = "SchengenAreaFlight"; | ||
TransportSubModeEnum["AirshipService"] = "airshipService"; | ||
TransportSubModeEnum["ShortHaulInternationalFlight"] = "shortHaulInternationalFlight"; | ||
TransportSubModeEnum["CanalBarge"] = "canalBarge"; | ||
TransportSubModeEnum["LocalBus"] = "localBus"; | ||
TransportSubModeEnum["RegionalBus"] = "regionalBus"; | ||
TransportSubModeEnum["ExpressBus"] = "expressBus"; | ||
TransportSubModeEnum["NightBus"] = "nightBus"; | ||
TransportSubModeEnum["PostBus"] = "postBus"; | ||
TransportSubModeEnum["SpecialNeedsBus"] = "specialNeedsBus"; | ||
TransportSubModeEnum["MobilityBus"] = "mobilityBus"; | ||
TransportSubModeEnum["MobilityBusForRegisteredDisabled"] = "mobilityBusForRegisteredDisabled"; | ||
TransportSubModeEnum["SightseeingBus"] = "sightseeingBus"; | ||
TransportSubModeEnum["ShuttleBus"] = "shuttleBus"; | ||
TransportSubModeEnum["HighFrequencyBus"] = "highFrequencyBus"; | ||
TransportSubModeEnum["DedicatedLaneBus"] = "dedicatedLaneBus"; | ||
TransportSubModeEnum["SchoolBus"] = "schoolBus"; | ||
TransportSubModeEnum["SchoolAndPublicServiceBus"] = "schoolAndPublicServiceBus"; | ||
TransportSubModeEnum["RailReplacementBus"] = "railReplacementBus"; | ||
TransportSubModeEnum["DemandAndResponseBus"] = "demandAndResponseBus"; | ||
TransportSubModeEnum["AirportLinkBus"] = "airportLinkBus"; | ||
TransportSubModeEnum["InternationalCoach"] = "internationalCoach"; | ||
TransportSubModeEnum["NationalCoach"] = "nationalCoach"; | ||
TransportSubModeEnum["ShuttleCoach"] = "shuttleCoach"; | ||
TransportSubModeEnum["RegionalCoach"] = "regionalCoach"; | ||
TransportSubModeEnum["SpecialCoach"] = "specialCoach"; | ||
TransportSubModeEnum["SchoolCoach"] = "schoolCoach"; | ||
TransportSubModeEnum["SightseeingCoach"] = "sightseeingCoach"; | ||
TransportSubModeEnum["TouristCoach"] = "touristCoach"; | ||
TransportSubModeEnum["CommuterCoach"] = "commuterCoach"; | ||
TransportSubModeEnum["Funicular"] = "funicular"; | ||
TransportSubModeEnum["StreetCableCar"] = "streetCableCar"; | ||
TransportSubModeEnum["AllFunicularServices"] = "allFunicularServices"; | ||
TransportSubModeEnum["UndefinedFunicular"] = "undefinedFunicular"; | ||
TransportSubModeEnum["Metro"] = "metro"; | ||
TransportSubModeEnum["Tube"] = "tube"; | ||
TransportSubModeEnum["UrbanRailway"] = "urbanRailway"; | ||
TransportSubModeEnum["CityTram"] = "cityTram"; | ||
TransportSubModeEnum["LocalTram"] = "localTram"; | ||
TransportSubModeEnum["RegionalTram"] = "regionalTram"; | ||
TransportSubModeEnum["SightseeingTram"] = "sightseeingTram"; | ||
TransportSubModeEnum["ShuttleTram"] = "shuttleTram"; | ||
TransportSubModeEnum["TrainTram"] = "trainTram"; | ||
TransportSubModeEnum["Telecabin"] = "telecabin"; | ||
TransportSubModeEnum["CableCar"] = "cableCar"; | ||
TransportSubModeEnum["Lift"] = "lift"; | ||
TransportSubModeEnum["ChairLift"] = "chairLift"; | ||
TransportSubModeEnum["DragLift"] = "dragLift"; | ||
TransportSubModeEnum["TelecabinLink"] = "telecabinLink"; | ||
TransportSubModeEnum["Local"] = "local"; | ||
TransportSubModeEnum["HighSpeedRail"] = "highSpeedRail"; | ||
TransportSubModeEnum["SuburbanRailway"] = "suburbanRailway"; | ||
TransportSubModeEnum["RegionalRail"] = "regionalRail"; | ||
TransportSubModeEnum["InterregionalRail"] = "interregionalRail"; | ||
TransportSubModeEnum["LongDistance"] = "longDistance"; | ||
TransportSubModeEnum["International"] = "international"; | ||
TransportSubModeEnum["SleeperRailService"] = "sleeperRailService"; | ||
TransportSubModeEnum["NightRail"] = "nightRail"; | ||
TransportSubModeEnum["CarTransportRailService"] = "carTransportRailService"; | ||
TransportSubModeEnum["TouristRailway"] = "touristRailway"; | ||
TransportSubModeEnum["AirportLinkRail"] = "airportLinkRail"; | ||
TransportSubModeEnum["RailShuttle"] = "railShuttle"; | ||
TransportSubModeEnum["ReplacementRailService"] = "replacementRailService"; | ||
TransportSubModeEnum["SpecialTrain"] = "specialTrain"; | ||
TransportSubModeEnum["CrossCountryRail"] = "crossCountryRail"; | ||
TransportSubModeEnum["RackAndPinionRailway"] = "rackAndPinionRailway"; | ||
TransportSubModeEnum["InternationalCarFerry"] = "internationalCarFerry"; | ||
TransportSubModeEnum["NationalCarFerry"] = "nationalCarFerry"; | ||
TransportSubModeEnum["RegionalCarFerry"] = "regionalCarFerry"; | ||
TransportSubModeEnum["LocalCarFerry"] = "localCarFerry"; | ||
TransportSubModeEnum["InternationalPassengerFerry"] = "internationalPassengerFerry"; | ||
TransportSubModeEnum["NationalPassengerFerry"] = "nationalPassengerFerry"; | ||
TransportSubModeEnum["RegionalPassengerFerry"] = "regionalPassengerFerry"; | ||
TransportSubModeEnum["LocalPassengerFerry"] = "localPassengerFerry"; | ||
TransportSubModeEnum["PostBoat"] = "postBoat"; | ||
TransportSubModeEnum["TrainFerry"] = "trainFerry"; | ||
TransportSubModeEnum["RoadFerryLink"] = "roadFerryLink"; | ||
TransportSubModeEnum["AirportBoatLink"] = "airportBoatLink"; | ||
TransportSubModeEnum["HighSpeedVehicleService"] = "highSpeedVehicleService"; | ||
TransportSubModeEnum["HighSpeedPassengerService"] = "highSpeedPassengerService"; | ||
TransportSubModeEnum["SightseeingService"] = "sightseeingService"; | ||
TransportSubModeEnum["SchoolBoat"] = "schoolBoat"; | ||
TransportSubModeEnum["CableFerry"] = "cableFerry"; | ||
TransportSubModeEnum["RiverBus"] = "riverBus"; | ||
TransportSubModeEnum["ScheduledFerry"] = "scheduledFerry"; | ||
TransportSubModeEnum["ShuttleFerryService"] = "shuttleFerryService"; | ||
TransportSubModeEnum["CommunalTaxi"] = "communalTaxi"; | ||
TransportSubModeEnum["CharterTaxi"] = "charterTaxi"; | ||
TransportSubModeEnum["WaterTaxi"] = "waterTaxi"; | ||
TransportSubModeEnum["RailTaxi"] = "railTaxi"; | ||
TransportSubModeEnum["BikeTaxi"] = "bikeTaxi"; | ||
TransportSubModeEnum["BlackCab"] = "blackCab"; | ||
TransportSubModeEnum["MiniCab"] = "miniCab"; | ||
TransportSubModeEnum["AllTaxiServices"] = "allTaxiServices"; | ||
TransportSubModeEnum["HireCar"] = "hireCar"; | ||
TransportSubModeEnum["HireVan"] = "hireVan"; | ||
TransportSubModeEnum["HireMotorbike"] = "hireMotorbike"; | ||
TransportSubModeEnum["HireCycle"] = "hireCycle"; | ||
TransportSubModeEnum["AllHireVehicles"] = "allHireVehicles"; | ||
TransportSubModeEnum["UNKNOWN"] = "UNKNOWN"; | ||
TransportSubModeEnum["UNDEFINED"] = "UNDEFINED"; | ||
TransportSubModeEnum["INTERNATIONAL_FLIGHT"] = "INTERNATIONAL_FLIGHT"; | ||
TransportSubModeEnum["DOMESTIC_FLIGHT"] = "DOMESTIC_FLIGHT"; | ||
TransportSubModeEnum["INTERCONTINENTAL_FLIGHT"] = "INTERCONTINENTAL_FLIGHT"; | ||
TransportSubModeEnum["DOMESTIC_SCHEDULED_FLIGHT"] = "DOMESTIC_SCHEDULED_FLIGHT"; | ||
TransportSubModeEnum["SHUTTLE_FLIGHT"] = "SHUTTLE_FLIGHT"; | ||
TransportSubModeEnum["INTERCONTINENTAL_CHARTER_FLIGHT"] = "INTERCONTINENTAL_CHARTER_FLIGHT"; | ||
TransportSubModeEnum["INTERNATIONAL_CHARTER_FLIGHT"] = "INTERNATIONAL_CHARTER_FLIGHT"; | ||
TransportSubModeEnum["ROUND_TRIP_CHARTER_FLIGHT"] = "ROUND_TRIP_CHARTER_FLIGHT"; | ||
TransportSubModeEnum["SIGHTSEEING_FLIGHT"] = "SIGHTSEEING_FLIGHT"; | ||
TransportSubModeEnum["HELICOPTER_SERVICE"] = "HELICOPTER_SERVICE"; | ||
TransportSubModeEnum["DOMESTIC_CHARTER_FLIGHT"] = "DOMESTIC_CHARTER_FLIGHT"; | ||
TransportSubModeEnum["SCHENGEN_AREA_FLIGHT"] = "SCHENGEN_AREA_FLIGHT"; | ||
TransportSubModeEnum["AIRSHIP_SERVICE"] = "AIRSHIP_SERVICE"; | ||
TransportSubModeEnum["SHORT_HAUL_INTERNATIONAL_FLIGHT"] = "SHORT_HAUL_INTERNATIONAL_FLIGHT"; | ||
TransportSubModeEnum["CANAL_BARGE"] = "CANAL_BARGE"; | ||
TransportSubModeEnum["LOCAL_BUS"] = "LOCAL_BUS"; | ||
TransportSubModeEnum["REGIONAL_BUS"] = "REGIONAL_BUS"; | ||
TransportSubModeEnum["EXPRESS_BUS"] = "EXPRESS_BUS"; | ||
TransportSubModeEnum["NIGHT_BUS"] = "NIGHT_BUS"; | ||
TransportSubModeEnum["POST_BUS"] = "POST_BUS"; | ||
TransportSubModeEnum["SPECIAL_NEEDS_BUS"] = "SPECIAL_NEEDS_BUS"; | ||
TransportSubModeEnum["MOBILITY_BUS"] = "MOBILITY_BUS"; | ||
TransportSubModeEnum["MOBILITY_BUS_FOR_REGISTERED_DISABLED"] = "MOBILITY_BUS_FOR_REGISTERED_DISABLED"; | ||
TransportSubModeEnum["SIGHTSEEING_BUS"] = "SIGHTSEEING_BUS"; | ||
TransportSubModeEnum["SHUTTLE_BUS"] = "SHUTTLE_BUS"; | ||
TransportSubModeEnum["HIGH_FREQUENCY_BUS"] = "HIGH_FREQUENCY_BUS"; | ||
TransportSubModeEnum["DEDICATED_LANE_BUS"] = "DEDICATED_LANE_BUS"; | ||
TransportSubModeEnum["SCHOOL_BUS"] = "SCHOOL_BUS"; | ||
TransportSubModeEnum["SCHOOL_AND_PUBLIC_SERVICE_BUS"] = "SCHOOL_AND_PUBLIC_SERVICE_BUS"; | ||
TransportSubModeEnum["RAIL_REPLACEMENT_BUS"] = "RAIL_REPLACEMENT_BUS"; | ||
TransportSubModeEnum["DEMAND_AND_RESPONSE_BUS"] = "DEMAND_AND_RESPONSE_BUS"; | ||
TransportSubModeEnum["AIRPORT_LINK_BUS"] = "AIRPORT_LINK_BUS"; | ||
TransportSubModeEnum["INTERNATIONAL_COACH"] = "INTERNATIONAL_COACH"; | ||
TransportSubModeEnum["NATIONAL_COACH"] = "NATIONAL_COACH"; | ||
TransportSubModeEnum["SHUTTLE_COACH"] = "SHUTTLE_COACH"; | ||
TransportSubModeEnum["REGIONAL_COACH"] = "REGIONAL_COACH"; | ||
TransportSubModeEnum["SPECIAL_COACH"] = "SPECIAL_COACH"; | ||
TransportSubModeEnum["SCHOOL_COACH"] = "SCHOOL_COACH"; | ||
TransportSubModeEnum["SIGHTSEEING_COACH"] = "SIGHTSEEING_COACH"; | ||
TransportSubModeEnum["TOURIST_COACH"] = "TOURIST_COACH"; | ||
TransportSubModeEnum["COMMUTER_COACH"] = "COMMUTER_COACH"; | ||
TransportSubModeEnum["FUNICULAR"] = "FUNICULAR"; | ||
TransportSubModeEnum["STREET_CABLE_CAR"] = "STREET_CABLE_CAR"; | ||
TransportSubModeEnum["ALL_FUNICULAR_SERVICES"] = "ALL_FUNICULAR_SERVICES"; | ||
TransportSubModeEnum["UNDEFINED_FUNICULAR"] = "UNDEFINED_FUNICULAR"; | ||
TransportSubModeEnum["METRO"] = "METRO"; | ||
TransportSubModeEnum["TUBE"] = "TUBE"; | ||
TransportSubModeEnum["URBAN_RAILWAY"] = "URBAN_RAILWAY"; | ||
TransportSubModeEnum["CITY_TRAM"] = "CITY_TRAM"; | ||
TransportSubModeEnum["LOCAL_TRAM"] = "LOCAL_TRAM"; | ||
TransportSubModeEnum["REGIONAL_TRAM"] = "REGIONAL_TRAM"; | ||
TransportSubModeEnum["SIGHTSEEING_TRAM"] = "SIGHTSEEING_TRAM"; | ||
TransportSubModeEnum["SHUTTLE_TRAM"] = "SHUTTLE_TRAM"; | ||
TransportSubModeEnum["TRAIN_TRAM"] = "TRAIN_TRAM"; | ||
TransportSubModeEnum["TELECABIN"] = "TELECABIN"; | ||
TransportSubModeEnum["CABLE_CAR"] = "CABLE_CAR"; | ||
TransportSubModeEnum["LIFT"] = "LIFT"; | ||
TransportSubModeEnum["CHAIR_LIFT"] = "CHAIR_LIFT"; | ||
TransportSubModeEnum["DRAG_LIFT"] = "DRAG_LIFT"; | ||
TransportSubModeEnum["TELECABIN_LINK"] = "TELECABIN_LINK"; | ||
TransportSubModeEnum["LOCAL"] = "LOCAL"; | ||
TransportSubModeEnum["HIGH_SPEED_RAIL"] = "HIGH_SPEED_RAIL"; | ||
TransportSubModeEnum["SUBURBAN_RAILWAY"] = "SUBURBAN_RAILWAY"; | ||
TransportSubModeEnum["REGIONAL_RAIL"] = "REGIONAL_RAIL"; | ||
TransportSubModeEnum["INTERREGIONAL_RAIL"] = "INTERREGIONAL_RAIL"; | ||
TransportSubModeEnum["LONG_DISTANCE"] = "LONG_DISTANCE"; | ||
TransportSubModeEnum["INTERNATIONAL"] = "INTERNATIONAL"; | ||
TransportSubModeEnum["SLEEPER_RAIL_SERVICE"] = "SLEEPER_RAIL_SERVICE"; | ||
TransportSubModeEnum["NIGHT_RAIL"] = "NIGHT_RAIL"; | ||
TransportSubModeEnum["CAR_TRANSPORT_RAIL_SERVICE"] = "CAR_TRANSPORT_RAIL_SERVICE"; | ||
TransportSubModeEnum["TOURIST_RAILWAY"] = "TOURIST_RAILWAY"; | ||
TransportSubModeEnum["AIRPORT_LINK_RAIL"] = "AIRPORT_LINK_RAIL"; | ||
TransportSubModeEnum["RAIL_SHUTTLE"] = "RAIL_SHUTTLE"; | ||
TransportSubModeEnum["REPLACEMENT_RAIL_SERVICE"] = "REPLACEMENT_RAIL_SERVICE"; | ||
TransportSubModeEnum["SPECIAL_TRAIN"] = "SPECIAL_TRAIN"; | ||
TransportSubModeEnum["CROSS_COUNTRY_RAIL"] = "CROSS_COUNTRY_RAIL"; | ||
TransportSubModeEnum["RACK_AND_PINION_RAILWAY"] = "RACK_AND_PINION_RAILWAY"; | ||
TransportSubModeEnum["INTERNATIONAL_CAR_FERRY"] = "INTERNATIONAL_CAR_FERRY"; | ||
TransportSubModeEnum["NATIONAL_CAR_FERRY"] = "NATIONAL_CAR_FERRY"; | ||
TransportSubModeEnum["REGIONAL_CAR_FERRY"] = "REGIONAL_CAR_FERRY"; | ||
TransportSubModeEnum["LOCAL_CAR_FERRY"] = "LOCAL_CAR_FERRY"; | ||
TransportSubModeEnum["INTERNATIONAL_PASSENGER_FERRY"] = "INTERNATIONAL_PASSENGER_FERRY"; | ||
TransportSubModeEnum["NATIONAL_PASSENGER_FERRY"] = "NATIONAL_PASSENGER_FERRY"; | ||
TransportSubModeEnum["REGIONAL_PASSENGER_FERRY"] = "REGIONAL_PASSENGER_FERRY"; | ||
TransportSubModeEnum["LOCAL_PASSENGER_FERRY"] = "LOCAL_PASSENGER_FERRY"; | ||
TransportSubModeEnum["POST_BOAT"] = "POST_BOAT"; | ||
TransportSubModeEnum["TRAIN_FERRY"] = "TRAIN_FERRY"; | ||
TransportSubModeEnum["ROAD_FERRY_LINK"] = "ROAD_FERRY_LINK"; | ||
TransportSubModeEnum["AIRPORT_BOAT_LINK"] = "AIRPORT_BOAT_LINK"; | ||
TransportSubModeEnum["HIGH_SPEED_VEHICLE_SERVICE"] = "HIGH_SPEED_VEHICLE_SERVICE"; | ||
TransportSubModeEnum["HIGH_SPEED_PASSENGER_SERVICE"] = "HIGH_SPEED_PASSENGER_SERVICE"; | ||
TransportSubModeEnum["SIGHTSEEING_SERVICE"] = "SIGHTSEEING_SERVICE"; | ||
TransportSubModeEnum["SCHOOL_BOAT"] = "SCHOOL_BOAT"; | ||
TransportSubModeEnum["CABLE_FERRY"] = "CABLE_FERRY"; | ||
TransportSubModeEnum["RIVER_BUS"] = "RIVER_BUS"; | ||
TransportSubModeEnum["SCHEDULED_FERRY"] = "SCHEDULED_FERRY"; | ||
TransportSubModeEnum["SHUTTLE_FERRY_SERVICE"] = "SHUTTLE_FERRY_SERVICE"; | ||
TransportSubModeEnum["COMMUNAL_TAXI"] = "COMMUNAL_TAXI"; | ||
TransportSubModeEnum["CHARTER_TAXI"] = "CHARTER_TAXI"; | ||
TransportSubModeEnum["WATER_TAXI"] = "WATER_TAXI"; | ||
TransportSubModeEnum["RAIL_TAXI"] = "RAIL_TAXI"; | ||
TransportSubModeEnum["BIKE_TAXI"] = "BIKE_TAXI"; | ||
TransportSubModeEnum["BLACK_CAB"] = "BLACK_CAB"; | ||
TransportSubModeEnum["MINI_CAB"] = "MINI_CAB"; | ||
TransportSubModeEnum["ALL_TAXI_SERVICES"] = "ALL_TAXI_SERVICES"; | ||
TransportSubModeEnum["HIRE_CAR"] = "HIRE_CAR"; | ||
TransportSubModeEnum["HIRE_VAN"] = "HIRE_VAN"; | ||
TransportSubModeEnum["HIRE_MOTORBIKE"] = "HIRE_MOTORBIKE"; | ||
TransportSubModeEnum["HIRE_CYCLE"] = "HIRE_CYCLE"; | ||
TransportSubModeEnum["ALL_HIRE_VEHICLES"] = "ALL_HIRE_VEHICLES"; | ||
})(TransportSubModeEnum || (TransportSubModeEnum = {})); | ||
@@ -224,18 +229,39 @@ /** | ||
*/ | ||
export var SupplementProductType; | ||
(function (SupplementProductType) { | ||
SupplementProductType["SEAT_RESERVATION"] = "SEAT_RESERVATION"; | ||
SupplementProductType["BICYCLE"] = "BICYCLE"; | ||
SupplementProductType["DOG"] = "DOG"; | ||
SupplementProductType["ANIMAL"] = "ANIMAL"; | ||
SupplementProductType["MEAL"] = "MEAL"; | ||
SupplementProductType["WIFI"] = "WIFI"; | ||
SupplementProductType["EXTRA_LUGGAGE"] = "EXTRA_LUGGAGE"; | ||
SupplementProductType["PENALTY"] = "PENALTY"; | ||
SupplementProductType["UPGRADE"] = "UPGRADE"; | ||
SupplementProductType["JOURNEY_EXTENSION"] = "JOURNEY_EXTENSION"; | ||
SupplementProductType["JOURNEY_ADD_ON"] = "JOURNEY_ADD_ON"; | ||
SupplementProductType["EVENT_ADD_ON"] = "EVENT_ADD_ON"; | ||
SupplementProductType["PARKING"] = "PARKING"; | ||
})(SupplementProductType || (SupplementProductType = {})); | ||
export var SupplementProductTypeEnum; | ||
(function (SupplementProductTypeEnum) { | ||
SupplementProductTypeEnum["SEAT_RESERVATION"] = "SEAT_RESERVATION"; | ||
SupplementProductTypeEnum["BICYCLE"] = "BICYCLE"; | ||
SupplementProductTypeEnum["DOG"] = "DOG"; | ||
SupplementProductTypeEnum["ANIMAL"] = "ANIMAL"; | ||
SupplementProductTypeEnum["MEAL"] = "MEAL"; | ||
SupplementProductTypeEnum["WIFI"] = "WIFI"; | ||
SupplementProductTypeEnum["EXTRA_LUGGAGE"] = "EXTRA_LUGGAGE"; | ||
SupplementProductTypeEnum["PENALTY"] = "PENALTY"; | ||
SupplementProductTypeEnum["UPGRADE"] = "UPGRADE"; | ||
SupplementProductTypeEnum["JOURNEY_EXTENSION"] = "JOURNEY_EXTENSION"; | ||
SupplementProductTypeEnum["JOURNEY_ADD_ON"] = "JOURNEY_ADD_ON"; | ||
SupplementProductTypeEnum["EVENT_ADD_ON"] = "EVENT_ADD_ON"; | ||
SupplementProductTypeEnum["PARKING"] = "PARKING"; | ||
})(SupplementProductTypeEnum || (SupplementProductTypeEnum = {})); | ||
/** | ||
* @example RESERVATIONS_COMPULSORY | ||
*/ | ||
export var ReservingRequirementEnum; | ||
(function (ReservingRequirementEnum) { | ||
ReservingRequirementEnum["RESERVATIONS_COMPULSORY"] = "RESERVATIONS_COMPULSORY"; | ||
ReservingRequirementEnum["RESERVATIONS_COMPULSORY_FOR_GROUPS"] = "RESERVATIONS_COMPULSORY_FOR_GROUPS"; | ||
ReservingRequirementEnum["RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS"] = "RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS"; | ||
ReservingRequirementEnum["RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION"] = "RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION"; | ||
ReservingRequirementEnum["RESERVATIONS_RECOMMENDED"] = "RESERVATIONS_RECOMMENDED"; | ||
ReservingRequirementEnum["RESERVATIONS_POSSIBLE"] = "RESERVATIONS_POSSIBLE"; | ||
ReservingRequirementEnum["RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS"] = "RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS"; | ||
ReservingRequirementEnum["RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS"] = "RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS"; | ||
ReservingRequirementEnum["RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES"] = "RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES"; | ||
ReservingRequirementEnum["GROUP_BOOKING_RESTRICTED"] = "GROUP_BOOKING_RESTRICTED"; | ||
ReservingRequirementEnum["NO_GROUPS_ALLOWED"] = "NO_GROUPS_ALLOWED"; | ||
ReservingRequirementEnum["NO_RESERVATIONS_POSSIBLE"] = "NO_RESERVATIONS_POSSIBLE"; | ||
ReservingRequirementEnum["WHEELCHAIR_ONLY_RESERVATIONS"] = "WHEELCHAIR_ONLY_RESERVATIONS"; | ||
ReservingRequirementEnum["BICYCLE_RESERVATIONS_COMPULSORY"] = "BICYCLE_RESERVATIONS_COMPULSORY"; | ||
ReservingRequirementEnum["RESERVATION_SUPPLEMENT_CHARGED"] = "RESERVATION_SUPPLEMENT_CHARGED"; | ||
})(ReservingRequirementEnum || (ReservingRequirementEnum = {})); | ||
export var UnavailableEnum; | ||
@@ -258,23 +284,22 @@ (function (UnavailableEnum) { | ||
/** | ||
* @example RESERVATIONS_COMPULSORY | ||
* There are two supported algorithms for comparing offers; TOTAL_PRICE and BEFORE_SDR. TOTAL_PRICE: This is the default algorithm used if not specified, this only looks at the total price of the offers and finds the cheapest, if two offers have the same price, the one with the least amount of offers in the combination is chosen. BEFORE_SDR: This algorithm unapplies all sales discount rights in the offers before comparing prices, when the price of two combinations is the same, the combination containing the most amount of SDRs is chosen, thereafter if the amount is the same the combination with the least amount of offers in the combination is chosen. | ||
* @example TOTAL_PRICE | ||
*/ | ||
export var ReservingRequirement; | ||
(function (ReservingRequirement) { | ||
ReservingRequirement["RESERVATIONS_COMPULSORY"] = "RESERVATIONS_COMPULSORY"; | ||
ReservingRequirement["RESERVATIONS_COMPULSORY_FOR_GROUPS"] = "RESERVATIONS_COMPULSORY_FOR_GROUPS"; | ||
ReservingRequirement["RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS"] = "RESERVATIONS_COMPULSORY_FOR_FIRST_CLASS"; | ||
ReservingRequirement["RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION"] = "RESERVATIONS_COMPULSORY_FROM_ORIGIN_STATION"; | ||
ReservingRequirement["RESERVATIONS_RECOMMENDED"] = "RESERVATIONS_RECOMMENDED"; | ||
ReservingRequirement["RESERVATIONS_POSSIBLE"] = "RESERVATIONS_POSSIBLE"; | ||
ReservingRequirement["RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS"] = "RESERVATIONS_POSSIBLE_ONLY_IN_FIRST_CLASS"; | ||
ReservingRequirement["RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS"] = "RESERVATIONS_POSSIBLE_ONLY_IN_SECOND_CLASS"; | ||
ReservingRequirement["RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES"] = "RESERVATIONS_POSSIBLE_FOR_CERTAIN_CLASSES"; | ||
ReservingRequirement["GROUP_BOOKING_RESTRICTED"] = "GROUP_BOOKING_RESTRICTED"; | ||
ReservingRequirement["NO_GROUPS_ALLOWED"] = "NO_GROUPS_ALLOWED"; | ||
ReservingRequirement["NO_RESERVATIONS_POSSIBLE"] = "NO_RESERVATIONS_POSSIBLE"; | ||
ReservingRequirement["WHEELCHAIR_ONLY_RESERVATIONS"] = "WHEELCHAIR_ONLY_RESERVATIONS"; | ||
ReservingRequirement["BICYCLE_RESERVATIONS_COMPULSORY"] = "BICYCLE_RESERVATIONS_COMPULSORY"; | ||
ReservingRequirement["RESERVATION_SUPPLEMENT_CHARGED"] = "RESERVATION_SUPPLEMENT_CHARGED"; | ||
})(ReservingRequirement || (ReservingRequirement = {})); | ||
export var PriceComparisonAlgorithmEnum; | ||
(function (PriceComparisonAlgorithmEnum) { | ||
PriceComparisonAlgorithmEnum["TOTAL_PRICE"] = "TOTAL_PRICE"; | ||
PriceComparisonAlgorithmEnum["BEFORE_SDR"] = "BEFORE_SDR"; | ||
})(PriceComparisonAlgorithmEnum || (PriceComparisonAlgorithmEnum = {})); | ||
/** | ||
* @example TRIP_CARNET | ||
*/ | ||
export var ProductTypeEnum; | ||
(function (ProductTypeEnum) { | ||
ProductTypeEnum["TRIP_CARNET"] = "TRIP_CARNET"; | ||
ProductTypeEnum["PASS_CARNET"] = "PASS_CARNET"; | ||
ProductTypeEnum["UNIT_COUPONS"] = "UNIT_COUPONS"; | ||
ProductTypeEnum["STORED_VALUE"] = "STORED_VALUE"; | ||
ProductTypeEnum["OTHER"] = "OTHER"; | ||
})(ProductTypeEnum || (ProductTypeEnum = {})); | ||
/** | ||
* @example DAY_PASS | ||
@@ -297,2 +322,15 @@ */ | ||
/** | ||
* There are three supported algorithms for organizing how we present each combination of journeys. Given three journeys in the trip pattern; SJ-1, SJ-2, SJ-3 the three algorithms will generate these combinations: | ||
SUBSEQUENT_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2), (SJ-2, SJ-3), (SJ-1, SJ-2, SJ-3) | ||
FOR_EACH_AND_GROUPED_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2, SJ-3) | ||
COMBINATIONS_FROM_OFFERS: Will only organize by unique journey combinations covered by offers. | ||
* @example FOR_EACH_AND_GROUPED_COMBINATIONS | ||
*/ | ||
export var JourneyOrganizeAlgorithmEnum; | ||
(function (JourneyOrganizeAlgorithmEnum) { | ||
JourneyOrganizeAlgorithmEnum["SUBSEQUENT_COMBINATIONS"] = "SUBSEQUENT_COMBINATIONS"; | ||
JourneyOrganizeAlgorithmEnum["COMBINATIONS_FROM_OFFERS"] = "COMBINATIONS_FROM_OFFERS"; | ||
JourneyOrganizeAlgorithmEnum["FOR_EACH_AND_GROUPED_COMBINATIONS"] = "FOR_EACH_AND_GROUPED_COMBINATIONS"; | ||
})(JourneyOrganizeAlgorithmEnum || (JourneyOrganizeAlgorithmEnum = {})); | ||
/** | ||
* A user type | ||
@@ -315,40 +353,2 @@ * @example ADULT | ||
/** | ||
* There are three supported algorithms for organizing how we present each combination of journeys. Given three journeys in the trip pattern; SJ-1, SJ-2, SJ-3 the three algorithms will generate these combinations: | ||
SUBSEQUENT_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2), (SJ-2, SJ-3), (SJ-1, SJ-2, SJ-3) | ||
FOR_EACH_AND_GROUPED_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2, SJ-3) | ||
COMBINATIONS_FROM_OFFERS: Will only organize by unique journey combinations covered by offers. | ||
* @example FOR_EACH_AND_GROUPED_COMBINATIONS | ||
*/ | ||
export var JourneyOrganizeAlgorithm; | ||
(function (JourneyOrganizeAlgorithm) { | ||
JourneyOrganizeAlgorithm["SUBSEQUENT_COMBINATIONS"] = "SUBSEQUENT_COMBINATIONS"; | ||
JourneyOrganizeAlgorithm["COMBINATIONS_FROM_OFFERS"] = "COMBINATIONS_FROM_OFFERS"; | ||
JourneyOrganizeAlgorithm["FOR_EACH_AND_GROUPED_COMBINATIONS"] = "FOR_EACH_AND_GROUPED_COMBINATIONS"; | ||
})(JourneyOrganizeAlgorithm || (JourneyOrganizeAlgorithm = {})); | ||
/** | ||
* @example BICYCLE | ||
*/ | ||
export var LuggageAllowance; | ||
(function (LuggageAllowance) { | ||
LuggageAllowance["HANDBAG"] = "HANDBAG"; | ||
LuggageAllowance["HAND_LUGGAGE"] = "HAND_LUGGAGE"; | ||
LuggageAllowance["SMALL_SUITCASE"] = "SMALL_SUITCASE"; | ||
LuggageAllowance["SUITCASE"] = "SUITCASE"; | ||
LuggageAllowance["TRUNK"] = "TRUNK"; | ||
LuggageAllowance["OVERSIZE_ITEM"] = "OVERSIZE_ITEM"; | ||
LuggageAllowance["BICYCLE"] = "BICYCLE"; | ||
LuggageAllowance["SPORTING_EQUIPMENT"] = "SPORTING_EQUIPMENT"; | ||
LuggageAllowance["SKIS"] = "SKIS"; | ||
LuggageAllowance["MUSICAL_INSTRUMENT"] = "MUSICAL_INSTRUMENT"; | ||
LuggageAllowance["PUSH_CHAIR"] = "PUSH_CHAIR"; | ||
LuggageAllowance["MOTORIZED_WHEELCHAIR"] = "MOTORIZED_WHEELCHAIR"; | ||
LuggageAllowance["LARGE_MOTORIZED_WHEELCHAIR"] = "LARGE_MOTORIZED_WHEELCHAIR"; | ||
LuggageAllowance["WHEELCHAIR"] = "WHEELCHAIR"; | ||
LuggageAllowance["SMALL_ANIMAL"] = "SMALL_ANIMAL"; | ||
LuggageAllowance["ANIMAL"] = "ANIMAL"; | ||
LuggageAllowance["GAME"] = "GAME"; | ||
LuggageAllowance["MOTORCYCLE"] = "MOTORCYCLE"; | ||
LuggageAllowance["OTHER"] = "OTHER"; | ||
})(LuggageAllowance || (LuggageAllowance = {})); | ||
/** | ||
* Basis on which pricing is done - per whole group | ||
@@ -358,6 +358,6 @@ or per member. | ||
*/ | ||
export var PricingBasis; | ||
(function (PricingBasis) { | ||
PricingBasis["PER_OFFER"] = "PER_OFFER"; | ||
PricingBasis["PER_PERSON"] = "PER_PERSON"; | ||
})(PricingBasis || (PricingBasis = {})); | ||
export var PricingBasisEnum; | ||
(function (PricingBasisEnum) { | ||
PricingBasisEnum["PER_OFFER"] = "PER_OFFER"; | ||
PricingBasisEnum["PER_PERSON"] = "PER_PERSON"; | ||
})(PricingBasisEnum || (PricingBasisEnum = {})); |
{ | ||
"name": "@entur/create-offer-configurations-from-offer-to-buy", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Create an array of offer configurations exactly as prescribed by the possibleTravellerIds field in an OfferToBuy", |
@@ -22,2 +22,11 @@ # @entur/create-offer-configurations-from-offer-to-buy | ||
The function has an optional second parameter, `offerIfUsingOffersApiV1`. You | ||
have to supply an argument for it if you are using | ||
[Offers v1](https://developer.entur.org/pages-offers-docs-api-v1-reference). The | ||
offer is used to map the items in `withUpgradeProducts` to | ||
`selectableProductIds` in the output. The second argument is superfluous if you | ||
are using | ||
[Offers v2](https://developer.entur.org/pages-offers-docs-api-v2-reference), | ||
because `selectableProductIds` are already present in the `offerToBuy`. | ||
```javascript | ||
@@ -33,3 +42,3 @@ import { createOfferConfigurationsFromOfferToBuy } from "@entur/create-offer-configurations-from-offer-to-buy"; | ||
}, | ||
offerOrOptionalProducts | ||
offerIfUsingOffersApiV1 | ||
); | ||
@@ -36,0 +45,0 @@ |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
362773
8260
75
0