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