def METHOD_NAME(self, booking_id=None):
    while not booking_id:
        booking_id = input("Appointment ID: ")
    self.stdout.write("Appointment details (retrieved):")
    try:
        details = self.plugin.get_appointment_details(booking_id)
    except Exception as exc:
        self.stderr.write(f"Failed to get appointment details: {exc}")
        return
    for k in details.__annotations__.keys():
        self.stdout.write(f"- {k}: {getattr(details, k)}")