Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
POST | /AppSeatingTicketTypesInSectionSearch |
---|
import 'package:servicestack/servicestack.dart';
class EventSeriesOwnerTicketType implements IConvertible
{
int? id;
String? name;
double? defaultPrice;
int? seriesId;
int? ownerId;
int? ticketTypeListOrder;
bool? isActive;
int? maxTickets;
String? ticketColor;
bool? showUsedTickets;
bool? canOnlyBeBoughtWithTeamPass;
bool? isSpecialTicket;
String? specialTicketId;
bool? onlyForKsi;
DateTime? timestampCreated;
DateTime? timestampLastChanged;
bool? ticketsForSalePerEvent;
String? imageUrl;
bool? holderInfoRequired;
int? eventSeriesOwnerSeatingSectionId;
bool? canOnlyBeBought;
bool? canNotBeBought;
bool? blockTransfer;
int? maxTicketsPerTransaction;
bool? forceSingleTickets;
int? onlyForEvent;
String? currency;
EventSeriesOwnerTicketType({this.id,this.name,this.defaultPrice,this.seriesId,this.ownerId,this.ticketTypeListOrder,this.isActive,this.maxTickets,this.ticketColor,this.showUsedTickets,this.canOnlyBeBoughtWithTeamPass,this.isSpecialTicket,this.specialTicketId,this.onlyForKsi,this.timestampCreated,this.timestampLastChanged,this.ticketsForSalePerEvent,this.imageUrl,this.holderInfoRequired,this.eventSeriesOwnerSeatingSectionId,this.canOnlyBeBought,this.canNotBeBought,this.blockTransfer,this.maxTicketsPerTransaction,this.forceSingleTickets,this.onlyForEvent,this.currency});
EventSeriesOwnerTicketType.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
defaultPrice = JsonConverters.toDouble(json['defaultPrice']);
seriesId = json['seriesId'];
ownerId = json['ownerId'];
ticketTypeListOrder = json['ticketTypeListOrder'];
isActive = json['isActive'];
maxTickets = json['maxTickets'];
ticketColor = json['ticketColor'];
showUsedTickets = json['showUsedTickets'];
canOnlyBeBoughtWithTeamPass = json['canOnlyBeBoughtWithTeamPass'];
isSpecialTicket = json['isSpecialTicket'];
specialTicketId = json['specialTicketId'];
onlyForKsi = json['onlyForKsi'];
timestampCreated = JsonConverters.fromJson(json['timestampCreated'],'DateTime',context!);
timestampLastChanged = JsonConverters.fromJson(json['timestampLastChanged'],'DateTime',context!);
ticketsForSalePerEvent = json['ticketsForSalePerEvent'];
imageUrl = json['imageUrl'];
holderInfoRequired = json['holderInfoRequired'];
eventSeriesOwnerSeatingSectionId = json['eventSeriesOwnerSeatingSectionId'];
canOnlyBeBought = json['canOnlyBeBought'];
canNotBeBought = json['canNotBeBought'];
blockTransfer = json['blockTransfer'];
maxTicketsPerTransaction = json['maxTicketsPerTransaction'];
forceSingleTickets = json['forceSingleTickets'];
onlyForEvent = json['onlyForEvent'];
currency = json['currency'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
'defaultPrice': defaultPrice,
'seriesId': seriesId,
'ownerId': ownerId,
'ticketTypeListOrder': ticketTypeListOrder,
'isActive': isActive,
'maxTickets': maxTickets,
'ticketColor': ticketColor,
'showUsedTickets': showUsedTickets,
'canOnlyBeBoughtWithTeamPass': canOnlyBeBoughtWithTeamPass,
'isSpecialTicket': isSpecialTicket,
'specialTicketId': specialTicketId,
'onlyForKsi': onlyForKsi,
'timestampCreated': JsonConverters.toJson(timestampCreated,'DateTime',context!),
'timestampLastChanged': JsonConverters.toJson(timestampLastChanged,'DateTime',context!),
'ticketsForSalePerEvent': ticketsForSalePerEvent,
'imageUrl': imageUrl,
'holderInfoRequired': holderInfoRequired,
'eventSeriesOwnerSeatingSectionId': eventSeriesOwnerSeatingSectionId,
'canOnlyBeBought': canOnlyBeBought,
'canNotBeBought': canNotBeBought,
'blockTransfer': blockTransfer,
'maxTicketsPerTransaction': maxTicketsPerTransaction,
'forceSingleTickets': forceSingleTickets,
'onlyForEvent': onlyForEvent,
'currency': currency
};
getTypeName() => "EventSeriesOwnerTicketType";
TypeContext? context = _ctx;
}
class MyOwnerCards implements IConvertible
{
int? id;
String? phoneFullVerificationNumber;
int? ownerId;
int? cardTypeId;
String? name;
String? imageUrl;
String? description;
int? ticketTypeMaxTickets;
DateTime? cardValidFromUTC;
DateTime? cardValidToUTC;
int? currentAvailableTickets;
int? initialMaxTickets;
String? deviceId;
String? holderId;
String? holderName;
String? holderEmail;
double? initialStoreCredit;
double? currentStoreCredit;
bool? hasStoreCredit;
DateTime? timeStampBoughtUTC;
MyOwnerCards({this.id,this.phoneFullVerificationNumber,this.ownerId,this.cardTypeId,this.name,this.imageUrl,this.description,this.ticketTypeMaxTickets,this.cardValidFromUTC,this.cardValidToUTC,this.currentAvailableTickets,this.initialMaxTickets,this.deviceId,this.holderId,this.holderName,this.holderEmail,this.initialStoreCredit,this.currentStoreCredit,this.hasStoreCredit,this.timeStampBoughtUTC});
MyOwnerCards.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
phoneFullVerificationNumber = json['phoneFullVerificationNumber'];
ownerId = json['ownerId'];
cardTypeId = json['cardTypeId'];
name = json['name'];
imageUrl = json['imageUrl'];
description = json['description'];
ticketTypeMaxTickets = json['ticketTypeMaxTickets'];
cardValidFromUTC = JsonConverters.fromJson(json['cardValidFromUTC'],'DateTime',context!);
cardValidToUTC = JsonConverters.fromJson(json['cardValidToUTC'],'DateTime',context!);
currentAvailableTickets = json['currentAvailableTickets'];
initialMaxTickets = json['initialMaxTickets'];
deviceId = json['deviceId'];
holderId = json['holderId'];
holderName = json['holderName'];
holderEmail = json['holderEmail'];
initialStoreCredit = JsonConverters.toDouble(json['initialStoreCredit']);
currentStoreCredit = JsonConverters.toDouble(json['currentStoreCredit']);
hasStoreCredit = json['hasStoreCredit'];
timeStampBoughtUTC = JsonConverters.fromJson(json['timeStampBoughtUTC'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'phoneFullVerificationNumber': phoneFullVerificationNumber,
'ownerId': ownerId,
'cardTypeId': cardTypeId,
'name': name,
'imageUrl': imageUrl,
'description': description,
'ticketTypeMaxTickets': ticketTypeMaxTickets,
'cardValidFromUTC': JsonConverters.toJson(cardValidFromUTC,'DateTime',context!),
'cardValidToUTC': JsonConverters.toJson(cardValidToUTC,'DateTime',context!),
'currentAvailableTickets': currentAvailableTickets,
'initialMaxTickets': initialMaxTickets,
'deviceId': deviceId,
'holderId': holderId,
'holderName': holderName,
'holderEmail': holderEmail,
'initialStoreCredit': initialStoreCredit,
'currentStoreCredit': currentStoreCredit,
'hasStoreCredit': hasStoreCredit,
'timeStampBoughtUTC': JsonConverters.toJson(timeStampBoughtUTC,'DateTime',context!)
};
getTypeName() => "MyOwnerCards";
TypeContext? context = _ctx;
}
class AppEventSeatingSectionOwnerTicketTypesItem implements IConvertible
{
EventSeriesOwnerTicketType? ticketType;
List<MyOwnerCards>? myCards;
AppEventSeatingSectionOwnerTicketTypesItem({this.ticketType,this.myCards});
AppEventSeatingSectionOwnerTicketTypesItem.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ticketType = JsonConverters.fromJson(json['ticketType'],'EventSeriesOwnerTicketType',context!);
myCards = JsonConverters.fromJson(json['myCards'],'List<MyOwnerCards>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ticketType': JsonConverters.toJson(ticketType,'EventSeriesOwnerTicketType',context!),
'myCards': JsonConverters.toJson(myCards,'List<MyOwnerCards>',context!)
};
getTypeName() => "AppEventSeatingSectionOwnerTicketTypesItem";
TypeContext? context = _ctx;
}
class EventSeriesTicketType implements IConvertible
{
int? id;
String? name;
double? defaultPrice;
int? seriesId;
int? ticketTypeListOrder;
bool? isActive;
String? ticketColor;
bool? showUsedTickets;
bool? isSpecialTicket;
String? specialTicketId;
bool? onlyForKsi;
bool? holderInfoRequired;
bool? blockTransfer;
int? maxTicketsPerTransaction;
String? currency;
EventSeriesTicketType({this.id,this.name,this.defaultPrice,this.seriesId,this.ticketTypeListOrder,this.isActive,this.ticketColor,this.showUsedTickets,this.isSpecialTicket,this.specialTicketId,this.onlyForKsi,this.holderInfoRequired,this.blockTransfer,this.maxTicketsPerTransaction,this.currency});
EventSeriesTicketType.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
defaultPrice = JsonConverters.toDouble(json['defaultPrice']);
seriesId = json['seriesId'];
ticketTypeListOrder = json['ticketTypeListOrder'];
isActive = json['isActive'];
ticketColor = json['ticketColor'];
showUsedTickets = json['showUsedTickets'];
isSpecialTicket = json['isSpecialTicket'];
specialTicketId = json['specialTicketId'];
onlyForKsi = json['onlyForKsi'];
holderInfoRequired = json['holderInfoRequired'];
blockTransfer = json['blockTransfer'];
maxTicketsPerTransaction = json['maxTicketsPerTransaction'];
currency = json['currency'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
'defaultPrice': defaultPrice,
'seriesId': seriesId,
'ticketTypeListOrder': ticketTypeListOrder,
'isActive': isActive,
'ticketColor': ticketColor,
'showUsedTickets': showUsedTickets,
'isSpecialTicket': isSpecialTicket,
'specialTicketId': specialTicketId,
'onlyForKsi': onlyForKsi,
'holderInfoRequired': holderInfoRequired,
'blockTransfer': blockTransfer,
'maxTicketsPerTransaction': maxTicketsPerTransaction,
'currency': currency
};
getTypeName() => "EventSeriesTicketType";
TypeContext? context = _ctx;
}
class MySeriesControllerCards implements IConvertible
{
int? id;
String? phoneFullVerificationNumber;
String? ownerId;
String? cardTypeId;
String? name;
String? description;
String? cardTypeOwner;
int? maxTicketsPerEvent;
DateTime? creationDate;
String? deviceId;
String? holderName;
String? canTransferToName;
String? canTransferToPhoneFullNumber;
String? expYear;
String? expMonth;
MySeriesControllerCards({this.id,this.phoneFullVerificationNumber,this.ownerId,this.cardTypeId,this.name,this.description,this.cardTypeOwner,this.maxTicketsPerEvent,this.creationDate,this.deviceId,this.holderName,this.canTransferToName,this.canTransferToPhoneFullNumber,this.expYear,this.expMonth});
MySeriesControllerCards.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
phoneFullVerificationNumber = json['phoneFullVerificationNumber'];
ownerId = json['ownerId'];
cardTypeId = json['cardTypeId'];
name = json['name'];
description = json['description'];
cardTypeOwner = json['cardTypeOwner'];
maxTicketsPerEvent = json['maxTicketsPerEvent'];
creationDate = JsonConverters.fromJson(json['creationDate'],'DateTime',context!);
deviceId = json['deviceId'];
holderName = json['holderName'];
canTransferToName = json['canTransferToName'];
canTransferToPhoneFullNumber = json['canTransferToPhoneFullNumber'];
expYear = json['expYear'];
expMonth = json['expMonth'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'phoneFullVerificationNumber': phoneFullVerificationNumber,
'ownerId': ownerId,
'cardTypeId': cardTypeId,
'name': name,
'description': description,
'cardTypeOwner': cardTypeOwner,
'maxTicketsPerEvent': maxTicketsPerEvent,
'creationDate': JsonConverters.toJson(creationDate,'DateTime',context!),
'deviceId': deviceId,
'holderName': holderName,
'canTransferToName': canTransferToName,
'canTransferToPhoneFullNumber': canTransferToPhoneFullNumber,
'expYear': expYear,
'expMonth': expMonth
};
getTypeName() => "MySeriesControllerCards";
TypeContext? context = _ctx;
}
class AppEventSeatingSectionSeriesTicketTypesItem implements IConvertible
{
EventSeriesTicketType? ticketType;
List<MySeriesControllerCards>? myCards;
AppEventSeatingSectionSeriesTicketTypesItem({this.ticketType,this.myCards});
AppEventSeatingSectionSeriesTicketTypesItem.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ticketType = JsonConverters.fromJson(json['ticketType'],'EventSeriesTicketType',context!);
myCards = JsonConverters.fromJson(json['myCards'],'List<MySeriesControllerCards>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ticketType': JsonConverters.toJson(ticketType,'EventSeriesTicketType',context!),
'myCards': JsonConverters.toJson(myCards,'List<MySeriesControllerCards>',context!)
};
getTypeName() => "AppEventSeatingSectionSeriesTicketTypesItem";
TypeContext? context = _ctx;
}
class AppEventSeatingSectionTicketTypesSearchResult implements IConvertible
{
int? statusCode;
String? message;
List<AppEventSeatingSectionOwnerTicketTypesItem>? ownerTicketTypes;
List<AppEventSeatingSectionSeriesTicketTypesItem>? seriesTicketTypes;
AppEventSeatingSectionTicketTypesSearchResult({this.statusCode,this.message,this.ownerTicketTypes,this.seriesTicketTypes});
AppEventSeatingSectionTicketTypesSearchResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
statusCode = json['statusCode'];
message = json['message'];
ownerTicketTypes = JsonConverters.fromJson(json['ownerTicketTypes'],'List<AppEventSeatingSectionOwnerTicketTypesItem>',context!);
seriesTicketTypes = JsonConverters.fromJson(json['seriesTicketTypes'],'List<AppEventSeatingSectionSeriesTicketTypesItem>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'statusCode': statusCode,
'message': message,
'ownerTicketTypes': JsonConverters.toJson(ownerTicketTypes,'List<AppEventSeatingSectionOwnerTicketTypesItem>',context!),
'seriesTicketTypes': JsonConverters.toJson(seriesTicketTypes,'List<AppEventSeatingSectionSeriesTicketTypesItem>',context!)
};
getTypeName() => "AppEventSeatingSectionTicketTypesSearchResult";
TypeContext? context = _ctx;
}
class RequestSignature implements IConvertible
{
String? systemId;
String? systemSecret;
String? signature;
RequestSignature({this.systemId,this.systemSecret,this.signature});
RequestSignature.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
systemId = json['systemId'];
systemSecret = json['systemSecret'];
signature = json['signature'];
return this;
}
Map<String, dynamic> toJson() => {
'systemId': systemId,
'systemSecret': systemSecret,
'signature': signature
};
getTypeName() => "RequestSignature";
TypeContext? context = _ctx;
}
class AppEventSeatingSectionTicketTypesSearchRequest implements IConvertible
{
int? eventId;
int? ownerId;
int? eventSectionId;
bool? includeMyPaymentCards;
String? phoneVerificationNumber;
String? deviceId;
int? requestUnixUTCTimeStamp;
RequestSignature? signature;
AppEventSeatingSectionTicketTypesSearchRequest({this.eventId,this.ownerId,this.eventSectionId,this.includeMyPaymentCards,this.phoneVerificationNumber,this.deviceId,this.requestUnixUTCTimeStamp,this.signature});
AppEventSeatingSectionTicketTypesSearchRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
eventId = json['eventId'];
ownerId = json['ownerId'];
eventSectionId = json['eventSectionId'];
includeMyPaymentCards = json['includeMyPaymentCards'];
phoneVerificationNumber = json['phoneVerificationNumber'];
deviceId = json['deviceId'];
requestUnixUTCTimeStamp = json['requestUnixUTCTimeStamp'];
signature = JsonConverters.fromJson(json['signature'],'RequestSignature',context!);
return this;
}
Map<String, dynamic> toJson() => {
'eventId': eventId,
'ownerId': ownerId,
'eventSectionId': eventSectionId,
'includeMyPaymentCards': includeMyPaymentCards,
'phoneVerificationNumber': phoneVerificationNumber,
'deviceId': deviceId,
'requestUnixUTCTimeStamp': requestUnixUTCTimeStamp,
'signature': JsonConverters.toJson(signature,'RequestSignature',context!)
};
getTypeName() => "AppEventSeatingSectionTicketTypesSearchRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
'EventSeriesOwnerTicketType': TypeInfo(TypeOf.Class, create:() => EventSeriesOwnerTicketType()),
'MyOwnerCards': TypeInfo(TypeOf.Class, create:() => MyOwnerCards()),
'AppEventSeatingSectionOwnerTicketTypesItem': TypeInfo(TypeOf.Class, create:() => AppEventSeatingSectionOwnerTicketTypesItem()),
'List<MyOwnerCards>': TypeInfo(TypeOf.Class, create:() => <MyOwnerCards>[]),
'EventSeriesTicketType': TypeInfo(TypeOf.Class, create:() => EventSeriesTicketType()),
'MySeriesControllerCards': TypeInfo(TypeOf.Class, create:() => MySeriesControllerCards()),
'AppEventSeatingSectionSeriesTicketTypesItem': TypeInfo(TypeOf.Class, create:() => AppEventSeatingSectionSeriesTicketTypesItem()),
'List<MySeriesControllerCards>': TypeInfo(TypeOf.Class, create:() => <MySeriesControllerCards>[]),
'AppEventSeatingSectionTicketTypesSearchResult': TypeInfo(TypeOf.Class, create:() => AppEventSeatingSectionTicketTypesSearchResult()),
'List<AppEventSeatingSectionOwnerTicketTypesItem>': TypeInfo(TypeOf.Class, create:() => <AppEventSeatingSectionOwnerTicketTypesItem>[]),
'List<AppEventSeatingSectionSeriesTicketTypesItem>': TypeInfo(TypeOf.Class, create:() => <AppEventSeatingSectionSeriesTicketTypesItem>[]),
'RequestSignature': TypeInfo(TypeOf.Class, create:() => RequestSignature()),
'AppEventSeatingSectionTicketTypesSearchRequest': TypeInfo(TypeOf.Class, create:() => AppEventSeatingSectionTicketTypesSearchRequest()),
});
Dart AppEventSeatingSectionTicketTypesSearchRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /AppSeatingTicketTypesInSectionSearch HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"eventId":0,"ownerId":0,"eventSectionId":0,"includeMyPaymentCards":false,"phoneVerificationNumber":"String","deviceId":"String","requestUnixUTCTimeStamp":0,"signature":{"systemId":"String","systemSecret":"String","signature":"String"}}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"statusCode":0,"message":"String","ownerTicketTypes":[{"ticketType":{"id":0,"name":"String","defaultPrice":0,"seriesId":0,"ownerId":0,"ticketTypeListOrder":0,"isActive":false,"maxTickets":0,"ticketColor":"String","showUsedTickets":false,"canOnlyBeBoughtWithTeamPass":false,"isSpecialTicket":false,"specialTicketId":"String","onlyForKsi":false,"timestampCreated":"0001-01-01T00:00:00.0000000","timestampLastChanged":"0001-01-01T00:00:00.0000000","ticketsForSalePerEvent":false,"imageUrl":"String","holderInfoRequired":false,"eventSeriesOwnerSeatingSectionId":0,"canOnlyBeBought":false,"canNotBeBought":false,"blockTransfer":false,"maxTicketsPerTransaction":0,"forceSingleTickets":false,"onlyForEvent":0,"currency":"String"},"myCards":[{"id":0,"phoneFullVerificationNumber":"String","ownerId":0,"cardTypeId":0,"name":"String","imageUrl":"String","description":"String","ticketTypeMaxTickets":0,"cardValidFromUTC":"0001-01-01T00:00:00.0000000","cardValidToUTC":"0001-01-01T00:00:00.0000000","currentAvailableTickets":0,"initialMaxTickets":0,"deviceId":"String","holderId":"String","holderName":"String","holderEmail":"String","initialStoreCredit":0,"currentStoreCredit":0,"hasStoreCredit":false,"timeStampBoughtUTC":"0001-01-01T00:00:00.0000000"}]}],"seriesTicketTypes":[{"ticketType":{"id":0,"name":"String","defaultPrice":0,"seriesId":0,"ticketTypeListOrder":0,"isActive":false,"ticketColor":"String","showUsedTickets":false,"isSpecialTicket":false,"specialTicketId":"String","onlyForKsi":false,"holderInfoRequired":false,"blockTransfer":false,"maxTicketsPerTransaction":0,"currency":"String"},"myCards":[{"id":0,"phoneFullVerificationNumber":"String","ownerId":"String","cardTypeId":"String","name":"String","description":"String","cardTypeOwner":"String","maxTicketsPerEvent":0,"creationDate":"0001-01-01T00:00:00.0000000","deviceId":"String","holderName":"String","canTransferToName":"String","canTransferToPhoneFullNumber":"String","expYear":"String","expMonth":"String"}]}]}