RecentSegment Data Type

An object describing a segment that a passenger has been in recently. Because of the fact that mySQL does not support views with variables or subqueries, this object cannot be live.

Properties
name data type description
travelerId number
prefix string
firstName string
middleName string
lastName string
suffix string
itineraryId number
address string
timestamp number
clientId number
clientName string
longitude number
latitude number
uid string
delayId number
delayScore number
alertId number
alertScore number
name string
cityId number
alerts array of TravelAlert
flight string
airline string
email string
phone string
citySummary string
countryName string
locationTimestamp number
locationId number
cityCode string
cityName string
regionCode string
regionName string
countryCode string
type string
utcTimestamp string
utcTimestampEnd string
position number
recordLocator string
departments array of string
airlineId number
countryId number
utcTripStart string
utcTripEnd string
firstOrLast boolean
confirmation string

Example

{
  "travelerId" : 12345,
  "prefix" : "...",
  "firstName" : "...",
  "middleName" : "...",
  "lastName" : "...",
  "suffix" : "...",
  "itineraryId" : 12345,
  "address" : "...",
  "timestamp" : 12345,
  "clientId" : 12345,
  "clientName" : "...",
  "longitude" : 12345.0,
  "latitude" : 12345.0,
  "uid" : "...",
  "delayId" : 12345,
  "delayScore" : 12345.0,
  "alertId" : 12345,
  "alertScore" : 12345.0,
  "name" : "...",
  "cityId" : 12345,
  "alerts" : [ {
    "timestamp" : 12345,
    "destination" : {
      "name" : "...",
      "countryCode" : "...",
      "country" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "severity" : {
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "start" : 12345,
    "end" : 12345,
    "description" : "...",
    "link" : "...",
    "datetime" : 12345,
    "latitude" : 12345.0,
    "longitude" : 12345.0,
    "type" : {
      "type" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "stateCode" : "...",
    "metroCode" : "...",
    "cityName" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  }, {
    "timestamp" : 12345,
    "destination" : {
      "name" : "...",
      "countryCode" : "...",
      "country" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "severity" : {
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "start" : 12345,
    "end" : 12345,
    "description" : "...",
    "link" : "...",
    "datetime" : 12345,
    "latitude" : 12345.0,
    "longitude" : 12345.0,
    "type" : {
      "type" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "stateCode" : "...",
    "metroCode" : "...",
    "cityName" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  } ],
  "flight" : "...",
  "airline" : "...",
  "email" : "...",
  "phone" : "...",
  "citySummary" : "...",
  "countryName" : "...",
  "locationTimestamp" : 12345,
  "locationId" : 12345,
  "cityCode" : "...",
  "cityName" : "...",
  "regionCode" : "...",
  "regionName" : "...",
  "countryCode" : "...",
  "type" : "...",
  "utcTimestamp" : "...",
  "utcTimestampEnd" : "...",
  "position" : 12345,
  "recordLocator" : "...",
  "departments" : [ "...", "..." ],
  "airlineId" : 12345,
  "countryId" : 12345,
  "utcTripStart" : "...",
  "utcTripEnd" : "...",
  "firstOrLast" : true,
  "confirmation" : "..."
}