Interface CloseOperationBuilder.WithChat
- Enclosing interface:
CloseOperationBuilder
public static interface CloseOperationBuilder.WithChat
Builder stage that holds the selected chat.
- Since:
- 12.23
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder stage for agent-executed chat close operations.static interfaceBuilder stage for supervisor-executed chat close operations. -
Method Summary
Modifier and TypeMethodDescriptionSets the agent user for this close operation.supervisor(User user) Sets the supervisor user for this close operation.transactionCode(TransactionCode transactionCode) Sets the transaction code for this close operation.
-
Method Details
-
transactionCode
CloseOperationBuilder.WithChat transactionCode(TransactionCode transactionCode) throws ValidationException Sets the transaction code for this close operation.- Parameters:
transactionCode- the transaction code for the close operation.- Returns:
- the CloseOperationBuilder.WithChat
- Throws:
ValidationException- e.g. if the transaction code is invalid * or the transaction code is not assigned * to the category of the chat.- Since:
- 12.23
-
supervisor
Sets the supervisor user for this close operation.- Parameters:
user- the user executing the operation- Returns:
- the CloseOperationBuilder.WithChat.AsSupervisor
- Throws:
ValidationException- e.g. if the specified user is invalid, deleted or not a supervisor for the category of the chat or the chat is in a state which disallows being closed by a supervisor.- Since:
- 12.23
-
agent
Sets the agent user for this close operation.- Parameters:
user- the user executing the operation- Returns:
- the CloseOperationBuilder.WithChat.AsAgent
- Throws:
ValidationException- e.g. if the specified user is invalid, deleted, not logged in, not an agent or the user is not currently assigned to the chat.- Since:
- 12.23
-