"use strict";
// SPDX-License-Identifier: Apache-2.0
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.KycAccountData = void 0;
const ValidatedArgs_1 = __importDefault(require("../../../core/validation/ValidatedArgs"));
const SecurityDate_1 = require("../shared/SecurityDate");
class KycAccountData extends ValidatedArgs_1.default {
    account;
    validFrom;
    validTo;
    vcId;
    issuer;
    status;
    constructor(account, validFrom, validTo, vcId, issuer, status) {
        super({
            validTo: (val) => {
                return SecurityDate_1.SecurityDate.checkDateTimestamp(parseInt(val), parseInt(this.validFrom));
            },
        });
        this.account = account;
        this.validFrom = validFrom;
        this.validTo = validTo;
        this.vcId = vcId;
        this.issuer = issuer;
        this.status = status;
        ValidatedArgs_1.default.handleValidation(KycAccountData.name, this);
    }
}
exports.KycAccountData = KycAccountData;
