"""
Generated class for PaymentNotice. 
Time: 2024-06-14 18:37:55
"""

from fhirmodels.R5.CodeableConcept import *
from fhirmodels.R5.DomainResource import *
from fhirmodels.R5.Extension import *
from fhirmodels.R5.Identifier import *
from fhirmodels.R5.Meta import *
from fhirmodels.R5.Money import *
from fhirmodels.R5.Narrative import *
from fhirmodels.R5.Reference import *
from fhirmodels.R5.Resource import *


class PaymentNotice(DomainResource):
    """This resource provides the status of the payment for goods and services rendered, and the request and response resource references.
    :param str id: Logical id of this artifact
    :param Meta meta: Metadata about the resource
    :param str implicitRules: A set of rules under which this content was created
    :param str language: Language of the resource content
    :param Narrative text: Text summary of the resource, for human interpretation
    :param Resource contained: Contained, inline Resources
    :param Extension extension: Additional content defined by implementations
    :param Extension modifierExtension: Extensions that cannot be ignored
    :param Identifier identifier: Business Identifier for the payment notice
    :param str status: active | cancelled | draft | entered-in-error
    :param Reference request: Request reference
    :param Reference response: Response reference
    :param str created: Creation date
    :param Reference reporter: Responsible practitioner
    :param Reference payment: Payment reference
    :param str paymentDate: Payment or clearing date
    :param Reference payee: Party being paid
    :param Reference recipient: Party being notified
    :param Money amount: Monetary amount of the payment
    :param CodeableConcept paymentStatus: Issued or cleared Status of the payment
    """

    # needed for complex properties where the element name is different from the class name
    property_class_info = {
        "meta": {"class_name": "Meta", "is_contained": False},
        "text": {"class_name": "Narrative", "is_contained": False},
        "contained": {"class_name": "Resource", "is_contained": False},
        "extension": {"class_name": "Extension", "is_contained": False},
        "modifierExtension": {"class_name": "Extension", "is_contained": False},
        "identifier": {"class_name": "Identifier", "is_contained": False},
        "request": {"class_name": "Reference", "is_contained": False},
        "response": {"class_name": "Reference", "is_contained": False},
        "reporter": {"class_name": "Reference", "is_contained": False},
        "payment": {"class_name": "Reference", "is_contained": False},
        "payee": {"class_name": "Reference", "is_contained": False},
        "recipient": {"class_name": "Reference", "is_contained": False},
        "amount": {"class_name": "Money", "is_contained": False},
        "paymentStatus": {"class_name": "CodeableConcept", "is_contained": False},
    }

    def __init__(
        self,
        id: "str" = None,
        meta: "Meta" = None,
        implicitRules: "str" = None,
        language: "str" = None,
        text: "Narrative" = None,
        contained: list["Resource"] = None,
        extension: list["Extension"] = None,
        modifierExtension: list["Extension"] = None,
        identifier: list["Identifier"] = None,
        status: "str" = None,
        request: "Reference" = None,
        response: "Reference" = None,
        created: "str" = None,
        reporter: "Reference" = None,
        payment: "Reference" = None,
        paymentDate: "str" = None,
        payee: "Reference" = None,
        recipient: "Reference" = None,
        amount: "Money" = None,
        paymentStatus: "CodeableConcept" = None,
    ):

        self.resourceType = "PaymentNotice"

        self.id = id
        self.meta = meta
        self.implicitRules = implicitRules
        self.language = language
        self.text = text
        self.contained = contained or []
        self.extension = extension or []
        self.modifierExtension = modifierExtension or []
        self.identifier = identifier or []
        self.status = status
        self.request = request
        self.response = response
        self.created = created
        self.reporter = reporter
        self.payment = payment
        self.paymentDate = paymentDate
        self.payee = payee
        self.recipient = recipient
        self.amount = amount
        self.paymentStatus = paymentStatus

    @classmethod
    def from_dict(cls, data: dict) -> "PaymentNotice":
        return super().from_dict(data)

    @classmethod
    def from_obj(self, obj: object) -> "PaymentNotice":
        return super().from_obj(obj)

    def as_dict(self) -> dict:
        return super().as_dict()
