Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getPaymentMethods
Synopsis
- getPaymentMethods :: forall m. MonadHTTP m => GetPaymentMethodsParameters -> StripeT 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
:: forall m. MonadHTTP m | |
=> GetPaymentMethodsParameters | Contains all available parameters of this operation (query and path parameters) |
-> StripeT 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.
GetPaymentMethodsParameters | |
|
Instances
mkGetPaymentMethodsParameters Source #
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.
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.
GetPaymentMethodsResponseError String | Means either no matching case available or a parse error |
GetPaymentMethodsResponse200 GetPaymentMethodsResponseBody200 | Successful response. |
GetPaymentMethodsResponseDefault Error | Error response. |
Instances
data GetPaymentMethodsResponseBody200 Source #
Defines the object schema located at paths./v1/payment_methods.GET.responses.200.content.application/json.schema
in the specification.
GetPaymentMethodsResponseBody200 | |
|