The PromiseDao only supports one source for retrieving promises: the Delivery Promise Service (DPS). We already need to get promises from another service, the Order Fulfillment Service (OFS), so this is a good time to make the design more flexible.
- The CS representatives will be able to compare promises from different services to verify if promises are on track.
- The CS representatives will be able to confirm broken promises, communicate to customers where order got off track.
I'm wondering about "getDeliveryPromiseByOrderItemId" as the interface method name. As I understand it, the Promise returned may not be related to delivery (for example, from
OrderFulfullmentService
). What do you think about "getPromiseByOrderItemId" as an alternative, since the object returned will be aPromise
?