Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ChargebackAPI route
- getChargebacks :: ChargebackAPI route -> route :- ("chargebacks" :> Get '[HalJSON] (List Chargeback))
- getChargebacksPaginated :: ChargebackAPI route -> route :- ("chargebacks" :> (QueryParam "limit" Int :> (QueryParam "from" ChargebackId :> Get '[HalJSON] (List Chargeback))))
- getChargeback :: ChargebackAPI route -> route :- ("payments" :> (Capture "paymentId" PaymentId :> ("chargebacks" :> (Capture "id" ChargebackId :> Get '[HalJSON] Chargeback))))
Documentation
data ChargebackAPI route Source #
Instances
getChargebacks :: ChargebackAPI route -> route :- ("chargebacks" :> Get '[HalJSON] (List Chargeback)) Source #
Handler to get a paginated list of chargebacks. Applies default pagination for newest 250 chargebacks. See https://docs.mollie.com/reference/v2/chargebacks-api/list-chargebacks
getChargebacksPaginated :: ChargebackAPI route -> route :- ("chargebacks" :> (QueryParam "limit" Int :> (QueryParam "from" ChargebackId :> Get '[HalJSON] (List Chargeback)))) Source #
Handler to get a paginated list of chargebacks. Offset the results by passing the last chargeback ID in the from
query param. The chargeback with this ID is included in the result set as well. See https://docs.mollie.com/reference/v2/chargebacks-api/list-chargebacks
Example for fetching the last chargeback:
import Mollie.API import Mollie.API.Chargebacks env <- createEnv "test_mollieapikeyexample" let chargebacksResult = runMollie env (getChargebacksPaginated chargebackClient (Just 1) Nothing)
getChargeback :: ChargebackAPI route -> route :- ("payments" :> (Capture "paymentId" PaymentId :> ("chargebacks" :> (Capture "id" ChargebackId :> Get '[HalJSON] Chargeback)))) Source #
Handler to get a specific chargeback for a specific payment. See https://docs.mollie.com/reference/v2/chargebacks-api/get-chargeback