The ULPMTripInfo Object
- 20 Jun 2023
- 1 Minute to read
- DarkLight
The ULPMTripInfo Object
- Updated on 20 Jun 2023
- 1 Minute to read
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback!
ULPMTripInfo
stores detailed itinerary information about the customers trip. It’s built using multiple sub-objects to clearly organize information. In order to get the best offer possible from Uplift, it is important to be as detailed as possible when constructing the ULPMTripInfo
and include all avaliable information in this object.
Here is a sample ULPMTripInfo
object, for the full documentation please check the ULPMTripInfo
class or the Technical documentation.
val birthday: Date = birthday_of_the_traveler
val checkInDate: Date = check_in_date
val checkOutDate: Date = check_out_date
val address = ULHotelAddress(
streetAddress = "hotel_address",
postalCode = "postal_code",
city = "city",
region = "region",
country = "country"
)
val hotelInsurances = arrayListOf(
ULInsurance(
type = ULInsuranceType.Cancellation,
price = 40000
)
)
val hotelReservation = ULHotelReservation(
numberOfRooms = 1,
address = address,
hotelName = "Hoover Dam Lodge",
checkIn = checkInDate,
checkOut = checkOutDate,
price = 50000,
insurances = hotelInsurances
)
val hotelReservations = ArrayList<ULHotelReservation>()
hotelReservations.add(hotelReservation)
val traveler: ULTraveler = ULTraveler(
travelerId = 0,
title = null,
firstName = "Arthur",
lastName = "Davis",
dateOfBirth = birthday
)
val travelers = ArrayList<ULTraveler></ULTraveler>()
travelers.add(traveler)
val itinerary0: ULItinerary = ULItinerary(
arrivalCity = null,
arrivalApc = "LAS",
arrivalTime = checkInDate,
departureCity = null,
departureApc = "DFW",
departureTime = checkInDate,
ticketType = null,
fareClass = null,
carrierCode = null,
travelers = travelers
)
val itinerary1: ULItinerary = ULItinerary(
arrivalCity = null,
arrivalApc = "LAS",
arrivalTime = checkInDate,
departureCity = null,
departureApc = "DFW",
departureTime = checkInDate,
ticketType = null,
fareClass = null,
carrierCode = null,
travelers = travelers
)
val itineraries = ArrayList<ULItinerary>()
itineraries.add(itinerary0)
itineraries.add(itinerary1)
val airInsurances: ULInsurance = ULInsurance(
type = ULInsuranceType.Cancellation,
price = 300
)
val insurances = ArrayList<ULInsurance>()
insurances.add(airInsurances)
val airReservation: ULAirReservation = ULAirReservation(
pnr = null,
reservationType = null,
tripType = ULAirTripType.ULTripTypeRoundTrip,
itineraries = itineraries,
insurances = insurances,
price = 10000
)
val airReservations = ArrayList<ULAirReservation>()
airReservations.add(airReservation)
val billingContact: ULContact = ULContact(
email = "arthur@uplift.com",
title = null,
firstName = "Arthur",
middleName = null,
lastName = "Davis",
phone = "5555559339",
streetAddress = "1013 weda cir",
streetAddress2 = null,
postalCode = "99999",
city = "Mayfield",
region = "KY",
country = "United States"
)
val tripInfo: ULPMTripInfo = ULPMTripInfo(
billingContact = billingContact,
shippingContact = null,
orderTaxAmount = 0,
orderAmount = 100000,
travelers = travelers,
hotelReservations = hotelReservations,
airReservations = airReservations,
cruiseReservations = null,
orderLines = null
)
Was this article helpful?