Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postFiles
Synopsis
- postFiles :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> m (Either HttpException (Response PostFilesResponse))
- postFilesRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> m (Either HttpException (Response ByteString))
- postFilesM :: forall m s. (MonadHTTP m, SecurityScheme s) => ReaderT (Configuration s) m (Either HttpException (Response PostFilesResponse))
- postFilesRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostFilesResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> m (Either HttpException (Response PostFilesResponse)) | Monad containing the result of the operation |
POST /v1/files
<p>To upload a file to Stripe, you’ll need to send a request of type <code>multipart/form-data</code>. The request should contain the file you would like to upload, as well as the parameters for creating a file.</p>
<p>All of Stripe’s officially supported Client libraries should have support for sending <code>multipart/form-data</code>.</p>
postFilesRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> m (Either HttpException (Response ByteString)) Source #
POST /v1/files
The same as postFiles
but returns the raw ByteString
postFilesM :: forall m s. (MonadHTTP m, SecurityScheme s) => ReaderT (Configuration s) m (Either HttpException (Response PostFilesResponse)) Source #
POST /v1/files
Monadic version of postFiles
(use with runWithConfiguration
)
postFilesRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/files
Monadic version of postFilesRaw
(use with runWithConfiguration
)
data PostFilesResponse Source #
Represents a response of the operation postFiles
.
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), PostFilesResponseError
is used.
PostFilesResponseError String | Means either no matching case available or a parse error |
PostFilesResponse200 File | Successful response. |
PostFilesResponseDefault Error | Error response. |
Instances
Eq PostFilesResponse Source # | |
Defined in StripeAPI.Operations.PostFiles (==) :: PostFilesResponse -> PostFilesResponse -> Bool # (/=) :: PostFilesResponse -> PostFilesResponse -> Bool # | |
Show PostFilesResponse Source # | |
Defined in StripeAPI.Operations.PostFiles showsPrec :: Int -> PostFilesResponse -> ShowS # show :: PostFilesResponse -> String # showList :: [PostFilesResponse] -> ShowS # |