rewe-vereinscheine-fetcher/verein.py

22 lines
705 B
Python
Raw Normal View History

2023-05-15 09:30:56 +02:00
class Verein:
account_name: str
2023-05-15 10:32:52 +02:00
address: str
post_code: int
city: str
2023-05-15 09:30:56 +02:00
total_balance: int
available_balance: int
redeemed: int
2023-05-15 10:32:52 +02:00
def __init__(self, account_name: str, address: str, city: str, post_code: int, total_balance: int,
available_balance: int, redeemed: int):
2023-05-15 09:30:56 +02:00
self.account_name = account_name
2023-05-15 10:32:52 +02:00
self.address = address
self.post_code = post_code
self.city = city
2023-05-15 09:30:56 +02:00
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})'