| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Mollie.API.Methods
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.
Arguments
| :: 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.
Constructors
| Ideal | |
| Creditcard | |
| Mistercard | |
| Sofort | |
| Banktransfer | |
| Directdebit | |
| Belfius | |
| Paypal | |
| Bitcoin | |
| Podiumcadeaukaart | |
| Paysafecard | |
| NewPaymentMethod Text |
Instances
| Eq PaymentMethod Source # | |
Defined in Mollie.API.Types Methods (==) :: PaymentMethod -> PaymentMethod -> Bool # (/=) :: PaymentMethod -> PaymentMethod -> Bool # | |
| Read PaymentMethod Source # | |
Defined in Mollie.API.Types Methods readsPrec :: Int -> ReadS PaymentMethod # readList :: ReadS [PaymentMethod] # | |
| Show PaymentMethod Source # | |
Defined in Mollie.API.Types Methods showsPrec :: Int -> PaymentMethod -> ShowS # show :: PaymentMethod -> String # showList :: [PaymentMethod] -> ShowS # | |
| ToJSON PaymentMethod Source # | |
Defined in Mollie.API.Types Methods toJSON :: PaymentMethod -> Value # toEncoding :: PaymentMethod -> Encoding # toJSONList :: [PaymentMethod] -> Value # toEncodingList :: [PaymentMethod] -> Encoding # | |
| FromJSON PaymentMethod Source # | |
Defined in Mollie.API.Types Methods parseJSON :: Value -> Parser PaymentMethod # parseJSONList :: Value -> Parser [PaymentMethod] # | |
| ToText PaymentMethod Source # | |
Defined in Mollie.API.Types Methods 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.
Constructors
| MethodAmount | |
Fields
| |
Instances
| Show MethodAmount Source # | |
Defined in Mollie.API.Types Methods showsPrec :: Int -> MethodAmount -> ShowS # show :: MethodAmount -> String # showList :: [MethodAmount] -> ShowS # | |
| FromJSON MethodAmount Source # | |
Defined in Mollie.API.Types | |
data MethodImage Source #
Images associated with a payment method.
Constructors
| MethodImage | |
Fields
| |
Instances
| Show MethodImage Source # | |
Defined in Mollie.API.Types Methods showsPrec :: Int -> MethodImage -> ShowS # show :: MethodImage -> String # showList :: [MethodImage] -> ShowS # | |
| FromJSON MethodImage Source # | |
Defined in Mollie.API.Types | |
Representation of a payment method available at Mollie.
For more information see: https://www.mollie.com/en/docs/reference/methods/get.
Constructors
| Method | |
Fields
| |
Important links associated with List responses.
Constructors
| ListLinks | |
Fields
| |
List response for any resource with metadata.
For more information see: https://www.mollie.com/nl/docs/reference/payments/list.
Constructors
| List | |
Fields
| |
data ResponseError Source #
Response errors which could happen when requesting resources from Mollie.
Constructors
| ClientError Int Error | |
| ServerError Int | |
| UnexpectedResponse |
Instances
| Show ResponseError Source # | |
Defined in Mollie.API.Types Methods showsPrec :: Int -> ResponseError -> ShowS # show :: ResponseError -> String # showList :: [ResponseError] -> ShowS # | |