Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getSourcesSource
Synopsis
- getSourcesSource :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe Text -> Maybe Text -> Text -> Maybe GetSourcesSourceRequestBody -> m (Either HttpException (Response GetSourcesSourceResponse))
- getSourcesSourceRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe Text -> Maybe Text -> Text -> Maybe GetSourcesSourceRequestBody -> m (Either HttpException (Response ByteString))
- getSourcesSourceM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe Text -> Maybe Text -> Text -> Maybe GetSourcesSourceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetSourcesSourceResponse))
- getSourcesSourceRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe Text -> Maybe Text -> Text -> Maybe GetSourcesSourceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetSourcesSourceRequestBody = GetSourcesSourceRequestBody {
- data GetSourcesSourceResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> Maybe Text | client_secret: The client secret of the source. Required if a publishable key is used to retrieve the source. | Constraints: Maximum length of 5000 |
-> Maybe Text | expand: Specifies which fields in the response should be expanded. |
-> Text | source | Constraints: Maximum length of 5000 |
-> Maybe GetSourcesSourceRequestBody | The request body to send |
-> m (Either HttpException (Response GetSourcesSourceResponse)) | Monad containing the result of the operation |
GET /v1/sources/{source}
<p>Retrieves an existing source object. Supply the unique source ID from a source creation request and Stripe will return the corresponding up-to-date source object information.</p>
getSourcesSourceRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe Text -> Maybe Text -> Text -> Maybe GetSourcesSourceRequestBody -> m (Either HttpException (Response ByteString)) Source #
GET /v1/sources/{source}
The same as getSourcesSource
but returns the raw ByteString
getSourcesSourceM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe Text -> Maybe Text -> Text -> Maybe GetSourcesSourceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetSourcesSourceResponse)) Source #
GET /v1/sources/{source}
Monadic version of getSourcesSource
(use with runWithConfiguration
)
getSourcesSourceRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe Text -> Maybe Text -> Text -> Maybe GetSourcesSourceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
GET /v1/sources/{source}
Monadic version of getSourcesSourceRaw
(use with runWithConfiguration
)
data GetSourcesSourceRequestBody Source #
Defines the data type for the schema getSourcesSourceRequestBody
Instances
data GetSourcesSourceResponse Source #
Represents a response of the operation getSourcesSource
.
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), GetSourcesSourceResponseError
is used.
GetSourcesSourceResponseError String | Means either no matching case available or a parse error |
GetSourcesSourceResponse200 Source | Successful response. |
GetSourcesSourceResponseDefault Error | Error response. |
Instances
Eq GetSourcesSourceResponse Source # | |
Defined in StripeAPI.Operations.GetSourcesSource | |
Show GetSourcesSourceResponse Source # | |
Defined in StripeAPI.Operations.GetSourcesSource showsPrec :: Int -> GetSourcesSourceResponse -> ShowS # show :: GetSourcesSourceResponse -> String # showList :: [GetSourcesSourceResponse] -> ShowS # |