Adds api and subscriber
This commit is contained in:
1 parent
1da69a33c1
commit
154564b80a
2 files changed
+13
No files matched your search
Whitespace-only changes.
@@ -0,0 +1,13 @@
|
|||||||
|
class OrderSubscriber {
|
||||||
|
constructor({ economicService, eventBusService }) {
|
||||||
|
this.economicService_ = economicService
|
||||||
|
|
||||||
|
this.eventBus_ = eventBusService
|
||||||
|
|
||||||
|
this.eventBus_.subscribe("order.placed", async (order) => {
|
||||||
|
await this.economicService_.draftEconomicInvoice(order)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default OrderSubscriber
|
||||||
Reference in new issue
Block a user