bank_account: update usages in docs

This commit is contained in:
Richard Kubíček
2025-03-03 20:45:42 +01:00
parent 89536bcb83
commit 30f0e36643

View File

@@ -15,20 +15,16 @@ Functions:
- (none) - (none)
Usage: Usage:
import superfaktura.bank_account >>> import superfaktura.bank_account
>>> # Create an instance of BankAccount
# Create an instance of BankAccount >>> bank = superfaktura.bank_account.BankAccount()
bank = superfaktura.bank_account.BankAccount() >>> # Retrieve a list of bank accounts
>>> accounts = bank.list()
# Retrieve a list of bank accounts >>> # Get the default bank account
accounts = bank.list() >>> default_account = bank.default()
>>> # Create or update a bank account
# Get the default bank account >>> data = {"account": "1234567890", "bank_code": "1234567890", "default": True}
default_account = bank.default() >>> bank.post(data)
# Create or update a bank account
data = {"account": "1234567890", "bank_code": "1234567890", "default": True}
bank.post(data)
""" """
import json import json
@@ -84,11 +80,11 @@ class BankAccount(SuperFakturaAPI):
- post: Creates or updates a bank account. - post: Creates or updates a bank account.
Usage: Usage:
bank = BankAccount() >>> bank = BankAccount()
accounts = bank.list() >>> accounts = bank.list()
default_account = bank.default() >>> default_account = bank.default()
data = {"account": "1234567890", "bank_code": "1234567890", "default": True} >>> data = {"account": "1234567890", "bank_code": "1234567890", "default": True}
bank.post(data) >>> bank.post(data)
""" """
def __init__(self): def __init__(self):