2024-11-28 - OrderPrice using linkPath flows
Jump to navigation
Jump to search
Order subtotal
Notes:
- can receive multiple sellOfferQuantities
- will validate that all sellOffers in sellOfferQuantities share the same DeliveryMethodLink (and PaymentMethodLink)
Process
Inital flow
- SellOfferManager recieves request with multiple sellOfferQuantities
- calculates orderQty
- per sellOfferId send to SellOffer Handler service (SellOfferStandard) with sellOfferQty and orderQty
- SellOfferStandard passes to SellOfferPrices service
- create two aggregated SortResult requests, one for sellOfferQty, another for orderQty
Base SortResult request
- objType: SellOfferPricing
- translate filter element for SellOfferId
- logical filter element for sellOfferPricing.type = sellOfferQty|orderQty
- requiredData: linkPath
- sortField: Price (from SellOfferPrice objType)
LinkPath
- field: Price (from SellOfferPrice objType)
- one LinkPath step, to SellOfferPrice
- comparison: high
- comparisonValue: sellOfferQty|orderQty
- sort: upToValue
After base SortResult complete
- aggregate minimum Price