Revert "Auxiliary commit to revert individual files from 73da343c610420f68792306d5fcdd46f1c86edb8"

This reverts commit e925cf182acf7c18cfd27351e72baed328d43e2c.
This commit is contained in:
Richard Kubíček
2025-03-04 13:05:41 +01:00
parent 532c58cbd5
commit 2eedefec83
3 changed files with 5 additions and 12 deletions

View File

@@ -27,7 +27,6 @@ Usage:
>>> bank.post(data)
"""
import json
from dataclasses import dataclass, asdict
from typing import Optional
@@ -93,8 +92,7 @@ class BankAccount(SuperFakturaAPI):
def list(self) -> dict:
"""Retrieves a list of bank accounts."""
url = "bank_accounts/index"
bank_accounts = self.get(url)
return json.loads(bank_accounts)
return self.get(url)
def default(self) -> Optional[BankAccountModel]:
"""Retrieves the default bank account."""