poprox_concepts.domain.newsletter#

Classes

Newsletter(*[, newsletter_id, treatment_id, ...])

class poprox_concepts.domain.newsletter.Newsletter(*, newsletter_id=None, account_id, treatment_id=None, articles, subject, body_html, created_at=None)#

Bases: BaseModel

Parameters:
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'account_id': FieldInfo(annotation=UUID, required=True), 'articles': FieldInfo(annotation=list[Article], required=True), 'body_html': FieldInfo(annotation=str, required=True), 'created_at': FieldInfo(annotation=Union[datetime, NoneType], required=False, default=None), 'newsletter_id': FieldInfo(annotation=UUID, required=False, default_factory=uuid4), 'subject': FieldInfo(annotation=str, required=True), 'treatment_id': FieldInfo(annotation=Union[UUID, NoneType], required=False, default=None)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.