getBookings

abstract suspend fun getBookings(endsAfter: String, startsBefore: String? = null, pageConfig: PageConfig? = null): Result<Paged<Booking>>

Get Booking's. Bookings are sorted by Booking.startsAt. You will get bookings paginated based on your PageConfig.

Since

1.5.0

Return

a result of paged booking items.

Parameters

endsAfter

(ISO 8601) timestamp. You will get bookings that ends after this timestamp.

startsBefore

(ISO 8601) timestamp. You will get bookings that starts before this timestamp. When startsBefore is null you will get all bookings that endsAfter.

pageConfig

(optional) sets the configuration for loading the next page.