Class PricingServiceOutputAdapter

java.lang.Object
org.bhn.promotion.core.adapter.PricingServiceOutputAdapter
All Implemented Interfaces:
OutputAdapter

@Component public class PricingServiceOutputAdapter extends Object implements OutputAdapter

PricingServiceOutputAdapter implementation.

  • Constructor Details

    • PricingServiceOutputAdapter

      public PricingServiceOutputAdapter()
  • Method Details

    • convertToEvaluationSummary

      public PromoSummary convertToEvaluationSummary(org.json.JSONObject data)

      Convert between data json to a PromoSummary object

      Specified by:
      convertToEvaluationSummary in interface OutputAdapter
      Parameters:
      data - input data to be converted into a promotion summary from evaluation response
      Returns:
      PromoSummary Promo summary containing promotion information
    • convertToRedemptionSummary

      public PromoSummary convertToRedemptionSummary(org.json.JSONObject data)

      Convert between data json to a PromoSummary object

      Specified by:
      convertToRedemptionSummary in interface OutputAdapter
      Parameters:
      data - input data to be converted into a promotion summary from redemption response
      Returns:
      PromoSummary Promo summary containing promotion information
    • convertToEligibilitySummary

      public PromoSummary convertToEligibilitySummary(org.json.JSONObject data)

      Convert between data json to a PromoSummary object

      Specified by:
      convertToEligibilitySummary in interface OutputAdapter
      Parameters:
      data - input data to be converted into a promotion summary from eligibility response
      Returns:
      PromoSummary Promo summary containing promotion information