src.cdm.product.template.Underlier.py Maven / Gradle / Ivy
# pylint: disable=line-too-long, invalid-name, missing-function-docstring
# pylint: disable=bad-indentation, trailing-whitespace, superfluous-parens
# pylint: disable=wrong-import-position, unused-import, unused-wildcard-import
# pylint: disable=wildcard-import, wrong-import-order, missing-class-docstring
# pylint: disable=missing-module-docstring
from __future__ import annotations
from typing import List, Optional
import datetime
import inspect
from decimal import Decimal
from pydantic import Field
from rosetta.runtime.utils import (
BaseDataClass, rosetta_condition, rosetta_resolve_attr
)
from rosetta.runtime.utils import *
__all__ = ['Underlier']
class Underlier(BaseDataClass):
"""
The underlier of a payout which can be either an Asset or a Transferable Product, which is an Asset with Economic Terms.
"""
Asset: Optional[cdm.base.staticdata.asset.common.Asset.Asset] = Field(None, description="Identifies a transferable asset.")
"""
Identifies a transferable asset.
"""
TransferableProduct: Optional[cdm.product.template.TransferableProduct.TransferableProduct] = Field(None, description="Defines the transferable asset with an identifier and economic terms.")
"""
Defines the transferable asset with an identifier and economic terms.
"""
@rosetta_condition
def condition_0_Choice(self):
item = self
return self.check_one_of_constraint('Asset', 'TransferableProduct', necessity=True)
import cdm
import cdm.base.staticdata.asset.common.Asset
import cdm.product.template.TransferableProduct
© 2015 - 2025 Weber Informatics LLC | Privacy Policy