Interface OfferEngineResponseBuilder<P extends com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedItemOfferAdjustment>

All Known Implementing Classes:
DefaultOfferEngineResponseBuilder

public interface OfferEngineResponseBuilder<P extends com.broadleafcommerce.promotion.offer.client.web.context.info.ProratedItemOfferAdjustment>
Tool to build a OrderResponse from the information provided via an EnhancedOrder. OrderResponse contains adjustment information based on any offers that have been applied to the order.
Author:
Chad Harchar (charchar)
  • Method Summary

    Modifier and Type
    Method
    Description
    com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponse<P>
    Builds a response object detailing the adjustment information on the provided order.
  • Method Details

    • build

      com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponse<P> build(@NonNull EnhancedOrder order)
      Builds a response object detailing the adjustment information on the provided order. Intended to be used after applying offers to the order.
      Parameters:
      order - the order from which to build the response DTO object.
      Returns:
      the response object detailing the adjustment information on the provided order