Package org.bhn.promotion.core.adapter
Class PricingServiceOutputAdapter
java.lang.Object
org.bhn.promotion.core.adapter.PricingServiceOutputAdapter
- All Implemented Interfaces:
OutputAdapter
PricingServiceOutputAdapter implementation.
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
PricingServiceOutputAdapter
public PricingServiceOutputAdapter()
-
-
Method Details
-
convertToEvaluationSummary
Convert between data json to a PromoSummary object
- Specified by:
convertToEvaluationSummaryin interfaceOutputAdapter- Parameters:
data- input data to be converted into a promotion summary from evaluation response- Returns:
PromoSummaryPromo summary containing promotion information
-
convertToRedemptionSummary
Convert between data json to a PromoSummary object
- Specified by:
convertToRedemptionSummaryin interfaceOutputAdapter- Parameters:
data- input data to be converted into a promotion summary from redemption response- Returns:
PromoSummaryPromo summary containing promotion information
-
convertToEligibilitySummary
Convert between data json to a PromoSummary object
- Specified by:
convertToEligibilitySummaryin interfaceOutputAdapter- Parameters:
data- input data to be converted into a promotion summary from eligibility response- Returns:
PromoSummaryPromo summary containing promotion information
-