Some intuit API as invoice download return not JSON content (PDF in this
case). makeApiCall wasn't working with it because of mandatory
response body parsing.
So if the response is not JSON, we don't want to parse the body.
And simply let the caller decide what to do with it.
Coverage increased (+0.03%) to 91.423% when pulling 99fb4949e0c34989ddeff6fb7795e9ca2105c716 on cleany:develop into f84fb3f78d17a1a1675442a2f3d3116cea746d60 on intuit:develop.
Some intuit API as invoice download return not JSON content (PDF in this case).
makeApiCall
wasn't working with it because of mandatory response body parsing.So if the response is not JSON, we don't want to parse the body. And simply let the caller decide what to do with it.