Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getPromotionCodes
Synopsis
- getPromotionCodes :: forall m. MonadHTTP m => GetPromotionCodesParameters -> StripeT m (Response GetPromotionCodesResponse)
- data GetPromotionCodesParameters = GetPromotionCodesParameters {
- getPromotionCodesParametersQueryActive :: Maybe Bool
- getPromotionCodesParametersQueryCode :: Maybe Text
- getPromotionCodesParametersQueryCoupon :: Maybe Text
- getPromotionCodesParametersQueryCreated :: Maybe GetPromotionCodesParametersQueryCreated'Variants
- getPromotionCodesParametersQueryCustomer :: Maybe Text
- getPromotionCodesParametersQueryEndingBefore :: Maybe Text
- getPromotionCodesParametersQueryExpand :: Maybe [Text]
- getPromotionCodesParametersQueryLimit :: Maybe Int
- getPromotionCodesParametersQueryStartingAfter :: Maybe Text
- mkGetPromotionCodesParameters :: GetPromotionCodesParameters
- data GetPromotionCodesParametersQueryCreated'OneOf1 = GetPromotionCodesParametersQueryCreated'OneOf1 {}
- mkGetPromotionCodesParametersQueryCreated'OneOf1 :: GetPromotionCodesParametersQueryCreated'OneOf1
- data GetPromotionCodesParametersQueryCreated'Variants
- data GetPromotionCodesResponse
- data GetPromotionCodesResponseBody200 = GetPromotionCodesResponseBody200 {}
- mkGetPromotionCodesResponseBody200 :: [PromotionCode] -> Bool -> Text -> GetPromotionCodesResponseBody200
Documentation
:: forall m. MonadHTTP m | |
=> GetPromotionCodesParameters | Contains all available parameters of this operation (query and path parameters) |
-> StripeT m (Response GetPromotionCodesResponse) | Monadic computation which returns the result of the operation |
GET /v1/promotion_codes
<p>Returns a list of your promotion codes.</p>
data GetPromotionCodesParameters Source #
Defines the object schema located at paths./v1/promotion_codes.GET.parameters
in the specification.
GetPromotionCodesParameters | |
|
Instances
mkGetPromotionCodesParameters :: GetPromotionCodesParameters Source #
Create a new GetPromotionCodesParameters
with all required fields.
data GetPromotionCodesParametersQueryCreated'OneOf1 Source #
Defines the object schema located at paths./v1/promotion_codes.GET.parameters.properties.queryCreated.anyOf
in the specification.
Instances
mkGetPromotionCodesParametersQueryCreated'OneOf1 :: GetPromotionCodesParametersQueryCreated'OneOf1 Source #
Create a new GetPromotionCodesParametersQueryCreated'OneOf1
with all required fields.
data GetPromotionCodesParametersQueryCreated'Variants Source #
Defines the oneOf schema located at paths./v1/promotion_codes.GET.parameters.properties.queryCreated.anyOf
in the specification.
Represents the parameter named 'created'
A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.
GetPromotionCodesParametersQueryCreated'GetPromotionCodesParametersQueryCreated'OneOf1 GetPromotionCodesParametersQueryCreated'OneOf1 | |
GetPromotionCodesParametersQueryCreated'Int Int |
Instances
data GetPromotionCodesResponse Source #
Represents a response of the operation getPromotionCodes
.
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), GetPromotionCodesResponseError
is used.
GetPromotionCodesResponseError String | Means either no matching case available or a parse error |
GetPromotionCodesResponse200 GetPromotionCodesResponseBody200 | Successful response. |
GetPromotionCodesResponseDefault Error | Error response. |
Instances
data GetPromotionCodesResponseBody200 Source #
Defines the object schema located at paths./v1/promotion_codes.GET.responses.200.content.application/json.schema
in the specification.
GetPromotionCodesResponseBody200 | |
|