class MandateValidationStrategyRegistry

Registry for mandate validation strategies

Constructors

new
MandateValidationStrategyRegistry(
config?: ValidationConfig,
)

Properties

Methods

checkMandateExpiry(
mandate: Mandate,
currentDate?: Date,
): Promise<boolean>

Check mandate expiry by detecting type and using appropriate strategy

Get strategy for a specific mandate type

Register a validation strategy

Validate mandate by detecting type and using appropriate strategy

Validate mandate integrity by detecting type and using appropriate strategy

Static Methods

checkExpiry(
mandate: Mandate,
currentDate?: Date,
): 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

Static method to validate mandate integrity using the default registry