Interface IPromotionCustomerEligibilityValidator
Validates whether a customer is eligible for a promotion.
public interface IPromotionCustomerEligibilityValidator
- Extension Methods
Methods
Validate(PromotionCustomerEligibility, BuyerIdentifier, CancellationToken)
Validates whether the customer eligibility requirement is satisfied.
Task<PromotionCustomerEligibilityValidationResult> Validate(PromotionCustomerEligibility eligibility, BuyerIdentifier buyerIdentifier, CancellationToken cancellationToken)
Parameters
eligibilityPromotionCustomerEligibilityThe customer eligibility requirement to validate.
buyerIdentifierBuyerIdentifierThe identifier of the customer to validate eligibility for.
cancellationTokenCancellationTokenThe cancellation token to cancel the operation.
Returns
- Task<PromotionCustomerEligibilityValidationResult>
A PromotionCustomerEligibilityValidationResult containing the validation result. The result indicates whether the customer meets the eligibility requirements for the promotion.