Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class ToText a where
- data PaymentStatus
- data PaymentMethod
- data RecurringType
- data NewPayment = NewPayment {
- newPayment_amount :: Double
- newPayment_description :: Text
- newPayment_redirectUrl :: Maybe Text
- newPayment_webhookUrl :: Maybe Text
- newPayment_method :: Maybe PaymentMethod
- newPayment_metadata :: Maybe Value
- newPayment_locale :: Maybe Text
- newPayment_recurringType :: Maybe RecurringType
- newPayment_customerId :: Maybe Text
- newPayment_issuer :: Maybe Text
- newPayment_billingAddress :: Maybe Text
- newPayment_billingCity :: Maybe Text
- newPayment_billingRegion :: Maybe Text
- newPayment_billingPostal :: Maybe Text
- newPayment_billingCountry :: Maybe Text
- newPayment_shippingAddress :: Maybe Text
- newPayment_shippingCity :: Maybe Text
- newPayment_shippingRegion :: Maybe Text
- newPayment_shippingPostal :: Maybe Text
- newPayment_shippingCountry :: Maybe Text
- newPayment_billingEmail :: Maybe Text
- newPayment_dueDate :: Maybe Text
- newPayment_consumerName :: Maybe Text
- newPayment_consumerAccount :: Maybe Text
- newPayment_customerReference :: Maybe Text
- data Mode
- data PaymentLinks = PaymentLinks {}
- data Payment = Payment {
- payment_id :: Text
- payment_mode :: Mode
- payment_createdDatetime :: UTCTime
- payment_status :: PaymentStatus
- payment_paidDatetime :: Maybe UTCTime
- payment_cancelledDatetime :: Maybe UTCTime
- payment_expiredDatetime :: Maybe UTCTime
- payment_expiryPeriod :: Maybe Text
- payment_amount :: Text
- payment_amountRefunded :: Maybe Text
- payment_amountRemaining :: Maybe Text
- payment_description :: Text
- payment_method :: Maybe PaymentMethod
- payment_metadata :: Maybe Value
- payment_locale :: Maybe Text
- payment_profileId :: Text
- payment_customerId :: Maybe Text
- payment_mandateId :: Maybe Text
- payment_settlementId :: Maybe Text
- payment_links :: PaymentLinks
- payment_details :: Maybe Object
- data ListLinks = ListLinks {}
- data List a = List {
- list_totalCount :: Int
- list_offset :: Int
- list_count :: Int
- list_data :: [a]
- list_links :: Maybe ListLinks
- data NewRefund = NewRefund {}
- data RefundStatus
- data Refund = Refund {}
- data MethodAmount = MethodAmount {}
- data MethodImage = MethodImage {}
- data Method = Method {}
- data Issuer = Issuer {}
- data NewCustomer = NewCustomer {}
- data Customer = Customer {}
- 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 NewSubscription = NewSubscription {}
- data SubscriptionStatus
- data SubscriptionLinks = SubscriptionLinks {}
- data Subscription = Subscription {
- subscription_id :: Text
- subscription_customerId :: Text
- subscription_mode :: Mode
- subscription_createdDatetime :: UTCTime
- subscription_status :: SubscriptionStatus
- subscription_amount :: Text
- subscription_times :: Maybe Int
- subscription_interval :: Text
- subscription_description :: Text
- subscription_method :: Maybe PaymentMethod
- subscription_cancelledDatetime :: Maybe UTCTime
- subscription_links :: SubscriptionLinks
- data ErrorLinks = ErrorLinks {}
- data ErrorBody = ErrorBody {}
- data Error = Error {}
- data ResponseError
Documentation
Helper class for when data is required to be transformed to Mollies format.
Instances
ToText PaymentStatus Source # | |
Defined in Mollie.API.Types toText :: PaymentStatus -> Text Source # | |
ToText RecurringType Source # | |
Defined in Mollie.API.Types toText :: RecurringType -> Text Source # | |
ToText PaymentMethod Source # | |
Defined in Mollie.API.Types toText :: PaymentMethod -> Text Source # | |
ToText Mode Source # | |
ToText RefundStatus Source # | |
Defined in Mollie.API.Types toText :: RefundStatus -> Text Source # | |
ToText MandateStatus Source # | |
Defined in Mollie.API.Types toText :: MandateStatus -> Text Source # | |
ToText SubscriptionStatus Source # | |
Defined in Mollie.API.Types toText :: SubscriptionStatus -> 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.
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 |
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 |
Instances
Eq PaymentStatus Source # | |
Defined in Mollie.API.Types (==) :: PaymentStatus -> PaymentStatus -> Bool # (/=) :: PaymentStatus -> PaymentStatus -> Bool # | |
Read PaymentStatus Source # | |
Defined in Mollie.API.Types readsPrec :: Int -> ReadS PaymentStatus # readList :: ReadS [PaymentStatus] # | |
Show PaymentStatus Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> PaymentStatus -> ShowS # show :: PaymentStatus -> String # showList :: [PaymentStatus] -> ShowS # | |
FromJSON PaymentStatus Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser PaymentStatus # parseJSONList :: Value -> Parser [PaymentStatus] # | |
ToText PaymentStatus Source # | |
Defined in Mollie.API.Types toText :: PaymentStatus -> Text Source # |
data PaymentMethod Source #
All possible payment methods.
Ideal | |
Creditcard | |
Mistercard | |
Sofort | |
Banktransfer | |
Directdebit | |
Belfius | |
Paypal | |
Bitcoin | |
Podiumcadeaukaart | |
Paysafecard | |
NewPaymentMethod Text |
Instances
Eq PaymentMethod Source # | |
Defined in Mollie.API.Types (==) :: PaymentMethod -> PaymentMethod -> Bool # (/=) :: PaymentMethod -> PaymentMethod -> Bool # | |
Read PaymentMethod Source # | |
Defined in Mollie.API.Types readsPrec :: Int -> ReadS PaymentMethod # readList :: ReadS [PaymentMethod] # | |
Show PaymentMethod Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> PaymentMethod -> ShowS # show :: PaymentMethod -> String # showList :: [PaymentMethod] -> ShowS # | |
ToJSON PaymentMethod Source # | |
Defined in Mollie.API.Types toJSON :: PaymentMethod -> Value # toEncoding :: PaymentMethod -> Encoding # toJSONList :: [PaymentMethod] -> Value # toEncodingList :: [PaymentMethod] -> Encoding # | |
FromJSON PaymentMethod Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser PaymentMethod # parseJSONList :: Value -> Parser [PaymentMethod] # | |
ToText PaymentMethod Source # | |
Defined in Mollie.API.Types toText :: PaymentMethod -> Text Source # |
data RecurringType Source #
All available recurring types.
Instances
Eq RecurringType Source # | |
Defined in Mollie.API.Types (==) :: RecurringType -> RecurringType -> Bool # (/=) :: RecurringType -> RecurringType -> Bool # | |
Read RecurringType Source # | |
Defined in Mollie.API.Types readsPrec :: Int -> ReadS RecurringType # readList :: ReadS [RecurringType] # | |
Show RecurringType Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> RecurringType -> ShowS # show :: RecurringType -> String # showList :: [RecurringType] -> ShowS # | |
ToJSON RecurringType Source # | |
Defined in Mollie.API.Types toJSON :: RecurringType -> Value # toEncoding :: RecurringType -> Encoding # toJSONList :: [RecurringType] -> Value # toEncodingList :: [RecurringType] -> Encoding # | |
FromJSON RecurringType Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser RecurringType # parseJSONList :: Value -> Parser [RecurringType] # | |
ToText RecurringType Source # | |
Defined in Mollie.API.Types toText :: RecurringType -> Text Source # |
data NewPayment Source #
Structure to request a new payment with.
For more information see: https://www.mollie.com/en/docs/reference/payments/create.
NewPayment | |
|
Instances
Show NewPayment Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> NewPayment -> ShowS # show :: NewPayment -> String # showList :: [NewPayment] -> ShowS # | |
ToJSON NewPayment Source # | |
Defined in Mollie.API.Types toJSON :: NewPayment -> Value # toEncoding :: NewPayment -> Encoding # toJSONList :: [NewPayment] -> Value # toEncodingList :: [NewPayment] -> Encoding # |
All available API modes.
data PaymentLinks Source #
Important links used for a payment.
PaymentLinks | |
|
Instances
Show PaymentLinks Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> PaymentLinks -> ShowS # show :: PaymentLinks -> String # showList :: [PaymentLinks] -> ShowS # | |
FromJSON PaymentLinks Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser PaymentLinks # parseJSONList :: Value -> Parser [PaymentLinks] # |
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.
Payment | |
|
Important links associated with List responses.
ListLinks | |
|
List response for any resource with metadata.
For more information see: https://www.mollie.com/nl/docs/reference/payments/list.
List | |
|
Structure to request a refund.
For more information see: https://www.mollie.com/en/docs/reference/refunds/create.
NewRefund | |
|
data RefundStatus Source #
All possible statusses a refund could be assigned.
For more information see: https://www.mollie.com/en/docs/reference/refunds/get.
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. |
Instances
Eq RefundStatus Source # | |
Defined in Mollie.API.Types (==) :: RefundStatus -> RefundStatus -> Bool # (/=) :: RefundStatus -> RefundStatus -> Bool # | |
Read RefundStatus Source # | |
Defined in Mollie.API.Types readsPrec :: Int -> ReadS RefundStatus # readList :: ReadS [RefundStatus] # | |
Show RefundStatus Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> RefundStatus -> ShowS # show :: RefundStatus -> String # showList :: [RefundStatus] -> ShowS # | |
FromJSON RefundStatus Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser RefundStatus # parseJSONList :: Value -> Parser [RefundStatus] # | |
ToText RefundStatus Source # | |
Defined in Mollie.API.Types toText :: RefundStatus -> Text 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.
Refund | |
|
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.
MethodAmount | |
|
Instances
Show MethodAmount Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> MethodAmount -> ShowS # show :: MethodAmount -> String # showList :: [MethodAmount] -> ShowS # | |
FromJSON MethodAmount Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser MethodAmount # parseJSONList :: Value -> Parser [MethodAmount] # |
data MethodImage Source #
Images associated with a payment method.
MethodImage | |
|
Instances
Show MethodImage Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> MethodImage -> ShowS # show :: MethodImage -> String # showList :: [MethodImage] -> ShowS # | |
FromJSON MethodImage Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser MethodImage # parseJSONList :: Value -> Parser [MethodImage] # |
Representation of a payment method available at Mollie.
For more information see: https://www.mollie.com/en/docs/reference/methods/get.
Method | |
|
Representation of an issuer available at Mollie.
For more information see: https://www.mollie.com/en/docs/reference/issuers/get.
Issuer | |
|
data NewCustomer Source #
Structure to request a new customer with.
For more information see: https://www.mollie.com/en/docs/reference/customers/create.
NewCustomer | |
|
Instances
Show NewCustomer Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> NewCustomer -> ShowS # show :: NewCustomer -> String # showList :: [NewCustomer] -> ShowS # | |
ToJSON NewCustomer Source # | |
Defined in Mollie.API.Types toJSON :: NewCustomer -> Value # toEncoding :: NewCustomer -> Encoding # toJSONList :: [NewCustomer] -> Value # toEncodingList :: [NewCustomer] -> Encoding # |
Representation of an customer available at Mollie.
For more information see: https://www.mollie.com/en/docs/reference/customers/get.
Customer | |
|
data NewMandate Source #
Structure to request a new mandate with.
For more information see: https://www.mollie.com/en/docs/reference/mandates/create.
NewMandate | |
|
Instances
Show NewMandate Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> NewMandate -> ShowS # show :: NewMandate -> String # showList :: [NewMandate] -> ShowS # | |
ToJSON NewMandate Source # | |
Defined in Mollie.API.Types toJSON :: NewMandate -> Value # toEncoding :: NewMandate -> Encoding # toJSONList :: [NewMandate] -> Value # toEncodingList :: [NewMandate] -> Encoding # |
data MandateStatus Source #
All possible statusses for a Mandate.
Instances
Eq MandateStatus Source # | |
Defined in Mollie.API.Types (==) :: MandateStatus -> MandateStatus -> Bool # (/=) :: MandateStatus -> MandateStatus -> Bool # | |
Read MandateStatus Source # | |
Defined in Mollie.API.Types readsPrec :: Int -> ReadS MandateStatus # readList :: ReadS [MandateStatus] # | |
Show MandateStatus Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> MandateStatus -> ShowS # show :: MandateStatus -> String # showList :: [MandateStatus] -> ShowS # | |
FromJSON MandateStatus Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser MandateStatus # parseJSONList :: Value -> Parser [MandateStatus] # | |
ToText MandateStatus Source # | |
Defined in Mollie.API.Types toText :: MandateStatus -> Text Source # |
data MandateDetails Source #
Details which might be available on Mandates.
MandateDetails | |
|
Instances
Show MandateDetails Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> MandateDetails -> ShowS # show :: MandateDetails -> String # showList :: [MandateDetails] -> ShowS # | |
FromJSON MandateDetails Source # | |
Defined in Mollie.API.Types 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.
Mandate | |
|
data NewSubscription Source #
Structure to request a new subscription with.
For more information see: https://www.mollie.com/en/docs/reference/subscriptions/create.
NewSubscription | |
|
Instances
Show NewSubscription Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> NewSubscription -> ShowS # show :: NewSubscription -> String # showList :: [NewSubscription] -> ShowS # | |
ToJSON NewSubscription Source # | |
Defined in Mollie.API.Types toJSON :: NewSubscription -> Value # toEncoding :: NewSubscription -> Encoding # toJSONList :: [NewSubscription] -> Value # toEncodingList :: [NewSubscription] -> Encoding # |
data SubscriptionStatus Source #
All possible statusses a subscription could be assigned.
For more information see: https://www.mollie.com/en/docs/reference/subscriptions/get.
SubscriptionPending | |
SubscriptionActive | |
SubscriptionCancelled | |
SubscriptionSuspended | |
SubscriptionCompleted |
Instances
Eq SubscriptionStatus Source # | |
Defined in Mollie.API.Types (==) :: SubscriptionStatus -> SubscriptionStatus -> Bool # (/=) :: SubscriptionStatus -> SubscriptionStatus -> Bool # | |
Read SubscriptionStatus Source # | |
Defined in Mollie.API.Types | |
Show SubscriptionStatus Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> SubscriptionStatus -> ShowS # show :: SubscriptionStatus -> String # showList :: [SubscriptionStatus] -> ShowS # | |
FromJSON SubscriptionStatus Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser SubscriptionStatus # parseJSONList :: Value -> Parser [SubscriptionStatus] # | |
ToText SubscriptionStatus Source # | |
Defined in Mollie.API.Types toText :: SubscriptionStatus -> Text Source # |
data SubscriptionLinks Source #
Important links used for a subscription.
SubscriptionLinks | |
|
Instances
Show SubscriptionLinks Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> SubscriptionLinks -> ShowS # show :: SubscriptionLinks -> String # showList :: [SubscriptionLinks] -> ShowS # | |
FromJSON SubscriptionLinks Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser SubscriptionLinks # parseJSONList :: Value -> Parser [SubscriptionLinks] # |
data Subscription Source #
Representation of a subscription available at Mollie.
For more information see: https://www.mollie.com/en/docs/reference/subscriptions/get.
Subscription | |
|
Instances
Show Subscription Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> Subscription -> ShowS # show :: Subscription -> String # showList :: [Subscription] -> ShowS # | |
FromJSON Subscription Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser Subscription # parseJSONList :: Value -> Parser [Subscription] # |
data ErrorLinks Source #
Error data representations.
For more information see: https://www.mollie.com/en/docs/errors.
Instances
Show ErrorLinks Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> ErrorLinks -> ShowS # show :: ErrorLinks -> String # showList :: [ErrorLinks] -> ShowS # | |
FromJSON ErrorLinks Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser ErrorLinks # parseJSONList :: Value -> Parser [ErrorLinks] # |
data ResponseError Source #
Response errors which could happen when requesting resources from Mollie.
Instances
Show ResponseError Source # | |
Defined in Mollie.API.Types showsPrec :: Int -> ResponseError -> ShowS # show :: ResponseError -> String # showList :: [ResponseError] -> ShowS # |