Class QuotationGetItemsAggregationStrategy

java.lang.Object
com.skava.quotation.orchestration.aggregation.QuotationGetItemsAggregationStrategy
All Implemented Interfaces:
org.apache.camel.AggregationStrategy

@Component("quotationGetItemsAggregationStrategy") public class QuotationGetItemsAggregationStrategy extends Object implements org.apache.camel.AggregationStrategy

The Class CartGetItemsAggregationStrategy

This AggregationStrategy class is used to aggregate and construct the cart model

Version:
8.0
Author:
Infosys Equinox
See Also:
  • Field Details

  • Constructor Details

    • QuotationGetItemsAggregationStrategy

      public QuotationGetItemsAggregationStrategy()
  • Method Details

    • aggregate

      public org.apache.camel.Exchange aggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
      This method is used to aggregate two exchanges together into a single exchange.
      Specified by:
      aggregate in interface org.apache.camel.AggregationStrategy
      Parameters:
      oldExchange - Indicates the old exchange with cart response
      newExchange - Indicates the new exchange with cart response
      Returns:
      Returns new exchange with cart responses
    • checkValidInvalidResponse

      public void checkValidInvalidResponse(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
    • updateQuotePrice

      public void updateQuotePrice(org.apache.camel.Exchange newExchange, SFCart sfCart, CreateItemListRequest createItemList)
      This method is used to get price of sku
    • checkPriceAndUpdateQuote

      public void checkPriceAndUpdateQuote(org.apache.camel.Exchange newExchange, SFCart sfCart, CreateItemListRequest createItemList)
    • mergeInfoToQuoteItem

      public void mergeInfoToQuoteItem(SFCart sfCart, CreateItemListRequest createItemList)
      This method is used to merge price to quote sku