diff --git a/conversation_assign.go b/conversation_assign.go index 7342640..bbb6ede 100644 --- a/conversation_assign.go +++ b/conversation_assign.go @@ -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. diff --git a/conversation_cancel.go b/conversation_cancel.go index 4c354a4..dc8d2ec 100644 --- a/conversation_cancel.go +++ b/conversation_cancel.go @@ -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. diff --git a/conversation_finish.go b/conversation_finish.go index d56d3e5..9445da5 100644 --- a/conversation_finish.go +++ b/conversation_finish.go @@ -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.