-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathticket_reply.py
More file actions
52 lines (34 loc) · 1.42 KB
/
ticket_reply.py
File metadata and controls
52 lines (34 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
from typing_extensions import Literal
from .._models import BaseModel
from .shared.part_attachment import PartAttachment
__all__ = ["TicketReply", "Author"]
class Author(BaseModel):
id: Optional[str] = None
"""The id of the author"""
email: Optional[str] = None
"""The email of the author"""
name: Optional[str] = None
"""The name of the author"""
type: Optional[Literal["admin", "bot", "team", "user"]] = None
"""The type of the author"""
class TicketReply(BaseModel):
id: Optional[str] = None
"""The id representing the part."""
attachments: Optional[List[PartAttachment]] = None
"""A list of attachments for the part."""
author: Optional[Author] = None
"""The author that wrote or triggered the part. Can be a bot, admin, team or user."""
body: Optional[str] = None
"""The message body, which may contain HTML."""
created_at: Optional[int] = None
"""The time the note was created."""
part_type: Optional[Literal["note", "comment", "quick_reply"]] = None
"""Type of the part"""
redacted: Optional[bool] = None
"""Whether or not the ticket part has been redacted."""
type: Optional[Literal["ticket_part"]] = None
"""Always ticket_part"""
updated_at: Optional[int] = None
"""The last time the note was updated."""