2024-11-28 - OrderPrice using linkPath flows: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
(Created page with "Service - Sell Offer Manager = 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 pa...")
 
No edit summary
Line 30: Line 30:
* one LinkPath step, to SellOfferPrice
* one LinkPath step, to SellOfferPrice
* comparison: high
* comparison: high
* comparisonValue: sellOfferQty|orderQty
* sort: upToValue
* sort: upToValue



Revision as of 05:55, 28 November 2024

Service - Sell Offer Manager

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