Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getAccount
Synopsis
- getAccount :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe Text -> Maybe GetAccountRequestBody -> m (Either HttpException (Response GetAccountResponse))
- getAccountRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe Text -> Maybe GetAccountRequestBody -> m (Either HttpException (Response ByteString))
- getAccountM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe Text -> Maybe GetAccountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetAccountResponse))
- getAccountRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe Text -> Maybe GetAccountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetAccountRequestBody = GetAccountRequestBody {
- data GetAccountResponse
Documentation
:: (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
getAccountM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe Text -> Maybe 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 Text -> Maybe 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
Instances
Eq GetAccountRequestBody Source # | |
Defined in StripeAPI.Operations.GetAccount (==) :: GetAccountRequestBody -> GetAccountRequestBody -> Bool # (/=) :: GetAccountRequestBody -> GetAccountRequestBody -> Bool # | |
Show GetAccountRequestBody Source # | |
Defined in StripeAPI.Operations.GetAccount showsPrec :: Int -> GetAccountRequestBody -> ShowS # show :: GetAccountRequestBody -> String # showList :: [GetAccountRequestBody] -> ShowS # | |
ToJSON GetAccountRequestBody Source # | |
Defined in StripeAPI.Operations.GetAccount toJSON :: GetAccountRequestBody -> Value # toEncoding :: GetAccountRequestBody -> Encoding # toJSONList :: [GetAccountRequestBody] -> Value # toEncodingList :: [GetAccountRequestBody] -> Encoding # | |
FromJSON GetAccountRequestBody Source # | |
Defined in StripeAPI.Operations.GetAccount 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.
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 (==) :: GetAccountResponse -> GetAccountResponse -> Bool # (/=) :: GetAccountResponse -> GetAccountResponse -> Bool # | |
Show GetAccountResponse Source # | |
Defined in StripeAPI.Operations.GetAccount showsPrec :: Int -> GetAccountResponse -> ShowS # show :: GetAccountResponse -> String # showList :: [GetAccountResponse] -> ShowS # |