Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getCoupons
Synopsis
- getCoupons :: forall m. MonadHTTP m => GetCouponsParameters -> ClientT m (Response GetCouponsResponse)
- data GetCouponsParameters = GetCouponsParameters {}
- mkGetCouponsParameters :: GetCouponsParameters
- data GetCouponsParametersQueryCreated'OneOf1 = GetCouponsParametersQueryCreated'OneOf1 {}
- mkGetCouponsParametersQueryCreated'OneOf1 :: GetCouponsParametersQueryCreated'OneOf1
- data GetCouponsParametersQueryCreated'Variants
- data GetCouponsResponse
- data GetCouponsResponseBody200 = GetCouponsResponseBody200 {}
- mkGetCouponsResponseBody200 :: [Coupon] -> Bool -> Text -> GetCouponsResponseBody200
Documentation
:: forall m. MonadHTTP m | |
=> GetCouponsParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response GetCouponsResponse) | Monadic computation which returns the result of the operation |
GET /v1/coupons
<p>Returns a list of your coupons.</p>
data GetCouponsParameters Source #
Defines the object schema located at paths./v1/coupons.GET.parameters
in the specification.
GetCouponsParameters | |
|
Instances
Eq GetCouponsParameters Source # | |
Defined in StripeAPI.Operations.GetCoupons (==) :: GetCouponsParameters -> GetCouponsParameters -> Bool # (/=) :: GetCouponsParameters -> GetCouponsParameters -> Bool # | |
Show GetCouponsParameters Source # | |
Defined in StripeAPI.Operations.GetCoupons showsPrec :: Int -> GetCouponsParameters -> ShowS # show :: GetCouponsParameters -> String # showList :: [GetCouponsParameters] -> ShowS # | |
ToJSON GetCouponsParameters Source # | |
Defined in StripeAPI.Operations.GetCoupons toJSON :: GetCouponsParameters -> Value # toEncoding :: GetCouponsParameters -> Encoding # toJSONList :: [GetCouponsParameters] -> Value # toEncodingList :: [GetCouponsParameters] -> Encoding # | |
FromJSON GetCouponsParameters Source # | |
Defined in StripeAPI.Operations.GetCoupons parseJSON :: Value -> Parser GetCouponsParameters # parseJSONList :: Value -> Parser [GetCouponsParameters] # |
mkGetCouponsParameters :: GetCouponsParameters Source #
Create a new GetCouponsParameters
with all required fields.
data GetCouponsParametersQueryCreated'OneOf1 Source #
Defines the object schema located at paths./v1/coupons.GET.parameters.properties.queryCreated.anyOf
in the specification.
mkGetCouponsParametersQueryCreated'OneOf1 :: GetCouponsParametersQueryCreated'OneOf1 Source #
Create a new GetCouponsParametersQueryCreated'OneOf1
with all required fields.
data GetCouponsParametersQueryCreated'Variants Source #
Defines the oneOf schema located at paths./v1/coupons.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.
GetCouponsParametersQueryCreated'GetCouponsParametersQueryCreated'OneOf1 GetCouponsParametersQueryCreated'OneOf1 | |
GetCouponsParametersQueryCreated'Int Int |
data GetCouponsResponse Source #
Represents a response of the operation getCoupons
.
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), GetCouponsResponseError
is used.
GetCouponsResponseError String | Means either no matching case available or a parse error |
GetCouponsResponse200 GetCouponsResponseBody200 | Successful response. |
GetCouponsResponseDefault Error | Error response. |
Instances
Eq GetCouponsResponse Source # | |
Defined in StripeAPI.Operations.GetCoupons (==) :: GetCouponsResponse -> GetCouponsResponse -> Bool # (/=) :: GetCouponsResponse -> GetCouponsResponse -> Bool # | |
Show GetCouponsResponse Source # | |
Defined in StripeAPI.Operations.GetCoupons showsPrec :: Int -> GetCouponsResponse -> ShowS # show :: GetCouponsResponse -> String # showList :: [GetCouponsResponse] -> ShowS # |
data GetCouponsResponseBody200 Source #
Defines the object schema located at paths./v1/coupons.GET.responses.200.content.application/json.schema
in the specification.
GetCouponsResponseBody200 | |
|
Instances
mkGetCouponsResponseBody200 Source #
:: [Coupon] | |
-> Bool | |
-> Text | |
-> GetCouponsResponseBody200 |
Create a new GetCouponsResponseBody200
with all required fields.