Package-level declarations

Types

Link copied to clipboard
data class ULActivity(val name: String? = null, val price: Int? = 0, val date: String? = null, val provider: String? = null) : Serializable

Class to represent an activity of a ULItineraryPort object.

Link copied to clipboard
data class ULAddOn(val name: String? = null, val price: Int? = 0) : Serializable

Class to represent an addon.

Link copied to clipboard
data class ULAirReservation(val pnr: String? = null, val reservationType: String? = null, val tripType: ULAirTripType, val itineraries: ArrayList<ULItinerary>, val insurances: ArrayList<ULInsurance>? = null, val origin: String? = null, val destination: String? = null, val price: Int? = null) : Serializable

Class to represent an air reservation.

Link copied to clipboard

Enum to represent trip types in the SDK

Link copied to clipboard
data class ULCheckoutConfiguration(var showCloseButton: Boolean = true, var screenTimeOut: Long = 30) : Serializable

Configuration object to manage the behaviour of the checkout flow

Link copied to clipboard

Enum to represent the possible events which can come from the checkoutView

Link copied to clipboard
data class ULConfiguration(val upCode: String, val apiKey: String, var checkoutConfiguration: ULCheckoutConfiguration = ULCheckoutConfiguration(), var apiTimeout: Long = 10) : Serializable

Configuration object to setup the basic information, settings which will be used by the SDK.

Link copied to clipboard
data class ULContact(val email: String? = null, val title: String? = null, val firstName: String? = null, val middleName: String? = null, val lastName: String? = null, val phone: String? = null, val dateOfBirth: Date? = null, val streetAddress: String? = null, val streetAddress2: String? = null, val postalCode: String? = null, val city: String? = null, val region: String? = null, val country: String? = null, val ssn: String? = null, val stateIncome: Int? = null) : Serializable

Class to represent the billing contact.

Link copied to clipboard
data class ULCruiseReservation(val voyageId: String? = null, val cruiseLine: String? = null, val shipCode: String? = null, val departurePort: String? = null, val departureDate: Date? = null, val arrivalPort: String? = null, val arrivalDate: Date? = null, val duration: Int? = null, val price: Int? = null, val rooms: ArrayList<ULCruiseRoom>? = null, val addOns: ArrayList<ULAddOn>? = null, val itineraryPorts: ArrayList<ULItineraryPort>? = null, val insurances: ArrayList<ULInsurance>? = null) : Serializable

Class to represent a cruise reservation

Link copied to clipboard
data class ULCruiseRoom(val cabinType: String? = null, val stateRoomType: String? = null, val stateRoomNumber: String? = null, val deckNumber: String? = null, val berthedType: String? = null, val diningService: String? = null) : Serializable

Class to represent a single cruise room.

Link copied to clipboard

Enum to represent the currency used by the SDK

Link copied to clipboard
data class ULError(val type: ULErrorType, val message: String) : Throwable

ULError represents a specific type of error that can occur in the application

Link copied to clipboard

ULErrorType represents different types of errors that can occur in the SDK.

Link copied to clipboard
data class ULHotelAddress(val streetAddress: String? = null, val postalCode: String? = null, val city: String? = null, val region: String? = null, val country: String? = null) : Serializable

Class to represent the address of a hotel

Link copied to clipboard
data class ULHotelReservation(val numberOfRooms: Int? = null, val address: ULHotelAddress? = null, val reservationType: String? = null, val ticketType: String? = null, val hotelName: String? = null, val checkIn: Date? = null, val checkOut: Date? = null, val price: Int? = null, val insurances: ArrayList<ULInsurance>? = null, val travelers: ArrayList<ULTraveler>? = null) : Serializable

Class to represent a hotel reservation.

Link copied to clipboard
data class ULInsurance(val type: ULInsuranceType? = null, val price: Int? = null) : Serializable

Class to represent a trip insurance.

Link copied to clipboard

Class to represent the type of an insurance.

Link copied to clipboard
data class ULItinerary(val arrivalCity: String? = null, val arrivalApc: String, val arrivalTime: Date, val departureCity: String? = null, val departureApc: String, val departureTime: Date, val ticketType: String? = null, val fareClass: String? = null, val carrierCode: String? = null, val travelers: ArrayList<ULTraveler>? = null) : Serializable

Class to represent an itinerary of the trip

Link copied to clipboard
data class ULItineraryPort(val portId: Int? = null, val portName: String? = null, val activities: ArrayList<ULActivity>? = null, val arrivalDate: String? = null, val departureDate: String? = null) : Serializable

Class to represent an itinerary port

Link copied to clipboard
data class ULLocale(val locale: Locale, val ulCurrency: ULCurrency) : Serializable

ULLocale represents the currency, country and language setup of the SDK.

Link copied to clipboard
data class ULLocalization(val currency: ULCurrency?, val language: String?, val country: String?)
Link copied to clipboard
data class ULMerchantData(val merchantUrl: String? = null, val shopId: String? = null)

Details about the merchant

Link copied to clipboard
data class ULOrderError(val type: ULOrderErrorType, val message: String) : Serializable

Class to represent an error from the client-side. Use this error class to confirm to UpLift that there was an error during the payment process.

Link copied to clipboard

Enum to represent the type of the error

Link copied to clipboard
data class ULOrderLine(val name: String, val sku: String?, val productUrl: String?, val quantity: Int?, val unitPrice: Int?) : Serializable

Class to represent an order line.

Link copied to clipboard
data class ULPMPrice(val priceId: String, val value: Int, val model: ULPMPriceModel, val type: ULPMPriceType)

Price object to represent an item, you want to get a monthly offer for.

Link copied to clipboard

Enum to represent the possible price models of the ULPMPrice

Link copied to clipboard

Enum to represent the possible price types of the ULPMPrice

Link copied to clipboard
data class ULPMTripInfo(val billingContact: <Error class: unknown class>? = null, val shippingContact: <Error class: unknown class>? = null, val orderBookedAt: Date? = null, val merchant: String? = null, val merchantField1: String? = null, val merchantField2: String? = null, val merchantData: <Error class: unknown class>? = null, val orderTaxAmount: Int? = null, val orderAmount: Int? = null, val travelers: List<<Error class: unknown class>>? = null, val hotelReservations: List<<Error class: unknown class>>? = null, val airReservations: List<<Error class: unknown class>>? = null, val cruiseReservations: List<<Error class: unknown class>>? = null, val orderLines: List<<Error class: unknown class>>? = null) : Serializable

Class to represent a trip.

Link copied to clipboard

Class to represent a virtual card which can be used to pay for the trip

Link copied to clipboard
data class ULTraveler(val travelerId: Int? = null, val title: String? = null, val firstName: String? = null, val lastName: String? = null, val dateOfBirth: Date? = null) : Serializable

Class to represent a single traveler attached to the trips