lib/isbm_adaptor/provider_request.rb
def read_request(session_id)
      validate_presence_of session_id, 'Session Id'

      message = { 'SessionID' => session_id }
      response = @client.call(:read_request, message: message)

      extract_message(response)
    end
def read_request(session_id)
      validate_presence_of session_id, 'Session Id'

      message = { 'SessionID' => session_id }
      response = @client.call(:read_request, message: message)

      extract_message(response)
    end
Returns the first request message in the message queue for the session.
 Note: this service does not remove the message from the message queue.

 @param session_id [String] the session id
 @return [Message] the first message in the queue for the session.
   nil if no message.
 @raise [ArgumentError] if session_id is blank