290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
|
# File 'lib/shell_data_reporting_ap_is/controllers/invoice_controller.rb', line 290
def search_documents(request_id,
body: nil)
new_api_call_builder
.request(new_request_builder(HttpMethodEnum::POST,
'/invoice-management/v1/searchdocuments',
Server::SHELL)
.(new_parameter(request_id, key: 'RequestId'))
.(new_parameter('application/json', key: 'Content-Type'))
.body_param(new_parameter(body))
.(new_parameter('application/json', key: 'accept'))
.body_serializer(proc do |param| param.to_json unless param.nil? end)
.auth(Single.new('BearerToken')))
.response(new_response_handler
.deserializer(APIHelper.method(:custom_type_deserializer))
.deserialize_into(SearchDocumentsResponse.method(:from_hash))
.local_error('400',
"The server cannot or will not process the request due to'\
' something that is perceived to be a client error (e.g.,'\
' malformed request syntax, invalid request message framing, or'\
' deceptive request routing).\n",
ErrorObjectException)
.local_error('401',
"The request has not been applied because it lacks valid '\
' authentication credentials for the target resource.\n",
ErrorObjectException)
.local_error('403',
'Forbidden',
ErrorObjectException)
.local_error('404',
"The origin server did not find a current representation for'\
' the target resource or is not willing to disclose that one'\
' exists.\n",
ErrorObjectException)
.local_error('500',
"The server encountered an unexpected condition that prevented'\
' it from fulfilling the request.\n",
ErrorObjectException))
.execute
end
|