# Path: mollie/api/error.py
# class Error(Exception):
#     """Base exception."""
# 
#     pass


from mollie.api.error import Error
        response = client.settlements.get("open")
        body += str(response)

        # https://docs.mollie.com/reference/v2/settlements-api/list-settlement-payments

        body += "<h1>List settlement payments</h1>"
        response = client.settlement_payments.with_parent_id(settlement_id).list()
        body += str(response)

        # https://docs.mollie.com/reference/v2/settlements-api/list-settlement-refunds

        body += "<h1>List settlement refunds</h1>"
        response = client.settlement_refunds.with_parent_id(settlement_id).list()
        body += str(response)

        # https://docs.mollie.com/reference/v2/settlements-api/list-settlement-chargebacks

        body += "<h1>List settlement chargebacks</h1>"
        response = client.settlement_chargebacks.with_parent_id(settlement_id).list()
        body += str(response)

        # https://docs.mollie.com/reference/v2/settlements-api/list-settlement-captures

        body += "<h1>List settlement captures</h1>"
        settlement = client.settlements.get(settlement_id)
        response = client.settlement_captures.on(settlement).list()
        body += str(response)

        return body


# Path: mollie/api/error.py
# class Error(Exception):
#     """Base exception."""
# 
#     pass


# Path: examples/oauth/06-settlements.py
from mollie.api.error import Error

        response = client.settlements.get("open")
        body += str(response)

        # https://docs.mollie.com/reference/v2/settlements-api/list-settlement-payments

        body += "<h1>List settlement payments</h1>"
        response = client.settlement_payments.with_parent_id(settlement_id).list()
        body += str(response)

        # https://docs.mollie.com/reference/v2/settlements-api/list-settlement-refunds

        body += "<h1>List settlement refunds</h1>"
        response = client.settlement_refunds.with_parent_id(settlement_id).list()
        body += str(response)

        # https://docs.mollie.com/reference/v2/settlements-api/list-settlement-chargebacks

        body += "<h1>List settlement chargebacks</h1>"
        response = client.settlement_chargebacks.with_parent_id(settlement_id).list()
        body += str(response)

        # https://docs.mollie.com/reference/v2/settlements-api/list-settlement-captures

        body += "<h1>List settlement captures</h1>"
        settlement = client.settlements.get(settlement_id)
        response = client.settlement_captures.on(settlement).list()
        body += str(response)

        return body


    except Error as err: