/**
 * TtdMergePolicyRequirement — governance gate carried by merge inspection.
 *
 * @module domain/services/merge/TtdMergePolicyRequirement
 */
import { requireNonEmptyText } from "./TtdMergeValidation.js";
export default class TtdMergePolicyRequirement {
    code;
    message;
    constructor(fields) {
        this.code = requireNonEmptyText(fields.code, 'policy.code');
        this.message = requireNonEmptyText(fields.message, 'policy.message');
        Object.freeze(this);
    }
}
