Class InterventionApi

java.lang.Object
overit.geocallapp.wfm.cee.CeeBaseClient
overit.geocallapp.wfm.cee.rs1.intervention.InterventionApi

@Service public class InterventionApi extends CeeBaseClient
Spring RestClient for CEE intervention resource
  • Constructor Details

    • InterventionApi

      @Autowired public InterventionApi(overit.geocall.spring.serializer.NotExplodedParameterSerializer<Object> notExplodedParameterSerializer)
      Constructor
      Parameters:
      notExplodedParameterSerializer - the not exploded parameter serializer
  • Method Details

    • addIntervention

      public org.springframework.http.ResponseEntity<Void> addIntervention(DTOInterventionInsert request)
      Adds a new intervention in CEE.
      Parameters:
      request - the request
      Returns:
      the response
    • newAppointment

      public org.springframework.http.ResponseEntity<Void> newAppointment(Long id, DTOPlanningRequest request)
      Creates a new appointment in CEE.
      Parameters:
      id - intervention identifier
      request - the request
      Returns:
      the response
    • appointmentChange

      public org.springframework.http.ResponseEntity<Void> appointmentChange(Long id, DTOPlanningRequest request)
      Modifies an existing appointment in CEE.
      Parameters:
      id - intervention identifier
      request - the request
      Returns:
      the response
    • appointmentCancellation

      public org.springframework.http.ResponseEntity<Void> appointmentCancellation(Long id, DTOInterventionStatusChange request)
      Cancels an appointment in CEE.
      Parameters:
      id - intervention identifier
      request - the request
      Returns:
      the response
    • appointmentOutcome

      public org.springframework.http.ResponseEntity<Void> appointmentOutcome(Long id, DTOInterventionOutcome request)
      Creates an appointment outcome in CEE.
      Parameters:
      id - intervention identifier
      request - the request
      Returns:
      the response
    • takingInCharge

      public org.springframework.http.ResponseEntity<Void> takingInCharge(Long id, DTOInChargeRequest request)
      Taking in charge.
      Parameters:
      id - the id
      request - the request
      Returns:
      the response
    • getIntervention

      public DTOIntervention getIntervention(Long id)
      It allows to search intervention by id.
      Parameters:
      id - the intervention id
      Returns:
      the intervention
    • getIntervention

      public PageResponse<DTOIntervention> getIntervention(Page page, DTOInterventionSearchFilter filter)
      It allows to search (filtered) interventions.
      Parameters:
      page - the page
      filter - the filter
      Returns:
      the interventions
    • interventionCancellationDone

      public org.springframework.http.ResponseEntity<Void> interventionCancellationDone(Long id, DTOInterventionStatusChange request)
      It allows to notify that the cancellation request was accepted and executed.
      Parameters:
      id - the id
      request - the request
      Returns:
      the response
    • interventionCancellationRefused

      public org.springframework.http.ResponseEntity<Void> interventionCancellationRefused(Long id, DTOInterventionStatusChange request)
      It allows to notify that the cancellation request was refused (not executed).
      Parameters:
      id - the id
      request - the request
      Returns:
      the response
    • getCustomerNotes

      public PageResponse<DTOCustomerNote> getCustomerNotes(Long id, Page page, DTOCustomerNoteSearchFilter filter)
      It allows to search (filtered) customer notes.
      Parameters:
      id - the id
      page - the page
      filter - the filter
      Returns:
      the customer notes
    • getSurveys

      public PageResponse<DTOSurvey> getSurveys(Page page, DTOSurveySearchFilter filter)
      It allows to search surveys filtered by intervention ids.
      Parameters:
      page - the page
      filter - the filters
      Returns:
      the surveys
    • changeTechnicianPosition

      public org.springframework.http.ResponseEntity<Void> changeTechnicianPosition(Long id, DTOTechnicianPositionChangeRequest request)
      It allows to update the technician's location coordinates.
      Parameters:
      id - the id
      request - the request
      Returns:
      the response
    • vcAppointmentCreation

      public org.springframework.http.ResponseEntity<Void> vcAppointmentCreation(Long id, DTOVCAppointmentCreationRequest request)
    • vcAppointmentActivation

      public org.springframework.http.ResponseEntity<Void> vcAppointmentActivation(Long id, DTOVCAppointmentActivationRequest request)