TicketUserServices

<back to all web services

VenueSeatingArrangementTicketTypePreviewRequest

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

class TemplateTicketTypePreviewItem implements IConvertible
{
    int? ownerTicketTypeId;
    String? name;
    double? defaultPrice;
    String? currency;
    int? maxTickets;
    int? sectionCount;
    List<String>? sectionNames;
    bool? hiddenFromSale;
    DateTime? typeCreatedAt;
    DateTime? lastSoldAt;
    List<int>? connectionIds;

    TemplateTicketTypePreviewItem({this.ownerTicketTypeId,this.name,this.defaultPrice,this.currency,this.maxTickets,this.sectionCount,this.sectionNames,this.hiddenFromSale,this.typeCreatedAt,this.lastSoldAt,this.connectionIds});
    TemplateTicketTypePreviewItem.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ownerTicketTypeId = json['ownerTicketTypeId'];
        name = json['name'];
        defaultPrice = JsonConverters.toDouble(json['defaultPrice']);
        currency = json['currency'];
        maxTickets = json['maxTickets'];
        sectionCount = json['sectionCount'];
        sectionNames = JsonConverters.fromJson(json['sectionNames'],'List<String>',context!);
        hiddenFromSale = json['hiddenFromSale'];
        typeCreatedAt = JsonConverters.fromJson(json['typeCreatedAt'],'DateTime',context!);
        lastSoldAt = JsonConverters.fromJson(json['lastSoldAt'],'DateTime',context!);
        connectionIds = JsonConverters.fromJson(json['connectionIds'],'List<int>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ownerTicketTypeId': ownerTicketTypeId,
        'name': name,
        'defaultPrice': defaultPrice,
        'currency': currency,
        'maxTickets': maxTickets,
        'sectionCount': sectionCount,
        'sectionNames': JsonConverters.toJson(sectionNames,'List<String>',context!),
        'hiddenFromSale': hiddenFromSale,
        'typeCreatedAt': JsonConverters.toJson(typeCreatedAt,'DateTime',context!),
        'lastSoldAt': JsonConverters.toJson(lastSoldAt,'DateTime',context!),
        'connectionIds': JsonConverters.toJson(connectionIds,'List<int>',context!)
    };

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

class VenueSeatingArrangementTicketTypePreviewResponse implements IConvertible
{
    int? arrangementId;
    int? venueId;
    List<TemplateTicketTypePreviewItem>? ticketTypes;
    int? statusCode;
    String? message;

    VenueSeatingArrangementTicketTypePreviewResponse({this.arrangementId,this.venueId,this.ticketTypes,this.statusCode,this.message});
    VenueSeatingArrangementTicketTypePreviewResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'arrangementId': arrangementId,
        'venueId': venueId,
        'ticketTypes': JsonConverters.toJson(ticketTypes,'List<TemplateTicketTypePreviewItem>',context!),
        'statusCode': statusCode,
        'message': message
    };

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

class VenueSeatingArrangementTicketTypePreviewRequest implements IConvertible
{
    int? arrangementId;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
    'TemplateTicketTypePreviewItem': TypeInfo(TypeOf.Class, create:() => TemplateTicketTypePreviewItem()),
    'VenueSeatingArrangementTicketTypePreviewResponse': TypeInfo(TypeOf.Class, create:() => VenueSeatingArrangementTicketTypePreviewResponse()),
    'List<TemplateTicketTypePreviewItem>': TypeInfo(TypeOf.Class, create:() => <TemplateTicketTypePreviewItem>[]),
    'VenueSeatingArrangementTicketTypePreviewRequest': TypeInfo(TypeOf.Class, create:() => VenueSeatingArrangementTicketTypePreviewRequest()),
});

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

GET /VenueSeatingArrangement/TicketTypePreview/{ArrangementId} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	arrangementId: 0,
	venueId: 0,
	ticketTypes: 
	[
		{
			ownerTicketTypeId: 0,
			name: String,
			defaultPrice: 0,
			currency: String,
			maxTickets: 0,
			sectionCount: 0,
			sectionNames: 
			[
				String
			],
			hiddenFromSale: False,
			typeCreatedAt: 0001-01-01,
			lastSoldAt: 0001-01-01,
			connectionIds: 
			[
				0
			]
		}
	],
	statusCode: 0,
	message: String
}