updateTripData

suspend fun updateTripData(languageCode: LanguageCode = LanguageCode.DE, origin: PlaceReferenceDto, destination: PlaceReferenceDto, via: PlaceReferenceDto?, params: TripParams?, trip: TripDto, individualTransportOption: IndividualTransportOptionDto?): Result<TripDeliveryDto>

Updates the trip data for a given trip by re-requesting it with the same parameters

Return

TripDeliveryDto with the updated trip information

Parameters

languageCode

The LanguageCode for the desired results, default is LanguageCode.DE

origin

The origin where the trip starts

destination

The destination where the trip ends

via

The via station which the trip should cover

params

The params to get further information on each trip

trip

The existing TripDto that should be updated

individualTransportOption

Optional individual transport option for the trip request