Interface CandidateOfferUtility
- All Known Implementing Classes:
DefaultCandidateOfferUtility
public interface CandidateOfferUtility
Utility for creating each of the different CandidateXOffer types:
CandidateOrderOffer,
CandidateItemOffer, CandidateFulfillmentGroupOffer.- Author:
- Chad Harchar (charchar)
-
Method Summary
Modifier and TypeMethodDescriptioncreateCandidateFulfillmentGroupOffer(EnhancedOrder order, Offer offer) Creates aCandidateFulfillmentGroupOfferfor the given order and offer.createCandidateFulfillmentItemOffer(EnhancedOrder order, Offer offer) Creates aCandidateItemOfferfor the given order and offer.createCandidateOrderItemOffer(EnhancedOrder order, Offer offer) Creates aCandidateItemOfferfor the given order and offer.createCandidateOrderOffer(EnhancedOrder order, Offer offer) Creates aCandidateOrderOfferfor the given order and offer.javax.money.MonetaryAmountparseDynamicOfferAmount(String dynamicOfferKey, EnhancedOrder order) Looks for a map of dynamicOfferKey to amount.
-
Method Details
-
createCandidateOrderOffer
Creates aCandidateOrderOfferfor the given order and offer.- Parameters:
order- the order to be used when building theCandidateOrderOfferoffer- the offer to be used when building theCandidateOrderOffer- Returns:
- the created
CandidateOrderOfferbased on the provided order and offer
-
createCandidateOrderItemOffer
Creates aCandidateItemOfferfor the given order and offer.- Parameters:
order- the order to be used when building theCandidateItemOfferoffer- the offer to be used when building theCandidateItemOffer- Returns:
- the created
CandidateItemOfferbased on the provided order and offer
-
createCandidateFulfillmentGroupOffer
CandidateFulfillmentGroupOffer createCandidateFulfillmentGroupOffer(EnhancedOrder order, Offer offer) Creates aCandidateFulfillmentGroupOfferfor the given order and offer.- Parameters:
order- the order to be used when building theCandidateFulfillmentGroupOfferoffer- the offer to be used when building theCandidateFulfillmentGroupOffer- Returns:
- the created
CandidateFulfillmentGroupOfferbased on the provided order and offer
-
createCandidateFulfillmentItemOffer
Creates aCandidateItemOfferfor the given order and offer.- Parameters:
order- the order to be used when building theCandidateItemOfferoffer- the offer to be used when building theCandidateItemOffer- Returns:
- the created
CandidateItemOfferbased on the provided order and offer
-
parseDynamicOfferAmount
Looks for a map of dynamicOfferKey to amount.- Parameters:
dynamicOfferKey- the key for which to find dynamic offer amounts.order- the order to search for dynamic offer amounts.- Returns:
- the parsed
MonetaryAmount
-