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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<OwnerSeatingSectionsSearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<OwnerId>0</OwnerId>
</OwnerSeatingSectionsSearchRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <OwnerSeatingSectionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Message>String</Message> <SeatingSection xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d2p1:HasRows>false</d2p1:HasRows> <d2p1:HasSeats>false</d2p1:HasSeats> <d2p1:ID>0</d2p1:ID> <d2p1:IsActive>false</d2p1:IsActive> <d2p1:LocationId>0</d2p1:LocationId> <d2p1:MaxTickets>0</d2p1:MaxTickets> <d2p1:Name>String</d2p1:Name> <d2p1:OwnerId>0</d2p1:OwnerId> <d2p1:RowSkips>0</d2p1:RowSkips> <d2p1:RowStart>String</d2p1:RowStart> <d2p1:RowsAreAlphabetical>false</d2p1:RowsAreAlphabetical> <d2p1:SeatSkips>0</d2p1:SeatSkips> <d2p1:SeatStart>String</d2p1:SeatStart> <d2p1:SeatsAreAlphabetical>false</d2p1:SeatsAreAlphabetical> <d2p1:SeriesId>0</d2p1:SeriesId> <d2p1:TimestampCreated>0001-01-01T00:00:00</d2p1:TimestampCreated> </SeatingSection> <StatusCode>0</StatusCode> </OwnerSeatingSectionResult>