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