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


from mollie.api.error import Error

INVOICE_ID = "inv_xBEbP9rvAq"


def main(client):
    try:

        # https://docs.mollie.com/reference/v2/invoices-api/list-invoices

        body = "<h1>List invoices</h1>"
        body += str(client.invoices.list())

        # https://docs.mollie.com/reference/v2/invoices-api/get-invoice

        # body += '<h1>Get invoice</h1>'
        # body += str(client.invoices.get(INVOICE_ID))

        return body


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


# Path: examples/oauth/01-invoices.py
from mollie.api.error import Error


INVOICE_ID = "inv_xBEbP9rvAq"


def main(client):
    try:

        # https://docs.mollie.com/reference/v2/invoices-api/list-invoices

        body = "<h1>List invoices</h1>"
        body += str(client.invoices.list())

        # https://docs.mollie.com/reference/v2/invoices-api/get-invoice

        # body += '<h1>Get invoice</h1>'
        # body += str(client.invoices.get(INVOICE_ID))

        return body


    except Error as err: