Package org.bhn.promotion.core.adapter
Interface OutputAdapter
- All Known Implementing Classes:
PricingServiceOutputAdapter
public interface OutputAdapter
OutputAdapter interface.
-
Method Summary
Modifier and TypeMethodDescriptionconvertToEligibilitySummary(org.json.JSONObject data) Convert between data json to a PromoSummary objectconvertToEvaluationSummary(org.json.JSONObject data) Convert between data json to a PromoSummary objectconvertToRedemptionSummary(org.json.JSONObject data) Convert between data json to a PromoSummary object
-
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:
PromoSummaryPromo 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:
PromoSummaryPromo 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:
PromoSummaryPromo summary containing promotion information- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if json is not valid
-