| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Mollie.API.Mandates
Description
- 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.
Arguments
| :: PaymentMethod | |
| -> Text | consumerName |
| -> Text | consumerAccount |
| -> NewMandate |
createCustomerMandate Source #
Arguments
| :: 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.
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 NewMandate Source #
Structure to request a new mandate with.
For more information see: https://www.mollie.com/en/docs/reference/mandates/create.
Constructors
| NewMandate | |
Fields
| |
Instances
| Show NewMandate Source # | |
Defined in Mollie.API.Types Methods showsPrec :: Int -> NewMandate -> ShowS # show :: NewMandate -> String # showList :: [NewMandate] -> ShowS # | |
| ToJSON NewMandate Source # | |
Defined in Mollie.API.Types Methods toJSON :: NewMandate -> Value # toEncoding :: NewMandate -> Encoding # toJSONList :: [NewMandate] -> Value # toEncodingList :: [NewMandate] -> Encoding # | |
data MandateStatus Source #
All possible statusses for a Mandate.
Constructors
| MandatePending | |
| MandateValid | |
| MandateInvalid |
Instances
| Eq MandateStatus Source # | |
Defined in Mollie.API.Types Methods (==) :: MandateStatus -> MandateStatus -> Bool # (/=) :: MandateStatus -> MandateStatus -> Bool # | |
| Read MandateStatus Source # | |
Defined in Mollie.API.Types Methods readsPrec :: Int -> ReadS MandateStatus # readList :: ReadS [MandateStatus] # | |
| Show MandateStatus Source # | |
Defined in Mollie.API.Types Methods showsPrec :: Int -> MandateStatus -> ShowS # show :: MandateStatus -> String # showList :: [MandateStatus] -> ShowS # | |
| FromJSON MandateStatus Source # | |
Defined in Mollie.API.Types Methods parseJSON :: Value -> Parser MandateStatus # parseJSONList :: Value -> Parser [MandateStatus] # | |
| ToText MandateStatus Source # | |
Defined in Mollie.API.Types Methods toText :: MandateStatus -> Text Source # | |
data MandateDetails Source #
Details which might be available on Mandates.
Constructors
| MandateDetails | |
Fields
| |
Instances
| Show MandateDetails Source # | |
Defined in Mollie.API.Types Methods showsPrec :: Int -> MandateDetails -> ShowS # show :: MandateDetails -> String # showList :: [MandateDetails] -> ShowS # | |
| FromJSON MandateDetails Source # | |
Defined in Mollie.API.Types Methods 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.
Constructors
| Mandate | |
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 # | |