inttegro.schedule

Models, requests, and enums for the Inttegro schedule resource.

The primary returned object is inttegro.schedule.Schedule. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK.

 1"""Models, requests, and enums for the Inttegro schedule resource.
 2
 3The primary returned object is ``inttegro.schedule.Schedule``. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK."""
 4
 5from importlib import import_module
 6from typing import TYPE_CHECKING, Any
 7
 8if TYPE_CHECKING:
 9    from .cancel_detail import CancelDetail as CancelDetail
10    from .cancel_request import CancelRequest as CancelRequest
11    from .cancel_response import CancelResponse as CancelResponse
12    from .chime_request import ChimeRequest as ChimeRequest
13    from .chime_request_request_meta import ChimeRequestRequestMeta as ChimeRequestRequestMeta
14    from .creation_detail import CreationDetail as CreationDetail
15    from .error import Error as Error
16    from .lookup_request import LookupRequest as LookupRequest
17    from .lookup_response import LookupResponse as LookupResponse
18    from .payout_request import PayoutRequest as PayoutRequest
19    from .payout_response import PayoutResponse as PayoutResponse
20    from .response import Response as Response
21    from .schedule import Schedule as Schedule
22
23
24_EXPORTS: dict[str, tuple[str, str]] = {
25    "CancelDetail": ("inttegro.schedule.cancel_detail", "CancelDetail"),
26    "CancelRequest": ("inttegro.schedule.cancel_request", "CancelRequest"),
27    "CancelResponse": ("inttegro.schedule.cancel_response", "CancelResponse"),
28    "ChimeRequest": ("inttegro.schedule.chime_request", "ChimeRequest"),
29    "ChimeRequestRequestMeta": ("inttegro.schedule.chime_request_request_meta", "ChimeRequestRequestMeta"),
30    "CreationDetail": ("inttegro.schedule.creation_detail", "CreationDetail"),
31    "Error": ("inttegro.schedule.error", "Error"),
32    "LookupRequest": ("inttegro.schedule.lookup_request", "LookupRequest"),
33    "LookupResponse": ("inttegro.schedule.lookup_response", "LookupResponse"),
34    "PayoutRequest": ("inttegro.schedule.payout_request", "PayoutRequest"),
35    "PayoutResponse": ("inttegro.schedule.payout_response", "PayoutResponse"),
36    "Response": ("inttegro.schedule.response", "Response"),
37    "Schedule": ("inttegro.schedule.schedule", "Schedule"),
38}
39
40__all__ = [
41    "CancelDetail",
42    "CancelRequest",
43    "CancelResponse",
44    "ChimeRequest",
45    "ChimeRequestRequestMeta",
46    "CreationDetail",
47    "Error",
48    "LookupRequest",
49    "LookupResponse",
50    "PayoutRequest",
51    "PayoutResponse",
52    "Response",
53    "Schedule",
54]
55
56
57def __getattr__(name: str) -> Any:
58    """Load a public resource type on first access."""
59    try:
60        module_name, attribute_name = _EXPORTS[name]
61    except KeyError:
62        raise AttributeError(f"module {__name__!r} has no attribute {name!r}") from None
63    value = getattr(import_module(module_name), attribute_name)
64    globals()[name] = value
65    return value
@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class CancelDetail(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class CancelDetail(ApiModel):
15    """Typed cancel detail data in the schedule resource namespace.
16
17    Instances are immutable API responses. ``from_dict()`` decodes nested
18    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
19    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
20    Fields not returned by the API remain absent and can still be queried
21    through mapping-style access.
22
23    API contract schema: ``ScheduleCancelDetail``.
24    """
25    chime_ids: list[str] | None = field(init=False)
26    """The chime ids associated with this cancel detail. Optional; nullable. Python type: ``list[str] | None``; wire name: ``chime_ids``; JSON type: array of string values"""
27    content: str = field(init=False)
28    """The content associated with this cancel detail. Required. Python type: ``str``; wire name: ``content``; JSON type: string"""
29    created_at: datetime = field(init=False)
30    """When the cancel detail was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)"""
31    customer_ids: list[str] | None = field(init=False)
32    """The customer ids associated with this cancel detail. Optional; nullable. Python type: ``list[str] | None``; wire name: ``customer_ids``; JSON type: array of string values"""
33    email: ChimeEmailMessage | None = field(init=False)
34    """Email content, safety scan result, and system-generated schema markup for email chimes. Optional; nullable. Python type: ``ChimeEmailMessage | None``; wire name: ``email``; JSON type: object (ChimeEmailMessage)"""
35    errors: list[ScheduleError] | None = field(init=False)
36    """The errors associated with this cancel detail. Optional; nullable. Python type: ``list[ScheduleError] | None``; wire name: ``errors``; JSON type: array of object (ScheduleError) values"""
37    executed_at: datetime | None = field(init=False)
38    """When execution of the cancel detail began. Optional; nullable. Python type: ``datetime | None``; wire name: ``executed_at``; JSON type: string (date-time)"""
39    id: str = field(init=False)
40    """Unique identifier for this cancel detail. Required. Python type: ``str``; wire name: ``id``; JSON type: string"""
41    idempotency_key: str | None = field(init=False)
42    """Stable key used to make retries of the same logical write safe. Optional; nullable. Python type: ``str | None``; wire name: ``idempotency_key``; JSON type: string"""
43    purpose: str | None = field(init=False)
44    """The purpose associated with this cancel detail. Optional; nullable. Python type: ``str | None``; wire name: ``purpose``; JSON type: string"""
45    recipients: list[str] = field(init=False)
46    """The recipients associated with this cancel detail. Required. Python type: ``list[str]``; wire name: ``recipients``; JSON type: array of string values"""
47    send_after: datetime = field(init=False)
48    """Timestamp for send after. Required. Python type: ``datetime``; wire name: ``send_after``; JSON type: string (date-time)"""
49    sender_id: str = field(init=False)
50    """Identifier of the related sender. Required. Python type: ``str``; wire name: ``sender_id``; JSON type: string"""
51    canceled_at: datetime | None = field(init=False)
52    """When the cancel detail was canceled. Optional; nullable. Python type: ``datetime | None``; wire name: ``canceled_at``; JSON type: string (date-time)"""

Typed cancel detail data in the schedule resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: ScheduleCancelDetail.

chime_ids: list[str] | None

The chime ids associated with this cancel detail. Optional; nullable. Python type: list[str] | None; wire name: chime_ids; JSON type: array of string values

content: str

The content associated with this cancel detail. Required. Python type: str; wire name: content; JSON type: string

created_at: datetime.datetime

When the cancel detail was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)

customer_ids: list[str] | None

The customer ids associated with this cancel detail. Optional; nullable. Python type: list[str] | None; wire name: customer_ids; JSON type: array of string values

Email content, safety scan result, and system-generated schema markup for email chimes. Optional; nullable. Python type: ChimeEmailMessage | None; wire name: email; JSON type: object (ChimeEmailMessage)

errors: list[Error] | None

The errors associated with this cancel detail. Optional; nullable. Python type: list[ScheduleError] | None; wire name: errors; JSON type: array of object (ScheduleError) values

executed_at: datetime.datetime | None

When execution of the cancel detail began. Optional; nullable. Python type: datetime | None; wire name: executed_at; JSON type: string (date-time)

id: str

Unique identifier for this cancel detail. Required. Python type: str; wire name: id; JSON type: string

idempotency_key: str | None

Stable key used to make retries of the same logical write safe. Optional; nullable. Python type: str | None; wire name: idempotency_key; JSON type: string

purpose: str | None

The purpose associated with this cancel detail. Optional; nullable. Python type: str | None; wire name: purpose; JSON type: string

recipients: list[str]

The recipients associated with this cancel detail. Required. Python type: list[str]; wire name: recipients; JSON type: array of string values

send_after: datetime.datetime

Timestamp for send after. Required. Python type: datetime; wire name: send_after; JSON type: string (date-time)

sender_id: str

Identifier of the related sender. Required. Python type: str; wire name: sender_id; JSON type: string

canceled_at: datetime.datetime | None

When the cancel detail was canceled. Optional; nullable. Python type: datetime | None; wire name: canceled_at; JSON type: string (date-time)

@dataclass(frozen=True, slots=True, kw_only=True)
class CancelRequest(inttegro._request_base.ApiRequest):
12@dataclass(frozen=True, slots=True, kw_only=True)
13class CancelRequest(ApiRequest):
14    """Parameters accepted by the cancel request operation.
15
16    This is an immutable, keyword-only request object. ``to_dict()`` uses
17    the documented wire names, omits fields left as ``UNSET``, serializes
18    string-backed enums by value, and requires timezone-aware datetimes.
19
20    API contract schema: ``CancelScheduleRequest``.
21    """
22    schedule_id: str
23    """Identifier of the related schedule. Required. Python type: ``str``; wire name: ``schedule_id``; JSON type: string"""

Parameters accepted by the cancel request operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: CancelScheduleRequest.

CancelRequest(*, schedule_id: str)
schedule_id: str

Identifier of the related schedule. Required. Python type: str; wire name: schedule_id; JSON type: string

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class CancelResponse(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class CancelResponse(ApiModel):
14    """Typed response returned by the cancel operation.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``ScheduleCancelResponse``.
23    """
24    scheduled_chime: ScheduleCancelDetail | None = field(init=False)
25    """The scheduled chime associated with this cancel response. Optional; nullable. Python type: ``ScheduleCancelDetail | None``; wire name: ``scheduled_chime``; JSON type: object (ScheduleCancelDetail)"""

Typed response returned by the cancel operation.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: ScheduleCancelResponse.

scheduled_chime: CancelDetail | None

The scheduled chime associated with this cancel response. Optional; nullable. Python type: ScheduleCancelDetail | None; wire name: scheduled_chime; JSON type: object (ScheduleCancelDetail)

@dataclass(frozen=True, slots=True, kw_only=True)
class ChimeRequest(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class ChimeRequest(ApiRequest):
15    """Parameters accepted by the chime request operation.
16
17    This is an immutable, keyword-only request object. ``to_dict()`` uses
18    the documented wire names, omits fields left as ``UNSET``, serializes
19    string-backed enums by value, and requires timezone-aware datetimes.
20
21    API contract schema: ``ScheduleChimeRequest``.
22    """
23    request_meta: ScheduleChimeRequestRequestMeta | UnsetType = field(default=UNSET)
24    """The request meta associated with this chime request. Optional. Python type: ``ScheduleChimeRequestRequestMeta``; wire name: ``request_meta``; JSON type: object"""
25    full_message: str | UnsetType = field(default=UNSET)
26    """Complete SMS message content. Use only with SMS recipients. Optional. Python type: ``str``; wire name: ``full_message``; JSON type: string"""
27    email: ChimeEmailMessageInput | UnsetType = field(default=UNSET)
28    """Email content accepted for email chimes, broadcasts, and schedules. Optional. Python type: ``ChimeEmailMessageInput``; wire name: ``email``; JSON type: object (ChimeEmailMessageInput)"""
29    message_template: MessageTemplateReferenceInput | UnsetType = field(default=UNSET)
30    """The message template associated with this chime request. Optional. Python type: ``MessageTemplateReferenceInput``; wire name: ``message_template``; JSON type: object (MessageTemplateReference)"""
31    sender_id: str | UnsetType = field(default=UNSET)
32    """Sender identifier displayed to recipients. Optional. Python type: ``str``; wire name: ``sender_id``; JSON type: string"""
33    purpose: str | UnsetType = field(default=UNSET)
34    """Optional purpose or category for this scheduled chime. Optional. Python type: ``str``; wire name: ``purpose``; JSON type: string"""
35    recipients: list[ChimeRecipientInput]
36    """Recipient objects for this scheduled chime. Each item must include `transport` and either inline contact details or `customer_id`. Required. Python type: ``list[ChimeRecipientInput]``; wire name: ``recipients``; JSON type: array of object (ChimeRecipient) values. Constraints: minimum items 1"""
37    send_after: datetime
38    """ISO 8601 timestamp for when to send the chime (must be in the future). Required. Python type: ``datetime``; wire name: ``send_after``; JSON type: string (date-time)"""

Parameters accepted by the chime request operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: ScheduleChimeRequest.

ChimeRequest( *, request_meta: ChimeRequestRequestMeta | inttegro._request_base.UnsetType = UNSET, full_message: str | inttegro._request_base.UnsetType = UNSET, email: inttegro.chime.EmailMessageInput | inttegro._request_base.UnsetType = UNSET, message_template: inttegro.message_template.ReferenceInput | inttegro._request_base.UnsetType = UNSET, sender_id: str | inttegro._request_base.UnsetType = UNSET, purpose: str | inttegro._request_base.UnsetType = UNSET, recipients: list[inttegro.chime.InlineRecipientInputVariant1 | inttegro.chime.InlineRecipientInputVariant2 | inttegro.chime.SavedCustomerRecipientInput], send_after: datetime.datetime)
request_meta: ChimeRequestRequestMeta | inttegro._request_base.UnsetType

The request meta associated with this chime request. Optional. Python type: ScheduleChimeRequestRequestMeta; wire name: request_meta; JSON type: object

full_message: str | inttegro._request_base.UnsetType

Complete SMS message content. Use only with SMS recipients. Optional. Python type: str; wire name: full_message; JSON type: string

email: inttegro.chime.EmailMessageInput | inttegro._request_base.UnsetType

Email content accepted for email chimes, broadcasts, and schedules. Optional. Python type: ChimeEmailMessageInput; wire name: email; JSON type: object (ChimeEmailMessageInput)

message_template: inttegro.message_template.ReferenceInput | inttegro._request_base.UnsetType

The message template associated with this chime request. Optional. Python type: MessageTemplateReferenceInput; wire name: message_template; JSON type: object (MessageTemplateReference)

sender_id: str | inttegro._request_base.UnsetType

Sender identifier displayed to recipients. Optional. Python type: str; wire name: sender_id; JSON type: string

purpose: str | inttegro._request_base.UnsetType

Optional purpose or category for this scheduled chime. Optional. Python type: str; wire name: purpose; JSON type: string

Recipient objects for this scheduled chime. Each item must include transport and either inline contact details or customer_id. Required. Python type: list[ChimeRecipientInput]; wire name: recipients; JSON type: array of object (ChimeRecipient) values. Constraints: minimum items 1

send_after: datetime.datetime

ISO 8601 timestamp for when to send the chime (must be in the future). Required. Python type: datetime; wire name: send_after; JSON type: string (date-time)

@dataclass(frozen=True, slots=True, kw_only=True)
class ChimeRequestRequestMeta(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class ChimeRequestRequestMeta(ApiRequest):
15    """Parameters accepted by the chime request request meta operation.
16
17    This is an immutable, keyword-only request object. ``to_dict()`` uses
18    the documented wire names, omits fields left as ``UNSET``, serializes
19    string-backed enums by value, and requires timezone-aware datetimes.
20
21    API contract schema: ``ScheduleChimeRequestRequestMeta``.
22    """
23    idempotency_key: str | UnsetType = field(default=UNSET)
24    """Stable retry key. It must match the Idempotency-Key header when both are provided. Optional. Python type: ``str``; wire name: ``idempotency_key``; JSON type: string"""
25    response: Response | UnsetType = field(default=UNSET)
26    """Optional typed selection of public response properties. Python type: ``Response``; wire name: ``response``; JSON type: object (RequestResponse)"""

Parameters accepted by the chime request request meta operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: ScheduleChimeRequestRequestMeta.

ChimeRequestRequestMeta( *, idempotency_key: str | inttegro._request_base.UnsetType = UNSET, response: Response | inttegro._request_base.UnsetType = UNSET)
idempotency_key: str | inttegro._request_base.UnsetType

Stable retry key. It must match the Idempotency-Key header when both are provided. Optional. Python type: str; wire name: idempotency_key; JSON type: string

response: Response | inttegro._request_base.UnsetType

Optional typed selection of public response properties. Python type: Response; wire name: response; JSON type: object (RequestResponse)

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class CreationDetail(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class CreationDetail(ApiModel):
15    """Typed creation detail data in the schedule resource namespace.
16
17    Instances are immutable API responses. ``from_dict()`` decodes nested
18    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
19    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
20    Fields not returned by the API remain absent and can still be queried
21    through mapping-style access.
22
23    API contract schema: ``ScheduleCreationDetail``.
24    """
25    created_at: datetime = field(init=False)
26    """When the creation detail was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)"""
27    customer_ids: list[str] | None = field(init=False)
28    """The customer ids associated with this creation detail. Optional; nullable. Python type: ``list[str] | None``; wire name: ``customer_ids``; JSON type: array of string values"""
29    email: ChimeEmailMessage | None = field(init=False)
30    """Email content, safety scan result, and system-generated schema markup for email chimes. Optional; nullable. Python type: ``ChimeEmailMessage | None``; wire name: ``email``; JSON type: object (ChimeEmailMessage)"""
31    executed_at: datetime | None = field(init=False)
32    """When execution of the creation detail began. Optional; nullable. Python type: ``datetime | None``; wire name: ``executed_at``; JSON type: string (date-time)"""
33    full_message: str = field(init=False)
34    """The full message associated with this creation detail. Required. Python type: ``str``; wire name: ``full_message``; JSON type: string"""
35    id: str = field(init=False)
36    """Unique identifier for this creation detail. Required. Python type: ``str``; wire name: ``id``; JSON type: string"""
37    idempotency_key: str | None = field(init=False)
38    """Stable key used to make retries of the same logical write safe. Optional; nullable. Python type: ``str | None``; wire name: ``idempotency_key``; JSON type: string"""
39    purpose: str | None = field(init=False)
40    """The purpose associated with this creation detail. Optional; nullable. Python type: ``str | None``; wire name: ``purpose``; JSON type: string"""
41    recipients: list[str] | None = field(init=False)
42    """The recipients associated with this creation detail. Optional; nullable. Python type: ``list[str] | None``; wire name: ``recipients``; JSON type: array of string values"""
43    send_after: datetime = field(init=False)
44    """Timestamp for send after. Required. Python type: ``datetime``; wire name: ``send_after``; JSON type: string (date-time)"""
45    sender_id: str = field(init=False)
46    """Identifier of the related sender. Required. Python type: ``str``; wire name: ``sender_id``; JSON type: string"""

Typed creation detail data in the schedule resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: ScheduleCreationDetail.

created_at: datetime.datetime

When the creation detail was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)

customer_ids: list[str] | None

The customer ids associated with this creation detail. Optional; nullable. Python type: list[str] | None; wire name: customer_ids; JSON type: array of string values

Email content, safety scan result, and system-generated schema markup for email chimes. Optional; nullable. Python type: ChimeEmailMessage | None; wire name: email; JSON type: object (ChimeEmailMessage)

executed_at: datetime.datetime | None

When execution of the creation detail began. Optional; nullable. Python type: datetime | None; wire name: executed_at; JSON type: string (date-time)

full_message: str

The full message associated with this creation detail. Required. Python type: str; wire name: full_message; JSON type: string

id: str

Unique identifier for this creation detail. Required. Python type: str; wire name: id; JSON type: string

idempotency_key: str | None

Stable key used to make retries of the same logical write safe. Optional; nullable. Python type: str | None; wire name: idempotency_key; JSON type: string

purpose: str | None

The purpose associated with this creation detail. Optional; nullable. Python type: str | None; wire name: purpose; JSON type: string

recipients: list[str] | None

The recipients associated with this creation detail. Optional; nullable. Python type: list[str] | None; wire name: recipients; JSON type: array of string values

send_after: datetime.datetime

Timestamp for send after. Required. Python type: datetime; wire name: send_after; JSON type: string (date-time)

sender_id: str

Identifier of the related sender. Required. Python type: str; wire name: sender_id; JSON type: string

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Error(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class Error(ApiModel):
14    """Error encountered when scheduling a chime for a specific recipient.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``ScheduleError``.
23    """
24    recipient: str | None = field(init=False)
25    """Recipient address that caused the error. Optional; nullable. Python type: ``str | None``; wire name: ``recipient``; JSON type: string"""
26    fix_code: str | None = field(init=False)
27    """Code indicating how to fix this error. Optional; nullable. Python type: ``str | None``; wire name: ``fix_code``; JSON type: string"""
28    type: str | None = field(init=False)
29    """Error type classification. Optional; nullable. Python type: ``str | None``; wire name: ``type``; JSON type: string"""

Error encountered when scheduling a chime for a specific recipient.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: ScheduleError.

recipient: str | None

Recipient address that caused the error. Optional; nullable. Python type: str | None; wire name: recipient; JSON type: string

fix_code: str | None

Code indicating how to fix this error. Optional; nullable. Python type: str | None; wire name: fix_code; JSON type: string

type: str | None

Error type classification. Optional; nullable. Python type: str | None; wire name: type; JSON type: string

@dataclass(frozen=True, slots=True, kw_only=True)
class LookupRequest(inttegro._request_base.ApiRequest):
12@dataclass(frozen=True, slots=True, kw_only=True)
13class LookupRequest(ApiRequest):
14    """Parameters accepted by the lookup request operation.
15
16    This is an immutable, keyword-only request object. ``to_dict()`` uses
17    the documented wire names, omits fields left as ``UNSET``, serializes
18    string-backed enums by value, and requires timezone-aware datetimes.
19
20    API contract schema: ``LookupScheduleRequest``.
21    """
22    schedule_id: str
23    """Identifier of the related schedule. Required. Python type: ``str``; wire name: ``schedule_id``; JSON type: string"""

Parameters accepted by the lookup request operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: LookupScheduleRequest.

LookupRequest(*, schedule_id: str)
schedule_id: str

Identifier of the related schedule. Required. Python type: str; wire name: schedule_id; JSON type: string

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class LookupResponse(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class LookupResponse(ApiModel):
14    """Typed response returned by the lookup operation.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``ScheduleLookupResponse``.
23    """
24    scheduled_chime: ScheduleDetail | None = field(init=False)
25    """The scheduled chime associated with this lookup response. Optional; nullable. Python type: ``ScheduleDetail | None``; wire name: ``scheduled_chime``; JSON type: object (ScheduleDetail)"""

Typed response returned by the lookup operation.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: ScheduleLookupResponse.

scheduled_chime: Schedule | None

The scheduled chime associated with this lookup response. Optional; nullable. Python type: ScheduleDetail | None; wire name: scheduled_chime; JSON type: object (ScheduleDetail)

@dataclass(frozen=True, slots=True, kw_only=True)
class PayoutRequest(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class PayoutRequest(ApiRequest):
15    """A payout scheduled from your Inttegro balance to a destination financial account.
16
17    This is an immutable, keyword-only request object. ``to_dict()`` uses
18    the documented wire names, omits fields left as ``UNSET``, serializes
19    string-backed enums by value, and requires timezone-aware datetimes.
20
21    API contract schema: ``SchedulePayoutRequest``.
22    """
23    execute_after: datetime | UnsetType = field(default=UNSET)
24    """Earliest moment payout execution may begin. Optional. Python type: ``datetime``; wire name: ``execute_after``; JSON type: string (date-time)"""
25    max_amount: int | UnsetType = field(default=UNSET)
26    """Monetary max amount, represented by a currency and an integer minor-unit value. Optional. Python type: ``int``; wire name: ``max_amount``; JSON type: object (Amount)"""
27    destination_id: str
28    """Financial account receiving the funds. Required. Python type: ``str``; wire name: ``destination_id``; JSON type: string"""
29    reference: str
30    """Merchant reference carried on the payout. Required. Python type: ``str``; wire name: ``reference``; JSON type: string"""

A payout scheduled from your Inttegro balance to a destination financial account.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: SchedulePayoutRequest.

PayoutRequest( *, execute_after: datetime.datetime | inttegro._request_base.UnsetType = UNSET, max_amount: int | inttegro._request_base.UnsetType = UNSET, destination_id: str, reference: str)
execute_after: datetime.datetime | inttegro._request_base.UnsetType

Earliest moment payout execution may begin. Optional. Python type: datetime; wire name: execute_after; JSON type: string (date-time)

max_amount: int | inttegro._request_base.UnsetType

Monetary max amount, represented by a currency and an integer minor-unit value. Optional. Python type: int; wire name: max_amount; JSON type: object (Amount)

destination_id: str

Financial account receiving the funds. Required. Python type: str; wire name: destination_id; JSON type: string

reference: str

Merchant reference carried on the payout. Required. Python type: str; wire name: reference; JSON type: string

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class PayoutResponse(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class PayoutResponse(ApiModel):
14    """Typed response returned by the payout operation.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``SchedulePayoutResponse``.
23    """
24    payout: Payout | None = field(init=False)
25    """The payout associated with this payout response. Optional; nullable. Python type: ``Payout | None``; wire name: ``payout``; JSON type: object"""

Typed response returned by the payout operation.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: SchedulePayoutResponse.

payout: inttegro.payout.Payout | None

The payout associated with this payout response. Optional; nullable. Python type: Payout | None; wire name: payout; JSON type: object

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Response(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class Response(ApiModel):
14    """Typed response returned by the response operation.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``ScheduleResponse``.
23    """
24    scheduled_chime: ScheduleCreationDetail | None = field(init=False)
25    """The scheduled chime associated with this response. Optional; nullable. Python type: ``ScheduleCreationDetail | None``; wire name: ``scheduled_chime``; JSON type: object (ScheduleCreationDetail)"""

Typed response returned by the response operation.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: ScheduleResponse.

scheduled_chime: CreationDetail | None

The scheduled chime associated with this response. Optional; nullable. Python type: ScheduleCreationDetail | None; wire name: scheduled_chime; JSON type: object (ScheduleCreationDetail)

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Schedule(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class Schedule(ApiModel):
15    """Typed schedule data in the schedule resource namespace.
16
17    Instances are immutable API responses. ``from_dict()`` decodes nested
18    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
19    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
20    Fields not returned by the API remain absent and can still be queried
21    through mapping-style access.
22
23    API contract schema: ``ScheduleDetail``.
24    """
25    chime_ids: list[str] | None = field(init=False)
26    """The chime ids associated with this schedule. Optional; nullable. Python type: ``list[str] | None``; wire name: ``chime_ids``; JSON type: array of string values"""
27    content: str = field(init=False)
28    """The content associated with this schedule. Required. Python type: ``str``; wire name: ``content``; JSON type: string"""
29    created_at: datetime = field(init=False)
30    """When the schedule was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)"""
31    customer_ids: list[str] | None = field(init=False)
32    """The customer ids associated with this schedule. Optional; nullable. Python type: ``list[str] | None``; wire name: ``customer_ids``; JSON type: array of string values"""
33    email: ChimeEmailMessage | None = field(init=False)
34    """Email content, safety scan result, and system-generated schema markup for email chimes. Optional; nullable. Python type: ``ChimeEmailMessage | None``; wire name: ``email``; JSON type: object (ChimeEmailMessage)"""
35    errors: list[ScheduleError] | None = field(init=False)
36    """The errors associated with this schedule. Optional; nullable. Python type: ``list[ScheduleError] | None``; wire name: ``errors``; JSON type: array of object (ScheduleError) values"""
37    executed_at: datetime | None = field(init=False)
38    """When execution of the schedule began. Optional; nullable. Python type: ``datetime | None``; wire name: ``executed_at``; JSON type: string (date-time)"""
39    id: str = field(init=False)
40    """Unique identifier for this schedule. Required. Python type: ``str``; wire name: ``id``; JSON type: string"""
41    idempotency_key: str | None = field(init=False)
42    """Stable key used to make retries of the same logical write safe. Optional; nullable. Python type: ``str | None``; wire name: ``idempotency_key``; JSON type: string"""
43    purpose: str | None = field(init=False)
44    """The purpose associated with this schedule. Optional; nullable. Python type: ``str | None``; wire name: ``purpose``; JSON type: string"""
45    recipients: list[str] = field(init=False)
46    """The recipients associated with this schedule. Required. Python type: ``list[str]``; wire name: ``recipients``; JSON type: array of string values"""
47    send_after: datetime = field(init=False)
48    """Timestamp for send after. Required. Python type: ``datetime``; wire name: ``send_after``; JSON type: string (date-time)"""
49    sender_id: str = field(init=False)
50    """Identifier of the related sender. Required. Python type: ``str``; wire name: ``sender_id``; JSON type: string"""

Typed schedule data in the schedule resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: ScheduleDetail.

chime_ids: list[str] | None

The chime ids associated with this schedule. Optional; nullable. Python type: list[str] | None; wire name: chime_ids; JSON type: array of string values

content: str

The content associated with this schedule. Required. Python type: str; wire name: content; JSON type: string

created_at: datetime.datetime

When the schedule was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)

customer_ids: list[str] | None

The customer ids associated with this schedule. Optional; nullable. Python type: list[str] | None; wire name: customer_ids; JSON type: array of string values

Email content, safety scan result, and system-generated schema markup for email chimes. Optional; nullable. Python type: ChimeEmailMessage | None; wire name: email; JSON type: object (ChimeEmailMessage)

errors: list[Error] | None

The errors associated with this schedule. Optional; nullable. Python type: list[ScheduleError] | None; wire name: errors; JSON type: array of object (ScheduleError) values

executed_at: datetime.datetime | None

When execution of the schedule began. Optional; nullable. Python type: datetime | None; wire name: executed_at; JSON type: string (date-time)

id: str

Unique identifier for this schedule. Required. Python type: str; wire name: id; JSON type: string

idempotency_key: str | None

Stable key used to make retries of the same logical write safe. Optional; nullable. Python type: str | None; wire name: idempotency_key; JSON type: string

purpose: str | None

The purpose associated with this schedule. Optional; nullable. Python type: str | None; wire name: purpose; JSON type: string

recipients: list[str]

The recipients associated with this schedule. Required. Python type: list[str]; wire name: recipients; JSON type: array of string values

send_after: datetime.datetime

Timestamp for send after. Required. Python type: datetime; wire name: send_after; JSON type: string (date-time)

sender_id: str

Identifier of the related sender. Required. Python type: str; wire name: sender_id; JSON type: string