Rail

public final class Rail implements TravelProduct

Parameters

routeType

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.

railSegments

Constructors

Link copied to clipboard
public Rail Rail(Amount price, String inventoryType, TravelProduct.InventorySource inventorySource, Rail.RouteType routeType, List<RailSegments> railSegments, List<String> travelersReferences, Boolean payLater, Boolean refundable)

Types

Link copied to clipboard
public final class Builder
Link copied to clipboard
public enum RouteType extends Enum<Rail.RouteType>

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. Values: MULTIPLE_DESTINATIONS,ONE_WAY,ROUND_TRIP

Properties

Link copied to clipboard
Link copied to clipboard
@Length(max = 30)
@NotNull()
@Valid()
private final String inventoryType
Link copied to clipboard
@Valid()
private final Boolean payLater
Link copied to clipboard
@NotNull()
@Valid()
private final Amount price
Link copied to clipboard
@Size(min = 1, max = 20)
@NotNull()
@Valid()
private final List<RailSegments> railSegments
Link copied to clipboard
@Valid()
private final Boolean refundable
Link copied to clipboard
@NotNull()
private final Rail.RouteType routeType
Link copied to clipboard
@Size(min = 1, max = 40)
@Valid()
private final List<String> travelersReferences
Link copied to clipboard
private final TravelProductType type

Functions

Link copied to clipboard
public final static Rail.Builder builder()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Amount getPrice()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Rail.Builder toBuilder()