Requires any of the roles: | Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileApp | Required permissions: | Tickets.Add, Tickets.Add, Tickets.Add |
GET PUT POST | /ownerTicketPrice | Change Tickets prices for Owner in Series | Id only when changing (PUT) |
---|
import 'package:servicestack/servicestack.dart';
class EventSeriesOwnerTicketPrice implements IConvertible
{
int? id;
int? ownerId;
double? defaultPrice;
int? ticketTypeId;
int? seriesId;
int? ticketTypeListOrder;
bool? isHidden;
bool? isActive;
int? maxTickets;
String? currency;
EventSeriesOwnerTicketPrice({this.id,this.ownerId,this.defaultPrice,this.ticketTypeId,this.seriesId,this.ticketTypeListOrder,this.isHidden,this.isActive,this.maxTickets,this.currency});
EventSeriesOwnerTicketPrice.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
ownerId = json['ownerId'];
defaultPrice = JsonConverters.toDouble(json['defaultPrice']);
ticketTypeId = json['ticketTypeId'];
seriesId = json['seriesId'];
ticketTypeListOrder = json['ticketTypeListOrder'];
isHidden = json['isHidden'];
isActive = json['isActive'];
maxTickets = json['maxTickets'];
currency = json['currency'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'ownerId': ownerId,
'defaultPrice': defaultPrice,
'ticketTypeId': ticketTypeId,
'seriesId': seriesId,
'ticketTypeListOrder': ticketTypeListOrder,
'isHidden': isHidden,
'isActive': isActive,
'maxTickets': maxTickets,
'currency': currency
};
getTypeName() => "EventSeriesOwnerTicketPrice";
TypeContext? context = _ctx;
}
class OwnerSeriesTicketPriceResult implements IConvertible
{
EventSeriesOwnerTicketPrice? ticketPrice;
int? statusCode;
String? message;
OwnerSeriesTicketPriceResult({this.ticketPrice,this.statusCode,this.message});
OwnerSeriesTicketPriceResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ticketPrice = JsonConverters.fromJson(json['ticketPrice'],'EventSeriesOwnerTicketPrice',context!);
statusCode = json['statusCode'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'ticketPrice': JsonConverters.toJson(ticketPrice,'EventSeriesOwnerTicketPrice',context!),
'statusCode': statusCode,
'message': message
};
getTypeName() => "OwnerSeriesTicketPriceResult";
TypeContext? context = _ctx;
}
class OwnerSeriesTicketPriceRequest implements IConvertible
{
int? id;
int? ticketId;
int? eventOwnerId;
int? seriesId;
double? defaultPrice;
bool? hide;
bool? active;
int? maxTickets;
OwnerSeriesTicketPriceRequest({this.id,this.ticketId,this.eventOwnerId,this.seriesId,this.defaultPrice,this.hide,this.active,this.maxTickets});
OwnerSeriesTicketPriceRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
ticketId = json['ticketId'];
eventOwnerId = json['eventOwnerId'];
seriesId = json['seriesId'];
defaultPrice = JsonConverters.toDouble(json['defaultPrice']);
hide = json['hide'];
active = json['active'];
maxTickets = json['maxTickets'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'ticketId': ticketId,
'eventOwnerId': eventOwnerId,
'seriesId': seriesId,
'defaultPrice': defaultPrice,
'hide': hide,
'active': active,
'maxTickets': maxTickets
};
getTypeName() => "OwnerSeriesTicketPriceRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
'EventSeriesOwnerTicketPrice': TypeInfo(TypeOf.Class, create:() => EventSeriesOwnerTicketPrice()),
'OwnerSeriesTicketPriceResult': TypeInfo(TypeOf.Class, create:() => OwnerSeriesTicketPriceResult()),
'OwnerSeriesTicketPriceRequest': TypeInfo(TypeOf.Class, create:() => OwnerSeriesTicketPriceRequest()),
});
Dart OwnerSeriesTicketPriceRequest 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 /ownerTicketPrice HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: 0,
ticketId: 0,
eventOwnerId: 0,
seriesId: 0,
defaultPrice: 0,
hide: False,
active: False,
maxTickets: 0
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { ticketPrice: { id: 0, ownerId: 0, defaultPrice: 0, ticketTypeId: 0, seriesId: 0, ticketTypeListOrder: 0, isHidden: False, isActive: False, maxTickets: 0, currency: String }, statusCode: 0, message: String }