Class AppointmentService

java.lang.Object
es.kukenan.smartfi.microservice.backoffice.service.AppointmentService

@Service public class AppointmentService extends Object
Users related services.
  • Field Details

    • holidayRepository

      @Autowired private HolidayRepository holidayRepository
      Holiday repository.
    • workHourRepository

      @Autowired private WorkHourRepository workHourRepository
      Work hour repository.
    • appointmentRepository

      @Autowired private AppointmentRepository appointmentRepository
      Appointment repository.
  • Constructor Details

    • AppointmentService

      public AppointmentService()
  • Method Details

    • checkDay

      public org.springframework.http.ResponseEntity<Object> checkDay(es.kukenan.smartfi.dto.backoffice.appointment.AppointmentCheckDayRequestDTO requestDto)
      Check working hours for a day.
      Parameters:
      requestDto - day to check
      Returns:
      hours list.
    • saveAppointment

      public org.springframework.http.ResponseEntity<es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.appointments.AppointmentDto>> saveAppointment(es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.appointments.AppointmentRequest requestDto)
      Save new appointment.
      Parameters:
      requestDto - appointment information
      Returns:
      appointment detail.
    • handleBackOfficeAppointmentUpdatedEvent

      public void handleBackOfficeAppointmentUpdatedEvent(es.kukenan.smartfi.microservice.backoffice.events.update.BackOfficeAppointmentUpdatedEvent event)
      Update Appointment from event.
      Parameters:
      event - content.
    • getAppointment

      public org.springframework.http.ResponseEntity<es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.appointments.AppointmentDto>> getAppointment(String appointmentId)
      Get appointment detail.
      Parameters:
      appointmentId - appointment identifier
      Returns:
      appointment detail.