AppointmentService

interface AppointmentService

Functions

cancelRetailAppointment
Link copied to clipboard
abstract fun cancelRetailAppointment(visitId: String, cancelReason: CancelReason): DataObserver<Unit>
Cancels a user's scheduled retail appointment by the visit id.
getCancelReasons
Link copied to clipboard
abstract fun getCancelReasons(brandName: String): DataObserver<List<CancelReason>>
Provides an api to get the list of cancel reasons
getRetailVisits
Link copied to clipboard
abstract fun getRetailVisits(): DataObserver<List<ScheduledVisit>>
Provides an api to fetch the user's upcoming retail appointments Internally, this will filter visits based on status=requested