Package com.rosivanyshyn.service

# Interface ResponseToOrderService

All Known Implementing Classes:
  `ResponseToOrderServiceImpl`

public interface ResponseToOrderService
Response To Order Service interface.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Boolean`
  `createResponseToOrder(Order order, ResponseToOrder responseToOrder, ArrayList<Apartment> apartments)`
  Create new response-to-order
  `ArrayList<Apartment>`
  `findAllResponseApartments(ResponseToOrder responseToOrder)`
  Find all apartments attached to response-to-order
  `ResponseToOrder`
  `findResponseToOrderByField(String field, Object value)`
  Find response-to-order by field
  `Boolean`
  `updateResponseToOrder(ResponseToOrder responseToOrder)`
  Update response-to-order

- ## Method Details

  - ### createResponseToOrder

    Boolean createResponseToOrder(Order order, ResponseToOrder responseToOrder, ArrayList<Apartment> apartments)
    Create new response-to-order
    Parameters:
      `order` - order to which to respond
      `responseToOrder` - the response-to-order to be added
      `apartments` - apartments attached to response
    Returns:
      operation result

  - ### findResponseToOrderByField

    ResponseToOrder findResponseToOrderByField(String field, Object value)
    Find response-to-order by field
    Parameters:
      `field` - field name
      `value` - unique field value
    Returns:
      found response-to-order

  - ### updateResponseToOrder

    Boolean updateResponseToOrder(ResponseToOrder responseToOrder)
    Update response-to-order
    Parameters:
      `responseToOrder` - response-to-order to update
    Returns:
      operation result

  - ### findAllResponseApartments

    ArrayList<Apartment> findAllResponseApartments(ResponseToOrder responseToOrder)
    Find all apartments attached to response-to-order
    Parameters:
      `responseToOrder` - response-to-order by which search
    Returns:
      found response-to-order