diff --git a/example/list_clients.py b/example/list_clients.py index 36290d9..c12b04a 100644 --- a/example/list_clients.py +++ b/example/list_clients.py @@ -9,7 +9,7 @@ def main(): response = client.clients.list_clients() print(response.json()) - response = client.clients.create_client(name="nerd") + response = client.clients.create_client(name="dock") print(f"Created user with the ID of {response.data.client_id}") @@ -18,5 +18,7 @@ def main(): response = client.clients.list_clients() print(response.json()) + + if __name__ == "__main__": main() diff --git a/myfinances/__pycache__/__init__.cpython-311.pyc b/myfinances/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index c818037..0000000 Binary files a/myfinances/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/myfinances/__pycache__/__init__.cpython-312.pyc b/myfinances/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index 430180f..0000000 Binary files a/myfinances/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/myfinances/__pycache__/base_service.cpython-312.pyc b/myfinances/__pycache__/base_service.cpython-312.pyc deleted file mode 100644 index 3468d13..0000000 Binary files a/myfinances/__pycache__/base_service.cpython-312.pyc and /dev/null differ diff --git a/myfinances/__pycache__/client.cpython-312.pyc b/myfinances/__pycache__/client.cpython-312.pyc deleted file mode 100644 index 5ef9f8b..0000000 Binary files a/myfinances/__pycache__/client.cpython-312.pyc and /dev/null differ diff --git a/myfinances/__pycache__/main.cpython-311.pyc b/myfinances/__pycache__/main.cpython-311.pyc deleted file mode 100644 index 67c0cc0..0000000 Binary files a/myfinances/__pycache__/main.cpython-311.pyc and /dev/null differ diff --git a/myfinances/__pycache__/models.cpython-312.pyc b/myfinances/__pycache__/models.cpython-312.pyc deleted file mode 100644 index b3bd3ca..0000000 Binary files a/myfinances/__pycache__/models.cpython-312.pyc and /dev/null differ diff --git a/myfinances/clients/__pycache__/__init__.cpython-312.pyc b/myfinances/clients/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index ae51b74..0000000 Binary files a/myfinances/clients/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/myfinances/clients/__pycache__/models.cpython-312.pyc b/myfinances/clients/__pycache__/models.cpython-312.pyc deleted file mode 100644 index 371d2f5..0000000 Binary files a/myfinances/clients/__pycache__/models.cpython-312.pyc and /dev/null differ diff --git a/myfinances/clients/__pycache__/service.cpython-312.pyc b/myfinances/clients/__pycache__/service.cpython-312.pyc deleted file mode 100644 index b7f102a..0000000 Binary files a/myfinances/clients/__pycache__/service.cpython-312.pyc and /dev/null differ diff --git a/myfinances/finance/__pycache__/__init__.cpython-312.pyc b/myfinances/finance/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index c43931f..0000000 Binary files a/myfinances/finance/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/myfinances/finance/invoices/__pycache__/__init__.cpython-312.pyc b/myfinances/finance/invoices/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index 67de218..0000000 Binary files a/myfinances/finance/invoices/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/myfinances/finance/invoices/__pycache__/models.cpython-312.pyc b/myfinances/finance/invoices/__pycache__/models.cpython-312.pyc deleted file mode 100644 index efc07d6..0000000 Binary files a/myfinances/finance/invoices/__pycache__/models.cpython-312.pyc and /dev/null differ diff --git a/myfinances/finance/invoices/__pycache__/service.cpython-312.pyc b/myfinances/finance/invoices/__pycache__/service.cpython-312.pyc deleted file mode 100644 index aaa6448..0000000 Binary files a/myfinances/finance/invoices/__pycache__/service.cpython-312.pyc and /dev/null differ diff --git a/myfinances/finance/receipts/__pycache__/__init__.cpython-312.pyc b/myfinances/finance/receipts/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index f32eaae..0000000 Binary files a/myfinances/finance/receipts/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/myfinances/finance/receipts/__pycache__/models.cpython-312.pyc b/myfinances/finance/receipts/__pycache__/models.cpython-312.pyc deleted file mode 100644 index c516ad9..0000000 Binary files a/myfinances/finance/receipts/__pycache__/models.cpython-312.pyc and /dev/null differ diff --git a/myfinances/finance/receipts/__pycache__/service.cpython-312.pyc b/myfinances/finance/receipts/__pycache__/service.cpython-312.pyc deleted file mode 100644 index 34b9465..0000000 Binary files a/myfinances/finance/receipts/__pycache__/service.cpython-312.pyc and /dev/null differ diff --git a/myfinances/models.py b/myfinances/models.py index bd7ea07..74c8015 100644 --- a/myfinances/models.py +++ b/myfinances/models.py @@ -9,7 +9,7 @@ class Meta(BaseModel): success: bool status_code: int - content: dict = None + content: Optional[str] = None class MyFinancesResponse(BaseModel, Generic[T]): diff --git a/tests/__pycache__/__init__.cpython-312.pyc b/tests/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index 402ab96..0000000 Binary files a/tests/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/tests/__pycache__/new_test.cpython-312-pytest-8.3.3.pyc b/tests/__pycache__/new_test.cpython-312-pytest-8.3.3.pyc deleted file mode 100644 index bc68d06..0000000 Binary files a/tests/__pycache__/new_test.cpython-312-pytest-8.3.3.pyc and /dev/null differ diff --git a/tests/__pycache__/test_clients.cpython-312-pytest-8.3.3.pyc b/tests/__pycache__/test_clients.cpython-312-pytest-8.3.3.pyc deleted file mode 100644 index 938178b..0000000 Binary files a/tests/__pycache__/test_clients.cpython-312-pytest-8.3.3.pyc and /dev/null differ diff --git a/tests/__pycache__/test_finance.cpython-312-pytest-8.3.3.pyc b/tests/__pycache__/test_finance.cpython-312-pytest-8.3.3.pyc deleted file mode 100644 index 6021d20..0000000 Binary files a/tests/__pycache__/test_finance.cpython-312-pytest-8.3.3.pyc and /dev/null differ diff --git a/tests/__pycache__/test_invoice.cpython-312-pytest-8.3.3.pyc b/tests/__pycache__/test_invoice.cpython-312-pytest-8.3.3.pyc deleted file mode 100644 index 76261f3..0000000 Binary files a/tests/__pycache__/test_invoice.cpython-312-pytest-8.3.3.pyc and /dev/null differ diff --git a/tests/__pycache__/test_myfinances_client.cpython-312-pytest-8.3.3.pyc b/tests/__pycache__/test_myfinances_client.cpython-312-pytest-8.3.3.pyc deleted file mode 100644 index a885ecb..0000000 Binary files a/tests/__pycache__/test_myfinances_client.cpython-312-pytest-8.3.3.pyc and /dev/null differ diff --git a/tests/__pycache__/test_receipts.cpython-312-pytest-8.3.3.pyc b/tests/__pycache__/test_receipts.cpython-312-pytest-8.3.3.pyc deleted file mode 100644 index a5dd1a3..0000000 Binary files a/tests/__pycache__/test_receipts.cpython-312-pytest-8.3.3.pyc and /dev/null differ