Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getPromotionCodesPromotionCode
Synopsis
- getPromotionCodesPromotionCode :: forall m. MonadHTTP m => GetPromotionCodesPromotionCodeParameters -> StripeT m (Response GetPromotionCodesPromotionCodeResponse)
- data GetPromotionCodesPromotionCodeParameters = GetPromotionCodesPromotionCodeParameters {}
- mkGetPromotionCodesPromotionCodeParameters :: Text -> GetPromotionCodesPromotionCodeParameters
- data GetPromotionCodesPromotionCodeResponse
Documentation
getPromotionCodesPromotionCode Source #
:: forall m. MonadHTTP m | |
=> GetPromotionCodesPromotionCodeParameters | Contains all available parameters of this operation (query and path parameters) |
-> StripeT m (Response GetPromotionCodesPromotionCodeResponse) | Monadic computation which returns the result of the operation |
GET /v1/promotion_codes/{promotion_code}
<p>Retrieves the promotion code with the given ID.</p>
data GetPromotionCodesPromotionCodeParameters Source #
Defines the object schema located at paths./v1/promotion_codes/{promotion_code}.GET.parameters
in the specification.
GetPromotionCodesPromotionCodeParameters | |
|
mkGetPromotionCodesPromotionCodeParameters Source #
Create a new GetPromotionCodesPromotionCodeParameters
with all required fields.
data GetPromotionCodesPromotionCodeResponse Source #
Represents a response of the operation getPromotionCodesPromotionCode
.
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), GetPromotionCodesPromotionCodeResponseError
is used.
GetPromotionCodesPromotionCodeResponseError String | Means either no matching case available or a parse error |
GetPromotionCodesPromotionCodeResponse200 PromotionCode | Successful response. |
GetPromotionCodesPromotionCodeResponseDefault Error | Error response. |