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