Skip to content

Commit a70d2f5

Browse files
authored
Add reason field to cancel, assign, and finish (#27)
2 parents adca270 + 701b29e commit a70d2f5

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

conversation_assign.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ type AssignmentParams struct {
2020
// Timestamp optionally defines the time when the conversation was assigned.
2121
// If not given, this will default to the current time.
2222
Timestamp *time.Time `json:"timestamp,omitempty"`
23+
24+
// Reason optionally allows you to describe why this assignment is happening.
25+
Reason string `json:"reason,omitempty"`
2326
}
2427

2528
// AssignConversation assigns a conversation to a participant.

conversation_cancel.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ type CancelParams struct {
1111
// Timestamp optionally defines the time when the conversation was cancelled.
1212
// If not given, this will default to the current time.
1313
Timestamp *time.Time `json:"timestamp,omitempty"`
14+
15+
// Reason optionally allows you to describe why this cancellation is happening.
16+
Reason string `json:"reason,omitempty"`
1417
}
1518

1619
// CancelConversation cancels the conversation.

conversation_finish.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ type FinishParams struct {
1111
// Timestamp optionally defines the time when the conversation ended.
1212
// If not given, this will default to the current time.
1313
Timestamp *time.Time `json:"timestamp,omitempty"`
14+
15+
// Reason optionally allows you to describe why this conversation is finishing.
16+
Reason string `json:"reason,omitempty"`
1417
}
1518

1619
// FinishConversation finishes a conversation.

0 commit comments

Comments
 (0)