Skip to content

Commit

Permalink
Add reason field to cancel, assign, and finish (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlathia authored Dec 7, 2024
2 parents adca270 + 701b29e commit a70d2f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conversation_assign.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ 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 optionally allows you to describe why this assignment is happening.
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 finishing.
Reason string `json:"reason,omitempty"`
}

// FinishConversation finishes a conversation.
Expand Down

0 comments on commit a70d2f5

Please sign in to comment.