Skip to content

Commit

Permalink
Add reason field to cancel, assign, and finish
Browse files Browse the repository at this point in the history
  • Loading branch information
nlathia committed Dec 6, 2024
1 parent adca270 commit e1da226
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conversation_assign.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ type AssignmentParams struct {
// Timestamp optionally defines the time when the conversation was assigned.
// If not given, this will default to the current time.
Timestamp *time.Time `json:"timestamp,omitempty"`

Reason string `json:"reason,omitempty"`
}

// AssignConversation assigns a conversation to a participant.
Expand Down
3 changes: 3 additions & 0 deletions conversation_cancel.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ type CancelParams struct {
// Timestamp optionally defines the time when the conversation was cancelled.
// If not given, this will default to the current time.
Timestamp *time.Time `json:"timestamp,omitempty"`

// Reason optionally allows you to describe why this cancellation is happening.
Reason string `json:"reason,omitempty"`
}

// CancelConversation cancels the conversation.
Expand Down
3 changes: 3 additions & 0 deletions conversation_finish.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ type FinishParams struct {
// Timestamp optionally defines the time when the conversation ended.
// If not given, this will default to the current time.
Timestamp *time.Time `json:"timestamp,omitempty"`

// Reason optionally allows you to describe why this conversation is being finished.
Reason string `json:"reason,omitempty"`
}

// FinishConversation finishes a conversation.
Expand Down

0 comments on commit e1da226

Please sign in to comment.