TicketUserServices

<back to all web services

EventSeriesOwnerTicketTypesSearchRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:Tickets.Add
The following routes are available for this service:
POST/EventSeriesOwnerTicketType/Search/{OwnerId}
import 'package:servicestack/servicestack.dart';

class EventSeriesOwnerTicketType implements IConvertible
{
    int? id;
    String? name;
    double? defaultPrice;
    int? seriesId;
    int? ownerId;
    int? ticketTypeListOrder;
    bool? isActive;
    int? maxTickets;
    String? ticketColor;
    bool? showUsedTickets;
    bool? canOnlyBeBoughtWithTeamPass;
    bool? isSpecialTicket;
    String? specialTicketId;
    bool? onlyForKsi;
    DateTime? timestampCreated;
    DateTime? timestampLastChanged;
    bool? ticketsForSalePerEvent;
    String? imageUrl;
    bool? holderInfoRequired;
    int? eventSeriesOwnerSeatingSectionId;
    bool? canOnlyBeBought;
    bool? canNotBeBought;
    bool? blockTransfer;
    int? maxTicketsPerTransaction;
    bool? forceSingleTickets;
    int? onlyForEvent;
    String? currency;

    EventSeriesOwnerTicketType({this.id,this.name,this.defaultPrice,this.seriesId,this.ownerId,this.ticketTypeListOrder,this.isActive,this.maxTickets,this.ticketColor,this.showUsedTickets,this.canOnlyBeBoughtWithTeamPass,this.isSpecialTicket,this.specialTicketId,this.onlyForKsi,this.timestampCreated,this.timestampLastChanged,this.ticketsForSalePerEvent,this.imageUrl,this.holderInfoRequired,this.eventSeriesOwnerSeatingSectionId,this.canOnlyBeBought,this.canNotBeBought,this.blockTransfer,this.maxTicketsPerTransaction,this.forceSingleTickets,this.onlyForEvent,this.currency});
    EventSeriesOwnerTicketType.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        name = json['name'];
        defaultPrice = JsonConverters.toDouble(json['defaultPrice']);
        seriesId = json['seriesId'];
        ownerId = json['ownerId'];
        ticketTypeListOrder = json['ticketTypeListOrder'];
        isActive = json['isActive'];
        maxTickets = json['maxTickets'];
        ticketColor = json['ticketColor'];
        showUsedTickets = json['showUsedTickets'];
        canOnlyBeBoughtWithTeamPass = json['canOnlyBeBoughtWithTeamPass'];
        isSpecialTicket = json['isSpecialTicket'];
        specialTicketId = json['specialTicketId'];
        onlyForKsi = json['onlyForKsi'];
        timestampCreated = JsonConverters.fromJson(json['timestampCreated'],'DateTime',context!);
        timestampLastChanged = JsonConverters.fromJson(json['timestampLastChanged'],'DateTime',context!);
        ticketsForSalePerEvent = json['ticketsForSalePerEvent'];
        imageUrl = json['imageUrl'];
        holderInfoRequired = json['holderInfoRequired'];
        eventSeriesOwnerSeatingSectionId = json['eventSeriesOwnerSeatingSectionId'];
        canOnlyBeBought = json['canOnlyBeBought'];
        canNotBeBought = json['canNotBeBought'];
        blockTransfer = json['blockTransfer'];
        maxTicketsPerTransaction = json['maxTicketsPerTransaction'];
        forceSingleTickets = json['forceSingleTickets'];
        onlyForEvent = json['onlyForEvent'];
        currency = json['currency'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
        'defaultPrice': defaultPrice,
        'seriesId': seriesId,
        'ownerId': ownerId,
        'ticketTypeListOrder': ticketTypeListOrder,
        'isActive': isActive,
        'maxTickets': maxTickets,
        'ticketColor': ticketColor,
        'showUsedTickets': showUsedTickets,
        'canOnlyBeBoughtWithTeamPass': canOnlyBeBoughtWithTeamPass,
        'isSpecialTicket': isSpecialTicket,
        'specialTicketId': specialTicketId,
        'onlyForKsi': onlyForKsi,
        'timestampCreated': JsonConverters.toJson(timestampCreated,'DateTime',context!),
        'timestampLastChanged': JsonConverters.toJson(timestampLastChanged,'DateTime',context!),
        'ticketsForSalePerEvent': ticketsForSalePerEvent,
        'imageUrl': imageUrl,
        'holderInfoRequired': holderInfoRequired,
        'eventSeriesOwnerSeatingSectionId': eventSeriesOwnerSeatingSectionId,
        'canOnlyBeBought': canOnlyBeBought,
        'canNotBeBought': canNotBeBought,
        'blockTransfer': blockTransfer,
        'maxTicketsPerTransaction': maxTicketsPerTransaction,
        'forceSingleTickets': forceSingleTickets,
        'onlyForEvent': onlyForEvent,
        'currency': currency
    };

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

class EventSeriesOwnerTicketTypesResult implements IConvertible
{
    List<EventSeriesOwnerTicketType>? items;
    int? statusCode;
    String? message;

    EventSeriesOwnerTicketTypesResult({this.items,this.statusCode,this.message});
    EventSeriesOwnerTicketTypesResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        items = JsonConverters.fromJson(json['items'],'List<EventSeriesOwnerTicketType>',context!);
        statusCode = json['statusCode'];
        message = json['message'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'items': JsonConverters.toJson(items,'List<EventSeriesOwnerTicketType>',context!),
        'statusCode': statusCode,
        'message': message
    };

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

class EventSeriesOwnerTicketTypesSearchRequest implements IConvertible
{
    int? ownerId;

    EventSeriesOwnerTicketTypesSearchRequest({this.ownerId});
    EventSeriesOwnerTicketTypesSearchRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ownerId = json['ownerId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ownerId': ownerId
    };

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

TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
    'EventSeriesOwnerTicketType': TypeInfo(TypeOf.Class, create:() => EventSeriesOwnerTicketType()),
    'EventSeriesOwnerTicketTypesResult': TypeInfo(TypeOf.Class, create:() => EventSeriesOwnerTicketTypesResult()),
    'List<EventSeriesOwnerTicketType>': TypeInfo(TypeOf.Class, create:() => <EventSeriesOwnerTicketType>[]),
    'EventSeriesOwnerTicketTypesSearchRequest': TypeInfo(TypeOf.Class, create:() => EventSeriesOwnerTicketTypesSearchRequest()),
});

Dart EventSeriesOwnerTicketTypesSearchRequest DTOs

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

HTTP + JSV

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

POST /EventSeriesOwnerTicketType/Search/{OwnerId} HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ownerId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	items: 
	[
		{
			id: 0,
			name: String,
			defaultPrice: 0,
			seriesId: 0,
			ownerId: 0,
			ticketTypeListOrder: 0,
			isActive: False,
			maxTickets: 0,
			ticketColor: String,
			showUsedTickets: False,
			canOnlyBeBoughtWithTeamPass: False,
			isSpecialTicket: False,
			specialTicketId: String,
			onlyForKsi: False,
			timestampCreated: 0001-01-01,
			timestampLastChanged: 0001-01-01,
			ticketsForSalePerEvent: False,
			imageUrl: String,
			holderInfoRequired: False,
			eventSeriesOwnerSeatingSectionId: 0,
			canOnlyBeBought: False,
			canNotBeBought: False,
			blockTransfer: False,
			maxTicketsPerTransaction: 0,
			forceSingleTickets: False,
			onlyForEvent: 0,
			currency: String
		}
	],
	statusCode: 0,
	message: String
}