ItinerarySegmentProviderHibernateImpl Resource

Hibernate implementation of the dedicated segment provider.

GET /itinerarySegment/countAirSegmentSpend

Count the number or air spend records that match the filters

Request Parameters
name type description
searchList query filters on air spending
Response Body
media type data type description
application/json number (JSON) matching count.
application/xml long (XML)

Example

Request
GET /itinerarySegment/countAirSegmentSpend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /itinerarySegment/countCarSegmentSpend

Count of car spend records for given filters

Request Parameters
name type description
searchList query filters on car spending
Response Body
media type data type description
application/json number (JSON) count of car spend records
application/xml long (XML)

Example

Request
GET /itinerarySegment/countCarSegmentSpend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /itinerarySegment/countHotelSegmentSpend

Count of hotel spend records for given filters

Request Parameters
name type description
searchList query given filters on hotel spending.
Response Body
media type data type description
application/json number (JSON) Count of hotel spend records
application/xml long (XML)

Example

Request
GET /itinerarySegment/countHotelSegmentSpend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /itinerarySegment/countMiscSegmentSpend

Count of records for miscellaneous travel segment spending

Request Parameters
name type description
searchList query segment filters
Response Body
media type data type description
application/json number (JSON) Count of records for miscellaneous travel segment spending.
application/xml long (XML)

Example

Request
GET /itinerarySegment/countMiscSegmentSpend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /itinerarySegment/countRailSegmentSpend

Count records for rail spending

Request Parameters
name type description
searchList query filters on rail spending
Response Body
media type data type description
application/json number (JSON) Count of records for rail spending.
application/xml long (XML)

Example

Request
GET /itinerarySegment/countRailSegmentSpend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /itinerarySegment/getAirSegmentSpend

Get the details of air segment spending

Request Parameters
name type description
searchList query filters on air segment spending
Response Body
media type data type description
application/json array of AirSegmentSpend (JSON) detailed records for air segment spending
application/xml list of airSegmentSpend (XML)

Example

Request
GET /itinerarySegment/getAirSegmentSpend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "type" : "...",
  "id" : 12345,
  "itineraryId" : 12345,
  "travelerName" : "...",
  "vendorName" : "...",
  "vendorId" : 12345,
  "spend" : 12345.0,
  "recordLocator" : "...",
  "ticketNumber" : "...",
  "destination" : "...",
  "bookingDate" : 12345,
  "startDate" : 12345,
  "endDate" : 12345,
  "departure" : "...",
  "clientName" : "...",
  "clientId" : 12345
} ]
                
              

GET /itinerarySegment/getCarSegmentSpend

Detailed records of car segment spending

Request Parameters
name type description
searchList query filters for car segment spending
Response Body
media type data type description
application/json array of CarSegmentSpend (JSON) Detailed records of car segment spending
application/xml list of carSegmentSpend (XML)

Example

Request
GET /itinerarySegment/getCarSegmentSpend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "passengerName" : "...",
  "id" : 12345,
  "itineraryId" : 12345,
  "vendorName" : "...",
  "vendorId" : 12345,
  "spend" : 12345.0,
  "confirmation" : "...",
  "recordLocator" : "...",
  "startDate" : 12345,
  "endDate" : 12345
} ]
                
              

GET /itinerarySegment/getHotelSegmentSpend

Detailed Records of hotel segment spending

Request Parameters
name type description
searchList query filters for hotel segment spending.
Response Body
media type data type description
application/json array of HotelSegmentSpend (JSON) Detailed Records of hotel segment spending
application/xml list of hotelSegmentSpend (XML)

Example

Request
GET /itinerarySegment/getHotelSegmentSpend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "passengerName" : "...",
  "id" : 12345,
  "itineraryId" : 12345,
  "hotelName" : "...",
  "vendorName" : "...",
  "vendorId" : 12345,
  "spend" : 12345.0,
  "confirmation" : "...",
  "recordLocator" : "...",
  "clientName" : "...",
  "clientId" : 12345,
  "checkIn" : 12345,
  "checkOut" : 12345
} ]
                
              

GET /itinerarySegment/getMiscSegmentSpend

Details records of miscellaneous travel segment spending

Request Parameters
name type description
searchList query segment filters
Response Body
media type data type description
application/json array of MiscSegmentSpend (JSON) Detailed records of miscellaneous travel segment spending
application/xml list of miscSegmentSpend (XML)

Example

Request
GET /itinerarySegment/getMiscSegmentSpend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "passengerName" : "...",
  "clientName" : "...",
  "travelType" : "...",
  "id" : 12345,
  "itineraryId" : 12345,
  "vendorName" : "...",
  "spend" : 12345.0,
  "bookingDate" : 12345,
  "recordLocator" : "..."
} ]
                
              

GET /itinerarySegment/getRailSegmentSpend

Detailed records of rail segment spending

Request Parameters
name type description
searchList query rail spending filters
Response Body
media type data type description
application/json array of RailSegmentSpend (JSON) detailed records of rail segment spending
application/xml list of railSegmentSpend (XML)

Example

Request
GET /itinerarySegment/getRailSegmentSpend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "clientName" : "...",
  "passengerName" : "...",
  "id" : 12345,
  "itineraryId" : 12345,
  "ticketNumber" : "...",
  "vendorName" : "...",
  "spend" : 12345.0,
  "bookingDate" : 12345,
  "recordLocator" : "..."
} ]
                
              

GET /itinerarySegment/getSimpleSegmentSpendSummaries

Request Parameters
name type description
searchList query
Response Body
media type data type description
application/json SimpleTravelSpendSummary (JSON)
application/xml simpleTravelSpendSummary (XML)

Example

Request
GET /itinerarySegment/getSimpleSegmentSpendSummaries
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "airSpend" : 12345.0,
  "hotelSpend" : 12345.0,
  "carSpend" : 12345.0,
  "miscSpend" : 12345.0,
  "railSpend" : 12345.0,
  "tourSpend" : 12345.0,
  "cruiseSpend" : 12345.0,
  "insuranceSpend" : 12345.0,
  "busSpend" : 12345.0,
  "totalSpend" : 12345.0,
  "airCount" : 12345,
  "hotelCount" : 12345,
  "carCount" : 12345,
  "miscCount" : 12345,
  "railCount" : 12345,
  "tourCount" : 12345,
  "cruiseCount" : 12345,
  "insuranceCount" : 12345,
  "busCount" : 12345,
  "totalCount" : 12345,
  "feeCount" : 12345,
  "feeSpend" : 12345.0
}
                
              

GET /itinerarySegment/totalAirSegmentSpend

Total the ticket amounts for the given filters

Request Parameters
name type description
searchList query given filters
Response Body
media type data type description
application/json number (JSON) total ticket amounts
application/xml double (XML)

Example

Request
GET /itinerarySegment/totalAirSegmentSpend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /itinerarySegment/totalCarSegmentSpend

total Car rental amounts

Request Parameters
name type description
searchList query filter sent by UI
Response Body
media type data type description
application/json number (JSON) Total car rental amounts
application/xml double (XML)

Example

Request
GET /itinerarySegment/totalCarSegmentSpend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /itinerarySegment/totalHotelSegmentSpend

Total hotel reservation amounts

Request Parameters
name type description
searchList query filter the reservations
Response Body
media type data type description
application/json number (JSON) total hotel reservation amounts
application/xml double (XML)

Example

Request
GET /itinerarySegment/totalHotelSegmentSpend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /itinerarySegment/totalMiscSegmentSpend

Total misc ticket and reservation amounts

Request Parameters
name type description
searchList query filter sent by UI
Response Body
media type data type description
application/json number (JSON) Total misc ticket and reservation amounts
application/xml double (XML)

Example

Request
GET /itinerarySegment/totalMiscSegmentSpend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /itinerarySegment/totalRailSegmentSpend

Total rail ticket amounts

Request Parameters
name type description
searchList query filter sent by UI
Response Body
media type data type description
application/json number (JSON) Total rail ticket amounts
application/xml double (XML)

Example

Request
GET /itinerarySegment/totalRailSegmentSpend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...