15 lines
506 B
Python
15 lines
506 B
Python
|
class Verein:
|
||
|
account_name: str
|
||
|
total_balance: int
|
||
|
available_balance: int
|
||
|
redeemed: int
|
||
|
|
||
|
def __init__(self, account_name: str, total_balance: int, available_balance: int, redeemed: int):
|
||
|
self.account_name = account_name
|
||
|
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})'
|