ConnectionFactory

Factory to create StripeConnection, which encapsulates an HttpURLConnection, triggers the request and parses the response with different body type as StripeResponse.

Inheritors

Types

Link copied to clipboard
fun interface ConnectionOpener
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun create(request: StripeRequest): StripeConnection<String>

Creates an StripeConnection which attempts to parse the http response body as a String.

Link copied to clipboard
abstract fun createForFile(request: StripeRequest, outputFile: File): StripeConnection<File>

Creates an StripeConnection which attempts to parse the http response body as a File.