Rail
public Rail Rail(Amount price, String inventoryType, TravelProduct.InventorySource inventorySource, Rail.RouteType routeType, List<RailSegments> railSegments, List<String> travelersReferences, Boolean payLater, Boolean refundable)
Parameters
route Type
The type of route or itinerary for the Rail product, indicating the travel arrangement and pattern. Possible values are: - MULTIPLE_DESTINATIONS - The Rail product includes multiple destinations in its itinerary. - ONE_WAY - The Rail product represents a one-way journey. - ROUNDTRIP - The Rail product represents a roundtrip journey.
rail Segments