HotelAttachmentProviderHibernateImpl Resource

Created by nick on 6/3/15.

POST /hotelAttachment/addAttachmentReminder

Add a new reminder to the hotel attachment queue.

Request Body
media type data type description
application/json HotelAttachmentQueue (JSON) The hotel attachment queue record to remind the traveler with later.
application/xml hotelAttachmentQueue (XML)
Response Body
media type data type description
application/json HotelAttachmentQueue (JSON)
application/xml hotelAttachmentQueue (XML)

Example

Request
POST /hotelAttachment/addAttachmentReminder
Content-Type: application/json
Accept: application/json

                
{
  "itinerary" : {
    "recordLocator" : "...",
    "agentName" : "...",
    "client" : {
      "status" : { },
      "parentClient" : { },
      "accountNumber" : "...",
      "name" : "...",
      "type" : { },
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "office" : {
      "pcc" : "...",
      "name" : "...",
      "address1" : "...",
      "address2" : "...",
      "address3" : "...",
      "city" : "...",
      "state" : "...",
      "zip" : "...",
      "parentCompany" : { },
      "active" : "...",
      "branch" : "...",
      "clientPrefix" : "...",
      "profileSettings" : { },
      "afterHoursNumber" : "...",
      "collectVoidLogs" : true,
      "gds" : { },
      "arcNumber" : "...",
      "logo" : "...",
      "logoLink" : "...",
      "afterHoursInternationalNumber" : "...",
      "tollFreeNumber" : "...",
      "phoneNumber" : "...",
      "onlineOffice" : { },
      "showTmcAppLinks" : true,
      "vipTollFree" : "...",
      "vipAfterHours" : "...",
      "cityCode" : { },
      "tmcHeadQuarters" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "departureDate" : 12345,
    "completionDate" : 12345,
    "importDate" : 12345,
    "gds" : {
      "code" : "...",
      "name" : "...",
      "enabled" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "hide" : true,
    "citySummary" : "...",
    "departureCity" : {
      "code" : "...",
      "countryCode" : "...",
      "latitude" : 12345.0,
      "longitude" : 12345.0,
      "name" : "...",
      "stateOrCountry" : "...",
      "airportName" : "...",
      "region" : { },
      "timeZone" : { },
      "retentionOnly" : true,
      "position" : 12345,
      "unique" : true,
      "alias" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "arrivalCity" : {
      "code" : "...",
      "countryCode" : "...",
      "latitude" : 12345.0,
      "longitude" : 12345.0,
      "name" : "...",
      "stateOrCountry" : "...",
      "airportName" : "...",
      "region" : { },
      "timeZone" : { },
      "retentionOnly" : true,
      "position" : 12345,
      "unique" : true,
      "alias" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "arrivalDate" : 12345,
    "utcArrivalDate" : 12345,
    "startDate" : 12345,
    "endDate" : 12345,
    "purpose" : "...",
    "explanation" : "...",
    "authorizationCode" : "...",
    "costCenterCode" : "...",
    "departmentCode" : "...",
    "clientCode" : "...",
    "regionCode" : "...",
    "billable" : "...",
    "travelerCode" : "...",
    "managerCode" : "...",
    "projectCode" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "consumeTime" : 12345,
  "disabled" : true,
  "sent" : true,
  "requested" : true,
  "id" : 12345,
  "version" : 12345,
  "violations" : [ {
    "propertyName" : "...",
    "failureMessage" : "...",
    "stackTrace" : "..."
  }, {
    "propertyName" : "...",
    "failureMessage" : "...",
    "stackTrace" : "..."
  } ]
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "itinerary" : {
    "recordLocator" : "...",
    "agentName" : "...",
    "client" : {
      "status" : { },
      "parentClient" : { },
      "accountNumber" : "...",
      "name" : "...",
      "type" : { },
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "office" : {
      "pcc" : "...",
      "name" : "...",
      "address1" : "...",
      "address2" : "...",
      "address3" : "...",
      "city" : "...",
      "state" : "...",
      "zip" : "...",
      "parentCompany" : { },
      "active" : "...",
      "branch" : "...",
      "clientPrefix" : "...",
      "profileSettings" : { },
      "afterHoursNumber" : "...",
      "collectVoidLogs" : true,
      "gds" : { },
      "arcNumber" : "...",
      "logo" : "...",
      "logoLink" : "...",
      "afterHoursInternationalNumber" : "...",
      "tollFreeNumber" : "...",
      "phoneNumber" : "...",
      "onlineOffice" : { },
      "showTmcAppLinks" : true,
      "vipTollFree" : "...",
      "vipAfterHours" : "...",
      "cityCode" : { },
      "tmcHeadQuarters" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "departureDate" : 12345,
    "completionDate" : 12345,
    "importDate" : 12345,
    "gds" : {
      "code" : "...",
      "name" : "...",
      "enabled" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "hide" : true,
    "citySummary" : "...",
    "departureCity" : {
      "code" : "...",
      "countryCode" : "...",
      "latitude" : 12345.0,
      "longitude" : 12345.0,
      "name" : "...",
      "stateOrCountry" : "...",
      "airportName" : "...",
      "region" : { },
      "timeZone" : { },
      "retentionOnly" : true,
      "position" : 12345,
      "unique" : true,
      "alias" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "arrivalCity" : {
      "code" : "...",
      "countryCode" : "...",
      "latitude" : 12345.0,
      "longitude" : 12345.0,
      "name" : "...",
      "stateOrCountry" : "...",
      "airportName" : "...",
      "region" : { },
      "timeZone" : { },
      "retentionOnly" : true,
      "position" : 12345,
      "unique" : true,
      "alias" : true,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "arrivalDate" : 12345,
    "utcArrivalDate" : 12345,
    "startDate" : 12345,
    "endDate" : 12345,
    "purpose" : "...",
    "explanation" : "...",
    "authorizationCode" : "...",
    "costCenterCode" : "...",
    "departmentCode" : "...",
    "clientCode" : "...",
    "regionCode" : "...",
    "billable" : "...",
    "travelerCode" : "...",
    "managerCode" : "...",
    "projectCode" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "consumeTime" : 12345,
  "disabled" : true,
  "sent" : true,
  "requested" : true,
  "id" : 12345,
  "version" : 12345,
  "violations" : [ {
    "propertyName" : "...",
    "failureMessage" : "...",
    "stackTrace" : "..."
  }, {
    "propertyName" : "...",
    "failureMessage" : "...",
    "stackTrace" : "..."
  } ]
}
                
              

POST /hotelAttachment/cancelAllAttachmentReminders

Cancel all future hotel attachment reminders for a particular itinerary.

Request Parameters
name type description constraints
itineraryid query The id of the itinerary to cancel all future reminders for. long
Request Body
media type data type
application/json string (JSON)
application/xml string (XML)

Example

Request
POST /hotelAttachment/cancelAllAttachmentReminders
Content-Type: application/json

                
...
                
              
Response
HTTP/1.1 201 Created

              

POST /hotelAttachment/countHotelAttachments

Request Body
media type data type
application/json SearchList (JSON)
application/xml searchList (XML)
Response Body
media type data type description
application/json number (JSON)
application/xml long (XML)

Example

Request
POST /hotelAttachment/countHotelAttachments
Content-Type: application/json
Accept: application/json

                
{
  "propertyList" : [ {
    "op" : "...",
    "criteriaFriendlyOp" : "...",
    "SQLFriendlyOp" : "...",
    "propName" : "...",
    "properties" : [ { }, { } ],
    "value" : "...",
    "suppressAliasing" : true
  }, {
    "op" : "...",
    "criteriaFriendlyOp" : "...",
    "SQLFriendlyOp" : "...",
    "propName" : "...",
    "properties" : [ { }, { } ],
    "value" : "...",
    "suppressAliasing" : true
  } ],
  "allPropertyNames" : [ "...", "..." ],
  "beginIndex" : 12345,
  "maxResults" : 12345,
  "orderByProperty" : "...",
  "orderByFieldList" : [ {
    "fieldName" : "...",
    "asc" : true,
    "complex" : true
  }, {
    "fieldName" : "...",
    "asc" : true,
    "complex" : true
  } ],
  "asc" : true,
  "applyClientPermissions" : true,
  "retrieveChildClients" : true,
  "applyManagedClientPermissions" : true,
  "applyUserPermissions" : true
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

GET /hotelAttachment/countLoggedInUserHotelAttachments

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

Example

Request
GET /hotelAttachment/countLoggedInUserHotelAttachments
Content-Type: */*
Accept: application/json

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

                
...
                
              

POST /hotelAttachment/resendHotelAttachment

Request Body
media type data type
application/json number (JSON)
application/xml long (XML)
Response Body
media type data type description
application/json boolean (JSON)
application/xml boolean (XML)

Example

Request
POST /hotelAttachment/resendHotelAttachment
Content-Type: application/json
Accept: application/json

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /hotelAttachment/searchHotelAttachments

Search hotel overnights and get pojo records.

Request Body
media type data type
application/json SearchList (JSON)
application/xml searchList (XML)
Response Body
media type data type description
application/json array of HotelAttachmentRecord (JSON)
application/xml list of hotelAttachmentRecord (XML)

Example

Request
POST /hotelAttachment/searchHotelAttachments
Content-Type: application/json
Accept: application/json

                
{
  "propertyList" : [ {
    "op" : "...",
    "criteriaFriendlyOp" : "...",
    "SQLFriendlyOp" : "...",
    "propName" : "...",
    "properties" : [ { }, { } ],
    "value" : "...",
    "suppressAliasing" : true
  }, {
    "op" : "...",
    "criteriaFriendlyOp" : "...",
    "SQLFriendlyOp" : "...",
    "propName" : "...",
    "properties" : [ { }, { } ],
    "value" : "...",
    "suppressAliasing" : true
  } ],
  "allPropertyNames" : [ "...", "..." ],
  "beginIndex" : 12345,
  "maxResults" : 12345,
  "orderByProperty" : "...",
  "orderByFieldList" : [ {
    "fieldName" : "...",
    "asc" : true,
    "complex" : true
  }, {
    "fieldName" : "...",
    "asc" : true,
    "complex" : true
  } ],
  "asc" : true,
  "applyClientPermissions" : true,
  "retrieveChildClients" : true,
  "applyManagedClientPermissions" : true,
  "applyUserPermissions" : true
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
[ {
  "traveler" : "...",
  "city" : "...",
  "departureDate" : 12345,
  "nextReminder" : {
    "itinerary" : {
      "recordLocator" : "...",
      "agentName" : "...",
      "client" : { },
      "office" : { },
      "departureDate" : 12345,
      "completionDate" : 12345,
      "importDate" : 12345,
      "gds" : { },
      "hide" : true,
      "citySummary" : "...",
      "departureCity" : { },
      "arrivalCity" : { },
      "arrivalDate" : 12345,
      "utcArrivalDate" : 12345,
      "startDate" : 12345,
      "endDate" : 12345,
      "purpose" : "...",
      "explanation" : "...",
      "authorizationCode" : "...",
      "costCenterCode" : "...",
      "departmentCode" : "...",
      "clientCode" : "...",
      "regionCode" : "...",
      "billable" : "...",
      "travelerCode" : "...",
      "managerCode" : "...",
      "projectCode" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "consumeTime" : 12345,
    "disabled" : true,
    "sent" : true,
    "requested" : true,
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "purpose" : "...",
  "details" : "...",
  "itineraryId" : 12345,
  "airSegmentId" : 12345,
  "agentName" : "...",
  "email" : "...",
  "number" : 12345
} ]
                
              

POST /hotelAttachment/searchHotelAttachmentsSummary

get a summary of how hotels have been attached to pnrs for a client.

Request Body
media type data type
application/json SearchList (JSON)
application/xml searchList (XML)
Response Body
media type data type description
application/json HotelAttachmentSummary (JSON)
application/xml hotelAttachmentSummary (XML)

Example

Request
POST /hotelAttachment/searchHotelAttachmentsSummary
Content-Type: application/json
Accept: application/json

                
{
  "propertyList" : [ {
    "op" : "...",
    "criteriaFriendlyOp" : "...",
    "SQLFriendlyOp" : "...",
    "propName" : "...",
    "properties" : [ { }, { } ],
    "value" : "...",
    "suppressAliasing" : true
  }, {
    "op" : "...",
    "criteriaFriendlyOp" : "...",
    "SQLFriendlyOp" : "...",
    "propName" : "...",
    "properties" : [ { }, { } ],
    "value" : "...",
    "suppressAliasing" : true
  } ],
  "allPropertyNames" : [ "...", "..." ],
  "beginIndex" : 12345,
  "maxResults" : 12345,
  "orderByProperty" : "...",
  "orderByFieldList" : [ {
    "fieldName" : "...",
    "asc" : true,
    "complex" : true
  }, {
    "fieldName" : "...",
    "asc" : true,
    "complex" : true
  } ],
  "asc" : true,
  "applyClientPermissions" : true,
  "retrieveChildClients" : true,
  "applyManagedClientPermissions" : true,
  "applyUserPermissions" : true
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "withAirline" : 12345,
  "postTicketing" : 12345,
  "noHotelNeeded" : 12345,
  "unknown" : 12345
}
                
              

POST /hotelAttachment/searchTravelerHotelAttachments

Request Body
media type data type
application/json SearchList (JSON)
application/xml searchList (XML)
Response Body
media type data type description
application/json array of HotelAttachmentRecord (JSON)
application/xml list of hotelAttachmentRecord (XML)

Example

Request
POST /hotelAttachment/searchTravelerHotelAttachments
Content-Type: application/json
Accept: application/json

                
{
  "propertyList" : [ {
    "op" : "...",
    "criteriaFriendlyOp" : "...",
    "SQLFriendlyOp" : "...",
    "propName" : "...",
    "properties" : [ { }, { } ],
    "value" : "...",
    "suppressAliasing" : true
  }, {
    "op" : "...",
    "criteriaFriendlyOp" : "...",
    "SQLFriendlyOp" : "...",
    "propName" : "...",
    "properties" : [ { }, { } ],
    "value" : "...",
    "suppressAliasing" : true
  } ],
  "allPropertyNames" : [ "...", "..." ],
  "beginIndex" : 12345,
  "maxResults" : 12345,
  "orderByProperty" : "...",
  "orderByFieldList" : [ {
    "fieldName" : "...",
    "asc" : true,
    "complex" : true
  }, {
    "fieldName" : "...",
    "asc" : true,
    "complex" : true
  } ],
  "asc" : true,
  "applyClientPermissions" : true,
  "retrieveChildClients" : true,
  "applyManagedClientPermissions" : true,
  "applyUserPermissions" : true
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
[ {
  "traveler" : "...",
  "city" : "...",
  "departureDate" : 12345,
  "nextReminder" : {
    "itinerary" : {
      "recordLocator" : "...",
      "agentName" : "...",
      "client" : { },
      "office" : { },
      "departureDate" : 12345,
      "completionDate" : 12345,
      "importDate" : 12345,
      "gds" : { },
      "hide" : true,
      "citySummary" : "...",
      "departureCity" : { },
      "arrivalCity" : { },
      "arrivalDate" : 12345,
      "utcArrivalDate" : 12345,
      "startDate" : 12345,
      "endDate" : 12345,
      "purpose" : "...",
      "explanation" : "...",
      "authorizationCode" : "...",
      "costCenterCode" : "...",
      "departmentCode" : "...",
      "clientCode" : "...",
      "regionCode" : "...",
      "billable" : "...",
      "travelerCode" : "...",
      "managerCode" : "...",
      "projectCode" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "consumeTime" : 12345,
    "disabled" : true,
    "sent" : true,
    "requested" : true,
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "purpose" : "...",
  "details" : "...",
  "itineraryId" : 12345,
  "airSegmentId" : 12345,
  "agentName" : "...",
  "email" : "...",
  "number" : 12345
} ]
                
              

GET /hotelAttachment/sendHotelAttachments

Response Body
media type data type description
application/json number (JSON)
application/xml long (XML)

Example

Request
GET /hotelAttachment/sendHotelAttachments
Content-Type: */*
Accept: application/json

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

                
...
                
              

POST /hotelAttachment/getMyBookingsMissingHotelsCount/{userId}

Get the counts broken out by client for work to zero trips missing hotels.

Request Parameters
name type description constraints
userId path long
Response Body
media type data type description
application/json number (JSON)
application/xml long (XML)

Example

Request
POST /hotelAttachment/getMyBookingsMissingHotelsCount/{userId}
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

GET /hotelAttachment/getTravelerTripsMissingHotelsCount/{userId}

Request Parameters
name type description constraints
userId path long
Response Body
media type data type description
application/json number (JSON)
application/xml long (XML)

Example

Request
GET /hotelAttachment/getTravelerTripsMissingHotelsCount/{userId}
Content-Type: */*
Accept: application/json

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

                
...
                
              

POST /hotelAttachment/getTripsMissingHotelsCount/{userId}

Get the counts broken out by client for work to zero trips missing hotels.

Request Parameters
name type description constraints
userId path long
Response Body
media type data type description
application/json array of Wt0TaskCount (JSON)
application/xml list of wt0TaskCount (XML)

Example

Request
POST /hotelAttachment/getTripsMissingHotelsCount/{userId}
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
[ {
  "count" : 12345,
  "clientId" : 12345,
  "clientName" : "..."
} ]