Interface AdvancedOffer
- All Superinterfaces:
Serializable
Add advanced offer support to an Offer
- Author:
- Priyesh Patel
-
Method Summary
Modifier and TypeMethodDescriptiongetActivePromotionMessagesByType(PromotionMessageType promotionMessageType) Returns the activePromotionMessages for this offer byPromotionMessageTypegetActivePromotionMessagesByTypeAndPlacement(PromotionMessageType promotionMessageType, PromotionMessagePlacementType placementType) Returns the activePromotionMessages for this offer byPromotionMessageTypeandPromotionMessagePlacementTypeReturns whether or not this offer has aPromotionMessageReturns theOfferProrationTypeof this offerList of Tiers an offer supports.Returns theOfferTimeZoneTypeReturns theAdvancedOfferPromotionMessageXrefs of this offerbooleanReturns whether or not this offer has aPromotionMessageof a particular typebooleanReturns true if this is a tiered offer meaning that the amount depends on the quantity being purchased.voidsetHasPromotionMessage(Boolean hasPromotionMessage) Sets whether or not this offer has aPromotionMessagevoidsetOfferProrationType(OfferProrationType offerProrationType) Sets theOfferProrationTypefor this offervoidsetOfferTiers(List<OfferTier> offerTiers) Sets the list of Tiers.voidsetOfferTimeZoneType(OfferTimeZoneType offerTimeZoneType) Sets theOfferTimeZoneTypevoidsetPromotionMessageXrefs(List<AdvancedOfferPromotionMessageXref> promotionMessageXrefs) Sets theAdvancedOfferPromotionMessageXrefs for this offervoidsetTieredOffer(boolean isTieredOffer) Sets whether or not this is a tiered offer.
-
Method Details
-
getOfferTiers
List of Tiers an offer supports. Implemented in external module.- Returns:
-
setOfferTiers
Sets the list of Tiers.- Parameters:
offerTiers-
-
isTieredOffer
boolean isTieredOffer()Returns true if this is a tiered offer meaning that the amount depends on the quantity being purchased.- Returns:
-
setTieredOffer
void setTieredOffer(boolean isTieredOffer) Sets whether or not this is a tiered offer.- Parameters:
isTieredOffer-
-
getOfferTimeZoneType
OfferTimeZoneType getOfferTimeZoneType()Returns theOfferTimeZoneType- Returns:
-
setOfferTimeZoneType
Sets theOfferTimeZoneType- Parameters:
offerTimeZoneType-
-
getOfferProrationType
OfferProrationType getOfferProrationType()Returns theOfferProrationTypeof this offer- Returns:
-
setOfferProrationType
Sets theOfferProrationTypefor this offer- Parameters:
offerProrationType-
-
getHasPromotionMessage
Boolean getHasPromotionMessage()Returns whether or not this offer has aPromotionMessage- Returns:
-
setHasPromotionMessage
Sets whether or not this offer has aPromotionMessage- Parameters:
hasPromotionMessage-
-
hasPromotionMessageOfType
Returns whether or not this offer has aPromotionMessageof a particular type- Returns:
-
getPromotionMessageXrefs
List<AdvancedOfferPromotionMessageXref> getPromotionMessageXrefs()Returns theAdvancedOfferPromotionMessageXrefs of this offer- Returns:
-
setPromotionMessageXrefs
Sets theAdvancedOfferPromotionMessageXrefs for this offer- Parameters:
promotionMessageXrefs-
-
getActivePromotionMessagesByType
Returns the activePromotionMessages for this offer byPromotionMessageType- Returns:
- filtered
PromotionMessages
-
getActivePromotionMessagesByTypeAndPlacement
List<PromotionMessage> getActivePromotionMessagesByTypeAndPlacement(PromotionMessageType promotionMessageType, PromotionMessagePlacementType placementType) Returns the activePromotionMessages for this offer byPromotionMessageTypeandPromotionMessagePlacementType- Returns:
- filtered
PromotionMessages
-