Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getCharges
Synopsis
- getCharges :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> Maybe String -> Maybe String -> GetChargesRequestBody -> m (Either HttpException (Response GetChargesResponse))
- getChargesRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> Maybe String -> Maybe String -> GetChargesRequestBody -> m (Either HttpException (Response ByteString))
- getChargesM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> Maybe String -> Maybe String -> GetChargesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetChargesResponse))
- getChargesRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> Maybe String -> Maybe String -> GetChargesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetChargesRequestBody = GetChargesRequestBody {
- data GetChargesResponse
- data GetChargesResponseBody200 = GetChargesResponseBody200 {}
- data GetChargesResponseBody200Object'
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> Maybe String | created |
-> Maybe String | customer: Only return charges for the customer specified by this customer ID. | Constraints: Maximum length of 5000 |
-> Maybe String | ending_before: A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. |
-> Maybe String | expand: Specifies which fields in the response should be expanded. |
-> Maybe Integer | limit: A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. |
-> Maybe String | payment_intent: Only return charges that were created by the PaymentIntent specified by this PaymentIntent ID. | Constraints: Maximum length of 5000 |
-> Maybe String | starting_after: A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. |
-> Maybe String | transfer_group: Only return charges for this transfer group. | Constraints: Maximum length of 5000 |
-> GetChargesRequestBody | The request body to send |
-> m (Either HttpException (Response GetChargesResponse)) | Monad containing 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>
getChargesRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> Maybe String -> Maybe String -> GetChargesRequestBody -> m (Either HttpException (Response ByteString)) Source #
GET /v1/charges
The same as getCharges
but returns the raw ByteString
getChargesM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> Maybe String -> Maybe String -> GetChargesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetChargesResponse)) Source #
GET /v1/charges
Monadic version of getCharges
(use with runWithConfiguration
)
getChargesRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> Maybe String -> Maybe String -> GetChargesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
GET /v1/charges
Monadic version of getChargesRaw
(use with runWithConfiguration
)
data GetChargesRequestBody Source #
Defines the data type for the schema getChargesRequestBody
Instances
Eq GetChargesRequestBody Source # | |
Defined in StripeAPI.Operations.GetCharges (==) :: GetChargesRequestBody -> GetChargesRequestBody -> Bool # (/=) :: GetChargesRequestBody -> GetChargesRequestBody -> Bool # | |
Show GetChargesRequestBody Source # | |
Defined in StripeAPI.Operations.GetCharges showsPrec :: Int -> GetChargesRequestBody -> ShowS # show :: GetChargesRequestBody -> String # showList :: [GetChargesRequestBody] -> ShowS # | |
ToJSON GetChargesRequestBody Source # | |
Defined in StripeAPI.Operations.GetCharges toJSON :: GetChargesRequestBody -> Value # toEncoding :: GetChargesRequestBody -> Encoding # toJSONList :: [GetChargesRequestBody] -> Value # toEncodingList :: [GetChargesRequestBody] -> Encoding # | |
FromJSON GetChargesRequestBody Source # | |
Defined in StripeAPI.Operations.GetCharges parseJSON :: Value -> Parser GetChargesRequestBody # parseJSONList :: Value -> Parser [GetChargesRequestBody] # |
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 data type for the schema GetChargesResponseBody200
GetChargesResponseBody200 | |
|
Instances
data GetChargesResponseBody200Object' Source #
Defines the enum schema GetChargesResponseBody200Object'
String representing the object's type. Objects of the same type share the same value. Always has the value `list`.
GetChargesResponseBody200Object'EnumOther Value | |
GetChargesResponseBody200Object'EnumTyped String | |
GetChargesResponseBody200Object'EnumStringList |