Safe Haskell | None |
---|---|
Language | Haskell2010 |
- methodsPath :: Text
- getMethod :: PaymentMethod -> Text -> Mollie (Either ResponseError Method)
- getMethods :: Text -> Int -> Int -> Mollie (Either ResponseError (List Method))
- data PaymentMethod
- data MethodAmount = MethodAmount {}
- data MethodImage = MethodImage {}
- data Method = Method {}
- data ListLinks = ListLinks {}
- data List a = List {
- list_totalCount :: Int
- list_offset :: Int
- list_count :: Int
- list_data :: [a]
- list_links :: Maybe ListLinks
- data ResponseError
Documentation
methodsPath :: Text Source #
Payment method resource's path, relative to API's versioned url.
:: PaymentMethod | |
-> Text | locale |
-> Mollie (Either ResponseError Method) |
Handler to get a payment method by its identifier.
Fails on payment methods which are not enabled.
For more information see: https://www.mollie.com/en/docs/reference/methods/get.
Handler to get a list of payment methods. Because the list endpoint is paginated this handler requires an offset and a count. The maximum amount of payment methods returned with a single call is 250.
For more information see: https://www.mollie.com/en/docs/reference/methods/list.
data PaymentMethod Source #
All possible payment methods.
data MethodAmount Source #
Minimum and maximum amounts for a payment method.
Note that the amounts are curently returned as text because Mollie does not return them as valid json numbers.
MethodAmount | |
|
data MethodImage Source #
Images associated with a payment method.
MethodImage | |
|
Representation of a payment method available at Mollie.
For more information see: https://www.mollie.com/en/docs/reference/methods/get.
Method | |
|
Important links associated with List responses.
ListLinks | |
|
List response for any resource with metadata.
For more information see: https://www.mollie.com/nl/docs/reference/payments/list.
List | |
|
data ResponseError Source #
Response errors which could happen when requesting resources from Mollie.