sinch.domains.sms.models.v1.response.recipient_delivery_report module

class sinch.domains.sms.models.v1.response.recipient_delivery_report.RecipientDeliveryReport(
*,
applied_originator: Annotated[str, Strict(strict=True)] | None = None,
at: datetime,
batch_id: Annotated[str, Strict(strict=True)],
client_reference: Annotated[str, Strict(strict=True)] | None = None,
code: Literal[400, 401, 402, 403, 404, 405, 406, 407, 408, 410, 411, 412, 413, 414, 415, 416, 417, 418] | Annotated[int, Strict(strict=True)],
encoding: Literal['GSM', 'UNICODE'] | Annotated[str, Strict(strict=True)] | None = None,
number_of_message_parts: Annotated[int, Strict(strict=True)] | None = None,
operator: Annotated[str, Strict(strict=True)] | None = None,
operator_status_at: datetime | None = None,
recipient: Annotated[str, Strict(strict=True)],
status: Literal['QUEUED', 'DISPATCHED', 'ABORTED', 'CANCELLED', 'FAILED', 'DELIVERED', 'EXPIRED', 'REJECTED', 'DELETED', 'UNKNOWN'] | Annotated[str, Strict(strict=True)],
type: Literal['recipient_delivery_report_sms', 'recipient_delivery_report_mms'] | Annotated[str, Strict(strict=True)],
**extra_data: Any,
)[source]

Bases: SnakeCaseExtrasModel

Parameters:
  • applied_originator (Annotated[str, Strict(strict=True)] | None)

  • at (datetime)

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

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

  • code (Literal[400, 401, 402, 403, 404, 405, 406, 407, 408, 410, 411, 412, 413, 414, 415, 416, 417, 418] | ~typing.Annotated[int, ~pydantic.types.Strict(strict=True)])

  • encoding (Literal['GSM', 'UNICODE'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)

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

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

  • operator_status_at (datetime | None)

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

  • status (Literal['QUEUED', 'DISPATCHED', 'ABORTED', 'CANCELLED', 'FAILED', 'DELIVERED', 'EXPIRED', 'REJECTED', 'DELETED', 'UNKNOWN'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)])

  • type (Literal['recipient_delivery_report_sms', 'recipient_delivery_report_mms'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)])

  • extra_data (Any)

applied_originator: Annotated[str, Strict(strict=True)] | None
at: datetime
batch_id: Annotated[str, Strict(strict=True)]
client_reference: Annotated[str, Strict(strict=True)] | None
code: Literal[400, 401, 402, 403, 404, 405, 406, 407, 408, 410, 411, 412, 413, 414, 415, 416, 417, 418] | Annotated[int, Strict(strict=True)]
encoding: Literal['GSM', 'UNICODE'] | Annotated[str, Strict(strict=True)] | None
number_of_message_parts: Annotated[int, Strict(strict=True)] | None
operator: Annotated[str, Strict(strict=True)] | None
operator_status_at: datetime | None
recipient: Annotated[str, Strict(strict=True)]
status: Literal['QUEUED', 'DISPATCHED', 'ABORTED', 'CANCELLED', 'FAILED', 'DELIVERED', 'EXPIRED', 'REJECTED', 'DELETED', 'UNKNOWN'] | Annotated[str, Strict(strict=True)]
type: Literal['recipient_delivery_report_sms', 'recipient_delivery_report_mms'] | Annotated[str, Strict(strict=True)]
classmethod normalize_timestamp(
value: str | datetime | None,
) str | datetime | None[source]
Parameters:

value (str | datetime | None)

Return type:

str | datetime | 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].