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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<OwnerSeriesTicketPriceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Active>false</Active>
<DefaultPrice>0</DefaultPrice>
<EventOwnerId>0</EventOwnerId>
<Hide>false</Hide>
<Id>0</Id>
<MaxTickets>0</MaxTickets>
<SeriesId>0</SeriesId>
<TicketId>0</TicketId>
</OwnerSeriesTicketPriceRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <OwnerSeriesTicketPriceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Message>String</Message> <StatusCode>0</StatusCode> <TicketPrice xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d2p1:Currency>String</d2p1:Currency> <d2p1:DefaultPrice>0</d2p1:DefaultPrice> <d2p1:ID>0</d2p1:ID> <d2p1:IsActive>false</d2p1:IsActive> <d2p1:IsHidden>false</d2p1:IsHidden> <d2p1:MaxTickets>0</d2p1:MaxTickets> <d2p1:OwnerId>0</d2p1:OwnerId> <d2p1:SeriesId>0</d2p1:SeriesId> <d2p1:TicketTypeId>0</d2p1:TicketTypeId> <d2p1:TicketTypeListOrder>0</d2p1:TicketTypeListOrder> </TicketPrice> </OwnerSeriesTicketPriceResult>