Ingram.Marketplace.RequestBuilder.evaluate_response
You're seeing just the function
evaluate_response
, go back to Ingram.Marketplace.RequestBuilder module for more information.
Specs
evaluate_response({:error, any()} | {:ok, Tesla.Env.t()}, list()) :: {:error, any()} | {:ok, struct()}
Evaluates different Tesla responses to find the correct mapping
Parameters
- arg1 ({:ok, Tesla.Env.t}) - The response object
- arg2 ([{200, %InlineResponse200{data: data}]) - The mapping of structs to deserialize into
Returns
on success {:error, term} on failure