function isExpired isExpired(expiryDateString: string,currentDate?: Date,): boolean Checks if a mandate has expired based on its expiry date Parameters expiryDateString: string ISO 8601 expiry date string optional currentDate: Date Current date (defaults to now) Return Type boolean True if the mandate has expired