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


from mollie.api.error import Error
        body += str(response)

        settlement_id = next(response).id

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

        body += "<h1>Get settlement</h1>"
        response = client.settlements.get(settlement_id)
        body += str(response)

        # https://docs.mollie.com/reference/v2/settlements-api/get-next-settlement

        body += "<h1>Get next settlement</h1>"
        response = client.settlements.get("next")
        body += str(response)

        # https://docs.mollie.com/reference/v2/settlements-api/get-open-settlement

        body += "<h1>Get open settlement</h1>"
        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


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


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

        body += str(response)

        settlement_id = next(response).id

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

        body += "<h1>Get settlement</h1>"
        response = client.settlements.get(settlement_id)
        body += str(response)

        # https://docs.mollie.com/reference/v2/settlements-api/get-next-settlement

        body += "<h1>Get next settlement</h1>"
        response = client.settlements.get("next")
        body += str(response)

        # https://docs.mollie.com/reference/v2/settlements-api/get-open-settlement

        body += "<h1>Get open settlement</h1>"
        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>"