Created
May 27, 2020 22:45
-
-
Save mariobittencourt/1509e84877d263ff352be47a8b79e9ab to your computer and use it in GitHub Desktop.
Payment Refunded event
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PaymentRefunded(DomainEvent): | |
def __init__(self, aggregate_id: str, amount_refunded: float, refund_id: str, occurred_at: str = datetime.utcnow().isoformat()): | |
super().__init__(aggregate_id, occurred_at) | |
self.amount_refunded = amount_refunded | |
self.refund_id = refund_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment