Interface OutputAdapter

All Known Implementing Classes:
PricingServiceOutputAdapter

public interface OutputAdapter

OutputAdapter interface.

  • Method Details

    • convertToEvaluationSummary

      PromoSummary convertToEvaluationSummary(org.json.JSONObject data) throws com.fasterxml.jackson.core.JsonProcessingException

      Convert between data json to a PromoSummary object

      Parameters:
      data - input data to be converted into a promotion summary from evaluation response
      Returns:
      PromoSummary Promo summary containing promotion information
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - if json is not valid
    • convertToRedemptionSummary

      PromoSummary convertToRedemptionSummary(org.json.JSONObject data) throws com.fasterxml.jackson.core.JsonProcessingException

      Convert between data json to a PromoSummary object

      Parameters:
      data - input data to be converted into a promotion summary from redemption response
      Returns:
      PromoSummary Promo summary containing promotion information
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - if json is not valid
    • convertToEligibilitySummary

      PromoSummary convertToEligibilitySummary(org.json.JSONObject data) throws com.fasterxml.jackson.core.JsonProcessingException

      Convert between data json to a PromoSummary object

      Parameters:
      data - input data to be converted into a promotion summary from eligibility response
      Returns:
      PromoSummary Promo summary containing promotion information
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - if json is not valid