# Path: eldonationtracker/api/donation.py
# class Donation:
#     def __init__(self, json):
#     def name(self) -> str:
#     def message(self) -> str:
#     def amount(self) -> int:
#     def donor_id(self) -> str:
#     def avatar_url(self) -> str:
#     def donation_date(self) -> str:
#     def donation_id(self) -> str:
#     def json_to_attributes(json):
#     def __eq__(self, other):
#     def __str__(self):


from eldonationtracker.api import donation

donation1_json = {"displayName": "Donor 1", "participantID": '4939d', "amount": 34.51, "donorID": "FAKE3C59D235B4DA",
                  "avatarImageURL": "//image.png", "message": "Good job!",
                  "createdDateUTC": "2020-02-11T17:22:23.963+0000", "eventID": 547, "teamID": 50394,
                  "donationID": "861A3C59D235B4DB"}
donation1 = donation.Donation(donation1_json)

donation2_json = {"displayName": "Donor 1", "participantID": '4939d', "amount": 34.50, "donorID": "FAKE3C59D235B4DA",
                  "avatarImageURL": "//image.png",
                  "createdDateUTC": "2020-02-11T17:22:23.963+0000", "eventID": 547, "teamID": 50394,
                  "donationID": "861A3C59D235B4DC"}
donation2 = donation.Donation(donation2_json)
donation2_equal = donation.Donation(donation1_json)

donation_anonymous_json = {"displayName": None, "participantID": '4939d', "amount": 34.51, "message": "Good job!",
                           "donorID": "FAKE3C59D235B4DA", "avatarImageURL": "//image.png",
                           "createdDateUTC": "2020-02-11T17:22:23.963+0000", "eventID": 547, "teamID": 50394,
                           "donationID": "861A3C59D235B4DD"}
donation_anonymous = donation.Donation(donation_anonymous_json)

donation_no_money_json = {"displayName": "Donor 1", "participantID": '4939d', "amount": None, "message": "Good job!",
                          "donorID": "FAKE3C59D235B4DA", "avatarImageURL": "//image.png",
                          "createdDateUTC": "2020-02-11T17:22:23.963+0000", "eventID": 547, "teamID": 50394,
                          "donationID": "861A3C59D235B4DE"}
donation_no_money = donation.Donation(donation_no_money_json)

donation1_whole_dollar_json = {"displayName": "Donor 1", "participantID": '4939d', "amount": 34,
                               "donorID": "FAKE3C59D235B4DA", "avatarImageURL": "//image.png",
                               "createdDateUTC": "2020-02-11T17:22:23.963+0000", "eventID": 547, "teamID": 50394,
                               "donationID": "861A3C59D235B4DF"}

# Path: eldonationtracker/api/donation.py
# class Donation:
#     def __init__(self, json):
#     def name(self) -> str:
#     def message(self) -> str:
#     def amount(self) -> int:
#     def donor_id(self) -> str:
#     def avatar_url(self) -> str:
#     def donation_date(self) -> str:
#     def donation_id(self) -> str:
#     def json_to_attributes(json):
#     def __eq__(self, other):
#     def __str__(self):


# Path: eldonationtracker/tests/test_donation.py
from eldonationtracker.api import donation


donation1_json = {"displayName": "Donor 1", "participantID": '4939d', "amount": 34.51, "donorID": "FAKE3C59D235B4DA",
                  "avatarImageURL": "//image.png", "message": "Good job!",
                  "createdDateUTC": "2020-02-11T17:22:23.963+0000", "eventID": 547, "teamID": 50394,
                  "donationID": "861A3C59D235B4DB"}
donation1 = donation.Donation(donation1_json)

donation2_json = {"displayName": "Donor 1", "participantID": '4939d', "amount": 34.50, "donorID": "FAKE3C59D235B4DA",
                  "avatarImageURL": "//image.png",
                  "createdDateUTC": "2020-02-11T17:22:23.963+0000", "eventID": 547, "teamID": 50394,
                  "donationID": "861A3C59D235B4DC"}
donation2 = donation.Donation(donation2_json)
donation2_equal = donation.Donation(donation1_json)

donation_anonymous_json = {"displayName": None, "participantID": '4939d', "amount": 34.51, "message": "Good job!",
                           "donorID": "FAKE3C59D235B4DA", "avatarImageURL": "//image.png",
                           "createdDateUTC": "2020-02-11T17:22:23.963+0000", "eventID": 547, "teamID": 50394,
                           "donationID": "861A3C59D235B4DD"}
donation_anonymous = donation.Donation(donation_anonymous_json)

donation_no_money_json = {"displayName": "Donor 1", "participantID": '4939d', "amount": None, "message": "Good job!",
                          "donorID": "FAKE3C59D235B4DA", "avatarImageURL": "//image.png",
                          "createdDateUTC": "2020-02-11T17:22:23.963+0000", "eventID": 547, "teamID": 50394,
                          "donationID": "861A3C59D235B4DE"}
donation_no_money = donation.Donation(donation_no_money_json)

donation1_whole_dollar_json = {"displayName": "Donor 1", "participantID": '4939d', "amount": 34,
                               "donorID": "FAKE3C59D235B4DA", "avatarImageURL": "//image.png",
                               "createdDateUTC": "2020-02-11T17:22:23.963+0000", "eventID": 547, "teamID": 50394,
                               "donationID": "861A3C59D235B4DF"}

donation1_whole_dollar = donation.Donation(donation1_whole_dollar_json)