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