| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
| 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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<VenueSeatingArrangementTicketTypePreviewResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<ArrangementId>0</ArrangementId>
<Message>String</Message>
<StatusCode>0</StatusCode>
<TicketTypes>
<TemplateTicketTypePreviewItem>
<ConnectionIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>0</d4p1:int>
</ConnectionIds>
<Currency>String</Currency>
<DefaultPrice>0</DefaultPrice>
<HiddenFromSale>false</HiddenFromSale>
<LastSoldAt>0001-01-01T00:00:00</LastSoldAt>
<MaxTickets>0</MaxTickets>
<Name>String</Name>
<OwnerTicketTypeId>0</OwnerTicketTypeId>
<SectionCount>0</SectionCount>
<SectionNames xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</SectionNames>
<TypeCreatedAt>0001-01-01T00:00:00</TypeCreatedAt>
</TemplateTicketTypePreviewItem>
</TicketTypes>
<VenueId>0</VenueId>
</VenueSeatingArrangementTicketTypePreviewResponse>