"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 });
exports.BondKpiLinkedRateDetails = void 0;
const ValidatedArgs_1 = __importDefault(require("../../../core/validation/ValidatedArgs"));
const SecurityDate_1 = require("../shared/SecurityDate");
class BondKpiLinkedRateDetails extends ValidatedArgs_1.default {
    currency;
    nominalValue;
    nominalValueDecimals;
    startingDate;
    maturityDate;
    interestRate;
    impactData;
    constructor(currency, nominalValue, nominalValueDecimals, startingDate, maturityDate, interestRate, impactData) {
        super({
            maturityDate: (val) => {
                return SecurityDate_1.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;
        ValidatedArgs_1.default.handleValidation(BondKpiLinkedRateDetails.name, this);
    }
}
exports.BondKpiLinkedRateDetails = BondKpiLinkedRateDetails;
