TicketUserServices

<back to all web services

FindKSIEventsFromFixtures

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
GET POST/EventsFromKsiFixtures/search
GET POST/EventsFromKsiFixtures/searchClub/{MenWomenBoth}/{HomeAwayBoth}/{ksiTeamID}
GET POST/EventsFromKsiFixtures/searchClub/{MenWomenBoth}/{HomeAwayBoth}/{ksiTeamID}/DATES/{FromDate}/{ToDate}
GET POST/EventsFromKsiFixtures/searchCompetition/{ksiCompetitionId}
GET POST/EventsFromKsiFixtures/searchCompetition/{ksiCompetitionId}/DATES/{FromDate}/{ToDate}
GET POST/EventsFromKsiFixtures/searchDates/{FromDate}/{ToDate}
import 'package:servicestack/servicestack.dart';

class FindKSIEventsFromFixtures implements IConvertible
{
    String? phoneVerificationNumber;
    String? deviceId;
    String? menWomenBoth;
    String? homeAwayBoth;
    String? ksiTeamID;
    String? ksiCompetitionId;
    DateTime? fromDate;
    DateTime? toDate;
    bool? getTicketPrices;
    bool? returnSoldOutTickets;
    bool? returnHiddenEvents;
    int? ownerId;

    FindKSIEventsFromFixtures({this.phoneVerificationNumber,this.deviceId,this.menWomenBoth,this.homeAwayBoth,this.ksiTeamID,this.ksiCompetitionId,this.fromDate,this.toDate,this.getTicketPrices,this.returnSoldOutTickets,this.returnHiddenEvents,this.ownerId});
    FindKSIEventsFromFixtures.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        phoneVerificationNumber = json['phoneVerificationNumber'];
        deviceId = json['deviceId'];
        menWomenBoth = json['menWomenBoth'];
        homeAwayBoth = json['homeAwayBoth'];
        ksiTeamID = json['ksiTeamID'];
        ksiCompetitionId = json['ksiCompetitionId'];
        fromDate = JsonConverters.fromJson(json['fromDate'],'DateTime',context!);
        toDate = JsonConverters.fromJson(json['toDate'],'DateTime',context!);
        getTicketPrices = json['getTicketPrices'];
        returnSoldOutTickets = json['returnSoldOutTickets'];
        returnHiddenEvents = json['returnHiddenEvents'];
        ownerId = json['ownerId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'phoneVerificationNumber': phoneVerificationNumber,
        'deviceId': deviceId,
        'menWomenBoth': menWomenBoth,
        'homeAwayBoth': homeAwayBoth,
        'ksiTeamID': ksiTeamID,
        'ksiCompetitionId': ksiCompetitionId,
        'fromDate': JsonConverters.toJson(fromDate,'DateTime',context!),
        'toDate': JsonConverters.toJson(toDate,'DateTime',context!),
        'getTicketPrices': getTicketPrices,
        'returnSoldOutTickets': returnSoldOutTickets,
        'returnHiddenEvents': returnHiddenEvents,
        'ownerId': ownerId
    };

    getTypeName() => "FindKSIEventsFromFixtures";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
    'FindKSIEventsFromFixtures': TypeInfo(TypeOf.Class, create:() => FindKSIEventsFromFixtures()),
});

Dart FindKSIEventsFromFixtures DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /EventsFromKsiFixtures/search HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<FindKSIEventsFromFixtures xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <DeviceId>String</DeviceId>
  <FromDate>0001-01-01T00:00:00</FromDate>
  <GetTicketPrices>false</GetTicketPrices>
  <HomeAwayBoth>String</HomeAwayBoth>
  <MenWomenBoth>String</MenWomenBoth>
  <OwnerId>0</OwnerId>
  <PhoneVerificationNumber>String</PhoneVerificationNumber>
  <ReturnHiddenEvents>false</ReturnHiddenEvents>
  <ReturnSoldOutTickets>false</ReturnSoldOutTickets>
  <ToDate>0001-01-01T00:00:00</ToDate>
  <ksiCompetitionId>String</ksiCompetitionId>
  <ksiTeamID>String</ksiTeamID>
</FindKSIEventsFromFixtures>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ArrayOfEventDetailsAndPrices xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
  <EventDetailsAndPrices>
    <EventDetails>
      <AllowedKsiCard>String</AllowedKsiCard>
      <AwayTeamExternalId>String</AwayTeamExternalId>
      <DefaultValues>String</DefaultValues>
      <Description>String</Description>
      <DetailedDescription>String</DetailedDescription>
      <DirectAccessCode>String</DirectAccessCode>
      <EndOfEvent>0001-01-01T00:00:00</EndOfEvent>
      <EndOfEventUTC>0001-01-01T00:00:00</EndOfEventUTC>
      <EventActive>false</EventActive>
      <EventLocationId>0</EventLocationId>
      <EventLocationName>String</EventLocationName>
      <EventOwnerId>0</EventOwnerId>
      <EventOwnerName>String</EventOwnerName>
      <EventSeriesActive>false</EventSeriesActive>
      <EventSeriesId>0</EventSeriesId>
      <EventSeriesName>String</EventSeriesName>
      <ExternalIdType>String</ExternalIdType>
      <ExternalOwnerId>String</ExternalOwnerId>
      <ExternalReference>String</ExternalReference>
      <ExternalReferenceType>String</ExternalReferenceType>
      <HideEvent>false</HideEvent>
      <ID>0</ID>
      <ImageUrl>String</ImageUrl>
      <ImageUrl2>String</ImageUrl2>
      <Latitude>0</Latitude>
      <Longitude>0</Longitude>
      <Name>String</Name>
      <OwnerCardsNotAllowed>false</OwnerCardsNotAllowed>
      <OwnerImageUrl>String</OwnerImageUrl>
      <OwnerImageUrl2>String</OwnerImageUrl2>
      <PostponedNoDate>false</PostponedNoDate>
      <SaleIsActive>false</SaleIsActive>
      <SeatingImageUrl>String</SeatingImageUrl>
      <SeriesEventSaleSuspended>false</SeriesEventSaleSuspended>
      <SeriesId>String</SeriesId>
      <SeriesSaleSuspensionEventEndDate>0001-01-01T00:00:00</SeriesSaleSuspensionEventEndDate>
      <SeriesSaleSuspensionEventStartDate>0001-01-01T00:00:00</SeriesSaleSuspensionEventStartDate>
      <SeriesShowByDefault>false</SeriesShowByDefault>
      <SportGenderId>String</SportGenderId>
      <TeamAwayId>String</TeamAwayId>
      <TeamAwayName>String</TeamAwayName>
      <TimeOfEvent>0001-01-01T00:00:00</TimeOfEvent>
      <TimeOfEventUTC>0001-01-01T00:00:00</TimeOfEventUTC>
      <TimeZone>String</TimeZone>
    </EventDetails>
    <Prices>
      <EventTicketPriceInfo>
        <BlockTransfer>false</BlockTransfer>
        <CanNotBeBought>false</CanNotBeBought>
        <CanOnlyBeBought>false</CanOnlyBeBought>
        <CanOnlyBeBoughtWithTeamPass>false</CanOnlyBeBoughtWithTeamPass>
        <Currency>String</Currency>
        <EventId>0</EventId>
        <Hidden>false</Hidden>
        <HolderInfoRequired>false</HolderInfoRequired>
        <ImageUrl>String</ImageUrl>
        <LimitedTickets>false</LimitedTickets>
        <MaxTicketsPerTransaction>0</MaxTicketsPerTransaction>
        <Name>String</Name>
        <OnlyForEvent>0</OnlyForEvent>
        <Price>0</Price>
        <SoldOut>false</SoldOut>
        <SortOrder>0</SortOrder>
        <SpecialTicketId>String</SpecialTicketId>
        <TicketColor>String</TicketColor>
        <TicketOwnerTypeId>0</TicketOwnerTypeId>
        <TicketTypeId>0</TicketTypeId>
        <TicketsLeft>0</TicketsLeft>
        <TotalTickets>0</TotalTickets>
        <isActive>false</isActive>
      </EventTicketPriceInfo>
    </Prices>
  </EventDetailsAndPrices>
</ArrayOfEventDetailsAndPrices>