// SPDX-License-Identifier: Apache-2.0
import ValidatedDomain from "../../../core/validation/ValidatedArgs";
import { Equity } from "./Equity";
export class EquityDetails extends ValidatedDomain {
    votingRight;
    informationRight;
    liquidationRight;
    subscriptionRight;
    conversionRight;
    redemptionRight;
    putRight;
    dividendRight;
    currency;
    nominalValue;
    nominalValueDecimals;
    constructor(votingRight, informationRight, liquidationRight, subscriptionRight, conversionRight, redemptionRight, putRight, dividendRight, currency, nominalValue, nominalValueDecimals) {
        super({
            dividendRight: (val) => {
                return Equity.checkDividend(val);
            },
        });
        this.votingRight = votingRight;
        this.informationRight = informationRight;
        this.liquidationRight = liquidationRight;
        this.subscriptionRight = subscriptionRight;
        this.conversionRight = conversionRight;
        this.redemptionRight = redemptionRight;
        this.putRight = putRight;
        this.dividendRight = dividendRight;
        this.currency = currency;
        this.nominalValue = nominalValue;
        this.nominalValueDecimals = nominalValueDecimals;
        ValidatedDomain.handleValidation(EquityDetails.name, this);
    }
}
