21 lines
705 B
Python
21 lines
705 B
Python
class Verein:
|
|
account_name: str
|
|
address: str
|
|
post_code: int
|
|
city: str
|
|
total_balance: int
|
|
available_balance: int
|
|
redeemed: int
|
|
|
|
def __init__(self, account_name: str, address: str, city: str, post_code: int, total_balance: int,
|
|
available_balance: int, redeemed: int):
|
|
self.account_name = account_name
|
|
self.address = address
|
|
self.post_code = post_code
|
|
self.city = city
|
|
self.total_balance = total_balance
|
|
self.available_balance = available_balance
|
|
self.redeemed = redeemed
|
|
|
|
def __str__(self):
|
|
return f'{self.account_name}: ({self.available_balance} + {self.redeemed} = {self.total_balance})'
|