Requires any of the roles: | Admin, TeamAdmin, MobileApp |
GET POST | /eventDetailsAndPrices/{Id} | ||
---|---|---|---|
GET POST | /eventDetailsAndPrices/Reference/{ReferenceId} |
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetEventDetailsAndPrices
{
public Integer version = null;
public String phoneVerificationNumber = null;
public String deviceId = null;
public Integer id = null;
public String referenceId = null;
public Boolean returnSoldOutTickets = null;
public String directAccessCode = null;
public Boolean dontReturnCards = null;
public Integer getVersion() { return version; }
public GetEventDetailsAndPrices setVersion(Integer value) { this.version = value; return this; }
public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
public GetEventDetailsAndPrices setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
public String getDeviceId() { return deviceId; }
public GetEventDetailsAndPrices setDeviceId(String value) { this.deviceId = value; return this; }
public Integer getId() { return id; }
public GetEventDetailsAndPrices setId(Integer value) { this.id = value; return this; }
public String getReferenceId() { return referenceId; }
public GetEventDetailsAndPrices setReferenceId(String value) { this.referenceId = value; return this; }
public Boolean isReturnSoldOutTickets() { return returnSoldOutTickets; }
public GetEventDetailsAndPrices setReturnSoldOutTickets(Boolean value) { this.returnSoldOutTickets = value; return this; }
public String getDirectAccessCode() { return directAccessCode; }
public GetEventDetailsAndPrices setDirectAccessCode(String value) { this.directAccessCode = value; return this; }
public Boolean isDontReturnCards() { return dontReturnCards; }
public GetEventDetailsAndPrices setDontReturnCards(Boolean value) { this.dontReturnCards = value; return this; }
}
public static class EventDetailsAndPrices
{
public EventDetails eventDetails = null;
public ArrayList<EventTicketPriceInfo> prices = null;
public EventDetails getEventDetails() { return eventDetails; }
public EventDetailsAndPrices setEventDetails(EventDetails value) { this.eventDetails = value; return this; }
public ArrayList<EventTicketPriceInfo> getPrices() { return prices; }
public EventDetailsAndPrices setPrices(ArrayList<EventTicketPriceInfo> value) { this.prices = value; return this; }
}
public static class EventDetails
{
public Integer id = null;
public String name = null;
public String description = null;
public String externalReference = null;
public Date timeOfEvent = null;
public Integer eventLocationId = null;
public Integer eventSeriesId = null;
public Integer eventOwnerId = null;
public Boolean eventActive = null;
public String eventOwnerName = null;
public String externalOwnerId = null;
public String teamAwayId = null;
public String teamAwayName = null;
public String eventSeriesName = null;
public String eventLocationName = null;
public BigDecimal latitude = null;
public BigDecimal longitude = null;
public String defaultValues = null;
public String externalReferenceType = null;
public Boolean eventSeriesActive = null;
public String allowedKsiCard = null;
public String seriesId = null;
public Boolean seriesShowByDefault = null;
public Boolean postponedNoDate = null;
public String awayTeamExternalId = null;
public String sportGenderId = null;
public String externalIdType = null;
public Boolean seriesEventSaleSuspended = null;
public Date seriesSaleSuspensionEventStartDate = null;
public Date seriesSaleSuspensionEventEndDate = null;
public Boolean saleIsActive = null;
public Boolean hideEvent = null;
public String imageUrl2 = null;
public String directAccessCode = null;
public String imageUrl = null;
public String detailedDescription = null;
public String ownerImageUrl = null;
public String ownerImageUrl2 = null;
public Boolean ownerCardsNotAllowed = null;
public String seatingImageUrl = null;
public Date endOfEvent = null;
public Date endOfEventUTC = null;
public String timeZone = null;
public Date timeOfEventUTC = null;
public Integer getId() { return id; }
public EventDetails setId(Integer value) { this.id = value; return this; }
public String getName() { return name; }
public EventDetails setName(String value) { this.name = value; return this; }
public String getDescription() { return description; }
public EventDetails setDescription(String value) { this.description = value; return this; }
public String getExternalReference() { return externalReference; }
public EventDetails setExternalReference(String value) { this.externalReference = value; return this; }
public Date getTimeOfEvent() { return timeOfEvent; }
public EventDetails setTimeOfEvent(Date value) { this.timeOfEvent = value; return this; }
public Integer getEventLocationId() { return eventLocationId; }
public EventDetails setEventLocationId(Integer value) { this.eventLocationId = value; return this; }
public Integer getEventSeriesId() { return eventSeriesId; }
public EventDetails setEventSeriesId(Integer value) { this.eventSeriesId = value; return this; }
public Integer getEventOwnerId() { return eventOwnerId; }
public EventDetails setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
public Boolean isEventActive() { return eventActive; }
public EventDetails setEventActive(Boolean value) { this.eventActive = value; return this; }
public String getEventOwnerName() { return eventOwnerName; }
public EventDetails setEventOwnerName(String value) { this.eventOwnerName = value; return this; }
public String getExternalOwnerId() { return externalOwnerId; }
public EventDetails setExternalOwnerId(String value) { this.externalOwnerId = value; return this; }
public String getTeamAwayId() { return teamAwayId; }
public EventDetails setTeamAwayId(String value) { this.teamAwayId = value; return this; }
public String getTeamAwayName() { return teamAwayName; }
public EventDetails setTeamAwayName(String value) { this.teamAwayName = value; return this; }
public String getEventSeriesName() { return eventSeriesName; }
public EventDetails setEventSeriesName(String value) { this.eventSeriesName = value; return this; }
public String getEventLocationName() { return eventLocationName; }
public EventDetails setEventLocationName(String value) { this.eventLocationName = value; return this; }
public BigDecimal getLatitude() { return latitude; }
public EventDetails setLatitude(BigDecimal value) { this.latitude = value; return this; }
public BigDecimal getLongitude() { return longitude; }
public EventDetails setLongitude(BigDecimal value) { this.longitude = value; return this; }
public String getDefaultValues() { return defaultValues; }
public EventDetails setDefaultValues(String value) { this.defaultValues = value; return this; }
public String getExternalReferenceType() { return externalReferenceType; }
public EventDetails setExternalReferenceType(String value) { this.externalReferenceType = value; return this; }
public Boolean isEventSeriesActive() { return eventSeriesActive; }
public EventDetails setEventSeriesActive(Boolean value) { this.eventSeriesActive = value; return this; }
public String getAllowedKsiCard() { return allowedKsiCard; }
public EventDetails setAllowedKsiCard(String value) { this.allowedKsiCard = value; return this; }
public String getSeriesId() { return seriesId; }
public EventDetails setSeriesId(String value) { this.seriesId = value; return this; }
public Boolean isSeriesShowByDefault() { return seriesShowByDefault; }
public EventDetails setSeriesShowByDefault(Boolean value) { this.seriesShowByDefault = value; return this; }
public Boolean isPostponedNoDate() { return postponedNoDate; }
public EventDetails setPostponedNoDate(Boolean value) { this.postponedNoDate = value; return this; }
public String getAwayTeamExternalId() { return awayTeamExternalId; }
public EventDetails setAwayTeamExternalId(String value) { this.awayTeamExternalId = value; return this; }
public String getSportGenderId() { return sportGenderId; }
public EventDetails setSportGenderId(String value) { this.sportGenderId = value; return this; }
public String getExternalIdType() { return externalIdType; }
public EventDetails setExternalIdType(String value) { this.externalIdType = value; return this; }
public Boolean isSeriesEventSaleSuspended() { return seriesEventSaleSuspended; }
public EventDetails setSeriesEventSaleSuspended(Boolean value) { this.seriesEventSaleSuspended = value; return this; }
public Date getSeriesSaleSuspensionEventStartDate() { return seriesSaleSuspensionEventStartDate; }
public EventDetails setSeriesSaleSuspensionEventStartDate(Date value) { this.seriesSaleSuspensionEventStartDate = value; return this; }
public Date getSeriesSaleSuspensionEventEndDate() { return seriesSaleSuspensionEventEndDate; }
public EventDetails setSeriesSaleSuspensionEventEndDate(Date value) { this.seriesSaleSuspensionEventEndDate = value; return this; }
public Boolean isSaleIsActive() { return saleIsActive; }
public EventDetails setSaleIsActive(Boolean value) { this.saleIsActive = value; return this; }
public Boolean isHideEvent() { return hideEvent; }
public EventDetails setHideEvent(Boolean value) { this.hideEvent = value; return this; }
public String getImageUrl2() { return imageUrl2; }
public EventDetails setImageUrl2(String value) { this.imageUrl2 = value; return this; }
public String getDirectAccessCode() { return directAccessCode; }
public EventDetails setDirectAccessCode(String value) { this.directAccessCode = value; return this; }
public String getImageUrl() { return imageUrl; }
public EventDetails setImageUrl(String value) { this.imageUrl = value; return this; }
public String getDetailedDescription() { return detailedDescription; }
public EventDetails setDetailedDescription(String value) { this.detailedDescription = value; return this; }
public String getOwnerImageUrl() { return ownerImageUrl; }
public EventDetails setOwnerImageUrl(String value) { this.ownerImageUrl = value; return this; }
public String getOwnerImageUrl2() { return ownerImageUrl2; }
public EventDetails setOwnerImageUrl2(String value) { this.ownerImageUrl2 = value; return this; }
public Boolean isOwnerCardsNotAllowed() { return ownerCardsNotAllowed; }
public EventDetails setOwnerCardsNotAllowed(Boolean value) { this.ownerCardsNotAllowed = value; return this; }
public String getSeatingImageUrl() { return seatingImageUrl; }
public EventDetails setSeatingImageUrl(String value) { this.seatingImageUrl = value; return this; }
public Date getEndOfEvent() { return endOfEvent; }
public EventDetails setEndOfEvent(Date value) { this.endOfEvent = value; return this; }
public Date getEndOfEventUTC() { return endOfEventUTC; }
public EventDetails setEndOfEventUTC(Date value) { this.endOfEventUTC = value; return this; }
public String getTimeZone() { return timeZone; }
public EventDetails setTimeZone(String value) { this.timeZone = value; return this; }
public Date getTimeOfEventUTC() { return timeOfEventUTC; }
public EventDetails setTimeOfEventUTC(Date value) { this.timeOfEventUTC = value; return this; }
}
public static class EventTicketPriceInfo
{
public BigDecimal price = null;
public Integer ticketTypeId = null;
public Integer ticketOwnerTypeId = null;
public String name = null;
public Integer eventId = null;
public Boolean hidden = null;
public Boolean soldOut = null;
public Integer ticketsLeft = null;
public Boolean isActive = null;
public Boolean limitedTickets = null;
public Integer sortOrder = null;
public String specialTicketId = null;
public String imageUrl = null;
public Boolean holderInfoRequired = null;
public Integer totalTickets = null;
public Boolean canOnlyBeBought = null;
public Boolean canNotBeBought = null;
public Boolean canOnlyBeBoughtWithTeamPass = null;
public Boolean blockTransfer = null;
public Integer maxTicketsPerTransaction = null;
public String currency = null;
public String ticketColor = null;
public Integer onlyForEvent = null;
public BigDecimal getPrice() { return price; }
public EventTicketPriceInfo setPrice(BigDecimal value) { this.price = value; return this; }
public Integer getTicketTypeId() { return ticketTypeId; }
public EventTicketPriceInfo setTicketTypeId(Integer value) { this.ticketTypeId = value; return this; }
public Integer getTicketOwnerTypeId() { return ticketOwnerTypeId; }
public EventTicketPriceInfo setTicketOwnerTypeId(Integer value) { this.ticketOwnerTypeId = value; return this; }
public String getName() { return name; }
public EventTicketPriceInfo setName(String value) { this.name = value; return this; }
public Integer getEventId() { return eventId; }
public EventTicketPriceInfo setEventId(Integer value) { this.eventId = value; return this; }
public Boolean isHidden() { return hidden; }
public EventTicketPriceInfo setHidden(Boolean value) { this.hidden = value; return this; }
public Boolean isSoldOut() { return soldOut; }
public EventTicketPriceInfo setSoldOut(Boolean value) { this.soldOut = value; return this; }
public Integer getTicketsLeft() { return ticketsLeft; }
public EventTicketPriceInfo setTicketsLeft(Integer value) { this.ticketsLeft = value; return this; }
public Boolean getIsActive() { return isActive; }
public EventTicketPriceInfo setIsActive(Boolean value) { this.isActive = value; return this; }
public Boolean isLimitedTickets() { return limitedTickets; }
public EventTicketPriceInfo setLimitedTickets(Boolean value) { this.limitedTickets = value; return this; }
public Integer getSortOrder() { return sortOrder; }
public EventTicketPriceInfo setSortOrder(Integer value) { this.sortOrder = value; return this; }
public String getSpecialTicketId() { return specialTicketId; }
public EventTicketPriceInfo setSpecialTicketId(String value) { this.specialTicketId = value; return this; }
public String getImageUrl() { return imageUrl; }
public EventTicketPriceInfo setImageUrl(String value) { this.imageUrl = value; return this; }
public Boolean isHolderInfoRequired() { return holderInfoRequired; }
public EventTicketPriceInfo setHolderInfoRequired(Boolean value) { this.holderInfoRequired = value; return this; }
public Integer getTotalTickets() { return totalTickets; }
public EventTicketPriceInfo setTotalTickets(Integer value) { this.totalTickets = value; return this; }
public Boolean isCanOnlyBeBought() { return canOnlyBeBought; }
public EventTicketPriceInfo setCanOnlyBeBought(Boolean value) { this.canOnlyBeBought = value; return this; }
public Boolean isCanNotBeBought() { return canNotBeBought; }
public EventTicketPriceInfo setCanNotBeBought(Boolean value) { this.canNotBeBought = value; return this; }
public Boolean isCanOnlyBeBoughtWithTeamPass() { return canOnlyBeBoughtWithTeamPass; }
public EventTicketPriceInfo setCanOnlyBeBoughtWithTeamPass(Boolean value) { this.canOnlyBeBoughtWithTeamPass = value; return this; }
public Boolean isBlockTransfer() { return blockTransfer; }
public EventTicketPriceInfo setBlockTransfer(Boolean value) { this.blockTransfer = value; return this; }
public Integer getMaxTicketsPerTransaction() { return maxTicketsPerTransaction; }
public EventTicketPriceInfo setMaxTicketsPerTransaction(Integer value) { this.maxTicketsPerTransaction = value; return this; }
public String getCurrency() { return currency; }
public EventTicketPriceInfo setCurrency(String value) { this.currency = value; return this; }
public String getTicketColor() { return ticketColor; }
public EventTicketPriceInfo setTicketColor(String value) { this.ticketColor = value; return this; }
public Integer getOnlyForEvent() { return onlyForEvent; }
public EventTicketPriceInfo setOnlyForEvent(Integer value) { this.onlyForEvent = value; return this; }
}
}
Java GetEventDetailsAndPrices DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /eventDetailsAndPrices/{Id} HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
version: 0,
phoneVerificationNumber: String,
deviceId: String,
id: 0,
referenceId: String,
returnSoldOutTickets: False,
directAccessCode: String,
dontReturnCards: False
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { eventDetails: { id: 0, name: String, description: String, externalReference: String, timeOfEvent: 0001-01-01, eventLocationId: 0, eventSeriesId: 0, eventOwnerId: 0, eventActive: False, eventOwnerName: String, externalOwnerId: String, teamAwayId: String, teamAwayName: String, eventSeriesName: String, eventLocationName: String, latitude: 0, longitude: 0, defaultValues: String, externalReferenceType: String, eventSeriesActive: False, allowedKsiCard: String, seriesId: String, seriesShowByDefault: False, postponedNoDate: False, awayTeamExternalId: String, sportGenderId: String, externalIdType: String, seriesEventSaleSuspended: False, seriesSaleSuspensionEventStartDate: 0001-01-01, seriesSaleSuspensionEventEndDate: 0001-01-01, saleIsActive: False, hideEvent: False, imageUrl2: String, directAccessCode: String, imageUrl: String, detailedDescription: String, ownerImageUrl: String, ownerImageUrl2: String, ownerCardsNotAllowed: False, seatingImageUrl: String, endOfEvent: 0001-01-01, endOfEventUTC: 0001-01-01, timeZone: String, timeOfEventUTC: 0001-01-01 }, prices: [ { price: 0, ticketTypeId: 0, ticketOwnerTypeId: 0, name: String, eventId: 0, hidden: False, soldOut: False, ticketsLeft: 0, isActive: False, limitedTickets: False, sortOrder: 0, specialTicketId: String, imageUrl: String, holderInfoRequired: False, totalTickets: 0, canOnlyBeBought: False, canNotBeBought: False, canOnlyBeBoughtWithTeamPass: False, blockTransfer: False, maxTicketsPerTransaction: 0, currency: String, ticketColor: String, onlyForEvent: 0 } ] }