mirror of
				https://github.com/Eledio/superfaktura-client.git
				synced 2025-10-31 16:11:20 +01:00 
			
		
		
		
	bank_account: update usages in docs
This commit is contained in:
		| @@ -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): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user