Safe Haskell | None |
---|---|
Language | Haskell2010 |
- WARNING
- This implementation is currently untested! Due to lack of access to the Mandates API.
Synopsis
- mandatesPath :: Text
- newMandate :: PaymentMethod -> Text -> Text -> NewMandate
- createCustomerMandate :: Text -> NewMandate -> Mollie (Either ResponseError Mandate)
- getCustomerMandate :: Text -> Text -> Mollie (Either ResponseError Mandate)
- getCustomerMandates :: Text -> Int -> Int -> Mollie (Either ResponseError (List Mandate))
- data PaymentMethod
- data NewMandate = NewMandate {}
- data MandateStatus
- data MandateDetails = MandateDetails {
- mandateDetails_consumerName :: Maybe Text
- mandateDetails_consumerAccount :: Maybe Text
- mandateDetails_consumerBic :: Maybe Text
- mandateDetails_cardHolder :: Maybe Text
- mandateDetails_cardNumber :: Maybe Text
- mandateDetails_cardLabel :: Maybe Text
- mandateDetails_cardFingerprint :: Maybe Text
- mandateDetails_cardExpiryDate :: Maybe Text
- data Mandate = Mandate {}
- 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
mandatesPath :: Text Source #
Mandates resource's path, relative to API's versioned customer resource url.
:: PaymentMethod | |
-> Text | consumerName |
-> Text | consumerAccount |
-> NewMandate |
createCustomerMandate Source #
:: Text | customerId |
-> NewMandate | |
-> Mollie (Either ResponseError Mandate) |
Handler to create a new mandate for a specific customer.
For more information see: https://www.mollie.com/en/docs/reference/mandates/create.
Handler to get a mandate by its identifier from a specific customer.
For more information see: https://www.mollie.com/en/docs/reference/mandates/get.
Handler to get a list of mandates for a specific customer. Because the list endpoint is paginated this handler requires an offset and a count. The maximum amount of mandates returned with a single call is 250.
For more information see: https://www.mollie.com/en/docs/reference/mandates/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 NewMandate Source #
Structure to request a new mandate with.
For more information see: https://www.mollie.com/en/docs/reference/mandates/create.
NewMandate | |
|
Instances
Show NewMandate Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> NewMandate -> ShowS # show :: NewMandate -> String # showList :: [NewMandate] -> ShowS # | |
ToJSON NewMandate Source # | |
Defined in Mollie.API.Types toJSON :: NewMandate -> Value # toEncoding :: NewMandate -> Encoding # toJSONList :: [NewMandate] -> Value # toEncodingList :: [NewMandate] -> Encoding # |
data MandateStatus Source #
All possible statusses for a Mandate.
Instances
Eq MandateStatus Source # | |
Defined in Mollie.API.Types (==) :: MandateStatus -> MandateStatus -> Bool # (/=) :: MandateStatus -> MandateStatus -> Bool # | |
Read MandateStatus Source # | |
Defined in Mollie.API.Types readsPrec :: Int -> ReadS MandateStatus # readList :: ReadS [MandateStatus] # | |
Show MandateStatus Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> MandateStatus -> ShowS # show :: MandateStatus -> String # showList :: [MandateStatus] -> ShowS # | |
FromJSON MandateStatus Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser MandateStatus # parseJSONList :: Value -> Parser [MandateStatus] # | |
ToText MandateStatus Source # | |
Defined in Mollie.API.Types toText :: MandateStatus -> Text Source # |
data MandateDetails Source #
Details which might be available on Mandates.
MandateDetails | |
|
Instances
Show MandateDetails Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> MandateDetails -> ShowS # show :: MandateDetails -> String # showList :: [MandateDetails] -> ShowS # | |
FromJSON MandateDetails Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser MandateDetails # parseJSONList :: Value -> Parser [MandateDetails] # |
Representation of a mandate available at Mollie.
For more information see: https://www.mollie.com/en/docs/reference/mandates/get.
Mandate | |
|
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 # |