// SPDX-License-Identifier: Apache-2.0
import ValidatedDomain from "../../../core/validation/ValidatedArgs";
import { SecurityDate } from "../shared/SecurityDate";
export class Kyc extends ValidatedDomain {
    validFrom;
    validTo;
    vcId;
    issuer;
    status;
    constructor(validFrom, validTo, vcId, issuer, status) {
        super({
            validTo: (val) => {
                return SecurityDate.checkDateTimestamp(parseInt(val), parseInt(this.validFrom));
            },
        });
        this.validFrom = validFrom;
        this.validTo = validTo;
        this.vcId = vcId;
        this.issuer = issuer;
        this.status = status;
        ValidatedDomain.handleValidation(Kyc.name, this);
    }
}
export var KycStatus;
(function (KycStatus) {
    KycStatus[KycStatus["NOT_GRANTED"] = 0] = "NOT_GRANTED";
    KycStatus[KycStatus["GRANTED"] = 1] = "GRANTED";
})(KycStatus || (KycStatus = {}));
