| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Operations.GetPaymentMethods
Description
Contains the different functions to run the operation getPaymentMethods
Synopsis
- getPaymentMethods :: forall m. MonadHTTP m => GetPaymentMethodsParameters -> ClientT m (Response GetPaymentMethodsResponse)
- data GetPaymentMethodsParameters = GetPaymentMethodsParameters {
- getPaymentMethodsParametersQueryCustomer :: Text
- getPaymentMethodsParametersQueryEndingBefore :: Maybe Text
- getPaymentMethodsParametersQueryExpand :: Maybe [Text]
- getPaymentMethodsParametersQueryLimit :: Maybe Int
- getPaymentMethodsParametersQueryStartingAfter :: Maybe Text
- getPaymentMethodsParametersQueryType :: GetPaymentMethodsParametersQueryType'
- mkGetPaymentMethodsParameters :: Text -> GetPaymentMethodsParametersQueryType' -> GetPaymentMethodsParameters
- data GetPaymentMethodsParametersQueryType'
- = GetPaymentMethodsParametersQueryType'Other Value
- | GetPaymentMethodsParametersQueryType'Typed Text
- | GetPaymentMethodsParametersQueryType'EnumAcssDebit
- | GetPaymentMethodsParametersQueryType'EnumAfterpayClearpay
- | GetPaymentMethodsParametersQueryType'EnumAlipay
- | GetPaymentMethodsParametersQueryType'EnumAuBecsDebit
- | GetPaymentMethodsParametersQueryType'EnumBacsDebit
- | GetPaymentMethodsParametersQueryType'EnumBancontact
- | GetPaymentMethodsParametersQueryType'EnumBoleto
- | GetPaymentMethodsParametersQueryType'EnumCard
- | GetPaymentMethodsParametersQueryType'EnumEps
- | GetPaymentMethodsParametersQueryType'EnumFpx
- | GetPaymentMethodsParametersQueryType'EnumGiropay
- | GetPaymentMethodsParametersQueryType'EnumGrabpay
- | GetPaymentMethodsParametersQueryType'EnumIdeal
- | GetPaymentMethodsParametersQueryType'EnumOxxo
- | GetPaymentMethodsParametersQueryType'EnumP24
- | GetPaymentMethodsParametersQueryType'EnumSepaDebit
- | GetPaymentMethodsParametersQueryType'EnumSofort
- data GetPaymentMethodsResponse
- data GetPaymentMethodsResponseBody200 = GetPaymentMethodsResponseBody200 {}
- mkGetPaymentMethodsResponseBody200 :: [PaymentMethod] -> Bool -> Text -> GetPaymentMethodsResponseBody200
Documentation
Arguments
| :: forall m. MonadHTTP m | |
| => GetPaymentMethodsParameters | Contains all available parameters of this operation (query and path parameters) |
| -> ClientT m (Response GetPaymentMethodsResponse) | Monadic computation which returns the result of the operation |
GET /v1/payment_methods
<p>Returns a list of PaymentMethods for a given Customer</p>
data GetPaymentMethodsParameters Source #
Defines the object schema located at paths./v1/payment_methods.GET.parameters in the specification.
Constructors
| GetPaymentMethodsParameters | |
Fields
| |
Instances
mkGetPaymentMethodsParameters Source #
Arguments
| :: Text | |
| -> GetPaymentMethodsParametersQueryType' | |
| -> GetPaymentMethodsParameters |
Create a new GetPaymentMethodsParameters with all required fields.
data GetPaymentMethodsParametersQueryType' Source #
Defines the enum schema located at paths./v1/payment_methods.GET.parameters.properties.queryType in the specification.
Represents the parameter named 'type'
A required filter on the list, based on the object `type` field.
Constructors
Instances
data GetPaymentMethodsResponse Source #
Represents a response of the operation getPaymentMethods.
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), GetPaymentMethodsResponseError is used.
Constructors
| GetPaymentMethodsResponseError String | Means either no matching case available or a parse error |
| GetPaymentMethodsResponse200 GetPaymentMethodsResponseBody200 | Successful response. |
| GetPaymentMethodsResponseDefault Error | Error response. |
Instances
| Eq GetPaymentMethodsResponse Source # | |
Defined in StripeAPI.Operations.GetPaymentMethods Methods (==) :: GetPaymentMethodsResponse -> GetPaymentMethodsResponse -> Bool # (/=) :: GetPaymentMethodsResponse -> GetPaymentMethodsResponse -> Bool # | |
| Show GetPaymentMethodsResponse Source # | |
Defined in StripeAPI.Operations.GetPaymentMethods Methods showsPrec :: Int -> GetPaymentMethodsResponse -> ShowS # show :: GetPaymentMethodsResponse -> String # showList :: [GetPaymentMethodsResponse] -> ShowS # | |
data GetPaymentMethodsResponseBody200 Source #
Defines the object schema located at paths./v1/payment_methods.GET.responses.200.content.application/json.schema in the specification.
Constructors
| GetPaymentMethodsResponseBody200 | |
Fields
| |
Instances
mkGetPaymentMethodsResponseBody200 Source #
Arguments
| :: [PaymentMethod] | |
| -> Bool | |
| -> Text | |
| -> GetPaymentMethodsResponseBody200 |
Create a new GetPaymentMethodsResponseBody200 with all required fields.