Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
POST | /ownerSeatingSections/Search | Search for event ticket prices |
---|
import 'package:servicestack/servicestack.dart';
class EventSeriesOwnerSeatingSection implements IConvertible
{
int? id;
String? name;
int? seriesId;
int? ownerId;
int? locationId;
bool? isActive;
int? maxTickets;
DateTime? timestampCreated;
bool? hasRows;
bool? hasSeats;
bool? rowsAreAlphabetical;
bool? seatsAreAlphabetical;
String? seatStart;
String? rowStart;
int? seatSkips;
int? rowSkips;
EventSeriesOwnerSeatingSection({this.id,this.name,this.seriesId,this.ownerId,this.locationId,this.isActive,this.maxTickets,this.timestampCreated,this.hasRows,this.hasSeats,this.rowsAreAlphabetical,this.seatsAreAlphabetical,this.seatStart,this.rowStart,this.seatSkips,this.rowSkips});
EventSeriesOwnerSeatingSection.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
seriesId = json['seriesId'];
ownerId = json['ownerId'];
locationId = json['locationId'];
isActive = json['isActive'];
maxTickets = json['maxTickets'];
timestampCreated = JsonConverters.fromJson(json['timestampCreated'],'DateTime',context!);
hasRows = json['hasRows'];
hasSeats = json['hasSeats'];
rowsAreAlphabetical = json['rowsAreAlphabetical'];
seatsAreAlphabetical = json['seatsAreAlphabetical'];
seatStart = json['seatStart'];
rowStart = json['rowStart'];
seatSkips = json['seatSkips'];
rowSkips = json['rowSkips'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
'seriesId': seriesId,
'ownerId': ownerId,
'locationId': locationId,
'isActive': isActive,
'maxTickets': maxTickets,
'timestampCreated': JsonConverters.toJson(timestampCreated,'DateTime',context!),
'hasRows': hasRows,
'hasSeats': hasSeats,
'rowsAreAlphabetical': rowsAreAlphabetical,
'seatsAreAlphabetical': seatsAreAlphabetical,
'seatStart': seatStart,
'rowStart': rowStart,
'seatSkips': seatSkips,
'rowSkips': rowSkips
};
getTypeName() => "EventSeriesOwnerSeatingSection";
TypeContext? context = _ctx;
}
class OwnerSeatingSectionResult implements IConvertible
{
EventSeriesOwnerSeatingSection? seatingSection;
int? statusCode;
String? message;
OwnerSeatingSectionResult({this.seatingSection,this.statusCode,this.message});
OwnerSeatingSectionResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
seatingSection = JsonConverters.fromJson(json['seatingSection'],'EventSeriesOwnerSeatingSection',context!);
statusCode = json['statusCode'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'seatingSection': JsonConverters.toJson(seatingSection,'EventSeriesOwnerSeatingSection',context!),
'statusCode': statusCode,
'message': message
};
getTypeName() => "OwnerSeatingSectionResult";
TypeContext? context = _ctx;
}
class OwnerSeatingSectionsSearchRequest implements IConvertible
{
int? ownerId;
OwnerSeatingSectionsSearchRequest({this.ownerId});
OwnerSeatingSectionsSearchRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ownerId = json['ownerId'];
return this;
}
Map<String, dynamic> toJson() => {
'ownerId': ownerId
};
getTypeName() => "OwnerSeatingSectionsSearchRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
'EventSeriesOwnerSeatingSection': TypeInfo(TypeOf.Class, create:() => EventSeriesOwnerSeatingSection()),
'OwnerSeatingSectionResult': TypeInfo(TypeOf.Class, create:() => OwnerSeatingSectionResult()),
'OwnerSeatingSectionsSearchRequest': TypeInfo(TypeOf.Class, create:() => OwnerSeatingSectionsSearchRequest()),
});
Dart OwnerSeatingSectionsSearchRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ownerSeatingSections/Search 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 { seatingSection: { id: 0, name: String, seriesId: 0, ownerId: 0, locationId: 0, isActive: False, maxTickets: 0, timestampCreated: 0001-01-01, hasRows: False, hasSeats: False, rowsAreAlphabetical: False, seatsAreAlphabetical: False, seatStart: String, rowStart: String, seatSkips: 0, rowSkips: 0 }, statusCode: 0, message: String }