Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getCustomersCustomerCards
Synopsis
- getCustomersCustomerCards :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> GetCustomersCustomerCardsRequestBody -> m (Either HttpException (Response GetCustomersCustomerCardsResponse))
- getCustomersCustomerCardsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> GetCustomersCustomerCardsRequestBody -> m (Either HttpException (Response ByteString))
- getCustomersCustomerCardsM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> GetCustomersCustomerCardsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetCustomersCustomerCardsResponse))
- getCustomersCustomerCardsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> GetCustomersCustomerCardsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetCustomersCustomerCardsRequestBody = GetCustomersCustomerCardsRequestBody {
- data GetCustomersCustomerCardsResponse
- data GetCustomersCustomerCardsResponseBody200 = GetCustomersCustomerCardsResponseBody200 {}
- data GetCustomersCustomerCardsResponseBody200Object'
Documentation
getCustomersCustomerCards Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | customer | 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 | 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. |
-> GetCustomersCustomerCardsRequestBody | The request body to send |
-> m (Either HttpException (Response GetCustomersCustomerCardsResponse)) | Monad containing the result of the operation |
GET /v1/customers/{customer}/cards
<p>You can see a list of the cards belonging to a customer. Note that the 10 most recent sources are always available on the <code>Customer</code> object. If you need more than those 10, you can use this API method and the <code>limit</code> and <code>starting_after</code> parameters to page through additional cards.</p>
getCustomersCustomerCardsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> GetCustomersCustomerCardsRequestBody -> m (Either HttpException (Response ByteString)) Source #
GET /v1/customers/{customer}/cards
The same as getCustomersCustomerCards
but returns the raw ByteString
getCustomersCustomerCardsM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> GetCustomersCustomerCardsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetCustomersCustomerCardsResponse)) Source #
GET /v1/customers/{customer}/cards
Monadic version of getCustomersCustomerCards
(use with runWithConfiguration
)
getCustomersCustomerCardsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> Maybe String -> Maybe Integer -> Maybe String -> GetCustomersCustomerCardsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
GET /v1/customers/{customer}/cards
Monadic version of getCustomersCustomerCardsRaw
(use with runWithConfiguration
)
data GetCustomersCustomerCardsRequestBody Source #
Defines the data type for the schema getCustomersCustomerCardsRequestBody
data GetCustomersCustomerCardsResponse Source #
Represents a response of the operation getCustomersCustomerCards
.
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), GetCustomersCustomerCardsResponseError
is used.
GetCustomersCustomerCardsResponseError String | Means either no matching case available or a parse error |
GetCustomersCustomerCardsResponse200 GetCustomersCustomerCardsResponseBody200 | Successful response. |
GetCustomersCustomerCardsResponseDefault Error | Error response. |
data GetCustomersCustomerCardsResponseBody200 Source #
Defines the data type for the schema GetCustomersCustomerCardsResponseBody200
GetCustomersCustomerCardsResponseBody200 | |
|
data GetCustomersCustomerCardsResponseBody200Object' Source #
Defines the enum schema GetCustomersCustomerCardsResponseBody200Object'
String representing the object's type. Objects of the same type share the same value. Always has the value `list`.
GetCustomersCustomerCardsResponseBody200Object'EnumOther Value | |
GetCustomersCustomerCardsResponseBody200Object'EnumTyped String | |
GetCustomersCustomerCardsResponseBody200Object'EnumStringList |