In order to support UIOR-532, data consistency needed : Update "vendorCode" in related purchase orders
Solution described in MODORDERS-399 - Spike : Research information about pub/sub module
We should use message driven approach, which based on pub/sub module.
When vendor code is changed from Organization App, then message about changing "vendorCode" send to pub/sub (VendorCodeChangedEvent). Message handler in mod-orders should be subscribed on "VendorCodeChangedEvent" and makes appropriate update in purchase orders.
Message handler created
Pub/Sub is used
Unit test created
API test created