trainSegment Data Type

An element that represents train segments of itineraries.

Namespace
(Default)
Schema
ns0.xsd
Properties
name data type type namespace min/max occurs constraints description
accomodationCode string element 0/1   The accomodation code. This is similar to a class of service code.
accumulatedTime string element 0/1   The accumulated time that this segment will take.
arrivalCity trainStation element 0/1   Arrival city code.
arrivalDate dateTime element 0/1   Arrival date for the train segment
carNumber string element 0/1   The car number that the seat/room is in.
classOfService string element 0/1   The class of service for this segment.
commissionAmount double element 0/1   The commission amount that the agent can expect to be returned.
departureCity trainStation element 0/1   Departure city code.
departureDate dateTime element 0/1   Departure date for the train segment
directResponseLocator string element 0/1   The confirmation number for this segment.
mileage string element 0/1   The number of miles that this train will travel.
numberOfStops string element 0/1   The number of stops that this train will take.
roomNumber string element 0/1   The room number reserved, if any.
trainNumber string element 0/1 max size: 32, min size: 0 The train number that the seat/room is on.
trainVendor trainVendor element 0/1   The train vendor that provides for the segment.
Properties inherited from airportalSegment
endDate string element 0/1   The end date of the segment
inGds boolean element 1/1   Whether or not the segment is stored in the GDS.
itinerary itinerary element 0/1   Get the itinerary that this segment is connected to.
number int element 0/1   The ordering number of the segment.
startDate string element 0/1   The start date of the segment.
status segmentStatus element 0/1   The status of the segment, like if it is confirmed or on wait list.
Properties inherited from baseHibernateEntity
id long element 0/1   The unique internal ID of the object.
version long element 0/1   For internal use only. This is the serialization recorder for optimistic locking of several objects between sessions.
Properties inherited from baseEntity
violations list of simpleViolation element 0/unbounded   A list of constraint violations, if any, that this object has.

Example

<trainSegment>
  <arrivalDate>...</arrivalDate>
  <departureDate>...</departureDate>
  <arrivalCity>
    <longitude>...</longitude>
    <latitude>...</latitude>
    <code>...</code>
    <city>
      <code>...</code>
      <countryCode>...</countryCode>
      <latitude>...</latitude>
      <longitude>...</longitude>
      <name>...</name>
      <stateOrCountry>...</stateOrCountry>
      <airportName>...</airportName>
      <region/>
      <timeZone/>
      <retentionOnly>...</retentionOnly>
      <position>...</position>
      <unique>...</unique>
      <alias>...</alias>
    </city>
    <name>...</name>
    <id>...</id>
    <version>...</version>
  </arrivalCity>
  <departureCity>
    <longitude>...</longitude>
    <latitude>...</latitude>
    <code>...</code>
    <city>
      <code>...</code>
      <countryCode>...</countryCode>
      <latitude>...</latitude>
      <longitude>...</longitude>
      <name>...</name>
      <stateOrCountry>...</stateOrCountry>
      <airportName>...</airportName>
      <region/>
      <timeZone/>
      <retentionOnly>...</retentionOnly>
      <position>...</position>
      <unique>...</unique>
      <alias>...</alias>
    </city>
    <name>...</name>
    <id>...</id>
    <version>...</version>
  </departureCity>
  <trainVendor>
    <longCode>...</longCode>
    <code>...</code>
    <name>...</name>
  </trainVendor>
  <directResponseLocator>...</directResponseLocator>
  <classOfService>...</classOfService>
  <roomNumber>...</roomNumber>
  <carNumber>...</carNumber>
  <accomodationCode>...</accomodationCode>
  <mileage>...</mileage>
  <numberOfStops>...</numberOfStops>
  <accumulatedTime>...</accumulatedTime>
  <trainNumber>...</trainNumber>
  <commissionAmount>...</commissionAmount>
  <number>...</number>
  <status>
    <code>...</code>
    <description>...</description>
    <accepted>...</accepted>
    <confirmed>...</confirmed>
    <virtual>...</virtual>
    <canceled>...</canceled>
  </status>
  <startDate>...</startDate>
  <endDate>...</endDate>
  <inGds>...</inGds>
  <itinerary>
    <recordLocator>...</recordLocator>
    <agentName>...</agentName>
    <client/>
    <office/>
    <departureDate>...</departureDate>
    <completionDate>...</completionDate>
    <importDate>...</importDate>
    <gds/>
    <hide>...</hide>
    <citySummary>...</citySummary>
    <departureCity/>
    <arrivalCity/>
    <arrivalDate>...</arrivalDate>
    <utcArrivalDate>...</utcArrivalDate>
    <startDate>...</startDate>
    <endDate>...</endDate>
    <purpose>...</purpose>
    <explanation>...</explanation>
    <authorizationCode>...</authorizationCode>
    <costCenterCode>...</costCenterCode>
    <departmentCode>...</departmentCode>
    <clientCode>...</clientCode>
    <regionCode>...</regionCode>
    <billable>...</billable>
    <travelerCode>...</travelerCode>
    <managerCode>...</managerCode>
    <projectCode>...</projectCode>
  </itinerary>
  <id>...</id>
  <version>...</version>
</trainSegment>