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

Arguments

:: Double

amount

-> Text

interval

-> Text

description

-> NewSubscription 

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

The interval is in human readable format and support the following values: `1 day/n days`, `1 week/n weeks`, `1 month/n months` where n > 1.

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

Arguments

:: Text

customerId

-> Text

subscriptionId

-> Mollie (Either ResponseError Subscription) 

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

Arguments

:: Text

customerId

-> Int

offset

-> Int

count

-> Mollie (Either ResponseError (List Subscription)) 

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

Arguments

:: Text

customerId

-> Text

subscriptionId

-> Mollie (Either ResponseError Subscription) 

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

Response errors which could happen when requesting resources from Mollie.

Instances
Show ResponseError Source # 
Instance details

Defined in Mollie.API.Types