StripeRequest

abstract class StripeRequest

A class representing a request to a Stripe-owned service.

Constructors

Link copied to clipboard
fun StripeRequest()

Types

Link copied to clipboard
enum Method : Enum<StripeRequest.Method>
Link copied to clipboard
enum MimeType : Enum<StripeRequest.MimeType>

Functions

Link copied to clipboard
open fun writePostBody(outputStream: OutputStream)

Writes the body of a POST request with OutputStream, left empty for non-POST requests

Properties

Link copied to clipboard
abstract val headers: Map<String, String>

The HTTP headers attached to this request

Link copied to clipboard
abstract val method: StripeRequest.Method

The type(Get/Post/Delete) of this request.

Link copied to clipboard
abstract val mimeType: StripeRequest.MimeType

The MimeType of this request, determines the header and body format for a POST request

Link copied to clipboard
open var postHeaders: Map<String, String>? = null

Additional HTTP headers attached if this is a POST request

Link copied to clipboard
abstract val retryResponseCodes: Iterable<Int>

A range of HTTP response code indicating this request should be retried

Link copied to clipboard
abstract val url: String

The url of the request, could be concatenated with query params

Inheritors

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