sinch.domains.sms.models.v1.shared.text_request module

class sinch.domains.sms.models.v1.shared.text_request.TextRequest(
*,
to: Annotated[list[Annotated[str, Strict(strict=True)]], Len(min_length=0, max_length=None)],
from_: Annotated[str, Strict(strict=True)] | None = None,
parameters: Dict[Annotated[str, Strict(strict=True)], Dict[Annotated[str, Strict(strict=True)], Annotated[str, Strict(strict=True)]]] | None = None,
body: Annotated[str, Strict(strict=True)],
type: Annotated[str, Strict(strict=True)] | None = 'mt_text',
delivery_report: Literal['none', 'summary', 'full', 'per_recipient', 'per_recipient_final'] | Annotated[str, Strict(strict=True)] | None = None,
send_at: datetime | None = None,
expire_at: datetime | None = None,
callback_url: Annotated[str, Strict(strict=True)] | None = None,
client_reference: Annotated[str, Strict(strict=True)] | None = None,
feedback_enabled: Annotated[bool, Strict(strict=True)] | None = None,
flash_message: Annotated[bool, Strict(strict=True)] | None = None,
max_number_of_message_parts: Annotated[int, Strict(strict=True)] | None = None,
truncate_concat: Annotated[bool, Strict(strict=True)] | None = None,
from_ton: Annotated[int, Strict(strict=True)] | None = None,
from_npi: Annotated[int, Strict(strict=True)] | None = None,
**extra_data: Any,
)[source]

Bases: BaseConfigModel

Parameters:
  • to (Annotated[list[Annotated[str, Strict(strict=True)]], Len(min_length=0, max_length=None)])

  • from_ (Annotated[str, Strict(strict=True)] | None)

  • parameters (Dict[Annotated[str, Strict(strict=True)], Dict[Annotated[str, Strict(strict=True)], Annotated[str, Strict(strict=True)]]] | None)

  • body (Annotated[str, Strict(strict=True)])

  • type (Annotated[str, Strict(strict=True)] | None)

  • delivery_report (Literal['none', 'summary', 'full', 'per_recipient', 'per_recipient_final'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)

  • send_at (datetime | None)

  • expire_at (datetime | None)

  • callback_url (Annotated[str, Strict(strict=True)] | None)

  • client_reference (Annotated[str, Strict(strict=True)] | None)

  • feedback_enabled (Annotated[bool, Strict(strict=True)] | None)

  • flash_message (Annotated[bool, Strict(strict=True)] | None)

  • max_number_of_message_parts (Annotated[int, Strict(strict=True)] | None)

  • truncate_concat (Annotated[bool, Strict(strict=True)] | None)

  • from_ton (Annotated[int, Strict(strict=True)] | None)

  • from_npi (Annotated[int, Strict(strict=True)] | None)

  • extra_data (Any)

to: Annotated[list[Annotated[str, Strict(strict=True)]], Len(min_length=0, max_length=None)]
from_: Annotated[str, Strict(strict=True)] | None
parameters: Dict[Annotated[str, Strict(strict=True)], Dict[Annotated[str, Strict(strict=True)], Annotated[str, Strict(strict=True)]]] | None
body: Annotated[str, Strict(strict=True)]
type: Annotated[str, Strict(strict=True)] | None
delivery_report: Literal['none', 'summary', 'full', 'per_recipient', 'per_recipient_final'] | Annotated[str, Strict(strict=True)] | None
send_at: datetime | None
expire_at: datetime | None
event_destination_target: Annotated[str, Strict(strict=True)] | None
client_reference: Annotated[str, Strict(strict=True)] | None
feedback_enabled: Annotated[bool, Strict(strict=True)] | None
flash_message: Annotated[bool, Strict(strict=True)] | None
max_number_of_message_parts: Annotated[int, Strict(strict=True)] | None
truncate_concat: Annotated[bool, Strict(strict=True)] | None
from_ton: Annotated[int, Strict(strict=True)] | None
from_npi: Annotated[int, Strict(strict=True)] | None
model_config = {'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

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