validate

Validates a Company Identification Number (CIN).

Input normalisation applied before validation (in order):

  1. Trim leading/trailing whitespace

  2. Strip all internal whitespace (covers copy-paste with spaces)

  3. Uppercase all characters

After normalisation, checks are applied in order — first failing check wins:

Return

ValidationResult.Valid if the code is a valid MCA CIN, ValidationResult.Invalid with an appropriate InvalidReason otherwise.

Parameters

value

Raw CIN string in any common input form.

Samples

check(CIN.validate("L17110MH1973PLC019786") == ValidationResult.Valid)