Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation deleteAccount
Synopsis
- deleteAccount :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> DeleteAccountRequestBody -> m (Either HttpException (Response DeleteAccountResponse))
- deleteAccountRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> DeleteAccountRequestBody -> m (Either HttpException (Response ByteString))
- deleteAccountM :: forall m s. (MonadHTTP m, SecurityScheme s) => DeleteAccountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response DeleteAccountResponse))
- deleteAccountRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => DeleteAccountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data DeleteAccountRequestBody = DeleteAccountRequestBody {}
- data DeleteAccountResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> DeleteAccountRequestBody | The request body to send |
-> m (Either HttpException (Response DeleteAccountResponse)) | Monad containing the result of the operation |
DELETE /v1/account
<p>With <a href="/docs/connect">Connect</a>, you can delete Custom or Express accounts you manage.</p>
<p>Accounts created using test-mode keys can be deleted at any time. Accounts created using live-mode keys can only be deleted once all balances are zero.</p>
<p>If you want to delete your own account, use the <a href="https://dashboard.stripe.com/account">account information tab in your account settings</a> instead.</p>
deleteAccountRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> DeleteAccountRequestBody -> m (Either HttpException (Response ByteString)) Source #
DELETE /v1/account
The same as deleteAccount
but returns the raw ByteString
deleteAccountM :: forall m s. (MonadHTTP m, SecurityScheme s) => DeleteAccountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response DeleteAccountResponse)) Source #
DELETE /v1/account
Monadic version of deleteAccount
(use with runWithConfiguration
)
deleteAccountRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => DeleteAccountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
DELETE /v1/account
Monadic version of deleteAccountRaw
(use with runWithConfiguration
)
data DeleteAccountRequestBody Source #
Defines the data type for the schema deleteAccountRequestBody
DeleteAccountRequestBody | |
|
Instances
data DeleteAccountResponse Source #
Represents a response of the operation deleteAccount
.
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), DeleteAccountResponseError
is used.
DeleteAccountResponseError String | Means either no matching case available or a parse error |
DeleteAccountResponse200 DeletedAccount | Successful response. |
DeleteAccountResponseDefault Error | Error response. |
Instances
Eq DeleteAccountResponse Source # | |
Defined in StripeAPI.Operations.DeleteAccount (==) :: DeleteAccountResponse -> DeleteAccountResponse -> Bool # (/=) :: DeleteAccountResponse -> DeleteAccountResponse -> Bool # | |
Show DeleteAccountResponse Source # | |
Defined in StripeAPI.Operations.DeleteAccount showsPrec :: Int -> DeleteAccountResponse -> ShowS # show :: DeleteAccountResponse -> String # showList :: [DeleteAccountResponse] -> ShowS # |