| 1 |
|
| 2 |
|
| 3 |
import typing |
| 4 |
|
| 5 |
import pydantic |
| 6 |
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel |
| 7 |
from .phone_template_content import PhoneTemplateContent |
| 8 |
from .phone_template_notification_type_enum import PhoneTemplateNotificationTypeEnum |
| 9 |
|
| 10 |
|
| 11 |
class PhoneTemplate(UniversalBaseModel): |
| 12 |
id: typing.Optional[str] = None |
| 13 |
channel: typing.Optional[str] = None |
| 14 |
customizable: typing.Optional[bool] = None |
| 15 |
tenant: typing.Optional[str] = None |
| 16 |
content: PhoneTemplateContent |
| 17 |
type: PhoneTemplateNotificationTypeEnum |
| 18 |
disabled: bool = pydantic.Field() |
| 19 |
""" |
| 20 |
Whether the template is enabled (false) or disabled (true). |
| 21 |
""" |
| 22 |
|
| 23 |
if IS_PYDANTIC_V2: |
| 24 |
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) |
| 25 |
else: |
| 26 |
|
| 27 |
class Config: |
| 28 |
frozen = True |
| 29 |
smart_union = True |
| 30 |
extra = pydantic.Extra.allow |