Safe Haskell | None |
---|---|
Language | Haskell2010 |
StripeAPI.Operations.GetCoupons
Description
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
Arguments
:: 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.
Constructors
GetCouponsParameters | |
Fields
|
Instances
Eq GetCouponsParameters Source # | |
Defined in StripeAPI.Operations.GetCoupons Methods (==) :: GetCouponsParameters -> GetCouponsParameters -> Bool # (/=) :: GetCouponsParameters -> GetCouponsParameters -> Bool # | |
Show GetCouponsParameters Source # | |
Defined in StripeAPI.Operations.GetCoupons Methods showsPrec :: Int -> GetCouponsParameters -> ShowS # show :: GetCouponsParameters -> String # showList :: [GetCouponsParameters] -> ShowS # | |
ToJSON GetCouponsParameters Source # | |
Defined in StripeAPI.Operations.GetCoupons Methods toJSON :: GetCouponsParameters -> Value # toEncoding :: GetCouponsParameters -> Encoding # toJSONList :: [GetCouponsParameters] -> Value # toEncodingList :: [GetCouponsParameters] -> Encoding # | |
FromJSON GetCouponsParameters Source # | |
Defined in StripeAPI.Operations.GetCoupons Methods 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.
Constructors
GetCouponsParametersQueryCreated'OneOf1 | |
Instances
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.
Constructors
GetCouponsParametersQueryCreated'GetCouponsParametersQueryCreated'OneOf1 GetCouponsParametersQueryCreated'OneOf1 | |
GetCouponsParametersQueryCreated'Int Int |
Instances
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.
Constructors
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 Methods (==) :: GetCouponsResponse -> GetCouponsResponse -> Bool # (/=) :: GetCouponsResponse -> GetCouponsResponse -> Bool # | |
Show GetCouponsResponse Source # | |
Defined in StripeAPI.Operations.GetCoupons Methods 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.
Constructors
GetCouponsResponseBody200 | |
Fields
|
Instances
Eq GetCouponsResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetCoupons Methods (==) :: GetCouponsResponseBody200 -> GetCouponsResponseBody200 -> Bool # (/=) :: GetCouponsResponseBody200 -> GetCouponsResponseBody200 -> Bool # | |
Show GetCouponsResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetCoupons Methods showsPrec :: Int -> GetCouponsResponseBody200 -> ShowS # show :: GetCouponsResponseBody200 -> String # showList :: [GetCouponsResponseBody200] -> ShowS # | |
ToJSON GetCouponsResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetCoupons Methods toJSON :: GetCouponsResponseBody200 -> Value # toEncoding :: GetCouponsResponseBody200 -> Encoding # toJSONList :: [GetCouponsResponseBody200] -> Value # | |
FromJSON GetCouponsResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetCoupons Methods parseJSON :: Value -> Parser GetCouponsResponseBody200 # parseJSONList :: Value -> Parser [GetCouponsResponseBody200] # |
mkGetCouponsResponseBody200 Source #
Arguments
:: [Coupon] | |
-> Bool | |
-> Text | |
-> GetCouponsResponseBody200 |
Create a new GetCouponsResponseBody200
with all required fields.