sinch.domains.conversation.templates.models.v2.shared.template_translation module
- class sinch.domains.conversation.templates.models.v2.shared.template_translation.TemplateTranslationCardMessage(
- *,
- language_code: Annotated[str, Strict(strict=True)],
- version: Annotated[str, Strict(strict=True)] | None = None,
- channel_template_overrides: Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | Annotated[str, Strict(strict=True)], ChannelTemplateOverride] | None = None,
- variables: Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None = None,
- create_time: datetime | None = None,
- update_time: datetime | None = None,
- card_message: CardMessage,
- **extra_data: Any,
Bases:
TemplateTranslationBase- Parameters:
language_code (Annotated[str, Strict(strict=True)])
version (Annotated[str, Strict(strict=True)] | None)
channel_template_overrides (Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)], ~sinch.domains.conversation.templates.models.v2.shared.channel_template_override.ChannelTemplateOverride] | None)
variables (Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None)
create_time (datetime | None)
update_time (datetime | None)
card_message (CardMessage)
extra_data (Any)
- card_message: CardMessage
- model_config = {'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(
- _BaseConfigModel__context: Any,
Marks applied non-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None
- class sinch.domains.conversation.templates.models.v2.shared.template_translation.TemplateTranslationCarouselMessage(
- *,
- language_code: Annotated[str, Strict(strict=True)],
- version: Annotated[str, Strict(strict=True)] | None = None,
- channel_template_overrides: Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | Annotated[str, Strict(strict=True)], ChannelTemplateOverride] | None = None,
- variables: Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None = None,
- create_time: datetime | None = None,
- update_time: datetime | None = None,
- carousel_message: CarouselMessage,
- **extra_data: Any,
Bases:
TemplateTranslationBase- Parameters:
language_code (Annotated[str, Strict(strict=True)])
version (Annotated[str, Strict(strict=True)] | None)
channel_template_overrides (Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)], ~sinch.domains.conversation.templates.models.v2.shared.channel_template_override.ChannelTemplateOverride] | None)
variables (Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None)
create_time (datetime | None)
update_time (datetime | None)
carousel_message (CarouselMessage)
extra_data (Any)
- carousel_message: CarouselMessage
- model_config = {'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(
- _BaseConfigModel__context: Any,
Marks applied non-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None
- class sinch.domains.conversation.templates.models.v2.shared.template_translation.TemplateTranslationChoiceMessage(
- *,
- language_code: Annotated[str, Strict(strict=True)],
- version: Annotated[str, Strict(strict=True)] | None = None,
- channel_template_overrides: Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | Annotated[str, Strict(strict=True)], ChannelTemplateOverride] | None = None,
- variables: Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None = None,
- create_time: datetime | None = None,
- update_time: datetime | None = None,
- choice_message: ChoiceMessage,
- **extra_data: Any,
Bases:
TemplateTranslationBase- Parameters:
language_code (Annotated[str, Strict(strict=True)])
version (Annotated[str, Strict(strict=True)] | None)
channel_template_overrides (Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)], ~sinch.domains.conversation.templates.models.v2.shared.channel_template_override.ChannelTemplateOverride] | None)
variables (Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None)
create_time (datetime | None)
update_time (datetime | None)
choice_message (ChoiceMessage)
extra_data (Any)
- choice_message: ChoiceMessage
- model_config = {'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(
- _BaseConfigModel__context: Any,
Marks applied non-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None
- class sinch.domains.conversation.templates.models.v2.shared.template_translation.TemplateTranslationLocationMessage(
- *,
- language_code: Annotated[str, Strict(strict=True)],
- version: Annotated[str, Strict(strict=True)] | None = None,
- channel_template_overrides: Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | Annotated[str, Strict(strict=True)], ChannelTemplateOverride] | None = None,
- variables: Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None = None,
- create_time: datetime | None = None,
- update_time: datetime | None = None,
- location_message: LocationMessage,
- **extra_data: Any,
Bases:
TemplateTranslationBase- Parameters:
language_code (Annotated[str, Strict(strict=True)])
version (Annotated[str, Strict(strict=True)] | None)
channel_template_overrides (Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)], ~sinch.domains.conversation.templates.models.v2.shared.channel_template_override.ChannelTemplateOverride] | None)
variables (Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None)
create_time (datetime | None)
update_time (datetime | None)
location_message (LocationMessage)
extra_data (Any)
- location_message: LocationMessage
- model_config = {'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(
- _BaseConfigModel__context: Any,
Marks applied non-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None
- class sinch.domains.conversation.templates.models.v2.shared.template_translation.TemplateTranslationMediaMessage(
- *,
- language_code: Annotated[str, Strict(strict=True)],
- version: Annotated[str, Strict(strict=True)] | None = None,
- channel_template_overrides: Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | Annotated[str, Strict(strict=True)], ChannelTemplateOverride] | None = None,
- variables: Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None = None,
- create_time: datetime | None = None,
- update_time: datetime | None = None,
- media_message: MediaProperties,
- **extra_data: Any,
Bases:
TemplateTranslationBase- Parameters:
language_code (Annotated[str, Strict(strict=True)])
version (Annotated[str, Strict(strict=True)] | None)
channel_template_overrides (Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)], ~sinch.domains.conversation.templates.models.v2.shared.channel_template_override.ChannelTemplateOverride] | None)
variables (Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None)
create_time (datetime | None)
update_time (datetime | None)
media_message (MediaProperties)
extra_data (Any)
- media_message: MediaProperties
- model_config = {'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(
- _BaseConfigModel__context: Any,
Marks applied non-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None
- class sinch.domains.conversation.templates.models.v2.shared.template_translation.TemplateTranslationTemplateMessage(
- *,
- language_code: Annotated[str, Strict(strict=True)],
- version: Annotated[str, Strict(strict=True)] | None = None,
- channel_template_overrides: Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | Annotated[str, Strict(strict=True)], ChannelTemplateOverride] | None = None,
- variables: Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None = None,
- create_time: datetime | None = None,
- update_time: datetime | None = None,
- template_message: TemplateMessage,
- **extra_data: Any,
Bases:
TemplateTranslationBase- Parameters:
language_code (Annotated[str, Strict(strict=True)])
version (Annotated[str, Strict(strict=True)] | None)
channel_template_overrides (Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)], ~sinch.domains.conversation.templates.models.v2.shared.channel_template_override.ChannelTemplateOverride] | None)
variables (Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None)
create_time (datetime | None)
update_time (datetime | None)
template_message (TemplateMessage)
extra_data (Any)
- template_message: TemplateMessage
- model_config = {'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(
- _BaseConfigModel__context: Any,
Marks applied non-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None
- class sinch.domains.conversation.templates.models.v2.shared.template_translation.TemplateTranslationTextMessage(
- *,
- language_code: Annotated[str, Strict(strict=True)],
- version: Annotated[str, Strict(strict=True)] | None = None,
- channel_template_overrides: Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | Annotated[str, Strict(strict=True)], ChannelTemplateOverride] | None = None,
- variables: Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None = None,
- create_time: datetime | None = None,
- update_time: datetime | None = None,
- text_message: TextMessage,
- **extra_data: Any,
Bases:
TemplateTranslationBase- Parameters:
language_code (Annotated[str, Strict(strict=True)])
version (Annotated[str, Strict(strict=True)] | None)
channel_template_overrides (Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)], ~sinch.domains.conversation.templates.models.v2.shared.channel_template_override.ChannelTemplateOverride] | None)
variables (Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None)
create_time (datetime | None)
update_time (datetime | None)
text_message (TextMessage)
extra_data (Any)
- text_message: TextMessage
- model_config = {'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(
- _BaseConfigModel__context: Any,
Marks applied non-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None
- class sinch.domains.conversation.templates.models.v2.shared.template_translation.TemplateTranslationListMessage(
- *,
- language_code: Annotated[str, Strict(strict=True)],
- version: Annotated[str, Strict(strict=True)] | None = None,
- channel_template_overrides: Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | Annotated[str, Strict(strict=True)], ChannelTemplateOverride] | None = None,
- variables: Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None = None,
- create_time: datetime | None = None,
- update_time: datetime | None = None,
- list_message: ListMessage,
- **extra_data: Any,
Bases:
TemplateTranslationBase- Parameters:
language_code (Annotated[str, Strict(strict=True)])
version (Annotated[str, Strict(strict=True)] | None)
channel_template_overrides (Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)], ~sinch.domains.conversation.templates.models.v2.shared.channel_template_override.ChannelTemplateOverride] | None)
variables (Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None)
create_time (datetime | None)
update_time (datetime | None)
list_message (ListMessage)
extra_data (Any)
- list_message: ListMessage
- model_config = {'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(
- _BaseConfigModel__context: Any,
Marks applied non-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None
- class sinch.domains.conversation.templates.models.v2.shared.template_translation.TemplateTranslationContactInfoMessage(
- *,
- language_code: Annotated[str, Strict(strict=True)],
- version: Annotated[str, Strict(strict=True)] | None = None,
- channel_template_overrides: Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | Annotated[str, Strict(strict=True)], ChannelTemplateOverride] | None = None,
- variables: Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None = None,
- create_time: datetime | None = None,
- update_time: datetime | None = None,
- contact_info_message: ContactInfoMessage,
- **extra_data: Any,
Bases:
TemplateTranslationBase- Parameters:
language_code (Annotated[str, Strict(strict=True)])
version (Annotated[str, Strict(strict=True)] | None)
channel_template_overrides (Dict[Literal['WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)], ~sinch.domains.conversation.templates.models.v2.shared.channel_template_override.ChannelTemplateOverride] | None)
variables (Annotated[list[TemplateVariable], Len(min_length=0, max_length=None)] | None)
create_time (datetime | None)
update_time (datetime | None)
contact_info_message (ContactInfoMessage)
extra_data (Any)
- contact_info_message: ContactInfoMessage
- model_config = {'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(
- _BaseConfigModel__context: Any,
Marks applied non-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None