-
Notifications
You must be signed in to change notification settings - Fork 4
Processing a request
Simon Nebesnuick edited this page Apr 2, 2024
·
1 revision
The Prison::VisitsController
is used by prison staff to accept or reject a visit request. It instantiates a StaffResponse
object which is responsible for validating the response. This ensures that a slot or rejection reason is selected, and that other essential details are present, such as which visitors are banned when that is the reason for rejection.
When the StaffResponse
is valid, it is handed to the BookingResponder
, which updates the Visit
record with the new processing_state
and saves any other information required.
Other information may also be found in the PVB Public application wiki