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.WithRequiredinstance 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.WithRequiredinstance 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.WithRequiredinstance with the required basic information for an anonymous user which is able to set the different parameters for building a new ticket.- Parameters:
category- theCategoryof new ticketaccount- theAccountof 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.WithRequiredinstance 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 aValidationExceptionis thrown. The specified category must be assigned to the agent, otherwise aValidationExceptionis thrown.- Parameters:
user- theUserto create the new ticket forcategory- theCategoryof new ticketaccount- theAccountof the new ticket- Returns:
- the
CreateTicketOperationBuilder.WithRequired - Throws:
ValidationException- if any of the parameters is invalid or mismatching to each other- Since:
- 12.25
-