| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Operations.GetCharges
Description
Contains the different functions to run the operation getCharges
Synopsis
- getCharges :: forall m. MonadHTTP m => GetChargesParameters -> ClientT 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
Arguments
| :: forall m. MonadHTTP m | |
| => GetChargesParameters | Contains all available parameters of this operation (query and path parameters) |
| -> ClientT 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.
Constructors
| GetChargesParameters | |
Fields
| |
Instances
| Eq GetChargesParameters Source # | |
Defined in StripeAPI.Operations.GetCharges Methods (==) :: GetChargesParameters -> GetChargesParameters -> Bool # (/=) :: GetChargesParameters -> GetChargesParameters -> Bool # | |
| Show GetChargesParameters Source # | |
Defined in StripeAPI.Operations.GetCharges Methods showsPrec :: Int -> GetChargesParameters -> ShowS # show :: GetChargesParameters -> String # showList :: [GetChargesParameters] -> ShowS # | |
| ToJSON GetChargesParameters Source # | |
Defined in StripeAPI.Operations.GetCharges Methods toJSON :: GetChargesParameters -> Value # toEncoding :: GetChargesParameters -> Encoding # toJSONList :: [GetChargesParameters] -> Value # toEncodingList :: [GetChargesParameters] -> Encoding # | |
| FromJSON GetChargesParameters Source # | |
Defined in StripeAPI.Operations.GetCharges Methods 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.
Constructors
| GetChargesParametersQueryCreated'OneOf1 | |
Instances
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'
Constructors
| GetChargesParametersQueryCreated'GetChargesParametersQueryCreated'OneOf1 GetChargesParametersQueryCreated'OneOf1 | |
| GetChargesParametersQueryCreated'Int Int |
Instances
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.
Constructors
| 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 Methods (==) :: GetChargesResponse -> GetChargesResponse -> Bool # (/=) :: GetChargesResponse -> GetChargesResponse -> Bool # | |
| Show GetChargesResponse Source # | |
Defined in StripeAPI.Operations.GetCharges Methods 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.
Constructors
| GetChargesResponseBody200 | |
Fields
| |
Instances
| Eq GetChargesResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetCharges Methods (==) :: GetChargesResponseBody200 -> GetChargesResponseBody200 -> Bool # (/=) :: GetChargesResponseBody200 -> GetChargesResponseBody200 -> Bool # | |
| Show GetChargesResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetCharges Methods showsPrec :: Int -> GetChargesResponseBody200 -> ShowS # show :: GetChargesResponseBody200 -> String # showList :: [GetChargesResponseBody200] -> ShowS # | |
| ToJSON GetChargesResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetCharges Methods toJSON :: GetChargesResponseBody200 -> Value # toEncoding :: GetChargesResponseBody200 -> Encoding # toJSONList :: [GetChargesResponseBody200] -> Value # | |
| FromJSON GetChargesResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetCharges Methods parseJSON :: Value -> Parser GetChargesResponseBody200 # parseJSONList :: Value -> Parser [GetChargesResponseBody200] # | |
mkGetChargesResponseBody200 Source #
Arguments
| :: [Charge] | |
| -> Bool | |
| -> Text | |
| -> GetChargesResponseBody200 |
Create a new GetChargesResponseBody200 with all required fields.