Interface CreateTicketOperationBuilder
public interface CreateTicketOperationBuilder
This interface provides a builder to build operations to create a new ticket.
- Since:
- 12.25
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThis method returns aCreateTicketOperationBuilder.WithRequired
instance with the required basic information for an anonymous user which is able to set the different parameters for building a new ticket.This method returns anCreateTicketOperationBuilder.WithRequired
instance with the required basic information which is able to set the different parameters for building a new ticket.
-
Method Details
-
with
CreateTicketOperationBuilder.WithRequired with(Category category, Account account) throws ValidationException This method returns aCreateTicketOperationBuilder.WithRequired
instance with the required basic information for an anonymous user which is able to set the different parameters for building a new ticket.- Parameters:
category
- theCategory
of new ticketaccount
- theAccount
of the new ticket- Returns:
- the
CreateTicketOperationBuilder.WithRequired
- Throws:
ValidationException
- if any of the parameters is invalid or mismatching to each other- Since:
- 12.25
-
with
CreateTicketOperationBuilder.WithRequired with(User user, Category category, Account account) throws ValidationException This method returns anCreateTicketOperationBuilder.WithRequired
instance with the required basic information which is able to set the different parameters for building a new ticket. The specified user must be an agent, otherwise aValidationException
is thrown. The specified category must be assigned to the agent, otherwise aValidationException
is thrown.- Parameters:
user
- theUser
to create the new ticket forcategory
- theCategory
of new ticketaccount
- theAccount
of the new ticket- Returns:
- the
CreateTicketOperationBuilder.WithRequired
- Throws:
ValidationException
- if any of the parameters is invalid or mismatching to each other- Since:
- 12.25
-