Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getRefunds
Synopsis
- getRefunds :: forall m. MonadHTTP m => GetRefundsParameters -> ClientT m (Response GetRefundsResponse)
- data GetRefundsParameters = GetRefundsParameters {
- getRefundsParametersQueryCharge :: Maybe Text
- getRefundsParametersQueryCreated :: Maybe GetRefundsParametersQueryCreated'Variants
- getRefundsParametersQueryEndingBefore :: Maybe Text
- getRefundsParametersQueryExpand :: Maybe [Text]
- getRefundsParametersQueryLimit :: Maybe Int
- getRefundsParametersQueryPaymentIntent :: Maybe Text
- getRefundsParametersQueryStartingAfter :: Maybe Text
- mkGetRefundsParameters :: GetRefundsParameters
- data GetRefundsParametersQueryCreated'OneOf1 = GetRefundsParametersQueryCreated'OneOf1 {}
- mkGetRefundsParametersQueryCreated'OneOf1 :: GetRefundsParametersQueryCreated'OneOf1
- data GetRefundsParametersQueryCreated'Variants
- data GetRefundsResponse
- data GetRefundsResponseBody200 = GetRefundsResponseBody200 {}
- mkGetRefundsResponseBody200 :: [Refund] -> Bool -> Text -> GetRefundsResponseBody200
Documentation
:: forall m. MonadHTTP m | |
=> GetRefundsParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response GetRefundsResponse) | Monadic computation which returns the result of the operation |
GET /v1/refunds
<p>Returns a list of all refunds you’ve previously created. The refunds are returned in sorted order, with the most recent refunds appearing first. For convenience, the 10 most recent refunds are always available by default on the charge object.</p>
data GetRefundsParameters Source #
Defines the object schema located at paths./v1/refunds.GET.parameters
in the specification.
GetRefundsParameters | |
|
Instances
Eq GetRefundsParameters Source # | |
Defined in StripeAPI.Operations.GetRefunds (==) :: GetRefundsParameters -> GetRefundsParameters -> Bool # (/=) :: GetRefundsParameters -> GetRefundsParameters -> Bool # | |
Show GetRefundsParameters Source # | |
Defined in StripeAPI.Operations.GetRefunds showsPrec :: Int -> GetRefundsParameters -> ShowS # show :: GetRefundsParameters -> String # showList :: [GetRefundsParameters] -> ShowS # | |
ToJSON GetRefundsParameters Source # | |
Defined in StripeAPI.Operations.GetRefunds toJSON :: GetRefundsParameters -> Value # toEncoding :: GetRefundsParameters -> Encoding # toJSONList :: [GetRefundsParameters] -> Value # toEncodingList :: [GetRefundsParameters] -> Encoding # | |
FromJSON GetRefundsParameters Source # | |
Defined in StripeAPI.Operations.GetRefunds parseJSON :: Value -> Parser GetRefundsParameters # parseJSONList :: Value -> Parser [GetRefundsParameters] # |
mkGetRefundsParameters :: GetRefundsParameters Source #
Create a new GetRefundsParameters
with all required fields.
data GetRefundsParametersQueryCreated'OneOf1 Source #
Defines the object schema located at paths./v1/refunds.GET.parameters.properties.queryCreated.anyOf
in the specification.
mkGetRefundsParametersQueryCreated'OneOf1 :: GetRefundsParametersQueryCreated'OneOf1 Source #
Create a new GetRefundsParametersQueryCreated'OneOf1
with all required fields.
data GetRefundsParametersQueryCreated'Variants Source #
Defines the oneOf schema located at paths./v1/refunds.GET.parameters.properties.queryCreated.anyOf
in the specification.
Represents the parameter named 'created'
GetRefundsParametersQueryCreated'GetRefundsParametersQueryCreated'OneOf1 GetRefundsParametersQueryCreated'OneOf1 | |
GetRefundsParametersQueryCreated'Int Int |
data GetRefundsResponse Source #
Represents a response of the operation getRefunds
.
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), GetRefundsResponseError
is used.
GetRefundsResponseError String | Means either no matching case available or a parse error |
GetRefundsResponse200 GetRefundsResponseBody200 | Successful response. |
GetRefundsResponseDefault Error | Error response. |
Instances
Eq GetRefundsResponse Source # | |
Defined in StripeAPI.Operations.GetRefunds (==) :: GetRefundsResponse -> GetRefundsResponse -> Bool # (/=) :: GetRefundsResponse -> GetRefundsResponse -> Bool # | |
Show GetRefundsResponse Source # | |
Defined in StripeAPI.Operations.GetRefunds showsPrec :: Int -> GetRefundsResponse -> ShowS # show :: GetRefundsResponse -> String # showList :: [GetRefundsResponse] -> ShowS # |
data GetRefundsResponseBody200 Source #
Defines the object schema located at paths./v1/refunds.GET.responses.200.content.application/json.schema
in the specification.
GetRefundsResponseBody200 | |
|
Instances
mkGetRefundsResponseBody200 Source #
:: [Refund] | |
-> Bool | |
-> Text | |
-> GetRefundsResponseBody200 |
Create a new GetRefundsResponseBody200
with all required fields.