Safe Haskell | None |
---|---|
Language | Haskell2010 |
StripeAPI.Operations.GetAccount
Description
Contains the different functions to run the operation getAccount
Synopsis
- getAccount :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> GetAccountRequestBody -> m (Either HttpException (Response GetAccountResponse))
- getAccountRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> GetAccountRequestBody -> m (Either HttpException (Response ByteString))
- getAccountM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> GetAccountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetAccountResponse))
- getAccountRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> GetAccountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetAccountRequestBody = GetAccountRequestBody {
- data GetAccountResponse
Documentation
Arguments
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> Maybe String | expand: Specifies which fields in the response should be expanded. |
-> 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 String -> GetAccountRequestBody -> m (Either HttpException (Response ByteString)) Source #
GET /v1/account
The same as getAccount
but returns the raw ByteString
getAccountM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> GetAccountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetAccountResponse)) Source #
GET /v1/account
Monadic version of getAccount
(use with runWithConfiguration
)
getAccountRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> GetAccountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
GET /v1/account
Monadic version of getAccountRaw
(use with runWithConfiguration
)
data GetAccountRequestBody Source #
Defines the data type for the schema getAccountRequestBody
Constructors
GetAccountRequestBody | |
Instances
Eq GetAccountRequestBody Source # | |
Defined in StripeAPI.Operations.GetAccount Methods (==) :: GetAccountRequestBody -> GetAccountRequestBody -> Bool # (/=) :: GetAccountRequestBody -> GetAccountRequestBody -> Bool # | |
Show GetAccountRequestBody Source # | |
Defined in StripeAPI.Operations.GetAccount Methods showsPrec :: Int -> GetAccountRequestBody -> ShowS # show :: GetAccountRequestBody -> String # showList :: [GetAccountRequestBody] -> ShowS # | |
ToJSON GetAccountRequestBody Source # | |
Defined in StripeAPI.Operations.GetAccount Methods toJSON :: GetAccountRequestBody -> Value # toEncoding :: GetAccountRequestBody -> Encoding # toJSONList :: [GetAccountRequestBody] -> Value # toEncodingList :: [GetAccountRequestBody] -> Encoding # | |
FromJSON GetAccountRequestBody Source # | |
Defined in StripeAPI.Operations.GetAccount Methods parseJSON :: Value -> Parser GetAccountRequestBody # parseJSONList :: Value -> Parser [GetAccountRequestBody] # |
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. |
Instances
Eq GetAccountResponse Source # | |
Defined in StripeAPI.Operations.GetAccount Methods (==) :: GetAccountResponse -> GetAccountResponse -> Bool # (/=) :: GetAccountResponse -> GetAccountResponse -> Bool # | |
Show GetAccountResponse Source # | |
Defined in StripeAPI.Operations.GetAccount Methods showsPrec :: Int -> GetAccountResponse -> ShowS # show :: GetAccountResponse -> String # showList :: [GetAccountResponse] -> ShowS # |