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 .csv suffix or ?format=csv

HTTP + CSV

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: text/csv
Content-Type: text/csv
Content-Length: length

{"phoneVerificationNumber":"String","deviceId":"String","menWomenBoth":"String","homeAwayBoth":"String","ksiTeamID":"String","ksiCompetitionId":"String","fromDate":"0001-01-01T00:00:00.0000000","toDate":"0001-01-01T00:00:00.0000000","getTicketPrices":false,"returnSoldOutTickets":false,"returnHiddenEvents":false,"ownerId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

[{"eventDetails":{"id":0,"name":"String","description":"String","externalReference":"String","timeOfEvent":"0001-01-01T00:00:00.0000000","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-01T00:00:00.0000000","seriesSaleSuspensionEventEndDate":"0001-01-01T00:00:00.0000000","saleIsActive":false,"hideEvent":false,"imageUrl2":"String","directAccessCode":"String","imageUrl":"String","detailedDescription":"String","ownerImageUrl":"String","ownerImageUrl2":"String","ownerCardsNotAllowed":false,"seatingImageUrl":"String","endOfEvent":"0001-01-01T00:00:00.0000000","endOfEventUTC":"0001-01-01T00:00:00.0000000","timeZone":"String","timeOfEventUTC":"0001-01-01T00:00:00.0000000"},"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}]}]