Safe Haskell | None |
---|---|
Language | Haskell2010 |
Mollie.API.Types
- 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.
Minimal complete definition
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 |
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 |
data PaymentMethod Source #
All possible payment methods.
data RecurringType Source #
All available recurring types.
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
|
Instances
All available API modes.
data PaymentLinks Source #
Important links used for a payment.
Constructors
PaymentLinks | |
Fields
|
Instances
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
|
Important links associated with List responses.
Constructors
ListLinks | |
Fields
|
List response for any resource with metadata.
For more information see: https://www.mollie.com/nl/docs/reference/payments/list.
Constructors
List | |
Fields
|
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. |
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
|
Instances
data MethodImage Source #
Images associated with a payment method.
Constructors
MethodImage | |
Fields
|
Instances
Representation of a payment method available at Mollie.
For more information see: https://www.mollie.com/en/docs/reference/methods/get.
Constructors
Method | |
Fields
|
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
|
Instances
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
|
Instances
data MandateStatus Source #
All possible statusses for a Mandate.
Constructors
MandatePending | |
MandateValid | |
MandateInvalid |
data MandateDetails Source #
Details which might be available on Mandates.
Constructors
MandateDetails | |
Fields
|
Instances
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
|
Instances
data SubscriptionStatus Source #
All possible statusses a subscription could be assigned.
For more information see: https://www.mollie.com/en/docs/reference/subscriptions/get.
data SubscriptionLinks Source #
Important links used for a subscription.
Constructors
SubscriptionLinks | |
Fields
|
Instances
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
|
Instances
data ErrorLinks Source #
Error data representations.
For more information see: https://www.mollie.com/en/docs/errors.
Constructors
ErrorLinks | |
Fields |
Instances
Constructors
ErrorBody | |
Fields |
Constructors
Error | |
Fields |
data ResponseError Source #
Response errors which could happen when requesting resources from Mollie.
Constructors
ClientError Int Error | |
ServerError Int | |
UnexpectedResponse |
Instances