StripeResponse

data class StripeResponse<ResponseBody>(val code: Int, val body: ResponseBody?, val headers: Map<String, List<String>> = emptyMap())

Represents a response from the Stripe servers. Upon receiving the HTTP response, its body is parsed into ResponseBody, such as a String or a File.

Parameters

code

the response code (i.e. 404)

body

the body of the response

headers

any headers associated with the response

Constructors

Link copied to clipboard
constructor(code: Int, body: ResponseBody?, headers: Map<String, List<String>> = emptyMap())

Properties

Link copied to clipboard

the response body

Link copied to clipboard
val code: Int

the response code

Link copied to clipboard

the response headers

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String