Package io.voucherify.client.model
Enum Class ValidationRule.ContextTypeEnum
java.lang.Object
java.lang.Enum<ValidationRule.ContextTypeEnum>
io.voucherify.client.model.ValidationRule.ContextTypeEnum
- All Implemented Interfaces:
Serializable,Comparable<ValidationRule.ContextTypeEnum>,Constable
- Enclosing class:
- ValidationRule
Validation rule context type. | **Context Type** | **Definition** | |:---|:---| | earning_rule.order.paid | | | earning_rule.custom_event | | | earning_rule.customer.segment.entered | | | campaign.discount_coupons | | | campaign.discount_coupons.discount.apply_to_order | | | campaign.discount_coupons.discount.apply_to_items | | | campaign.discount_coupons.discount.apply_to_items_proportionally | | | campaign.discount_coupons.discount.apply_to_items_proportionally_by_quantity | | | campaign.discount_coupons.discount.fixed.apply_to_items | | | campaign.gift_vouchers | | | campaign.gift_vouchers.gift.apply_to_order | | | campaign.gift_vouchers.gift.apply_to_items | | | campaign.referral_program | | | campaign.referral_program.discount.apply_to_order | | | campaign.referral_program.discount.apply_to_items | | | campaign.referral_program.discount.apply_to_items_proportionally | | | campaign.referral_program.discount.apply_to_items_proportionally_by_quantity | | | campaign.referral_program.discount.fixed.apply_to_items | | | campaign.promotion | | | campaign.promotion.discount.apply_to_order | | | campaign.promotion.discount.apply_to_items | | | campaign.promotion.discount.apply_to_items_proportionally | | | campaign.promotion.discount.apply_to_items_proportionally_by_quantity | | | campaign.promotion.discount.fixed.apply_to_items | | | campaign.loyalty_program | | | voucher.discount_voucher | | | voucher.discount_voucher.discount.apply_to_order | | | voucher.discount_voucher.discount.apply_to_items | | | voucher.discount_voucher.discount.apply_to_items_proportionally | | | voucher.discount_voucher.discount.apply_to_items_proportionally_by_quantity | | | voucher.discount_voucher.discount.fixed.apply_to_items | | | voucher.gift_voucher | | | voucher.gift_voucher.gift.apply_to_order | | | voucher.gift_voucher.gift.apply_to_items | | | voucher.loyalty_card | | | distribution.custom_event | | | reward_assignment.pay_with_points | | | global | |
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetValue()toString()Returns the enum constant of this class with the specified name.static ValidationRule.ContextTypeEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EARNING_RULE_ORDER_PAID
-
EARNING_RULE_CUSTOM_EVENT
-
EARNING_RULE_CUSTOMER_SEGMENT_ENTERED
-
EARNING_RULE_CUSTOMER_TIER_JOINED
-
EARNING_RULE_CUSTOMER_TIER_LEFT
-
EARNING_RULE_CUSTOMER_TIER_UPGRADED
-
EARNING_RULE_CUSTOMER_TIER_DOWNGRADED
-
EARNING_RULE_CUSTOMER_TIER_PROLONGED
-
CAMPAIGN_DISCOUNT_COUPONS
-
CAMPAIGN_DISCOUNT_COUPONS_DISCOUNT_APPLY_TO_ORDER
public static final ValidationRule.ContextTypeEnum CAMPAIGN_DISCOUNT_COUPONS_DISCOUNT_APPLY_TO_ORDER -
CAMPAIGN_DISCOUNT_COUPONS_DISCOUNT_APPLY_TO_ITEMS
public static final ValidationRule.ContextTypeEnum CAMPAIGN_DISCOUNT_COUPONS_DISCOUNT_APPLY_TO_ITEMS -
CAMPAIGN_DISCOUNT_COUPONS_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY
public static final ValidationRule.ContextTypeEnum CAMPAIGN_DISCOUNT_COUPONS_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY -
CAMPAIGN_DISCOUNT_COUPONS_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY_BY_QUANTITY
public static final ValidationRule.ContextTypeEnum CAMPAIGN_DISCOUNT_COUPONS_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY_BY_QUANTITY -
CAMPAIGN_DISCOUNT_COUPONS_DISCOUNT_APPLY_TO_ITEMS_BY_QUANTITY
public static final ValidationRule.ContextTypeEnum CAMPAIGN_DISCOUNT_COUPONS_DISCOUNT_APPLY_TO_ITEMS_BY_QUANTITY -
CAMPAIGN_DISCOUNT_COUPONS_DISCOUNT_FIXED_APPLY_TO_ITEMS
public static final ValidationRule.ContextTypeEnum CAMPAIGN_DISCOUNT_COUPONS_DISCOUNT_FIXED_APPLY_TO_ITEMS -
CAMPAIGN_DISCOUNT_COUPONS_DISCOUNT_PERCENT_APPLY_TO_ITEMS
public static final ValidationRule.ContextTypeEnum CAMPAIGN_DISCOUNT_COUPONS_DISCOUNT_PERCENT_APPLY_TO_ITEMS -
CAMPAIGN_GIFT_VOUCHERS
-
CAMPAIGN_GIFT_VOUCHERS_GIFT_APPLY_TO_ORDER
-
CAMPAIGN_GIFT_VOUCHERS_GIFT_APPLY_TO_ITEMS
-
CAMPAIGN_REFERRAL_PROGRAM
-
CAMPAIGN_REFERRAL_PROGRAM_DISCOUNT_APPLY_TO_ORDER
public static final ValidationRule.ContextTypeEnum CAMPAIGN_REFERRAL_PROGRAM_DISCOUNT_APPLY_TO_ORDER -
CAMPAIGN_REFERRAL_PROGRAM_DISCOUNT_APPLY_TO_ITEMS
public static final ValidationRule.ContextTypeEnum CAMPAIGN_REFERRAL_PROGRAM_DISCOUNT_APPLY_TO_ITEMS -
CAMPAIGN_REFERRAL_PROGRAM_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY
public static final ValidationRule.ContextTypeEnum CAMPAIGN_REFERRAL_PROGRAM_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY -
CAMPAIGN_REFERRAL_PROGRAM_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY_BY_QUANTITY
public static final ValidationRule.ContextTypeEnum CAMPAIGN_REFERRAL_PROGRAM_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY_BY_QUANTITY -
CAMPAIGN_REFERRAL_PROGRAM_DISCOUNT_APPLY_TO_ITEMS_BY_QUANTITY
public static final ValidationRule.ContextTypeEnum CAMPAIGN_REFERRAL_PROGRAM_DISCOUNT_APPLY_TO_ITEMS_BY_QUANTITY -
CAMPAIGN_REFERRAL_PROGRAM_DISCOUNT_FIXED_APPLY_TO_ITEMS
public static final ValidationRule.ContextTypeEnum CAMPAIGN_REFERRAL_PROGRAM_DISCOUNT_FIXED_APPLY_TO_ITEMS -
CAMPAIGN_REFERRAL_PROGRAM_DISCOUNT_PERCENT_APPLY_TO_ITEMS
public static final ValidationRule.ContextTypeEnum CAMPAIGN_REFERRAL_PROGRAM_DISCOUNT_PERCENT_APPLY_TO_ITEMS -
CAMPAIGN_PROMOTION
-
CAMPAIGN_PROMOTION_DISCOUNT_APPLY_TO_ORDER
-
CAMPAIGN_PROMOTION_DISCOUNT_APPLY_TO_ITEMS
-
CAMPAIGN_PROMOTION_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY
public static final ValidationRule.ContextTypeEnum CAMPAIGN_PROMOTION_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY -
CAMPAIGN_PROMOTION_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY_BY_QUANTITY
public static final ValidationRule.ContextTypeEnum CAMPAIGN_PROMOTION_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY_BY_QUANTITY -
CAMPAIGN_PROMOTION_DISCOUNT_APPLY_TO_ITEMS_BY_QUANTITY
public static final ValidationRule.ContextTypeEnum CAMPAIGN_PROMOTION_DISCOUNT_APPLY_TO_ITEMS_BY_QUANTITY -
CAMPAIGN_PROMOTION_DISCOUNT_FIXED_APPLY_TO_ITEMS
-
CAMPAIGN_PROMOTION_DISCOUNT_PERCENT_APPLY_TO_ITEMS
public static final ValidationRule.ContextTypeEnum CAMPAIGN_PROMOTION_DISCOUNT_PERCENT_APPLY_TO_ITEMS -
CAMPAIGN_LOYALTY_PROGRAM
-
VOUCHER_DISCOUNT_VOUCHER
-
VOUCHER_DISCOUNT_VOUCHER_DISCOUNT_APPLY_TO_ORDER
-
VOUCHER_DISCOUNT_VOUCHER_DISCOUNT_APPLY_TO_ITEMS
-
VOUCHER_DISCOUNT_VOUCHER_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY
public static final ValidationRule.ContextTypeEnum VOUCHER_DISCOUNT_VOUCHER_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY -
VOUCHER_DISCOUNT_VOUCHER_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY_BY_QUANTITY
public static final ValidationRule.ContextTypeEnum VOUCHER_DISCOUNT_VOUCHER_DISCOUNT_APPLY_TO_ITEMS_PROPORTIONALLY_BY_QUANTITY -
VOUCHER_DISCOUNT_VOUCHER_DISCOUNT_APPLY_TO_ITEMS_BY_QUANTITY
public static final ValidationRule.ContextTypeEnum VOUCHER_DISCOUNT_VOUCHER_DISCOUNT_APPLY_TO_ITEMS_BY_QUANTITY -
VOUCHER_DISCOUNT_VOUCHER_DISCOUNT_FIXED_APPLY_TO_ITEMS
public static final ValidationRule.ContextTypeEnum VOUCHER_DISCOUNT_VOUCHER_DISCOUNT_FIXED_APPLY_TO_ITEMS -
VOUCHER_DISCOUNT_VOUCHER_DISCOUNT_PERCENT_APPLY_TO_ITEMS
public static final ValidationRule.ContextTypeEnum VOUCHER_DISCOUNT_VOUCHER_DISCOUNT_PERCENT_APPLY_TO_ITEMS -
VOUCHER_GIFT_VOUCHER
-
VOUCHER_GIFT_VOUCHER_GIFT_APPLY_TO_ORDER
-
VOUCHER_GIFT_VOUCHER_GIFT_APPLY_TO_ITEMS
-
VOUCHER_LOYALTY_CARD
-
DISTRIBUTION_CUSTOM_EVENT
-
DISTRIBUTION_ORDER_PAID
-
DISTRIBUTION_ORDER_CREATED
-
DISTRIBUTION_ORDER_CANCELED
-
DISTRIBUTION_ORDER_UPDATED
-
REWARD_ASSIGNMENT_PAY_WITH_POINTS
-
GLOBAL
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
toString
- Overrides:
toStringin classEnum<ValidationRule.ContextTypeEnum>
-
fromValue
-