// SPDX-License-Identifier: Apache-2.0
import ValidatedRequest from "../../../../core/validation/ValidatedArgs";
import FormatValidation from "../FormatValidation";
export default class UpdateProceedRecipientDataRequest extends ValidatedRequest {
    securityId;
    proceedRecipientId;
    data;
    constructor({ securityId, proceedRecipientId, data, }) {
        super({
            proceedRecipientId: FormatValidation.checkHederaIdFormatOrEvmAddress(),
            data: (val) => {
                const validation = FormatValidation.checkBytesFormat();
                if (val == "")
                    return;
                const result = validation(val);
                if (result)
                    return result;
            },
            securityId: FormatValidation.checkHederaIdFormatOrEvmAddress(),
        });
        this.securityId = securityId;
        this.proceedRecipientId = proceedRecipientId;
        this.data = data;
    }
}
