StripeConnection

interface StripeConnection<ResponseBodyType> : Closeable

A wrapper for accessing a HttpURLConnection. Implements Closeable to simplify closing related resources.

Types

Link copied to clipboard
abstract class AbstractConnection<ResponseBodyType>(conn: HttpsURLConnection) : StripeConnection<ResponseBodyType>
Link copied to clipboard
class Default : StripeConnection.AbstractConnection<String>

Default StripeConnection that converts the ResponseStream to a String.

Link copied to clipboard
class FileConnection : StripeConnection.AbstractConnection<File>

StripeConnection that writes the ResponseStream to a File.

Functions

Link copied to clipboard
abstract override fun close()
Link copied to clipboard
abstract fun createBodyFromResponseStream(responseStream: InputStream?): ResponseBodyType?

Properties

Link copied to clipboard
abstract val response: StripeResponse<ResponseBodyType>
Link copied to clipboard
abstract val responseCode: Int

Inheritors

Link copied to clipboard