Table of Contents

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
object
PromotionCustomerEligibilityOption
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

Value PromotionCustomerEligibility

The customer eligibility value (e.g., all customers or registered members only).

Label string

The 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

PromotionCustomerEligibility

Methods

Deconstruct(out PromotionCustomerEligibility, out string)

public void Deconstruct(out PromotionCustomerEligibility Value, out string Label)

Parameters

Value PromotionCustomerEligibility
Label string

Equals(PromotionCustomerEligibilityOption?)

public bool Equals(PromotionCustomerEligibilityOption? other)

Parameters

other PromotionCustomerEligibilityOption

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

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

left PromotionCustomerEligibilityOption
right PromotionCustomerEligibilityOption

Returns

bool

operator !=(PromotionCustomerEligibilityOption?, PromotionCustomerEligibilityOption?)

public static bool operator !=(PromotionCustomerEligibilityOption? left, PromotionCustomerEligibilityOption? right)

Parameters

left PromotionCustomerEligibilityOption
right PromotionCustomerEligibilityOption

Returns

bool