Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postApplicationFeesIdRefunds
Synopsis
- postApplicationFeesIdRefunds :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostApplicationFeesIdRefundsRequestBody -> m (Either HttpException (Response PostApplicationFeesIdRefundsResponse))
- postApplicationFeesIdRefundsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostApplicationFeesIdRefundsRequestBody -> m (Either HttpException (Response ByteString))
- postApplicationFeesIdRefundsM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostApplicationFeesIdRefundsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostApplicationFeesIdRefundsResponse))
- postApplicationFeesIdRefundsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostApplicationFeesIdRefundsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostApplicationFeesIdRefundsRequestBody = PostApplicationFeesIdRefundsRequestBody {}
- data PostApplicationFeesIdRefundsRequestBodyMetadata' = PostApplicationFeesIdRefundsRequestBodyMetadata' {
- data PostApplicationFeesIdRefundsResponse
Documentation
postApplicationFeesIdRefunds Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | id | Constraints: Maximum length of 5000 |
-> PostApplicationFeesIdRefundsRequestBody | The request body to send |
-> m (Either HttpException (Response PostApplicationFeesIdRefundsResponse)) | Monad containing the result of the operation |
POST /v1/application_fees/{id}/refunds
<p>Refunds an application fee that has previously been collected but not yet refunded. Funds will be refunded to the Stripe account from which the fee was originally collected.</p>
<p>You can optionally refund only part of an application fee. You can do so multiple times, until the entire fee has been refunded.</p>
<p>Once entirely refunded, an application fee can’t be refunded again. This method will raise an error when called on an already-refunded application fee, or when trying to refund more money than is left on an application fee.</p>
postApplicationFeesIdRefundsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostApplicationFeesIdRefundsRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/application_fees/{id}/refunds
The same as postApplicationFeesIdRefunds
but returns the raw ByteString
postApplicationFeesIdRefundsM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostApplicationFeesIdRefundsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostApplicationFeesIdRefundsResponse)) Source #
POST /v1/application_fees/{id}/refunds
Monadic version of postApplicationFeesIdRefunds
(use with runWithConfiguration
)
postApplicationFeesIdRefundsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostApplicationFeesIdRefundsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/application_fees/{id}/refunds
Monadic version of postApplicationFeesIdRefundsRaw
(use with runWithConfiguration
)
data PostApplicationFeesIdRefundsRequestBody Source #
Defines the data type for the schema postApplicationFeesIdRefundsRequestBody
PostApplicationFeesIdRefundsRequestBody | |
|
data PostApplicationFeesIdRefundsRequestBodyMetadata' Source #
Defines the data type for the schema postApplicationFeesIdRefundsRequestBodyMetadata'
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
Instances
data PostApplicationFeesIdRefundsResponse Source #
Represents a response of the operation postApplicationFeesIdRefunds
.
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), PostApplicationFeesIdRefundsResponseError
is used.
PostApplicationFeesIdRefundsResponseError String | Means either no matching case available or a parse error |
PostApplicationFeesIdRefundsResponse200 FeeRefund | Successful response. |
PostApplicationFeesIdRefundsResponseDefault Error | Error response. |