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

Safe HaskellNone
LanguageHaskell2010

Mollie.API.Methods

Synopsis

Documentation

getMethod :: MethodAPI route -> route :- ("methods" :> (Capture "id" PaymentMethod :> Get '[HalJSON] Method)) Source #

Handler to get a payment method by its identifier. See https://docs.mollie.com/reference/v2/methods-api/get-method

getMethods :: MethodAPI route -> route :- ("methods" :> Get '[HalJSON] (List Method)) Source #

Handler to get a list of payment methods. See https://docs.mollie.com/reference/v2/methods-api/list-methods

data MethodAPI route Source #

Instances
Generic (MethodAPI route) Source # 
Instance details

Defined in Mollie.API.Methods

Associated Types

type Rep (MethodAPI route) :: Type -> Type #

Methods

from :: MethodAPI route -> Rep (MethodAPI route) x #

to :: Rep (MethodAPI route) x -> MethodAPI route #

type Rep (MethodAPI route) Source # 
Instance details

Defined in Mollie.API.Methods

type Rep (MethodAPI route) = D1 (MetaData "MethodAPI" "Mollie.API.Methods" "mollie-api-haskell-2.0.0.0-79op8QUDPdyAagRpBQOely" False) (C1 (MetaCons "MethodAPI" PrefixI True) (S1 (MetaSel (Just "getMethods") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (route :- ("methods" :> Get (HalJSON ': ([] :: [Type])) (List Method)))) :*: S1 (MetaSel (Just "getMethod") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (route :- ("methods" :> (Capture "id" PaymentMethod :> Get (HalJSON ': ([] :: [Type])) Method))))))