"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 Factories_1 = require("../../../../domain/context/factory/Factories");
const ValidatedArgs_1 = __importDefault(require("../../../../core/validation/ValidatedArgs"));
class GetRegulationDetailsRequest extends ValidatedArgs_1.default {
    regulationType;
    regulationSubType;
    constructor({ regulationType, regulationSubType }) {
        super({
            regulationType: (val) => {
                return Factories_1.Factory.checkRegulationType(val);
            },
            regulationSubType: (val) => {
                return Factories_1.Factory.checkRegulationSubType(val, this.regulationType);
            },
        });
        this.regulationType = regulationType;
        this.regulationSubType = regulationSubType;
    }
}
exports.default = GetRegulationDetailsRequest;
