Registry for mandate validation strategies
new
MandateValidationStrategyRegistry(typeDetector?: MandateTypeDetectorRegistry,config?: ValidationConfig,)
private
readonly
strategies: Map<MandateType, MandateValidationStrategy>
private
readonly
typeDetector: MandateTypeDetectorRegistry
checkMandateExpiry(): Promise<boolean>
Check mandate expiry by detecting type and using appropriate strategy
getStrategy(mandateType: MandateType): MandateValidationStrategy | undefined
Get strategy for a specific mandate type
registerStrategy(strategy: MandateValidationStrategy): void
Register a validation strategy
validateMandate(mandate: Mandate): Promise<ValidationResult>
Validate mandate by detecting type and using appropriate strategy
validateMandateIntegrity(mandate: Mandate): Promise<ValidationResult>
Validate mandate integrity by detecting type and using appropriate strategy
checkExpiry(): Promise<boolean>
Static method to check mandate expiry using the default registry
validate(mandate: Mandate): Promise<ValidationResult>
Static method to validate a mandate using the default registry
validateIntegrity(mandate: Mandate): Promise<ValidationResult>
Static method to validate mandate integrity using the default registry