stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostEphemeralKeys

Description

Contains the different functions to run the operation postEphemeralKeys

Synopsis

Documentation

postEphemeralKeys Source #

Arguments

:: (MonadHTTP m, SecurityScheme s) 
=> Configuration s

The configuration to use in the request

-> PostEphemeralKeysRequestBody

The request body to send

-> m (Either HttpException (Response PostEphemeralKeysResponse))

Monad containing the result of the operation

POST /v1/ephemeral_keys

<p>Creates a short-lived API key for a given resource.</p>

postEphemeralKeysRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostEphemeralKeysRequestBody -> m (Either HttpException (Response ByteString)) Source #

POST /v1/ephemeral_keys

The same as postEphemeralKeys but returns the raw ByteString

data PostEphemeralKeysRequestBody Source #

Defines the data type for the schema postEphemeralKeysRequestBody

Constructors

PostEphemeralKeysRequestBody 

Fields

data PostEphemeralKeysResponse Source #

Represents a response of the operation postEphemeralKeys.

The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), PostEphemeralKeysResponseError is used.

Constructors

PostEphemeralKeysResponseError String

Means either no matching case available or a parse error

PostEphemeralKeysResponse200 EphemeralKey

Successful response.

PostEphemeralKeysResponseDefault Error

Error response.