trackHotelRentalProgress

Should be triggered when a user completes progress in finishing a hotel rental request.

class RentalAccount(
       accountType: AccountType,
       age: Int?,
       affiliateNumber: String?,
       countryOfResidence: String
)

class RentalDetails(
       ancillaryItems: Boolean,
       url: URL,
       title: String?,
       stepNumber: Int?,
       travelersCount: Int?
)

class RentalLocation(
       title: String,
       code: String
)

class HotelRentalRequest(
       startTimestamp: Long,
       endTimestamp: Long,
       rentalLocation: RentalLocation)

class HotelRentalProgress(
       options: List<String>,
       details: RentalDetails,
       request: HotelRentalRequest,
       account: RentalAccount,
       roomsCount: Int?
)

Wunderkind.getInstance().trackHotelRentalProgress(hotelRentalProgress)
HotelRentalProgress: {
     options: [String]
     details: RentalDetails
     request: HotelRentalRequest
     account: RentalAccount
     roomsCount: Int?
}

RentalDetails: {
     ancillaryItems: Bool
     stepNumber: Int?
     travelersCount: Int?
     title: String?
     url: URL
}

HotelRentalRequest: {
     startTimestamp: TimeInterval
     endTimestamp: TimeInterval
     rentalLocation: RentalLocation
}

RentalLocation: {
     title: String
     code: String
}

RentalAccount: {
     accountType: AccountType
     affiliateNumber: String?
     countryOfResidence: String?
     age: Decimal
}

Wunderkind.shared.trackHotelRentalProgress(progress: hotelRentalProgress)
class HotelRentalProgress {
    options: string[]
    roomsCount: number
    details: RentalDetails
    request: HotelRentalRequest
    account: RentalAccount
}

class HotelRentalRequest {
    startTimestamp: number
    endTimestamp: number
    rentalLocation: RentalLocation
}

class RentalLocation {
    title: string
    code: string
}

class RentalAccount {
    accountType: string
    affiliateNumber: string
    countryOfResidence: string
    age: number
}

Wunderkind.trackHotelRentalProgress(hotelRentalProgress: HotelRentalProgress)
class HotelRentalProgress {
    List<String> options
    int? roomsCount
    RentalDetails details
    HotelRentalRequest request
    RentalAccount account
}

class HotelRentalRequest {
    int startTimestamp
    int endTimestamp
    RentalLocation rentalLocation
}

class RentalLocation {
    String title
    String code
}

class RentalAccount {
    AccountType accountType
    String? affiliateNumber
    String? countryOfResidence
    int age
}

Wunderkind().trackHotelRentalProgress(hotelRentalProgress);