From 30f0e36643ce1592f85ad346107a8506ba23cad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Kub=C3=AD=C4=8Dek?= Date: Mon, 3 Mar 2025 20:45:42 +0100 Subject: [PATCH] bank_account: update usages in docs --- superfaktura/bank_account.py | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/superfaktura/bank_account.py b/superfaktura/bank_account.py index fb188f6..bba7633 100644 --- a/superfaktura/bank_account.py +++ b/superfaktura/bank_account.py @@ -15,20 +15,16 @@ Functions: - (none) Usage: - import superfaktura.bank_account - - # Create an instance of BankAccount - bank = superfaktura.bank_account.BankAccount() - - # Retrieve a list of bank accounts - accounts = bank.list() - - # Get the default bank account - default_account = bank.default() - - # Create or update a bank account - data = {"account": "1234567890", "bank_code": "1234567890", "default": True} - bank.post(data) + >>> import superfaktura.bank_account + >>> # Create an instance of BankAccount + >>> bank = superfaktura.bank_account.BankAccount() + >>> # Retrieve a list of bank accounts + >>> accounts = bank.list() + >>> # Get the default bank account + >>> default_account = bank.default() + >>> # Create or update a bank account + >>> data = {"account": "1234567890", "bank_code": "1234567890", "default": True} + >>> bank.post(data) """ import json @@ -84,11 +80,11 @@ class BankAccount(SuperFakturaAPI): - post: Creates or updates a bank account. Usage: - bank = BankAccount() - accounts = bank.list() - default_account = bank.default() - data = {"account": "1234567890", "bank_code": "1234567890", "default": True} - bank.post(data) + >>> bank = BankAccount() + >>> accounts = bank.list() + >>> default_account = bank.default() + >>> data = {"account": "1234567890", "bank_code": "1234567890", "default": True} + >>> bank.post(data) """ def __init__(self):