Safe Haskell | None |
---|---|
Language | Haskell2010 |
- WARNING
- This implementation is currently untested! Due to lack of access to the Mandates API.
- 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.
data NewMandate Source #
Structure to request a new mandate with.
For more information see: https://www.mollie.com/en/docs/reference/mandates/create.
NewMandate | |
|
data MandateStatus Source #
All possible statusses for a Mandate.
data MandateDetails Source #
Details which might be available on Mandates.
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.