Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
POST | /ownerTicketType/Search | Search for event ticket prices |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class OwnerTicketTypeSearchRequest
{
public Integer ownerId = null;
public String ksiOwnerid = null;
public Integer getOwnerId() { return ownerId; }
public OwnerTicketTypeSearchRequest setOwnerId(Integer value) { this.ownerId = value; return this; }
public String getKsiOwnerid() { return ksiOwnerid; }
public OwnerTicketTypeSearchRequest setKsiOwnerid(String value) { this.ksiOwnerid = value; return this; }
}
public static class OwnerTicketTypeResult
{
public EventSeriesOwnerTicketType ticketType = null;
public Integer statusCode = null;
public String message = null;
public EventSeriesOwnerTicketType getTicketType() { return ticketType; }
public OwnerTicketTypeResult setTicketType(EventSeriesOwnerTicketType value) { this.ticketType = value; return this; }
public Integer getStatusCode() { return statusCode; }
public OwnerTicketTypeResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public OwnerTicketTypeResult setMessage(String value) { this.message = value; return this; }
}
public static class EventSeriesOwnerTicketType
{
public Integer id = null;
public String name = null;
public BigDecimal defaultPrice = null;
public Integer seriesId = null;
public Integer ownerId = null;
public Integer ticketTypeListOrder = null;
public Boolean isActive = null;
public Integer maxTickets = null;
public String ticketColor = null;
public Boolean showUsedTickets = null;
public Boolean canOnlyBeBoughtWithTeamPass = null;
public Boolean isSpecialTicket = null;
public String specialTicketId = null;
public Boolean onlyForKsi = null;
public Date timestampCreated = null;
public Date timestampLastChanged = null;
public Boolean ticketsForSalePerEvent = null;
public String imageUrl = null;
public Boolean holderInfoRequired = null;
public Integer eventSeriesOwnerSeatingSectionId = null;
public Boolean canOnlyBeBought = null;
public Boolean canNotBeBought = null;
public Boolean blockTransfer = null;
public Integer maxTicketsPerTransaction = null;
public Boolean forceSingleTickets = null;
public Integer onlyForEvent = null;
public String currency = null;
public Integer getId() { return id; }
public EventSeriesOwnerTicketType setId(Integer value) { this.id = value; return this; }
public String getName() { return name; }
public EventSeriesOwnerTicketType setName(String value) { this.name = value; return this; }
public BigDecimal getDefaultPrice() { return defaultPrice; }
public EventSeriesOwnerTicketType setDefaultPrice(BigDecimal value) { this.defaultPrice = value; return this; }
public Integer getSeriesId() { return seriesId; }
public EventSeriesOwnerTicketType setSeriesId(Integer value) { this.seriesId = value; return this; }
public Integer getOwnerId() { return ownerId; }
public EventSeriesOwnerTicketType setOwnerId(Integer value) { this.ownerId = value; return this; }
public Integer getTicketTypeListOrder() { return ticketTypeListOrder; }
public EventSeriesOwnerTicketType setTicketTypeListOrder(Integer value) { this.ticketTypeListOrder = value; return this; }
public Boolean getIsActive() { return isActive; }
public EventSeriesOwnerTicketType setIsActive(Boolean value) { this.isActive = value; return this; }
public Integer getMaxTickets() { return maxTickets; }
public EventSeriesOwnerTicketType setMaxTickets(Integer value) { this.maxTickets = value; return this; }
public String getTicketColor() { return ticketColor; }
public EventSeriesOwnerTicketType setTicketColor(String value) { this.ticketColor = value; return this; }
public Boolean isShowUsedTickets() { return showUsedTickets; }
public EventSeriesOwnerTicketType setShowUsedTickets(Boolean value) { this.showUsedTickets = value; return this; }
public Boolean isCanOnlyBeBoughtWithTeamPass() { return canOnlyBeBoughtWithTeamPass; }
public EventSeriesOwnerTicketType setCanOnlyBeBoughtWithTeamPass(Boolean value) { this.canOnlyBeBoughtWithTeamPass = value; return this; }
public Boolean getIsSpecialTicket() { return isSpecialTicket; }
public EventSeriesOwnerTicketType setIsSpecialTicket(Boolean value) { this.isSpecialTicket = value; return this; }
public String getSpecialTicketId() { return specialTicketId; }
public EventSeriesOwnerTicketType setSpecialTicketId(String value) { this.specialTicketId = value; return this; }
public Boolean isOnlyForKsi() { return onlyForKsi; }
public EventSeriesOwnerTicketType setOnlyForKsi(Boolean value) { this.onlyForKsi = value; return this; }
public Date getTimestampCreated() { return timestampCreated; }
public EventSeriesOwnerTicketType setTimestampCreated(Date value) { this.timestampCreated = value; return this; }
public Date getTimestampLastChanged() { return timestampLastChanged; }
public EventSeriesOwnerTicketType setTimestampLastChanged(Date value) { this.timestampLastChanged = value; return this; }
public Boolean isTicketsForSalePerEvent() { return ticketsForSalePerEvent; }
public EventSeriesOwnerTicketType setTicketsForSalePerEvent(Boolean value) { this.ticketsForSalePerEvent = value; return this; }
public String getImageUrl() { return imageUrl; }
public EventSeriesOwnerTicketType setImageUrl(String value) { this.imageUrl = value; return this; }
public Boolean isHolderInfoRequired() { return holderInfoRequired; }
public EventSeriesOwnerTicketType setHolderInfoRequired(Boolean value) { this.holderInfoRequired = value; return this; }
public Integer getEventSeriesOwnerSeatingSectionId() { return eventSeriesOwnerSeatingSectionId; }
public EventSeriesOwnerTicketType setEventSeriesOwnerSeatingSectionId(Integer value) { this.eventSeriesOwnerSeatingSectionId = value; return this; }
public Boolean isCanOnlyBeBought() { return canOnlyBeBought; }
public EventSeriesOwnerTicketType setCanOnlyBeBought(Boolean value) { this.canOnlyBeBought = value; return this; }
public Boolean isCanNotBeBought() { return canNotBeBought; }
public EventSeriesOwnerTicketType setCanNotBeBought(Boolean value) { this.canNotBeBought = value; return this; }
public Boolean isBlockTransfer() { return blockTransfer; }
public EventSeriesOwnerTicketType setBlockTransfer(Boolean value) { this.blockTransfer = value; return this; }
public Integer getMaxTicketsPerTransaction() { return maxTicketsPerTransaction; }
public EventSeriesOwnerTicketType setMaxTicketsPerTransaction(Integer value) { this.maxTicketsPerTransaction = value; return this; }
public Boolean isForceSingleTickets() { return forceSingleTickets; }
public EventSeriesOwnerTicketType setForceSingleTickets(Boolean value) { this.forceSingleTickets = value; return this; }
public Integer getOnlyForEvent() { return onlyForEvent; }
public EventSeriesOwnerTicketType setOnlyForEvent(Integer value) { this.onlyForEvent = value; return this; }
public String getCurrency() { return currency; }
public EventSeriesOwnerTicketType setCurrency(String value) { this.currency = value; return this; }
}
}
Java OwnerTicketTypeSearchRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ownerTicketType/Search HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<OwnerTicketTypeSearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<OwnerId>0</OwnerId>
<ksiOwnerid>String</ksiOwnerid>
</OwnerTicketTypeSearchRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <OwnerTicketTypeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Message>String</Message> <StatusCode>0</StatusCode> <TicketType xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d2p1:BlockTransfer>false</d2p1:BlockTransfer> <d2p1:CanNotBeBought>false</d2p1:CanNotBeBought> <d2p1:CanOnlyBeBought>false</d2p1:CanOnlyBeBought> <d2p1:CanOnlyBeBoughtWithTeamPass>false</d2p1:CanOnlyBeBoughtWithTeamPass> <d2p1:Currency>String</d2p1:Currency> <d2p1:DefaultPrice>0</d2p1:DefaultPrice> <d2p1:EventSeriesOwnerSeatingSectionId>0</d2p1:EventSeriesOwnerSeatingSectionId> <d2p1:ForceSingleTickets>false</d2p1:ForceSingleTickets> <d2p1:HolderInfoRequired>false</d2p1:HolderInfoRequired> <d2p1:ID>0</d2p1:ID> <d2p1:ImageUrl>String</d2p1:ImageUrl> <d2p1:IsActive>false</d2p1:IsActive> <d2p1:IsSpecialTicket>false</d2p1:IsSpecialTicket> <d2p1:MaxTickets>0</d2p1:MaxTickets> <d2p1:MaxTicketsPerTransaction>0</d2p1:MaxTicketsPerTransaction> <d2p1:Name>String</d2p1:Name> <d2p1:OnlyForEvent>0</d2p1:OnlyForEvent> <d2p1:OnlyForKsi>false</d2p1:OnlyForKsi> <d2p1:OwnerId>0</d2p1:OwnerId> <d2p1:SeriesId>0</d2p1:SeriesId> <d2p1:ShowUsedTickets>false</d2p1:ShowUsedTickets> <d2p1:SpecialTicketId>String</d2p1:SpecialTicketId> <d2p1:TicketColor>String</d2p1:TicketColor> <d2p1:TicketTypeListOrder>0</d2p1:TicketTypeListOrder> <d2p1:TicketsForSalePerEvent>false</d2p1:TicketsForSalePerEvent> <d2p1:TimestampCreated>0001-01-01T00:00:00</d2p1:TimestampCreated> <d2p1:TimestampLastChanged>0001-01-01T00:00:00</d2p1:TimestampLastChanged> </TicketType> </OwnerTicketTypeResult>