rewe-vereinscheine-fetcher/verein.py

15 lines
506 B
Python
Raw Normal View History

2023-05-15 09:30:56 +02:00
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})'