Command explicit created
promt
@@ -366,6 +366,10 @@ with the orders created by the system in response.
class CreateNewOrder(Command):
+
+ class Created(Command.Created):
+ pass
+
@attribute
def order_id(self):
pass
@@ -434,8 +438,6 @@ by setting an ``Order`` as paid.
@staticmethod
def policy(repository, event):
if isinstance(event, CreateNewOrder.Created):
- command_class = resolve_topic(event.originator_topic)
- if command_class is CreateNewOrder:
return Order.__create__(command_id=event.originator_id)
elif isinstance(event, Reservation.Created):
