mollie-api-haskell-0.1.0.1: Mollie API client for Haskell http://www.mollie.com

Safe HaskellNone
LanguageHaskell2010

Mollie.API.Mandates

Description

WARNING
This implementation is currently untested! Due to lack of access to the Mandates API.

Synopsis

Documentation

mandatesPath :: Text Source #

Mandates resource's path, relative to API's versioned customer resource url.

newMandate Source #

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.

getCustomerMandate Source #

Arguments

:: Text

customerId

-> Text

mandateId

-> Mollie (Either ResponseError Mandate) 

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.

getCustomerMandates Source #

Arguments

:: Text

customerId

-> Int

offset

-> Int

count

-> Mollie (Either ResponseError (List Mandate)) 

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 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

data MandateDetails Source #

Details which might be available on Mandates.

Constructors

MandateDetails 

Fields

data Mandate Source #

Representation of a mandate available at Mollie.

For more information see: https://www.mollie.com/en/docs/reference/mandates/get.

Constructors

Mandate 

Fields

data ListLinks Source #

Important links associated with List responses.

Constructors

ListLinks 

Fields

data List a Source #

List response for any resource with metadata.

For more information see: https://www.mollie.com/nl/docs/reference/payments/list.

Constructors

List 

Fields

Instances

Show a => Show (List a) Source # 

Methods

showsPrec :: Int -> List a -> ShowS #

show :: List a -> String #

showList :: [List a] -> ShowS #

FromJSON a0 => FromJSON (List a0) Source # 

Methods

parseJSON :: Value -> Parser (List a0) #

data ResponseError Source #

Response errors which could happen when requesting resources from Mollie.