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

Safe HaskellNone
LanguageHaskell2010

Mollie.API.Subscriptions

Synopsis

Documentation

subscriptionsPath :: Text Source #

Subscriptions resource's path, relative to API's versioned customer resource url.

newSubscription :: Double -> Text -> Text -> NewSubscription Source #

Helper to create a minimal new subscription. Defaults to an ongoing subscription.

createCustomerSubscription :: Text -> NewSubscription -> Mollie (Either ResponseError Subscription) Source #

Handler to create a new subscription for a specific customer.

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

getCustomerSubscription :: Text -> Text -> Mollie (Either ResponseError Subscription) Source #

Handler to get a subscription by its identifier from a specific customer.

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

getCustomerSubscriptions :: Text -> Int -> Int -> Mollie (Either ResponseError (List Subscription)) Source #

Handler to get a list of subscriptions for a specific customer. Because the list endpoint is paginated this handler requires an offset and a count. The maximum amount of subscriptions returned with a single call is 250.

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

cancelCustomerSubscription :: Text -> Text -> Mollie (Either ResponseError Subscription) Source #

Handler to cancel a subscription by its identifier for a specific customer.

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

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

Response errors which could happen when requesting resources from Mollie.