// SPDX-License-Identifier: Apache-2.0
import ValidatedDomain from "../../../core/validation/ValidatedArgs";
import { SecurityDate } from "../shared/SecurityDate";
export class BondKpiLinkedRateDetails extends ValidatedDomain {
    currency;
    nominalValue;
    nominalValueDecimals;
    startingDate;
    maturityDate;
    interestRate;
    impactData;
    constructor(currency, nominalValue, nominalValueDecimals, startingDate, maturityDate, interestRate, impactData) {
        super({
            maturityDate: (val) => {
                return SecurityDate.checkDateTimestamp(val, this.startingDate);
            },
        });
        this.currency = currency;
        this.nominalValue = nominalValue;
        this.nominalValueDecimals = nominalValueDecimals;
        this.startingDate = startingDate;
        this.maturityDate = maturityDate;
        this.interestRate = interestRate;
        this.impactData = impactData;
        ValidatedDomain.handleValidation(BondKpiLinkedRateDetails.name, this);
    }
}
