Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getCharges
Synopsis
- getCharges :: forall m. MonadHTTP m => GetChargesParameters -> StripeT m (Response GetChargesResponse)
- data GetChargesParameters = GetChargesParameters {
- getChargesParametersQueryCreated :: Maybe GetChargesParametersQueryCreated'Variants
- getChargesParametersQueryCustomer :: Maybe Text
- getChargesParametersQueryEndingBefore :: Maybe Text
- getChargesParametersQueryExpand :: Maybe [Text]
- getChargesParametersQueryLimit :: Maybe Int
- getChargesParametersQueryPaymentIntent :: Maybe Text
- getChargesParametersQueryStartingAfter :: Maybe Text
- getChargesParametersQueryTransferGroup :: Maybe Text
- mkGetChargesParameters :: GetChargesParameters
- data GetChargesParametersQueryCreated'OneOf1 = GetChargesParametersQueryCreated'OneOf1 {}
- mkGetChargesParametersQueryCreated'OneOf1 :: GetChargesParametersQueryCreated'OneOf1
- data GetChargesParametersQueryCreated'Variants
- data GetChargesResponse
- data GetChargesResponseBody200 = GetChargesResponseBody200 {}
- mkGetChargesResponseBody200 :: [Charge] -> Bool -> Text -> GetChargesResponseBody200
Documentation
:: forall m. MonadHTTP m | |
=> GetChargesParameters | Contains all available parameters of this operation (query and path parameters) |
-> StripeT m (Response GetChargesResponse) | Monadic computation which returns the result of the operation |
GET /v1/charges
<p>Returns a list of charges you’ve previously created. The charges are returned in sorted order, with the most recent charges appearing first.</p>
data GetChargesParameters Source #
Defines the object schema located at paths./v1/charges.GET.parameters
in the specification.
GetChargesParameters | |
|
Instances
Eq GetChargesParameters Source # | |
Defined in StripeAPI.Operations.GetCharges (==) :: GetChargesParameters -> GetChargesParameters -> Bool # (/=) :: GetChargesParameters -> GetChargesParameters -> Bool # | |
Show GetChargesParameters Source # | |
Defined in StripeAPI.Operations.GetCharges showsPrec :: Int -> GetChargesParameters -> ShowS # show :: GetChargesParameters -> String # showList :: [GetChargesParameters] -> ShowS # | |
ToJSON GetChargesParameters Source # | |
Defined in StripeAPI.Operations.GetCharges toJSON :: GetChargesParameters -> Value # toEncoding :: GetChargesParameters -> Encoding # toJSONList :: [GetChargesParameters] -> Value # toEncodingList :: [GetChargesParameters] -> Encoding # | |
FromJSON GetChargesParameters Source # | |
Defined in StripeAPI.Operations.GetCharges parseJSON :: Value -> Parser GetChargesParameters # parseJSONList :: Value -> Parser [GetChargesParameters] # |
mkGetChargesParameters :: GetChargesParameters Source #
Create a new GetChargesParameters
with all required fields.
data GetChargesParametersQueryCreated'OneOf1 Source #
Defines the object schema located at paths./v1/charges.GET.parameters.properties.queryCreated.anyOf
in the specification.
mkGetChargesParametersQueryCreated'OneOf1 :: GetChargesParametersQueryCreated'OneOf1 Source #
Create a new GetChargesParametersQueryCreated'OneOf1
with all required fields.
data GetChargesParametersQueryCreated'Variants Source #
Defines the oneOf schema located at paths./v1/charges.GET.parameters.properties.queryCreated.anyOf
in the specification.
Represents the parameter named 'created'
GetChargesParametersQueryCreated'GetChargesParametersQueryCreated'OneOf1 GetChargesParametersQueryCreated'OneOf1 | |
GetChargesParametersQueryCreated'Int Int |
data GetChargesResponse Source #
Represents a response of the operation getCharges
.
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), GetChargesResponseError
is used.
GetChargesResponseError String | Means either no matching case available or a parse error |
GetChargesResponse200 GetChargesResponseBody200 | Successful response. |
GetChargesResponseDefault Error | Error response. |
Instances
Eq GetChargesResponse Source # | |
Defined in StripeAPI.Operations.GetCharges (==) :: GetChargesResponse -> GetChargesResponse -> Bool # (/=) :: GetChargesResponse -> GetChargesResponse -> Bool # | |
Show GetChargesResponse Source # | |
Defined in StripeAPI.Operations.GetCharges showsPrec :: Int -> GetChargesResponse -> ShowS # show :: GetChargesResponse -> String # showList :: [GetChargesResponse] -> ShowS # |
data GetChargesResponseBody200 Source #
Defines the object schema located at paths./v1/charges.GET.responses.200.content.application/json.schema
in the specification.
GetChargesResponseBody200 | |
|
Instances
mkGetChargesResponseBody200 Source #
:: [Charge] | |
-> Bool | |
-> Text | |
-> GetChargesResponseBody200 |
Create a new GetChargesResponseBody200
with all required fields.