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

Safe HaskellNone
LanguageHaskell2010

Mollie.API.Types

Synopsis

Documentation

class ToText a where Source #

Helper class for when data is required to be transformed to Mollies format.

Minimal complete definition

toText

Methods

toText :: a -> Text Source #

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 Mode Source #

All available API modes.

Constructors

Live 
Test 

data PaymentLinks Source #

Important links used for a payment.

Constructors

PaymentLinks 

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 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 NewRefund Source #

Structure to request a refund.

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

Constructors

NewRefund 

Fields

data RefundStatus Source #

All possible statusses a refund could be assigned.

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

Constructors

RefundPending

The payment will be processed soon (usually the next business day). The refund could still be cancelled, see: https://www.mollie.com/en/docs/reference/refunds/delete.

RefundProcessing

The refund is processing, cancellation is no longer possible.

RefundRefunded

The refund has been paid out the the customer.

data Refund Source #

Representation of a refund made with Mollie.

Note that the amount is curently returned as text because Mollie does not return it as a valid json number.

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

Constructors

Refund 

Fields

data MethodAmount Source #

Minimum and maximum amounts for a payment method.

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

Constructors

MethodAmount 

Fields

data MethodImage Source #

Images associated with a payment method.

Constructors

MethodImage 

Fields

data Method Source #

Representation of a payment method available at Mollie.

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

Constructors

Method 

Fields

data Issuer Source #

Representation of an issuer available at Mollie.

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

Constructors

Issuer 

Fields

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 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 NewSubscription Source #

Structure to request a new subscription with.

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

Constructors

NewSubscription 

Fields

data SubscriptionLinks Source #

Important links used for a subscription.

Constructors

SubscriptionLinks 

Fields

data Subscription Source #

Representation of a subscription available at Mollie.

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

Constructors

Subscription 

Fields

data ErrorLinks Source #

Error data representations.

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

Constructors

ErrorLinks 

data Error Source #

Constructors

Error 

data ResponseError Source #

Response errors which could happen when requesting resources from Mollie.