"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"));
class UpdateProceedRecipientDataRequest extends ValidatedArgs_1.default {
    securityId;
    proceedRecipientId;
    data;
    constructor({ securityId, proceedRecipientId, data, }) {
        super({
            proceedRecipientId: FormatValidation_1.default.checkHederaIdFormatOrEvmAddress(),
            data: (val) => {
                const validation = FormatValidation_1.default.checkBytesFormat();
                if (val == "")
                    return;
                const result = validation(val);
                if (result)
                    return result;
            },
            securityId: FormatValidation_1.default.checkHederaIdFormatOrEvmAddress(),
        });
        this.securityId = securityId;
        this.proceedRecipientId = proceedRecipientId;
        this.data = data;
    }
}
exports.default = UpdateProceedRecipientDataRequest;
