Order Composition Updates On OMS UI

The Order Composition tab on the OMS UI displays how an order breaks down into different items via a flow chart. Due to multiple levels of order lines in a catalog hierarchy, only the starting levels load initially to prevent delays. You can expand levels by clicking the expand button and collapse them with the collapse button. The order planId is sent from the OMS UI to the AOPD server.

In AOPD services from planId, the services fetch the plans and generate a hierarchical response for the particular order. The response is then used to create the order composition chart on the UI.

To support Order Composition view, the following endpoint is introduced in AOPD:

/v1/plan/product/hierarchy

HTTP POST method is used for this endpoint. In request body, it takes AOPD plan and generates a JSON response that has parent-child relationship. The output of this endpoint is used to draw the Order Composition tree.