"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 });
const ValidatedArgs_1 = __importDefault(require("../../../../../core/validation/ValidatedArgs"));
const FormatValidation_1 = __importDefault(require("../../FormatValidation"));
const InvalidValue_1 = require("../../error/InvalidValue");
class UpdateExternalPausesRequest extends ValidatedArgs_1.default {
    securityId;
    externalPausesAddresses;
    actives;
    constructor({ securityId, externalPausesAddresses, actives, }) {
        super({
            securityId: FormatValidation_1.default.checkHederaIdFormatOrEvmAddress(),
            externalPausesAddresses: (vals) => FormatValidation_1.default.checkHederaIdOrEvmAddressArray(vals, "externalPausesAddresses"),
            actives: (vals) => vals.length !== externalPausesAddresses.length
                ? [new InvalidValue_1.InvalidValue(`The list of externalPausesAddresses and actives must have equal length.`)]
                : [],
        });
        this.securityId = securityId;
        this.externalPausesAddresses = externalPausesAddresses;
        this.actives = actives;
    }
}
exports.default = UpdateExternalPausesRequest;
