Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getTopups
Synopsis
- getTopups :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> Maybe String -> GetTopupsRequestBody -> m (Either HttpException (Response GetTopupsResponse))
- getTopupsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> Maybe String -> GetTopupsRequestBody -> m (Either HttpException (Response ByteString))
- getTopupsM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> Maybe String -> GetTopupsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetTopupsResponse))
- getTopupsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> Maybe String -> GetTopupsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetTopupsRequestBody = GetTopupsRequestBody {
- data GetTopupsResponse
- data GetTopupsResponseBody200 = GetTopupsResponseBody200 {}
- data GetTopupsResponseBody200Object'
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> Maybe String | amount: A positive integer representing how much to transfer. |
-> Maybe String | created: A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options. |
-> 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. | Constraints: Maximum length of 5000 |
-> 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 | 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. | Constraints: Maximum length of 5000 |
-> Maybe String | status: Only return top-ups that have the given status. One of `canceled`, `failed`, `pending` or `succeeded`. | Constraints: Maximum length of 5000 |
-> GetTopupsRequestBody | The request body to send |
-> m (Either HttpException (Response GetTopupsResponse)) | Monad containing the result of the operation |
GET /v1/topups
<p>Returns a list of top-ups.</p>
getTopupsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> Maybe String -> GetTopupsRequestBody -> m (Either HttpException (Response ByteString)) Source #
GET /v1/topups
The same as getTopups
but returns the raw ByteString
getTopupsM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> Maybe String -> GetTopupsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetTopupsResponse)) Source #
GET /v1/topups
Monadic version of getTopups
(use with runWithConfiguration
)
getTopupsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> Maybe String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> Maybe String -> GetTopupsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
GET /v1/topups
Monadic version of getTopupsRaw
(use with runWithConfiguration
)
data GetTopupsRequestBody Source #
Defines the data type for the schema getTopupsRequestBody
Instances
Eq GetTopupsRequestBody Source # | |
Defined in StripeAPI.Operations.GetTopups (==) :: GetTopupsRequestBody -> GetTopupsRequestBody -> Bool # (/=) :: GetTopupsRequestBody -> GetTopupsRequestBody -> Bool # | |
Show GetTopupsRequestBody Source # | |
Defined in StripeAPI.Operations.GetTopups showsPrec :: Int -> GetTopupsRequestBody -> ShowS # show :: GetTopupsRequestBody -> String # showList :: [GetTopupsRequestBody] -> ShowS # | |
ToJSON GetTopupsRequestBody Source # | |
Defined in StripeAPI.Operations.GetTopups toJSON :: GetTopupsRequestBody -> Value # toEncoding :: GetTopupsRequestBody -> Encoding # toJSONList :: [GetTopupsRequestBody] -> Value # toEncodingList :: [GetTopupsRequestBody] -> Encoding # | |
FromJSON GetTopupsRequestBody Source # | |
Defined in StripeAPI.Operations.GetTopups parseJSON :: Value -> Parser GetTopupsRequestBody # parseJSONList :: Value -> Parser [GetTopupsRequestBody] # |
data GetTopupsResponse Source #
Represents a response of the operation getTopups
.
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), GetTopupsResponseError
is used.
GetTopupsResponseError String | Means either no matching case available or a parse error |
GetTopupsResponse200 GetTopupsResponseBody200 | Successful response. |
GetTopupsResponseDefault Error | Error response. |
Instances
Eq GetTopupsResponse Source # | |
Defined in StripeAPI.Operations.GetTopups (==) :: GetTopupsResponse -> GetTopupsResponse -> Bool # (/=) :: GetTopupsResponse -> GetTopupsResponse -> Bool # | |
Show GetTopupsResponse Source # | |
Defined in StripeAPI.Operations.GetTopups showsPrec :: Int -> GetTopupsResponse -> ShowS # show :: GetTopupsResponse -> String # showList :: [GetTopupsResponse] -> ShowS # |
data GetTopupsResponseBody200 Source #
Defines the data type for the schema GetTopupsResponseBody200
GetTopupsResponseBody200 | |
|
Instances
Eq GetTopupsResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetTopups | |
Show GetTopupsResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetTopups showsPrec :: Int -> GetTopupsResponseBody200 -> ShowS # show :: GetTopupsResponseBody200 -> String # showList :: [GetTopupsResponseBody200] -> ShowS # | |
ToJSON GetTopupsResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetTopups | |
FromJSON GetTopupsResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetTopups |
data GetTopupsResponseBody200Object' Source #
Defines the enum schema GetTopupsResponseBody200Object'
String representing the object's type. Objects of the same type share the same value. Always has the value `list`.
GetTopupsResponseBody200Object'EnumOther Value | |
GetTopupsResponseBody200Object'EnumTyped String | |
GetTopupsResponseBody200Object'EnumStringList |