TicketUserServices

<back to all web services

OwnerEventTicketPriceRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileAppRequired permissions:Tickets.Add, Tickets.Add
The following routes are available for this service:
GET PUT POST/ownerEventTicketPriceChange Tickets prices for EventId only when changing (PUT). isOwnerTicket is false if the Ticket is default ticket for series
import 'package:servicestack/servicestack.dart';

class EventTicketPrice implements IConvertible
{
    int? id;
    String? name;
    double? price;
    int? ticketTypeId;
    int? ticketOwnerTypeId;
    int? eventId;
    bool? hidden;
    bool? isActive;
    int? maxTickets;
    String? currency;

    EventTicketPrice({this.id,this.name,this.price,this.ticketTypeId,this.ticketOwnerTypeId,this.eventId,this.hidden,this.isActive,this.maxTickets,this.currency});
    EventTicketPrice.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        name = json['name'];
        price = JsonConverters.toDouble(json['price']);
        ticketTypeId = json['ticketTypeId'];
        ticketOwnerTypeId = json['ticketOwnerTypeId'];
        eventId = json['eventId'];
        hidden = json['hidden'];
        isActive = json['isActive'];
        maxTickets = json['maxTickets'];
        currency = json['currency'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
        'price': price,
        'ticketTypeId': ticketTypeId,
        'ticketOwnerTypeId': ticketOwnerTypeId,
        'eventId': eventId,
        'hidden': hidden,
        'isActive': isActive,
        'maxTickets': maxTickets,
        'currency': currency
    };

    getTypeName() => "EventTicketPrice";
    TypeContext? context = _ctx;
}

class OwnerEventTicketPriceResult implements IConvertible
{
    EventTicketPrice? ticketPrice;
    int? statusCode;
    String? message;

    OwnerEventTicketPriceResult({this.ticketPrice,this.statusCode,this.message});
    OwnerEventTicketPriceResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ticketPrice = JsonConverters.fromJson(json['ticketPrice'],'EventTicketPrice',context!);
        statusCode = json['statusCode'];
        message = json['message'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ticketPrice': JsonConverters.toJson(ticketPrice,'EventTicketPrice',context!),
        'statusCode': statusCode,
        'message': message
    };

    getTypeName() => "OwnerEventTicketPriceResult";
    TypeContext? context = _ctx;
}

class OwnerEventTicketPriceRequest implements IConvertible
{
    int? id;
    bool? isOwnerTicket;
    int? eventId;
    int? ticketId;
    int? eventOwnerId;
    int? seriesId;
    double? price;
    bool? hide;
    bool? active;
    int? maxTickets;

    OwnerEventTicketPriceRequest({this.id,this.isOwnerTicket,this.eventId,this.ticketId,this.eventOwnerId,this.seriesId,this.price,this.hide,this.active,this.maxTickets});
    OwnerEventTicketPriceRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        isOwnerTicket = json['isOwnerTicket'];
        eventId = json['eventId'];
        ticketId = json['ticketId'];
        eventOwnerId = json['eventOwnerId'];
        seriesId = json['seriesId'];
        price = JsonConverters.toDouble(json['price']);
        hide = json['hide'];
        active = json['active'];
        maxTickets = json['maxTickets'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'isOwnerTicket': isOwnerTicket,
        'eventId': eventId,
        'ticketId': ticketId,
        'eventOwnerId': eventOwnerId,
        'seriesId': seriesId,
        'price': price,
        'hide': hide,
        'active': active,
        'maxTickets': maxTickets
    };

    getTypeName() => "OwnerEventTicketPriceRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
    'EventTicketPrice': TypeInfo(TypeOf.Class, create:() => EventTicketPrice()),
    'OwnerEventTicketPriceResult': TypeInfo(TypeOf.Class, create:() => OwnerEventTicketPriceResult()),
    'OwnerEventTicketPriceRequest': TypeInfo(TypeOf.Class, create:() => OwnerEventTicketPriceRequest()),
});

Dart OwnerEventTicketPriceRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /ownerEventTicketPrice HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"id":0,"isOwnerTicket":false,"eventId":0,"ticketId":0,"eventOwnerId":0,"seriesId":0,"price":0,"hide":false,"active":false,"maxTickets":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ticketPrice":{"id":0,"name":"String","price":0,"ticketTypeId":0,"ticketOwnerTypeId":0,"eventId":0,"hidden":false,"isActive":false,"maxTickets":0,"currency":"String"},"statusCode":0,"message":"String"}