TicketUserServices

<back to all web services

EventSeriesTicketTypeConnectionGetRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
GET/EventSeriesTicketTypeConnection/{Id}
import 'package:servicestack/servicestack.dart';

class EventSeriesTicketTypeConnection implements IConvertible
{
    int? id;
    int? eventSeatingSectionId;
    int? seriesTicketId;
    int? maxTickets;
    int? eventId;

    EventSeriesTicketTypeConnection({this.id,this.eventSeatingSectionId,this.seriesTicketId,this.maxTickets,this.eventId});
    EventSeriesTicketTypeConnection.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        eventSeatingSectionId = json['eventSeatingSectionId'];
        seriesTicketId = json['seriesTicketId'];
        maxTickets = json['maxTickets'];
        eventId = json['eventId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'eventSeatingSectionId': eventSeatingSectionId,
        'seriesTicketId': seriesTicketId,
        'maxTickets': maxTickets,
        'eventId': eventId
    };

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

class EventSeriesTicketTypeConnectionResult implements IConvertible
{
    EventSeriesTicketTypeConnection? item;
    int? statusCode;
    String? message;

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

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

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

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

class EventSeriesTicketTypeConnectionGetRequest implements IConvertible
{
    int? id;

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

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

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

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

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

Dart EventSeriesTicketTypeConnectionGetRequest 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.

GET /EventSeriesTicketTypeConnection/{Id} HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"item":{"id":0,"eventSeatingSectionId":0,"seriesTicketId":0,"maxTickets":0,"eventId":0},"statusCode":0,"message":"String"}