Hello,
Is it a correct approach to apply the discounts from the hierarchical structure in the POP as price alterations with different priorities in the Product Price?
If "apply" mean doing the discount calculation, then yes, use alterations and put them in a bundled POP relationship. (alternatively use POPrelationship for more fine grained relationships), note that "priorities" doesn't exist in the TMF620 API, so you have to extend the API to have a priority (order, sequence) attribute. we had this discussion already.
to know more about alterations, I recommended reading G922 - product, which explains how to bundle prices, how to model alterations. Also search the communities, we discussed alterations in the past.
Please consider the use case from the attached image where in a Shopping Cart request we try to obtain Product Prices
Can you add this picture? I don't see it. The only image I see is a product catalogue and product inventory, not a shopping cart.
------------------------------
Kind regards,
Matthieu Hattab
Lyse Platform
------------------------------
Original Message:
Sent: Jul 31, 2023 08:54
From: Ionut Marcanasu
Subject: TMF663 Shopping Cart Use Case with Product Prices and Price Alterations
Hello,
Please consider the use case from the attached image where in a Shopping Cart request we try to obtain Product Prices from Product Offering Prices and we have bundled POPs.
Is it a correct approach to apply the discounts from the hierarchical structure in the POP as price alterations with different priorities in the Product Price?
In the Product Catalog the Product Offering Price resource has the bundledPopRelationship of type BundledProductOfferingPriceRelationship which allows for a hierarchical POP structure while in the Product Inventory for the Product Price resource I could not find a similar relationship to obtain matching hierarchical Product Prices.
------------------------------
Ionut Marcanasu
IBM Corporation
------------------------------