The itinerary class is one of the primary components, it houses all of the necessary implementation in order to create, modify, delete or get information about the itinerary.
This is the base implementation for the itinerary, functions not specific to an itinerary but specific to a group event are housed within here, specific separations may include transportation details where for a group may involve the parent where the itinerary is the 'root' and has collections of groups or sub-itineraries.
This should be a context manager where the current state is the currently active event (such as an activity or a hotel flight) and the functions within the context act on the current state where get_transportation_urls would get flights if the next event is a park ticket reservation and the user hasn't gotten on a flight and get_transportation_urls would get Uber booking rates if the user has taken a flight and the next event is a park ticket reservation.
Each of the subclasses will have an individual issue detailed with specifics about it's implementation.
The itinerary class is one of the primary components, it houses all of the necessary implementation in order to create, modify, delete or get information about the itinerary.
This is the base implementation for the itinerary, functions not specific to an itinerary but specific to a group event are housed within here, specific separations may include transportation details where for a group may involve the parent where the itinerary is the 'root' and has collections of groups or sub-itineraries.
This should be a context manager where the current state is the currently active event (such as an activity or a hotel flight) and the functions within the context act on the current state where
get_transportation_urls
would get flights if the next event is a park ticket reservation and the user hasn't gotten on a flight andget_transportation_urls
would get Uber booking rates if the user has taken a flight and the next event is a park ticket reservation.Each of the subclasses will have an individual issue detailed with specifics about it's implementation.
https://github.com/heyitsmass/BayView/blob/b335f46bd55299100313360e111e700b8bc3f6a0/src/types/ItineraryManager.ts#L149-L199