Safe Haskell | None |
---|---|
Language | Haskell2010 |
StripeAPI.Operations.GetProductsId
Description
Contains the different functions to run the operation getProductsId
Synopsis
- getProductsId :: forall m. MonadHTTP m => GetProductsIdParameters -> ClientT m (Response GetProductsIdResponse)
- data GetProductsIdParameters = GetProductsIdParameters {}
- mkGetProductsIdParameters :: Text -> GetProductsIdParameters
- data GetProductsIdResponse
Documentation
Arguments
:: forall m. MonadHTTP m | |
=> GetProductsIdParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response GetProductsIdResponse) | Monadic computation which returns 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>
data GetProductsIdParameters Source #
Defines the object schema located at paths./v1/products/{id}.GET.parameters
in the specification.
Constructors
GetProductsIdParameters | |
Fields
|
Instances
Eq GetProductsIdParameters Source # | |
Defined in StripeAPI.Operations.GetProductsId Methods (==) :: GetProductsIdParameters -> GetProductsIdParameters -> Bool # (/=) :: GetProductsIdParameters -> GetProductsIdParameters -> Bool # | |
Show GetProductsIdParameters Source # | |
Defined in StripeAPI.Operations.GetProductsId Methods showsPrec :: Int -> GetProductsIdParameters -> ShowS # show :: GetProductsIdParameters -> String # showList :: [GetProductsIdParameters] -> ShowS # | |
ToJSON GetProductsIdParameters Source # | |
Defined in StripeAPI.Operations.GetProductsId Methods toJSON :: GetProductsIdParameters -> Value # toEncoding :: GetProductsIdParameters -> Encoding # toJSONList :: [GetProductsIdParameters] -> Value # | |
FromJSON GetProductsIdParameters Source # | |
Defined in StripeAPI.Operations.GetProductsId Methods parseJSON :: Value -> Parser GetProductsIdParameters # parseJSONList :: Value -> Parser [GetProductsIdParameters] # |
mkGetProductsIdParameters Source #
Arguments
:: Text | |
-> GetProductsIdParameters |
Create a new GetProductsIdParameters
with all required fields.
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.
Constructors
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 Methods (==) :: GetProductsIdResponse -> GetProductsIdResponse -> Bool # (/=) :: GetProductsIdResponse -> GetProductsIdResponse -> Bool # | |
Show GetProductsIdResponse Source # | |
Defined in StripeAPI.Operations.GetProductsId Methods showsPrec :: Int -> GetProductsIdResponse -> ShowS # show :: GetProductsIdResponse -> String # showList :: [GetProductsIdResponse] -> ShowS # |