Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type MollieServantAPI = "v2" :> ToServantApi MollieAPI
- data MollieAPI route
- data HalJSON
- chargebackClient :: ChargebackAPI (AsClientT ClientM)
- customerClient :: CustomerAPI (AsClientT ClientM)
- mandateClient :: MandateAPI (AsClientT ClientM)
- methodClient :: MethodAPI (AsClientT ClientM)
- paymentClient :: PaymentAPI (AsClientT ClientM)
- refundClient :: RefundAPI (AsClientT ClientM)
- subscriptionClient :: SubscriptionAPI (AsClientT ClientM)
- createEnv :: String -> IO ClientEnv
- runMollie :: ClientEnv -> ClientM a -> IO (Either ResponseError a)
- class ToText a where
- type CustomerId = Text
- type PaymentId = Text
- type RefundId = Text
- type SubscriptionId = Text
- type ChargebackId = Text
- type MandateId = Text
- data Amount = Amount {}
- defaultAmount :: Double -> Amount
- class HasCurrency s a | s -> a where
- class HasValue s a | s -> a where
- data Address = Address {}
- class HasCity s a | s -> a where
- class HasCountry s a | s -> a where
- class HasPostalCode s a | s -> a where
- postalCode :: Lens' s a
- class HasRegion s a | s -> a where
- class HasStreetAdditional s a | s -> a where
- streetAdditional :: Lens' s a
- class HasStreetAndNumber s a | s -> a where
- streetAndNumber :: Lens' s a
- data Link = Link {}
- class HasHref s a | s -> a where
- data Mode
- data ListLinks = ListLinks {}
- class HasDocumentation s a | s -> a where
- documentation :: Lens' s a
- class HasNext s a | s -> a where
- class HasPrevious s a | s -> a where
- class HasSelf s a | s -> a where
- data List a = List {
- _listCount :: Int
- _listEmbedded :: [a]
- _listLinks :: ListLinks
- class HasCount s a | s -> a where
- class HasEmbedded s a | s -> a where
- class HasLinks s a | s -> a where
- data ErrorLinks = ErrorLinks {}
- data Error = Error {}
- class HasDetail s a | s -> a where
- class HasField s a | s -> a where
- class HasTitle s a | s -> a where
- data PaymentMethod
- data ResponseError
- data Chargeback = Chargeback {}
- class HasAmount s a | s -> a where
- class HasCreatedAt s a | s -> a where
- class HasId s a | s -> a where
- class HasPaymentId s a | s -> a where
- class HasReversedAt s a | s -> a where
- reversedAt :: Lens' s a
- class HasSettlementAmount s a | s -> a where
- settlementAmount :: Lens' s a
- data NewCustomer = NewCustomer {}
- class HasEmail s a | s -> a where
- class HasLocale s a | s -> a where
- class HasMetadata s a | s -> a where
- class HasName s a | s -> a where
- data Customer = Customer {}
- class HasMode s a | s -> a where
- class HasRecentlyUsedMethods s a | s -> a where
- recentlyUsedMethods :: Lens' s a
- data NewMandate = NewMandate {}
- class HasConsumerAccount s a | s -> a where
- consumerAccount :: Lens' s a
- class HasConsumerBic s a | s -> a where
- consumerBic :: Lens' s a
- class HasConsumerName s a | s -> a where
- consumerName :: Lens' s a
- class HasMandateReference s a | s -> a where
- mandateReference :: Lens' s a
- class HasMethod s a | s -> a where
- class HasSignatureDate s a | s -> a where
- signatureDate :: Lens' s a
- data MandateStatus
- data MandateDetails = MandateDetails {
- _mandateDetailsConsumerName :: Maybe Text
- _mandateDetailsConsumerAccount :: Maybe Text
- _mandateDetailsConsumerBic :: Maybe Text
- _mandateDetailsCardHolder :: Maybe Text
- _mandateDetailsCardNumber :: Maybe Text
- _mandateDetailsCardLabel :: Maybe Text
- _mandateDetailsCardFingerprint :: Maybe Text
- _mandateDetailsCardExpiryDate :: Maybe Text
- class HasCardExpiryDate s a | s -> a where
- cardExpiryDate :: Lens' s a
- class HasCardFingerprint s a | s -> a where
- cardFingerprint :: Lens' s a
- class HasCardHolder s a | s -> a where
- cardHolder :: Lens' s a
- class HasCardLabel s a | s -> a where
- class HasCardNumber s a | s -> a where
- cardNumber :: Lens' s a
- data Mandate = Mandate {}
- class HasDetails s a | s -> a where
- class HasStatus s a | s -> a where
- data MethodImage = MethodImage {}
- class HasSize1x s a | s -> a where
- class HasSize2x s a | s -> a where
- class HasSvg s a | s -> a where
- data Method = Method {}
- class HasDescription s a | s -> a where
- description :: Lens' s a
- class HasImage s a | s -> a where
- data PaymentStatus
- data SequenceType
- data NewPayment = NewPayment {
- _newPaymentAmount :: Amount
- _newPaymentDescription :: Text
- _newPaymentRedirectUrl :: Maybe Text
- _newPaymentWebhookUrl :: Maybe Text
- _newPaymentMethod :: Maybe PaymentMethod
- _newPaymentMetadata :: Maybe Value
- _newPaymentLocale :: Maybe Text
- _newPaymentSequenceType :: Maybe SequenceType
- _newPaymentCustomerId :: Maybe CustomerId
- _newPaymentMandateId :: Maybe MandateId
- _newPaymentIssuer :: Maybe Text
- _newPaymentBillingAddress :: Maybe Address
- _newPaymentShippingAddress :: Maybe Address
- _newPaymentBillingEmail :: Maybe Text
- _newPaymentDueDate :: Maybe Text
- _newPaymentConsumerName :: Maybe Text
- _newPaymentConsumerAccount :: Maybe Text
- _newPaymentCustomerReference :: Maybe Text
- class HasBillingAddress s a | s -> a where
- billingAddress :: Lens' s a
- class HasBillingEmail s a | s -> a where
- billingEmail :: Lens' s a
- class HasCustomerId s a | s -> a where
- customerId :: Lens' s a
- class HasCustomerReference s a | s -> a where
- customerReference :: Lens' s a
- class HasDueDate s a | s -> a where
- class HasIssuer s a | s -> a where
- class HasMandateId s a | s -> a where
- class HasRedirectUrl s a | s -> a where
- redirectUrl :: Lens' s a
- class HasSequenceType s a | s -> a where
- sequenceType :: Lens' s a
- class HasShippingAddress s a | s -> a where
- shippingAddress :: Lens' s a
- class HasWebhookUrl s a | s -> a where
- webhookUrl :: Lens' s a
- data Payment = Payment {
- _paymentId :: PaymentId
- _paymentMode :: Mode
- _paymentCreatedAt :: UTCTime
- _paymentStatus :: PaymentStatus
- _paymentIsCancelable :: Bool
- _paymentPaidAt :: Maybe UTCTime
- _paymentCanceledAt :: Maybe UTCTime
- _paymentExpiredAt :: Maybe UTCTime
- _paymentFailedAt :: Maybe UTCTime
- _paymentAmount :: Amount
- _paymentAmountRefunded :: Maybe Amount
- _paymentAmountRemaining :: Maybe Amount
- _paymentDescription :: Text
- _paymentRedirectUrl :: Maybe Text
- _paymentMollieUrl :: Maybe Text
- _paymentWebhookUrl :: Maybe Text
- _paymentMethod :: Maybe PaymentMethod
- _paymentMetadata :: Maybe Value
- _paymentLocale :: Maybe Text
- _paymentCountryCode :: Maybe Text
- _paymentProfileId :: Text
- _paymentSettlementAmount :: Maybe Amount
- _paymentSettlementId :: Maybe Text
- _paymentCustomerId :: Maybe CustomerId
- _paymentSequenceType :: Maybe SequenceType
- _paymentMandateId :: Maybe MandateId
- _paymentSubscriptionId :: Maybe SubscriptionId
- _paymentDetails :: Maybe Object
- class HasAmountRefunded s a | s -> a where
- amountRefunded :: Lens' s a
- class HasAmountRemaining s a | s -> a where
- amountRemaining :: Lens' s a
- class HasCanceledAt s a | s -> a where
- canceledAt :: Lens' s a
- class HasCountryCode s a | s -> a where
- countryCode :: Lens' s a
- class HasExpiredAt s a | s -> a where
- class HasFailedAt s a | s -> a where
- class HasIsCancelable s a | s -> a where
- isCancelable :: Lens' s a
- class HasMollieUrl s a | s -> a where
- class HasPaidAt s a | s -> a where
- class HasProfileId s a | s -> a where
- class HasSettlementId s a | s -> a where
- settlementId :: Lens' s a
- class HasSubscriptionId s a | s -> a where
- subscriptionId :: Lens' s a
- data NewRefund = NewRefund {}
- data RefundStatus
- data Refund = Refund {}
- data NewSubscription = NewSubscription {}
- class HasInterval s a | s -> a where
- class HasStartDate s a | s -> a where
- class HasTimes s a | s -> a where
- data SubscriptionStatus
- data Subscription = Subscription {
- _subscriptionId :: Text
- _subscriptionMode :: Mode
- _subscriptionCreatedAt :: UTCTime
- _subscriptionStatus :: SubscriptionStatus
- _subscriptionAmount :: Amount
- _subscriptionTimes :: Maybe Int
- _subscriptionInterval :: Text
- _subscriptionStartDate :: Maybe Text
- _subscriptionDescription :: Text
- _subscriptionMethod :: Maybe PaymentMethod
- _subscriptionCanceledAt :: Maybe UTCTime
- _subscriptionWebhookUrl :: Maybe Text
Documentation
type MollieServantAPI = "v2" :> ToServantApi MollieAPI Source #
The fully combined Mollie API definition of Haskell.
All v2 endpoints of Mollie API.
Instances
Mollie returns all API calls with "Content-Type: application/hal+json"
Instances
Accept HalJSON Source # | |
Defined in Mollie.API.Internal | |
ToJSON a => MimeRender HalJSON a Source # | |
Defined in Mollie.API.Internal mimeRender :: Proxy HalJSON -> a -> ByteString # | |
FromJSON a => MimeUnrender HalJSON a Source # | |
Defined in Mollie.API.Internal mimeUnrender :: Proxy HalJSON -> ByteString -> Either String a # mimeUnrenderWithType :: Proxy HalJSON -> MediaType -> ByteString -> Either String a # |
chargebackClient :: ChargebackAPI (AsClientT ClientM) Source #
Record that holds the endpoints for the Chargeback API. Usage:
import Mollie.API import Mollie.API.Chargebacks env <- createEnv "test_mollieapikeyexample" let chargebacksResult = runMollie env (getChargebacks chargebackClient)
customerClient :: CustomerAPI (AsClientT ClientM) Source #
Record that holds the endpoints for the Customer API. Usage:
import Mollie.API import Mollie.API.Customers env <- createEnv "test_mollieapikeyexample" let customersResult = runMollie env (getCustomers customerClient)
mandateClient :: MandateAPI (AsClientT ClientM) Source #
Record that holds the endpoints for the Mandate API. Usage:
import Mollie.API import Mollie.API.Mandates env <- createEnv "test_mollieapikeyexample" let mandatesResult = runMollie env ((getCustomerMandates mandateClient) "cst_eaaEuAnqW")
methodClient :: MethodAPI (AsClientT ClientM) Source #
Record that holds the endpoints for the Method API. Usage:
import Mollie.API import Mollie.API.Methods env <- createEnv "test_mollieapikeyexample" let methodsResult = runMollie env (getMethods methodClient)
paymentClient :: PaymentAPI (AsClientT ClientM) Source #
Record that holds the endpoints for the Payments API. Usage:
import Mollie.API import Mollie.API.Payments env <- createEnv "test_mollieapikeyexample" let paymentsResult = runMollie env (getPayments paymentClient)
refundClient :: RefundAPI (AsClientT ClientM) Source #
Record that holds the endpoints for the Refunds API. Usage:
import Mollie.API import Mollie.API.Refunds env <- createEnv "test_mollieapikeyexample" let refundsResult = runMollie env (getRefunds refundClient)
subscriptionClient :: SubscriptionAPI (AsClientT ClientM) Source #
Record that holds the endpoints for the Subscriptions API. Usage:
import Mollie.API import Mollie.API.Subscriptions env <- createEnv "test_mollieapikeyexample" let subscriptionsResult = runMollie env ((getCustomerSubscriptions refundClient) "cst_eaaEuAnqW")
Setup the environment for executing API calls
runMollie :: ClientEnv -> ClientM a -> IO (Either ResponseError a) Source #
Execute an API call to the Mollie API. Uses Servant under the hood.
Helper class for when data is required to be transformed to Mollies format.
Instances
ToText Mode Source # | |
ToText PaymentMethod Source # | |
Defined in Mollie.API.Types toText :: PaymentMethod -> Text Source # | |
ToText MandateStatus Source # | |
Defined in Mollie.API.Types toText :: MandateStatus -> Text Source # | |
ToText PaymentStatus Source # | |
Defined in Mollie.API.Types toText :: PaymentStatus -> Text Source # | |
ToText SequenceType Source # | |
Defined in Mollie.API.Types toText :: SequenceType -> Text Source # | |
ToText RefundStatus Source # | |
Defined in Mollie.API.Types toText :: RefundStatus -> Text Source # | |
ToText SubscriptionStatus Source # | |
Defined in Mollie.API.Types toText :: SubscriptionStatus -> Text Source # |
type CustomerId = Text Source #
type SubscriptionId = Text Source #
type ChargebackId = Text Source #
In v2 endpoints, an amount object is always represented as follows:
For more information see: https://docs.mollie.com/guides/common-data-types#amount-object
Amount | |
|
Instances
defaultAmount :: Double -> Amount Source #
Creates a Mollie amount given a Double
class HasCurrency s a | s -> a where Source #
Address | |
|
Instances
Show Address Source # | |
ToJSON Address Source # | |
Defined in Mollie.API.Types | |
FromJSON Address Source # | |
Default Address Source # | |
Defined in Mollie.API.Types | |
HasStreetAndNumber Address Text Source # | |
Defined in Mollie.API.Types | |
HasPostalCode Address Text Source # | |
Defined in Mollie.API.Types | |
HasCountry Address Text Source # | |
HasCity Address Text Source # | |
HasStreetAdditional Address (Maybe Text) Source # | |
Defined in Mollie.API.Types | |
HasRegion Address (Maybe Text) Source # | |
HasShippingAddress NewPayment (Maybe Address) Source # | |
Defined in Mollie.API.Types | |
HasBillingAddress NewPayment (Maybe Address) Source # | |
Defined in Mollie.API.Types |
class HasCountry s a | s -> a where Source #
class HasPostalCode s a | s -> a where Source #
postalCode :: Lens' s a Source #
Instances
HasPostalCode Address Text Source # | |
Defined in Mollie.API.Types |
class HasStreetAdditional s a | s -> a where Source #
streetAdditional :: Lens' s a Source #
Instances
HasStreetAdditional Address (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasStreetAndNumber s a | s -> a where Source #
streetAndNumber :: Lens' s a Source #
Instances
HasStreetAndNumber Address Text Source # | |
Defined in Mollie.API.Types |
Instances
Show Link Source # | |
FromJSON Link Source # | |
HasHref Link Text Source # | |
HasSelf ListLinks Link Source # | |
HasDocumentation ErrorLinks Link Source # | |
Defined in Mollie.API.Types | |
HasPrevious ListLinks (Maybe Link) Source # | |
HasNext ListLinks (Maybe Link) Source # | |
HasDocumentation ListLinks (Maybe Link) Source # | |
Defined in Mollie.API.Types |
All available API modes.
Important links associated with List responses.
ListLinks | |
|
class HasDocumentation s a | s -> a where Source #
documentation :: Lens' s a Source #
Instances
HasDocumentation ErrorLinks Link Source # | |
Defined in Mollie.API.Types | |
HasDocumentation ListLinks (Maybe Link) Source # | |
Defined in Mollie.API.Types |
class HasPrevious s a | s -> a where Source #
List response for any resource with metadata.
For more information see: https://www.mollie.com/nl/docs/reference/payments/list.
List | |
|
class HasEmbedded s a | s -> a where Source #
Instances
HasEmbedded (List a) [a] Source # | |
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] # | |
HasDocumentation ErrorLinks Link Source # | |
Defined in Mollie.API.Types | |
HasLinks Error (Maybe ErrorLinks) Source # | |
Defined in Mollie.API.Types |
Error | |
|
data PaymentMethod Source #
All possible payment methods.
Bancontact | |
Banktransfer | |
Belfius | |
Bitcoin | |
Creditcard | |
Directdebit | |
Eps | |
Giftcard | |
Giropay | |
Ideal | |
Inghomepay | |
Kbc | |
Paypal | |
Paysafecard | |
Sofort | |
NewPaymentMethod Text |
Instances
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 # |
data Chargeback Source #
Chargeback | |
|
Instances
FromJSON Chargeback Source # | |
Defined in Mollie.API.Types parseJSON :: Value -> Parser Chargeback # parseJSONList :: Value -> Parser [Chargeback] # | |
HasPaymentId Chargeback PaymentId Source # | |
Defined in Mollie.API.Types | |
HasId Chargeback ChargebackId Source # | |
Defined in Mollie.API.Types | |
HasCreatedAt Chargeback UTCTime Source # | |
Defined in Mollie.API.Types | |
HasAmount Chargeback Amount Source # | |
Defined in Mollie.API.Types | |
HasSettlementAmount Chargeback (Maybe Amount) Source # | |
Defined in Mollie.API.Types | |
HasReversedAt Chargeback (Maybe UTCTime) Source # | |
Defined in Mollie.API.Types reversedAt :: Lens' Chargeback (Maybe UTCTime) Source # |
class HasAmount s a | s -> a where Source #
Instances
HasAmount Chargeback Amount Source # | |
Defined in Mollie.API.Types | |
HasAmount NewPayment Amount Source # | |
Defined in Mollie.API.Types | |
HasAmount Payment Amount Source # | |
HasAmount Refund Amount Source # | |
HasAmount NewSubscription Amount Source # | |
Defined in Mollie.API.Types | |
HasAmount Subscription Amount Source # | |
Defined in Mollie.API.Types | |
HasAmount NewRefund (Maybe Amount) Source # | |
class HasCreatedAt s a | s -> a where Source #
Instances
class HasId s a | s -> a where Source #
Instances
HasId Chargeback ChargebackId Source # | |
Defined in Mollie.API.Types | |
HasId Customer CustomerId Source # | |
Defined in Mollie.API.Types | |
HasId Mandate MandateId Source # | |
HasId Method PaymentMethod Source # | |
Defined in Mollie.API.Types | |
HasId Payment PaymentId Source # | |
HasId Refund Text Source # | |
HasId Subscription Text Source # | |
Defined in Mollie.API.Types |
class HasPaymentId s a | s -> a where Source #
Instances
HasPaymentId Chargeback PaymentId Source # | |
Defined in Mollie.API.Types | |
HasPaymentId Refund PaymentId Source # | |
class HasReversedAt s a | s -> a where Source #
reversedAt :: Lens' s a Source #
Instances
HasReversedAt Chargeback (Maybe UTCTime) Source # | |
Defined in Mollie.API.Types reversedAt :: Lens' Chargeback (Maybe UTCTime) Source # |
class HasSettlementAmount s a | s -> a where Source #
settlementAmount :: Lens' s a Source #
Instances
HasSettlementAmount Chargeback (Maybe Amount) Source # | |
Defined in Mollie.API.Types | |
HasSettlementAmount Payment (Maybe Amount) Source # | |
Defined in Mollie.API.Types | |
HasSettlementAmount Refund (Maybe Amount) Source # | |
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.
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 # | |
Default NewCustomer Source # | |
Defined in Mollie.API.Types def :: NewCustomer # | |
HasName NewCustomer (Maybe Text) Source # | |
Defined in Mollie.API.Types | |
HasMetadata NewCustomer (Maybe Value) Source # | |
Defined in Mollie.API.Types | |
HasLocale NewCustomer (Maybe Text) Source # | |
Defined in Mollie.API.Types | |
HasEmail NewCustomer (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasMetadata s a | s -> a where Source #
Instances
HasMetadata NewCustomer (Maybe Value) Source # | |
Defined in Mollie.API.Types | |
HasMetadata Customer (Maybe Value) Source # | |
HasMetadata NewPayment (Maybe Value) Source # | |
Defined in Mollie.API.Types | |
HasMetadata Payment (Maybe Value) Source # | |
Representation of an customer available at Mollie.
For more information see: https://www.mollie.com/en/docs/reference/customers/get.
Customer | |
|
Instances
class HasRecentlyUsedMethods s a | s -> a where Source #
recentlyUsedMethods :: Lens' s a Source #
Instances
HasRecentlyUsedMethods Customer [PaymentMethod] Source # | |
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.
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 # | |
Default NewMandate Source # | |
Defined in Mollie.API.Types def :: NewMandate # | |
HasMethod NewMandate PaymentMethod Source # | |
Defined in Mollie.API.Types | |
HasConsumerName NewMandate Text Source # | |
Defined in Mollie.API.Types | |
HasConsumerAccount NewMandate Text Source # | |
Defined in Mollie.API.Types | |
HasSignatureDate NewMandate (Maybe Text) Source # | |
Defined in Mollie.API.Types signatureDate :: Lens' NewMandate (Maybe Text) Source # | |
HasMandateReference NewMandate (Maybe Text) Source # | |
Defined in Mollie.API.Types | |
HasConsumerBic NewMandate (Maybe Text) Source # | |
Defined in Mollie.API.Types consumerBic :: Lens' NewMandate (Maybe Text) Source # |
class HasConsumerAccount s a | s -> a where Source #
consumerAccount :: Lens' s a Source #
Instances
HasConsumerAccount NewMandate Text Source # | |
Defined in Mollie.API.Types | |
HasConsumerAccount MandateDetails (Maybe Text) Source # | |
Defined in Mollie.API.Types | |
HasConsumerAccount NewPayment (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasConsumerBic s a | s -> a where Source #
consumerBic :: Lens' s a Source #
Instances
HasConsumerBic NewMandate (Maybe Text) Source # | |
Defined in Mollie.API.Types consumerBic :: Lens' NewMandate (Maybe Text) Source # | |
HasConsumerBic MandateDetails (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasConsumerName s a | s -> a where Source #
consumerName :: Lens' s a Source #
Instances
HasConsumerName NewMandate Text Source # | |
Defined in Mollie.API.Types | |
HasConsumerName MandateDetails (Maybe Text) Source # | |
Defined in Mollie.API.Types | |
HasConsumerName NewPayment (Maybe Text) Source # | |
Defined in Mollie.API.Types consumerName :: Lens' NewPayment (Maybe Text) Source # |
class HasMandateReference s a | s -> a where Source #
mandateReference :: Lens' s a Source #
Instances
HasMandateReference NewMandate (Maybe Text) Source # | |
Defined in Mollie.API.Types | |
HasMandateReference Mandate (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasMethod s a | s -> a where Source #
Instances
HasMethod NewMandate PaymentMethod Source # | |
Defined in Mollie.API.Types | |
HasMethod Mandate PaymentMethod Source # | |
Defined in Mollie.API.Types | |
HasMethod NewPayment (Maybe PaymentMethod) Source # | |
Defined in Mollie.API.Types | |
HasMethod Payment (Maybe PaymentMethod) Source # | |
Defined in Mollie.API.Types | |
HasMethod NewSubscription (Maybe PaymentMethod) Source # | |
Defined in Mollie.API.Types | |
HasMethod Subscription (Maybe PaymentMethod) Source # | |
Defined in Mollie.API.Types |
class HasSignatureDate s a | s -> a where Source #
signatureDate :: Lens' s a Source #
Instances
HasSignatureDate NewMandate (Maybe Text) Source # | |
Defined in Mollie.API.Types signatureDate :: Lens' NewMandate (Maybe Text) Source # | |
HasSignatureDate Mandate (Maybe Text) Source # | |
Defined in Mollie.API.Types |
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 # | |
HasStatus Mandate MandateStatus Source # | |
Defined in Mollie.API.Types |
data MandateDetails Source #
Details which might be available on Mandates.
MandateDetails | |
|
Instances
class HasCardExpiryDate s a | s -> a where Source #
cardExpiryDate :: Lens' s a Source #
Instances
HasCardExpiryDate MandateDetails (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasCardFingerprint s a | s -> a where Source #
cardFingerprint :: Lens' s a Source #
Instances
HasCardFingerprint MandateDetails (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasCardHolder s a | s -> a where Source #
cardHolder :: Lens' s a Source #
Instances
HasCardHolder MandateDetails (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasCardLabel s a | s -> a where Source #
Instances
HasCardLabel MandateDetails (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasCardNumber s a | s -> a where Source #
cardNumber :: Lens' s a Source #
Instances
HasCardNumber MandateDetails (Maybe Text) Source # | |
Defined in Mollie.API.Types |
Representation of a mandate available at Mollie.
For more information see: https://www.mollie.com/en/docs/reference/mandates/get.
Mandate | |
|
Instances
Show Mandate Source # | |
FromJSON Mandate Source # | |
HasId Mandate MandateId Source # | |
HasCreatedAt Mandate UTCTime Source # | |
HasMethod Mandate PaymentMethod Source # | |
Defined in Mollie.API.Types | |
HasStatus Mandate MandateStatus Source # | |
Defined in Mollie.API.Types | |
HasSignatureDate Mandate (Maybe Text) Source # | |
Defined in Mollie.API.Types | |
HasMandateReference Mandate (Maybe Text) Source # | |
Defined in Mollie.API.Types | |
HasDetails Mandate (Maybe MandateDetails) Source # | |
Defined in Mollie.API.Types |
class HasDetails s a | s -> a where Source #
Instances
HasDetails Mandate (Maybe MandateDetails) Source # | |
Defined in Mollie.API.Types | |
HasDetails Payment (Maybe Object) Source # | |
class HasStatus s a | s -> a where Source #
Instances
HasStatus Mandate MandateStatus Source # | |
Defined in Mollie.API.Types | |
HasStatus Payment PaymentStatus Source # | |
Defined in Mollie.API.Types | |
HasStatus Refund RefundStatus Source # | |
Defined in Mollie.API.Types | |
HasStatus Subscription SubscriptionStatus Source # | |
Defined in Mollie.API.Types |
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] # | |
HasSvg MethodImage Text Source # | |
Defined in Mollie.API.Types | |
HasSize2x MethodImage Text Source # | |
Defined in Mollie.API.Types | |
HasSize1x MethodImage Text Source # | |
Defined in Mollie.API.Types | |
HasImage Method MethodImage Source # | |
Defined in Mollie.API.Types |
class HasSize1x s a | s -> a where Source #
Instances
HasSize1x MethodImage Text Source # | |
Defined in Mollie.API.Types |
class HasSize2x s a | s -> a where Source #
Instances
HasSize2x MethodImage Text Source # | |
Defined in Mollie.API.Types |
class HasSvg s a | s -> a where Source #
Instances
HasSvg MethodImage Text Source # | |
Defined in Mollie.API.Types |
Representation of a payment method available at Mollie.
For more information see: https://www.mollie.com/en/docs/reference/methods/get.
Method | |
|
Instances
Show Method Source # | |
FromJSON Method Source # | |
HasId Method PaymentMethod Source # | |
Defined in Mollie.API.Types | |
HasImage Method MethodImage Source # | |
Defined in Mollie.API.Types | |
HasDescription Method Text Source # | |
Defined in Mollie.API.Types |
class HasDescription s a | s -> a where Source #
description :: Lens' s a Source #
Instances
HasDescription Method Text Source # | |
Defined in Mollie.API.Types | |
HasDescription NewPayment Text Source # | |
Defined in Mollie.API.Types | |
HasDescription Payment Text Source # | |
Defined in Mollie.API.Types | |
HasDescription Refund Text Source # | |
Defined in Mollie.API.Types | |
HasDescription NewSubscription Text Source # | |
Defined in Mollie.API.Types | |
HasDescription Subscription Text Source # | |
Defined in Mollie.API.Types | |
HasDescription NewRefund (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasImage s a | s -> a where Source #
Instances
HasImage Method MethodImage Source # | |
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.
PaymentOpen | Payment has been created. This is the initial status. |
PaymentCanceled | Customer has canceled 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. |
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 # | |
HasStatus Payment PaymentStatus Source # | |
Defined in Mollie.API.Types |
data SequenceType Source #
All available recurring types.
Instances
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
class HasBillingAddress s a | s -> a where Source #
billingAddress :: Lens' s a Source #
Instances
HasBillingAddress NewPayment (Maybe Address) Source # | |
Defined in Mollie.API.Types |
class HasBillingEmail s a | s -> a where Source #
billingEmail :: Lens' s a Source #
Instances
HasBillingEmail NewPayment (Maybe Text) Source # | |
Defined in Mollie.API.Types billingEmail :: Lens' NewPayment (Maybe Text) Source # |
class HasCustomerId s a | s -> a where Source #
customerId :: Lens' s a Source #
Instances
HasCustomerId NewPayment (Maybe CustomerId) Source # | |
Defined in Mollie.API.Types | |
HasCustomerId Payment (Maybe CustomerId) Source # | |
Defined in Mollie.API.Types customerId :: Lens' Payment (Maybe CustomerId) Source # |
class HasCustomerReference s a | s -> a where Source #
customerReference :: Lens' s a Source #
Instances
HasCustomerReference NewPayment (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasDueDate s a | s -> a where Source #
Instances
HasDueDate NewPayment (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasIssuer s a | s -> a where Source #
Instances
HasIssuer NewPayment (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasMandateId s a | s -> a where Source #
Instances
HasMandateId NewPayment (Maybe MandateId) Source # | |
Defined in Mollie.API.Types | |
HasMandateId Payment (Maybe MandateId) Source # | |
class HasRedirectUrl s a | s -> a where Source #
redirectUrl :: Lens' s a Source #
Instances
HasRedirectUrl NewPayment (Maybe Text) Source # | |
Defined in Mollie.API.Types redirectUrl :: Lens' NewPayment (Maybe Text) Source # | |
HasRedirectUrl Payment (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasSequenceType s a | s -> a where Source #
sequenceType :: Lens' s a Source #
Instances
HasSequenceType NewPayment (Maybe SequenceType) Source # | |
Defined in Mollie.API.Types | |
HasSequenceType Payment (Maybe SequenceType) Source # | |
Defined in Mollie.API.Types |
class HasShippingAddress s a | s -> a where Source #
shippingAddress :: Lens' s a Source #
Instances
HasShippingAddress NewPayment (Maybe Address) Source # | |
Defined in Mollie.API.Types |
class HasWebhookUrl s a | s -> a where Source #
webhookUrl :: Lens' s a Source #
Instances
HasWebhookUrl NewPayment (Maybe Text) Source # | |
Defined in Mollie.API.Types webhookUrl :: Lens' NewPayment (Maybe Text) Source # | |
HasWebhookUrl Payment (Maybe Text) Source # | |
Defined in Mollie.API.Types | |
HasWebhookUrl NewSubscription (Maybe Text) Source # | |
Defined in Mollie.API.Types | |
HasWebhookUrl Subscription (Maybe Text) Source # | |
Defined in Mollie.API.Types webhookUrl :: Lens' Subscription (Maybe Text) 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.
Payment | |
|
Instances
class HasAmountRefunded s a | s -> a where Source #
amountRefunded :: Lens' s a Source #
Instances
HasAmountRefunded Payment (Maybe Amount) Source # | |
Defined in Mollie.API.Types |
class HasAmountRemaining s a | s -> a where Source #
amountRemaining :: Lens' s a Source #
Instances
HasAmountRemaining Payment (Maybe Amount) Source # | |
Defined in Mollie.API.Types |
class HasCanceledAt s a | s -> a where Source #
canceledAt :: Lens' s a Source #
Instances
HasCanceledAt Payment (Maybe UTCTime) Source # | |
Defined in Mollie.API.Types | |
HasCanceledAt Subscription (Maybe UTCTime) Source # | |
Defined in Mollie.API.Types |
class HasCountryCode s a | s -> a where Source #
countryCode :: Lens' s a Source #
Instances
HasCountryCode Payment (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasExpiredAt s a | s -> a where Source #
class HasFailedAt s a | s -> a where Source #
class HasIsCancelable s a | s -> a where Source #
isCancelable :: Lens' s a Source #
Instances
HasIsCancelable Payment Bool Source # | |
Defined in Mollie.API.Types |
class HasMollieUrl s a | s -> a where Source #
class HasProfileId s a | s -> a where Source #
class HasSettlementId s a | s -> a where Source #
settlementId :: Lens' s a Source #
Instances
HasSettlementId Payment (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasSubscriptionId s a | s -> a where Source #
subscriptionId :: Lens' s a Source #
Instances
HasSubscriptionId Payment (Maybe SubscriptionId) Source # | |
Defined in Mollie.API.Types |
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.
RefundQueued | The refund will be processed once you have enough balance. You can still cancel this refund. |
RefundPending | The refund will be processed soon (usually the next business day). You can still cancel this refund. |
RefundProcessing | The refund is being processed. Cancellation is no longer possible. |
RefundRefunded | The refund has been paid out to your customer. |
RefundFailed | The refund has failed during processing. |
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 # | |
HasStatus Refund RefundStatus Source # | |
Defined in Mollie.API.Types |
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 | |
|
Instances
Show Refund Source # | |
FromJSON Refund Source # | |
HasPaymentId Refund PaymentId Source # | |
HasId Refund Text Source # | |
HasCreatedAt Refund UTCTime Source # | |
HasAmount Refund Amount Source # | |
HasStatus Refund RefundStatus Source # | |
Defined in Mollie.API.Types | |
HasDescription Refund Text Source # | |
Defined in Mollie.API.Types | |
HasSettlementAmount Refund (Maybe Amount) Source # | |
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.
NewSubscription | |
|
Instances
class HasInterval s a | s -> a where Source #
Instances
HasInterval NewSubscription Text Source # | |
Defined in Mollie.API.Types | |
HasInterval Subscription Text Source # | |
Defined in Mollie.API.Types |
class HasStartDate s a | s -> a where Source #
Instances
HasStartDate NewSubscription (Maybe Text) Source # | |
Defined in Mollie.API.Types | |
HasStartDate Subscription (Maybe Text) Source # | |
Defined in Mollie.API.Types |
class HasTimes s a | s -> a where Source #
Instances
HasTimes NewSubscription (Maybe Int) Source # | |
Defined in Mollie.API.Types | |
HasTimes Subscription (Maybe Int) Source # | |
Defined in Mollie.API.Types |
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 # | |
HasStatus Subscription SubscriptionStatus Source # | |
Defined in Mollie.API.Types |
data Subscription Source #
Representation of a subscription available at Mollie.
For more information see: https://www.mollie.com/en/docs/reference/subscriptions/get.
Subscription | |
|