Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getFilesFile
Synopsis
- getFilesFile :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetFilesFileRequestBody -> m (Either HttpException (Response GetFilesFileResponse))
- getFilesFileRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetFilesFileRequestBody -> m (Either HttpException (Response ByteString))
- getFilesFileM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetFilesFileRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetFilesFileResponse))
- getFilesFileRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetFilesFileRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetFilesFileRequestBody = GetFilesFileRequestBody {
- data GetFilesFileResponse
Documentation
:: (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. |
-> String | file | Constraints: Maximum length of 5000 |
-> GetFilesFileRequestBody | The request body to send |
-> m (Either HttpException (Response GetFilesFileResponse)) | Monad containing the result of the operation |
GET /v1/files/{file}
<p>Retrieves the details of an existing file object. Supply the unique file ID from a file, and Stripe will return the corresponding file object. To access file contents, see the <a href="/docs/file-upload#download-file-contents">File Upload Guide</a>.</p>
getFilesFileRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetFilesFileRequestBody -> m (Either HttpException (Response ByteString)) Source #
GET /v1/files/{file}
The same as getFilesFile
but returns the raw ByteString
getFilesFileM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetFilesFileRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetFilesFileResponse)) Source #
GET /v1/files/{file}
Monadic version of getFilesFile
(use with runWithConfiguration
)
getFilesFileRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetFilesFileRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
GET /v1/files/{file}
Monadic version of getFilesFileRaw
(use with runWithConfiguration
)
data GetFilesFileRequestBody Source #
Defines the data type for the schema getFilesFileRequestBody
Instances
Eq GetFilesFileRequestBody Source # | |
Defined in StripeAPI.Operations.GetFilesFile | |
Show GetFilesFileRequestBody Source # | |
Defined in StripeAPI.Operations.GetFilesFile showsPrec :: Int -> GetFilesFileRequestBody -> ShowS # show :: GetFilesFileRequestBody -> String # showList :: [GetFilesFileRequestBody] -> ShowS # | |
ToJSON GetFilesFileRequestBody Source # | |
Defined in StripeAPI.Operations.GetFilesFile | |
FromJSON GetFilesFileRequestBody Source # | |
Defined in StripeAPI.Operations.GetFilesFile |
data GetFilesFileResponse Source #
Represents a response of the operation getFilesFile
.
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), GetFilesFileResponseError
is used.
GetFilesFileResponseError String | Means either no matching case available or a parse error |
GetFilesFileResponse200 File | Successful response. |
GetFilesFileResponseDefault Error | Error response. |
Instances
Eq GetFilesFileResponse Source # | |
Defined in StripeAPI.Operations.GetFilesFile (==) :: GetFilesFileResponse -> GetFilesFileResponse -> Bool # (/=) :: GetFilesFileResponse -> GetFilesFileResponse -> Bool # | |
Show GetFilesFileResponse Source # | |
Defined in StripeAPI.Operations.GetFilesFile showsPrec :: Int -> GetFilesFileResponse -> ShowS # show :: GetFilesFileResponse -> String # showList :: [GetFilesFileResponse] -> ShowS # |