Requires any of the roles: | Admin, TeamAdmin, MobileApp |
GET POST | /eventDetailsAndPrices/{Id} | ||
---|---|---|---|
GET POST | /eventDetailsAndPrices/Reference/{ReferenceId} |
export class EventDetails
{
public id?: number;
public name?: string;
public description?: string;
public externalReference?: string;
public timeOfEvent?: string;
public eventLocationId?: number;
public eventSeriesId?: number;
public eventOwnerId?: number;
public eventActive?: boolean;
public eventOwnerName?: string;
public externalOwnerId?: string;
public teamAwayId?: string;
public teamAwayName?: string;
public eventSeriesName?: string;
public eventLocationName?: string;
public latitude?: number;
public longitude?: number;
public defaultValues?: string;
public externalReferenceType?: string;
public eventSeriesActive?: boolean;
public allowedKsiCard?: string;
public seriesId?: string;
public seriesShowByDefault?: boolean;
public postponedNoDate?: boolean;
public awayTeamExternalId?: string;
public sportGenderId?: string;
public externalIdType?: string;
public seriesEventSaleSuspended?: boolean;
public seriesSaleSuspensionEventStartDate?: string;
public seriesSaleSuspensionEventEndDate?: string;
public saleIsActive?: boolean;
public hideEvent?: boolean;
public imageUrl2?: string;
public directAccessCode?: string;
public imageUrl?: string;
public detailedDescription?: string;
public ownerImageUrl?: string;
public ownerImageUrl2?: string;
public ownerCardsNotAllowed?: boolean;
public seatingImageUrl?: string;
public endOfEvent?: string;
public endOfEventUTC?: string;
public timeZone?: string;
public timeOfEventUTC?: string;
public constructor(init?: Partial<EventDetails>) { (Object as any).assign(this, init); }
}
export class EventTicketPriceInfo
{
public price?: number;
public ticketTypeId?: number;
public ticketOwnerTypeId?: number;
public name?: string;
public eventId?: number;
public hidden?: boolean;
public soldOut?: boolean;
public ticketsLeft?: number;
public isActive?: boolean;
public limitedTickets?: boolean;
public sortOrder?: number;
public specialTicketId?: string;
public imageUrl?: string;
public holderInfoRequired?: boolean;
public totalTickets?: number;
public canOnlyBeBought?: boolean;
public canNotBeBought?: boolean;
public canOnlyBeBoughtWithTeamPass?: boolean;
public blockTransfer?: boolean;
public maxTicketsPerTransaction?: number;
public currency?: string;
public ticketColor?: string;
public onlyForEvent?: number;
public constructor(init?: Partial<EventTicketPriceInfo>) { (Object as any).assign(this, init); }
}
export class EventDetailsAndPrices
{
public eventDetails?: EventDetails;
public prices?: EventTicketPriceInfo[];
public constructor(init?: Partial<EventDetailsAndPrices>) { (Object as any).assign(this, init); }
}
export class GetEventDetailsAndPrices
{
public version?: number;
public phoneVerificationNumber?: string;
public deviceId?: string;
public id?: number;
public referenceId?: string;
public returnSoldOutTickets?: boolean;
public directAccessCode?: string;
public dontReturnCards?: boolean;
public constructor(init?: Partial<GetEventDetailsAndPrices>) { (Object as any).assign(this, init); }
}
TypeScript 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 } ] }