Skip to content

Instantly share code, notes, and snippets.

@mariobittencourt
Created May 27, 2020 22:45
Show Gist options
  • Save mariobittencourt/1509e84877d263ff352be47a8b79e9ab to your computer and use it in GitHub Desktop.
Save mariobittencourt/1509e84877d263ff352be47a8b79e9ab to your computer and use it in GitHub Desktop.
Payment Refunded event
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