"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("../../../../../in/request/FormatValidation"));
class CancelClearingOperationByPartitionRequest extends ValidatedArgs_1.default {
    securityId;
    partitionId;
    targetId;
    clearingId;
    clearingOperationType;
    constructor({ securityId, partitionId, targetId, clearingId, clearingOperationType, }) {
        super({
            securityId: FormatValidation_1.default.checkHederaIdFormatOrEvmAddress(),
            partitionId: FormatValidation_1.default.checkBytes32Format(),
            clearingId: FormatValidation_1.default.checkNumber({ min: 0 }),
            targetId: FormatValidation_1.default.checkHederaIdFormatOrEvmAddress(),
        });
        this.securityId = securityId;
        this.partitionId = partitionId;
        this.targetId = targetId;
        this.clearingId = clearingId;
        this.clearingOperationType = clearingOperationType;
    }
}
exports.default = CancelClearingOperationByPartitionRequest;
