executeRequestForFile

abstract suspend fun executeRequestForFile(request: StripeRequest, outputFile: File): StripeResponse<File>

Execute an HTTP request represented by a StripeRequest and attempts to parse the HTTP response's body as a File and returns it as StripeResponse.

Return

response with its body saved to outputFile

Parameters

request

: the request to execute

outputFile

: the file to save to

Throws

if there connection fails