src.cdm.product.collateral.EligibleCollateralSpecification.py Maven / Gradle / Ivy
# pylint: disable=line-too-long, invalid-name, missing-function-docstring, missing-module-docstring, superfluous-parens
# pylint: disable=wrong-import-position, unused-import, unused-wildcard-import, wildcard-import, wrong-import-order, missing-class-docstring
from __future__ import annotations
from typing import List, Optional
from datetime import date
from datetime import time
from datetime import datetime
from decimal import Decimal
from pydantic import Field
from rosetta.runtime.utils import *
__all__ = ['EligibleCollateralSpecification']
class EligibleCollateralSpecification(BaseDataClass):
"""
Represents a set of criteria used to specify eligible collateral.
"""
identifier: List[Identifier] = Field([], description="Specifies the identifier(s) to uniquely identify eligible collateral or a set of eligible collateral, such as a schedule or equivalant for an identity issuer.")
"""
Specifies the identifier(s) to uniquely identify eligible collateral or a set of eligible collateral, such as a schedule or equivalant for an identity issuer.
"""
party: List[Party] = Field([], description="The parties associated with the specification.")
"""
The parties associated with the specification.
"""
@rosetta_condition
def cardinality_party(self):
return check_cardinality(self.party, 0, 2)
counterparty: List[Counterparty] = Field([], description="Specification of the roles of the counterparties to the specification.")
"""
Specification of the roles of the counterparties to the specification.
"""
@rosetta_condition
def cardinality_counterparty(self):
return check_cardinality(self.counterparty, 0, 2)
criteria: List[EligibleCollateralCriteria] = Field([], description="Represents a set of criteria used to specify eligible collateral.")
"""
Represents a set of criteria used to specify eligible collateral.
"""
@rosetta_condition
def cardinality_criteria(self):
return check_cardinality(self.criteria, 1, None)
from cdm.base.staticdata.identifier.Identifier import Identifier
from cdm.base.staticdata.party.Party import Party
from cdm.base.staticdata.party.Counterparty import Counterparty
from cdm.product.collateral.EligibleCollateralCriteria import EligibleCollateralCriteria
EligibleCollateralSpecification.update_forward_refs()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy