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

Safe HaskellNone
LanguageHaskell2010

Mollie.API.Customers

Synopsis

Documentation

customersPath :: Text Source #

Customer resource's path, relative to API's versioned url.

newCustomer Source #

Arguments

:: Text

name

-> Text

email

-> NewCustomer 

Helper to create a minimal new customer.

getCustomer Source #

Arguments

:: Text

customerId

-> Mollie (Either ResponseError Customer) 

Handler to get a customer by its identifier.

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

getCustomers Source #

Arguments

:: Int

offset

-> Int

count

-> Mollie (Either ResponseError (List Customer)) 

Handler to get a list of customers. Because the list endpoint is paginated this handler requires an offset and a count. The maximum amount of customers returned with a single call is 250.

For more information see: https://www.mollie.com/en/docs/reference/customers/list.

createCustomerPayment Source #

Arguments

:: Text

customerId

-> NewPayment 
-> Mollie (Either ResponseError Payment) 

Handler to create a new payment for a specific customer.

For more information see: https://www.mollie.com/en/docs/reference/customers/create-payment.

getCustomerPayments Source #

Arguments

:: Text

customerId

-> Int

offset

-> Int

count

-> Mollie (Either ResponseError (List Payment)) 

Handler to get a list of payments for a specific customer. Because the list endpoint is paginated this handler requires an offset and a count. The maximum amount of payments returned with a single call is 250.

For more information see: https://www.mollie.com/en/docs/reference/customers/list-payments.

data NewCustomer Source #

Structure to request a new customer with.

For more information see: https://www.mollie.com/en/docs/reference/customers/create.

Constructors

NewCustomer 

Fields

data Customer Source #

Representation of an customer available at Mollie.

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

Constructors

Customer 

Fields

data PaymentStatus Source #

All possible statusses which can be assigned to a payment. When an important status changes occurs Mollie will notify the application by requesting the configured Webhook. Note that some changes will never be known to the application.

For more information see: https://www.mollie.com/en/docs/status.

Constructors

PaymentOpen

Payment has been created. This is the initial status.

PaymentCancelled

Customer has cancelled the payment.

PaymentPending

The payment process has been started. No notification.

PaymentExpired

The payment has expired. Some payment methods (like banktransfer) might need a few days to process.

PaymentFailed

The payment can't be completed.

PaymentPaid

The payment was successful. This is the success status.

PaymentPaidout

Mollie has transfered the payment to your bankaccount. No notification.

PaymentRefunded

You requested a refund for the payment.

PaymentChargedBack

The customer dispute the payment. This is possible with creditcard, directdebit and paypal payments.

data NewPayment Source #

Structure to request a new payment with.

For more information see: https://www.mollie.com/en/docs/reference/payments/create.

Constructors

NewPayment 

Fields

data Payment Source #

Representation of a payment made with Mollie.

Note that the amounts are curently returned as text because Mollie does not return them as valid json numbers.

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

Constructors

Payment 

Fields

data PaymentLinks Source #

Important links used for a payment.

Constructors

PaymentLinks 

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 a => FromJSON (List a) Source # 

data ListLinks Source #

Important links associated with List responses.

Constructors

ListLinks 

Fields

data ResponseError Source #

Response errors which could happen when requesting resources from Mollie.