All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.cdm.event.common.BillingInstruction.py Maven / Gradle / Ivy

There is a newer version: 6.0.0-dev.89
Show newest version
# 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__ = ['BillingInstruction']


class BillingInstruction(BaseDataClass):
    """
    Specifies the instructions for creation of a Security Lending billing invoice.
    """
    sendingParty: cdm.base.staticdata.party.Party.Party = Field(..., description="The party issuing the invoice")
    """
    The party issuing the invoice
    """
    receivingParty: cdm.base.staticdata.party.Party.Party = Field(..., description="The party receiving the invoice")
    """
    The party receiving the invoice
    """
    billingStartDate: datetime.date = Field(..., description="The starting date of the period described by this invoice")
    """
    The starting date of the period described by this invoice
    """
    billingEndDate: datetime.date = Field(..., description="The ending date of the period described by this invoice")
    """
    The ending date of the period described by this invoice
    """
    billingRecordInstruction: List[cdm.event.common.BillingRecordInstruction.BillingRecordInstruction] = Field([], description="Instructions for creating the billing records contained within the invoice")
    """
    Instructions for creating the billing records contained within the invoice
    """
    @rosetta_condition
    def cardinality_billingRecordInstruction(self):
        return check_cardinality(self.billingRecordInstruction, 1, None)
    
    billingSummary: List[cdm.event.common.BillingSummaryInstruction.BillingSummaryInstruction] = Field([], description="The billing summaries contained within the invoice")
    """
    The billing summaries contained within the invoice
    """

import cdm 
import cdm.base.staticdata.party.Party
import cdm.event.common.BillingRecordInstruction
import cdm.event.common.BillingSummaryInstruction




© 2015 - 2025 Weber Informatics LLC | Privacy Policy