mollie-api-haskell-0.2.0.2: 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.

Methods

toText :: a -> Text Source #

Instances
ToText PaymentStatus Source # 
Instance details

Defined in Mollie.API.Types

ToText RecurringType Source # 
Instance details

Defined in Mollie.API.Types

ToText PaymentMethod Source # 
Instance details

Defined in Mollie.API.Types

ToText Mode Source # 
Instance details

Defined in Mollie.API.Types

Methods

toText :: Mode -> Text Source #

ToText RefundStatus Source # 
Instance details

Defined in Mollie.API.Types

ToText MandateStatus Source # 
Instance details

Defined in Mollie.API.Types

ToText SubscriptionStatus Source # 
Instance details

Defined in Mollie.API.Types

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 
Instances
Eq Mode Source # 
Instance details

Defined in Mollie.API.Types

Methods

(==) :: Mode -> Mode -> Bool #

(/=) :: Mode -> Mode -> Bool #

Read Mode Source # 
Instance details

Defined in Mollie.API.Types

Show Mode Source # 
Instance details

Defined in Mollie.API.Types

Methods

showsPrec :: Int -> Mode -> ShowS #

show :: Mode -> String #

showList :: [Mode] -> ShowS #

ToJSON Mode Source # 
Instance details

Defined in Mollie.API.Types

FromJSON Mode Source # 
Instance details

Defined in Mollie.API.Types

ToText Mode Source # 
Instance details

Defined in Mollie.API.Types

Methods

toText :: Mode -> Text Source #

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

Instances
Show Payment Source # 
Instance details

Defined in Mollie.API.Types

FromJSON Payment Source # 
Instance details

Defined in Mollie.API.Types

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 # 
Instance details

Defined in Mollie.API.Types

Methods

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

show :: List a -> String #

showList :: [List a] -> ShowS #

FromJSON a => FromJSON (List a) Source # 
Instance details

Defined in Mollie.API.Types

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

Instances
Show Refund Source # 
Instance details

Defined in Mollie.API.Types

FromJSON Refund Source # 
Instance details

Defined in Mollie.API.Types

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

Instances
Show Method Source # 
Instance details

Defined in Mollie.API.Types

FromJSON Method Source # 
Instance details

Defined in Mollie.API.Types

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

Instances
Show Issuer Source # 
Instance details

Defined in Mollie.API.Types

FromJSON Issuer Source # 
Instance details

Defined in Mollie.API.Types

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

Instances
Show Customer Source # 
Instance details

Defined in Mollie.API.Types

FromJSON Customer Source # 
Instance details

Defined in Mollie.API.Types

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

Instances
Show Mandate Source # 
Instance details

Defined in Mollie.API.Types

FromJSON Mandate Source # 
Instance details

Defined in Mollie.API.Types

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 
Instances
Show Error Source # 
Instance details

Defined in Mollie.API.Types

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

FromJSON Error Source # 
Instance details

Defined in Mollie.API.Types

data ResponseError Source #

Response errors which could happen when requesting resources from Mollie.

Instances
Show ResponseError Source # 
Instance details

Defined in Mollie.API.Types