Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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.
Ideal | |
Creditcard | |
Mistercard | |
Sofort | |
Banktransfer | |
Directdebit | |
Belfius | |
Paypal | |
Bitcoin | |
Podiumcadeaukaart | |
Paysafecard | |
NewPaymentMethod Text |
Instances
Eq PaymentMethod Source # | |
Defined in Mollie.API.Types (==) :: PaymentMethod -> PaymentMethod -> Bool # (/=) :: PaymentMethod -> PaymentMethod -> Bool # | |
Read PaymentMethod Source # | |
Defined in Mollie.API.Types readsPrec :: Int -> ReadS PaymentMethod # readList :: ReadS [PaymentMethod] # | |
Show PaymentMethod Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> PaymentMethod -> ShowS # show :: PaymentMethod -> String # showList :: [PaymentMethod] -> ShowS # | |
ToJSON PaymentMethod Source # | |
Defined in Mollie.API.Types toJSON :: PaymentMethod -> Value # toEncoding :: PaymentMethod -> Encoding # toJSONList :: [PaymentMethod] -> Value # toEncodingList :: [PaymentMethod] -> Encoding # | |
FromJSON PaymentMethod Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser PaymentMethod # parseJSONList :: Value -> Parser [PaymentMethod] # | |
ToText PaymentMethod Source # | |
Defined in Mollie.API.Types toText :: PaymentMethod -> Text Source # |
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 | |
|
Instances
Show MethodAmount Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> MethodAmount -> ShowS # show :: MethodAmount -> String # showList :: [MethodAmount] -> ShowS # | |
FromJSON MethodAmount Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser MethodAmount # parseJSONList :: Value -> Parser [MethodAmount] # |
data MethodImage Source #
Images associated with a payment method.
MethodImage | |
|
Instances
Show MethodImage Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> MethodImage -> ShowS # show :: MethodImage -> String # showList :: [MethodImage] -> ShowS # | |
FromJSON MethodImage Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser MethodImage # parseJSONList :: Value -> Parser [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.
Instances
Show ResponseError Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> ResponseError -> ShowS # show :: ResponseError -> String # showList :: [ResponseError] -> ShowS # |