Class PromotionCustomerEligibilityOption
- Namespace
- Kentico.Xperience.Admin.DigitalCommerce
- Assembly
- Kentico.Xperience.Admin.DigitalCommerce.dll
Represents a customer eligibility option for promotions in the admin interface.
public sealed record PromotionCustomerEligibilityOption
- Inheritance
-
objectPromotionCustomerEligibilityOption
- Extension Methods
Remarks
This record combines a PromotionCustomerEligibility value with a display label for use in promotion edit forms. It is used by IPromotionCustomerEligibilityOptionsProvider to provide customizable customer eligibility options.
Constructors
PromotionCustomerEligibilityOption(PromotionCustomerEligibility, string)
Represents a customer eligibility option for promotions in the admin interface.
public PromotionCustomerEligibilityOption(PromotionCustomerEligibility Value, string Label)
Parameters
ValuePromotionCustomerEligibilityThe customer eligibility value (e.g., all customers or registered members only).
LabelstringThe display label for this eligibility option in the admin interface.
Remarks
This record combines a PromotionCustomerEligibility value with a display label for use in promotion edit forms. It is used by IPromotionCustomerEligibilityOptionsProvider to provide customizable customer eligibility options.
Properties
Label
The display label for this eligibility option in the admin interface.
public string Label { get; init; }
Property Value
- string
Value
The customer eligibility value (e.g., all customers or registered members only).
public PromotionCustomerEligibility Value { get; init; }
Property Value
Methods
Deconstruct(out PromotionCustomerEligibility, out string)
public void Deconstruct(out PromotionCustomerEligibility Value, out string Label)
Parameters
ValuePromotionCustomerEligibilityLabelstring
Equals(PromotionCustomerEligibilityOption?)
public bool Equals(PromotionCustomerEligibilityOption? other)
Parameters
Returns
- bool
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
ToString()
public override string ToString()
Returns
- string
Operators
operator ==(PromotionCustomerEligibilityOption?, PromotionCustomerEligibilityOption?)
public static bool operator ==(PromotionCustomerEligibilityOption? left, PromotionCustomerEligibilityOption? right)
Parameters
Returns
- bool
operator !=(PromotionCustomerEligibilityOption?, PromotionCustomerEligibilityOption?)
public static bool operator !=(PromotionCustomerEligibilityOption? left, PromotionCustomerEligibilityOption? right)
Parameters
Returns
- bool