Created
July 15, 2020 23:47
-
-
Save mariobittencourt/d356994c4566d1eaa303711f977aa275 to your computer and use it in GitHub Desktop.
Updated Order Created Apply
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 Order { | |
protected whenOrderCreated(event: OrderCreated): void { | |
this._items = event.items; | |
this._status = OrderStatus.OPEN; | |
this._amount = event.amount; | |
this._destination = event.destination; | |
this._customerId = event.customerId; | |
// New code | |
this.deliveryMethod = event.deliveryMethod; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment