public static class XPFPromotionRule.XPFPromotionRuleBuilder extends Object
Modifier and Type | Method and Description |
---|---|
XPFPromotionRule.XPFPromotionRuleBuilder |
actions(@NonNull List<XPFPromotionElement> actions)
The list of actions for the promotion rule.
|
XPFPromotionRule |
build() |
XPFPromotionRule.XPFPromotionRuleBuilder |
carrotDescriptions(@NonNull XPFEntitySupplier<Map<Locale,String>> carrotDescriptions)
The carrot descriptions.
|
XPFPromotionRule.XPFPromotionRuleBuilder |
code(@NonNull String code)
The unique code of the promotion rule.
|
XPFPromotionRule.XPFPromotionRuleBuilder |
conditionalOperator(@NonNull XPFPromotionOperatorEnum conditionalOperator)
The conditional operator for the promotion rule.
|
XPFPromotionRule.XPFPromotionRuleBuilder |
conditions(@NonNull List<XPFPromotionElement> conditions)
The list of conditions for the promotion rule.
|
XPFPromotionRule.XPFPromotionRuleBuilder |
description(String description)
The description of the promotion rule.
|
XPFPromotionRule.XPFPromotionRuleBuilder |
displayNames(@NonNull XPFEntitySupplier<Map<Locale,String>> displayNames)
The rule display name.
|
XPFPromotionRule.XPFPromotionRuleBuilder |
endDate(String endDate)
The end date of the promotion rule.
|
XPFPromotionRule.XPFPromotionRuleBuilder |
name(@NonNull String name)
The name of the promotion rule.
|
XPFPromotionRule.XPFPromotionRuleBuilder |
startDate(@NonNull String startDate)
The start date of the promotion rule.
|
String |
toString() |
XPFPromotionRule.XPFPromotionRuleBuilder |
type(@NonNull String type)
The type of the promotion rule, which identifies the rule set and determines the promotion's context and behavior.
|
public XPFPromotionRule.XPFPromotionRuleBuilder code(@NonNull @NonNull String code)
this
.public XPFPromotionRule.XPFPromotionRuleBuilder name(@NonNull @NonNull String name)
this
.public XPFPromotionRule.XPFPromotionRuleBuilder type(@NonNull @NonNull String type)
This field is expected to contain one of these values:
This type influences:
this
.public XPFPromotionRule.XPFPromotionRuleBuilder description(String description)
this
.public XPFPromotionRule.XPFPromotionRuleBuilder startDate(@NonNull @NonNull String startDate)
this
.public XPFPromotionRule.XPFPromotionRuleBuilder endDate(String endDate)
this
.public XPFPromotionRule.XPFPromotionRuleBuilder conditionalOperator(@NonNull @NonNull XPFPromotionOperatorEnum conditionalOperator)
this
.public XPFPromotionRule.XPFPromotionRuleBuilder conditions(@NonNull @NonNull List<XPFPromotionElement> conditions)
this
.public XPFPromotionRule.XPFPromotionRuleBuilder actions(@NonNull @NonNull List<XPFPromotionElement> actions)
this
.public XPFPromotionRule.XPFPromotionRuleBuilder displayNames(@NonNull @NonNull XPFEntitySupplier<Map<Locale,String>> displayNames)
this
.public XPFPromotionRule.XPFPromotionRuleBuilder carrotDescriptions(@NonNull @NonNull XPFEntitySupplier<Map<Locale,String>> carrotDescriptions)
this
.public XPFPromotionRule build()
Copyright © 2025. All rights reserved.