Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getReviews
Synopsis
- getReviews :: forall m. MonadHTTP m => GetReviewsParameters -> StripeT m (Response GetReviewsResponse)
- data GetReviewsParameters = GetReviewsParameters {}
- mkGetReviewsParameters :: GetReviewsParameters
- data GetReviewsParametersQueryCreated'OneOf1 = GetReviewsParametersQueryCreated'OneOf1 {}
- mkGetReviewsParametersQueryCreated'OneOf1 :: GetReviewsParametersQueryCreated'OneOf1
- data GetReviewsParametersQueryCreated'Variants
- data GetReviewsResponse
- data GetReviewsResponseBody200 = GetReviewsResponseBody200 {}
- mkGetReviewsResponseBody200 :: [Review] -> Bool -> Text -> GetReviewsResponseBody200
Documentation
:: forall m. MonadHTTP m | |
=> GetReviewsParameters | Contains all available parameters of this operation (query and path parameters) |
-> StripeT m (Response GetReviewsResponse) | Monadic computation which returns the result of the operation |
GET /v1/reviews
<p>Returns a list of <code>Review</code> objects that have <code>open</code> set to <code>true</code>. The objects are sorted in descending order by creation date, with the most recently created object appearing first.</p>
data GetReviewsParameters Source #
Defines the object schema located at paths./v1/reviews.GET.parameters
in the specification.
GetReviewsParameters | |
|
Instances
Eq GetReviewsParameters Source # | |
Defined in StripeAPI.Operations.GetReviews (==) :: GetReviewsParameters -> GetReviewsParameters -> Bool # (/=) :: GetReviewsParameters -> GetReviewsParameters -> Bool # | |
Show GetReviewsParameters Source # | |
Defined in StripeAPI.Operations.GetReviews showsPrec :: Int -> GetReviewsParameters -> ShowS # show :: GetReviewsParameters -> String # showList :: [GetReviewsParameters] -> ShowS # | |
ToJSON GetReviewsParameters Source # | |
Defined in StripeAPI.Operations.GetReviews toJSON :: GetReviewsParameters -> Value # toEncoding :: GetReviewsParameters -> Encoding # toJSONList :: [GetReviewsParameters] -> Value # toEncodingList :: [GetReviewsParameters] -> Encoding # | |
FromJSON GetReviewsParameters Source # | |
Defined in StripeAPI.Operations.GetReviews parseJSON :: Value -> Parser GetReviewsParameters # parseJSONList :: Value -> Parser [GetReviewsParameters] # |
mkGetReviewsParameters :: GetReviewsParameters Source #
Create a new GetReviewsParameters
with all required fields.
data GetReviewsParametersQueryCreated'OneOf1 Source #
Defines the object schema located at paths./v1/reviews.GET.parameters.properties.queryCreated.anyOf
in the specification.
mkGetReviewsParametersQueryCreated'OneOf1 :: GetReviewsParametersQueryCreated'OneOf1 Source #
Create a new GetReviewsParametersQueryCreated'OneOf1
with all required fields.
data GetReviewsParametersQueryCreated'Variants Source #
Defines the oneOf schema located at paths./v1/reviews.GET.parameters.properties.queryCreated.anyOf
in the specification.
Represents the parameter named 'created'
GetReviewsParametersQueryCreated'GetReviewsParametersQueryCreated'OneOf1 GetReviewsParametersQueryCreated'OneOf1 | |
GetReviewsParametersQueryCreated'Int Int |
data GetReviewsResponse Source #
Represents a response of the operation getReviews
.
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), GetReviewsResponseError
is used.
GetReviewsResponseError String | Means either no matching case available or a parse error |
GetReviewsResponse200 GetReviewsResponseBody200 | Successful response. |
GetReviewsResponseDefault Error | Error response. |
Instances
Eq GetReviewsResponse Source # | |
Defined in StripeAPI.Operations.GetReviews (==) :: GetReviewsResponse -> GetReviewsResponse -> Bool # (/=) :: GetReviewsResponse -> GetReviewsResponse -> Bool # | |
Show GetReviewsResponse Source # | |
Defined in StripeAPI.Operations.GetReviews showsPrec :: Int -> GetReviewsResponse -> ShowS # show :: GetReviewsResponse -> String # showList :: [GetReviewsResponse] -> ShowS # |
data GetReviewsResponseBody200 Source #
Defines the object schema located at paths./v1/reviews.GET.responses.200.content.application/json.schema
in the specification.
GetReviewsResponseBody200 | |
|
Instances
mkGetReviewsResponseBody200 Source #
:: [Review] | |
-> Bool | |
-> Text | |
-> GetReviewsResponseBody200 |
Create a new GetReviewsResponseBody200
with all required fields.