module Mollie.API.Refunds
( refundsPath
, getRefunds
, RefundStatus (..)
, Refund (..)
, ListLinks (..)
, List (..)
, ResponseError (..)
) where
import Data.Monoid
import qualified Data.Text as Text
import Mollie.API.Internal
import Mollie.API.Types
refundsPath :: Text.Text
refundsPath = "refunds"
getRefunds :: Int
-> Int
-> Mollie (Either ResponseError (List Refund))
getRefunds offset count = get path
where
path = refundsPath <> query
query = "?offset=" <> showT offset <> "&count=" <> showT count