Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getProductsId
Synopsis
- getProductsId :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetProductsIdRequestBody -> m (Either HttpException (Response GetProductsIdResponse))
- getProductsIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetProductsIdRequestBody -> m (Either HttpException (Response ByteString))
- getProductsIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetProductsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetProductsIdResponse))
- getProductsIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetProductsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetProductsIdRequestBody = GetProductsIdRequestBody {
- data GetProductsIdResponse
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 | id | Constraints: Maximum length of 5000 |
-> GetProductsIdRequestBody | The request body to send |
-> m (Either HttpException (Response GetProductsIdResponse)) | Monad containing the result of the operation |
GET /v1/products/{id}
<p>Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Stripe will return the corresponding product information.</p>
getProductsIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetProductsIdRequestBody -> m (Either HttpException (Response ByteString)) Source #
GET /v1/products/{id}
The same as getProductsId
but returns the raw ByteString
getProductsIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetProductsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetProductsIdResponse)) Source #
GET /v1/products/{id}
Monadic version of getProductsId
(use with runWithConfiguration
)
getProductsIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetProductsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
GET /v1/products/{id}
Monadic version of getProductsIdRaw
(use with runWithConfiguration
)
data GetProductsIdRequestBody Source #
Defines the data type for the schema getProductsIdRequestBody
Instances
data GetProductsIdResponse Source #
Represents a response of the operation getProductsId
.
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), GetProductsIdResponseError
is used.
GetProductsIdResponseError String | Means either no matching case available or a parse error |
GetProductsIdResponse200 Product | Successful response. |
GetProductsIdResponseDefault Error | Error response. |
Instances
Eq GetProductsIdResponse Source # | |
Defined in StripeAPI.Operations.GetProductsId (==) :: GetProductsIdResponse -> GetProductsIdResponse -> Bool # (/=) :: GetProductsIdResponse -> GetProductsIdResponse -> Bool # | |
Show GetProductsIdResponse Source # | |
Defined in StripeAPI.Operations.GetProductsId showsPrec :: Int -> GetProductsIdResponse -> ShowS # show :: GetProductsIdResponse -> String # showList :: [GetProductsIdResponse] -> ShowS # |