// SPDX-License-Identifier: Apache-2.0
import { InvalidValue } from "../../../error/InvalidValue";
import ValidatedRequest from "../../../../../../core/validation/ValidatedArgs";
import FormatValidation from "../../../FormatValidation";
export default class BatchTransferRequest extends ValidatedRequest {
    securityId;
    amountList;
    toList;
    constructor({ securityId, amountList, toList }) {
        super({
            securityId: FormatValidation.checkHederaIdFormatOrEvmAddress(),
            amountList: (vals) => vals.length !== toList.length
                ? [new InvalidValue(`The list of toList and amountList must have equal length.`)]
                : [],
            toList: (vals) => FormatValidation.checkHederaIdOrEvmAddressArray(vals, "toList"),
        });
        this.securityId = securityId;
        this.amountList = amountList;
        this.toList = toList;
    }
}
