stripeapi-0.1.0.2: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.GetAccount

Description

Contains the different functions to run the operation getAccount

Synopsis

Documentation

getAccount Source #

Arguments

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

The configuration to use in the request

-> Maybe Text

expand: Specifies which fields in the response should be expanded.

-> Maybe GetAccountRequestBody

The request body to send

-> m (Either HttpException (Response GetAccountResponse))

Monad containing the result of the operation

GET /v1/account

<p>Retrieves the details of an account.</p>

getAccountRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe Text -> Maybe GetAccountRequestBody -> m (Either HttpException (Response ByteString)) Source #

GET /v1/account

The same as getAccount but returns the raw ByteString

data GetAccountResponse Source #

Represents a response of the operation getAccount.

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), GetAccountResponseError is used.

Constructors

GetAccountResponseError String

Means either no matching case available or a parse error

GetAccountResponse200 Account

Successful response.

GetAccountResponseDefault Error

Error response.