TicketUserServices

<back to all web services

OwnerEventTicketPriceSearchRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
POST/ownerEventTicketPrice/SearchSearch for event ticket prices
import 'package:servicestack/servicestack.dart';

class OwnerEventTicketPriceInfo implements IConvertible
{
    int? id;
    double? price;
    int? ticketTypeId;
    int? ticketOwnerTypeId;
    int? eventId;
    bool? hidden;
    bool? isActive;
    int? maxTickets;
    String? seriesTicketName;
    double? seriesPrice;
    bool? seriesTicketIsActive;
    String? seriesTicketColor;
    String? ownerTicketName;
    double? ownerPrice;
    bool? ownerTicketIsActive;
    String? ownerTicketColor;
    String? seriesName;
    String? ownerName;
    String? eventName;
    String? eventDescription;
    DateTime? timeOfEvent;
    int? eventOwnerId;

    OwnerEventTicketPriceInfo({this.id,this.price,this.ticketTypeId,this.ticketOwnerTypeId,this.eventId,this.hidden,this.isActive,this.maxTickets,this.seriesTicketName,this.seriesPrice,this.seriesTicketIsActive,this.seriesTicketColor,this.ownerTicketName,this.ownerPrice,this.ownerTicketIsActive,this.ownerTicketColor,this.seriesName,this.ownerName,this.eventName,this.eventDescription,this.timeOfEvent,this.eventOwnerId});
    OwnerEventTicketPriceInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        price = JsonConverters.toDouble(json['price']);
        ticketTypeId = json['ticketTypeId'];
        ticketOwnerTypeId = json['ticketOwnerTypeId'];
        eventId = json['eventId'];
        hidden = json['hidden'];
        isActive = json['isActive'];
        maxTickets = json['maxTickets'];
        seriesTicketName = json['seriesTicketName'];
        seriesPrice = JsonConverters.toDouble(json['seriesPrice']);
        seriesTicketIsActive = json['seriesTicketIsActive'];
        seriesTicketColor = json['seriesTicketColor'];
        ownerTicketName = json['ownerTicketName'];
        ownerPrice = JsonConverters.toDouble(json['ownerPrice']);
        ownerTicketIsActive = json['ownerTicketIsActive'];
        ownerTicketColor = json['ownerTicketColor'];
        seriesName = json['seriesName'];
        ownerName = json['ownerName'];
        eventName = json['eventName'];
        eventDescription = json['eventDescription'];
        timeOfEvent = JsonConverters.fromJson(json['timeOfEvent'],'DateTime',context!);
        eventOwnerId = json['eventOwnerId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'price': price,
        'ticketTypeId': ticketTypeId,
        'ticketOwnerTypeId': ticketOwnerTypeId,
        'eventId': eventId,
        'hidden': hidden,
        'isActive': isActive,
        'maxTickets': maxTickets,
        'seriesTicketName': seriesTicketName,
        'seriesPrice': seriesPrice,
        'seriesTicketIsActive': seriesTicketIsActive,
        'seriesTicketColor': seriesTicketColor,
        'ownerTicketName': ownerTicketName,
        'ownerPrice': ownerPrice,
        'ownerTicketIsActive': ownerTicketIsActive,
        'ownerTicketColor': ownerTicketColor,
        'seriesName': seriesName,
        'ownerName': ownerName,
        'eventName': eventName,
        'eventDescription': eventDescription,
        'timeOfEvent': JsonConverters.toJson(timeOfEvent,'DateTime',context!),
        'eventOwnerId': eventOwnerId
    };

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

class OwnerEventTicketPricesSearchResult implements IConvertible
{
    List<OwnerEventTicketPriceInfo>? ticketPrices;
    int? statusCode;
    String? message;

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

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

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

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

class OwnerEventTicketPriceSearchRequest implements IConvertible
{
    int? ownerId;
    String? ksiOwnerid;

    OwnerEventTicketPriceSearchRequest({this.ownerId,this.ksiOwnerid});
    OwnerEventTicketPriceSearchRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ownerId = json['ownerId'];
        ksiOwnerid = json['ksiOwnerid'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ownerId': ownerId,
        'ksiOwnerid': ksiOwnerid
    };

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

TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
    'OwnerEventTicketPriceInfo': TypeInfo(TypeOf.Class, create:() => OwnerEventTicketPriceInfo()),
    'OwnerEventTicketPricesSearchResult': TypeInfo(TypeOf.Class, create:() => OwnerEventTicketPricesSearchResult()),
    'List<OwnerEventTicketPriceInfo>': TypeInfo(TypeOf.Class, create:() => <OwnerEventTicketPriceInfo>[]),
    'OwnerEventTicketPriceSearchRequest': TypeInfo(TypeOf.Class, create:() => OwnerEventTicketPriceSearchRequest()),
});

Dart OwnerEventTicketPriceSearchRequest 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/Search HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ownerId":0,"ksiOwnerid":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ticketPrices":[{"id":0,"price":0,"ticketTypeId":0,"ticketOwnerTypeId":0,"eventId":0,"hidden":false,"isActive":false,"maxTickets":0,"seriesTicketName":"String","seriesPrice":0,"seriesTicketIsActive":false,"seriesTicketColor":"String","ownerTicketName":"String","ownerPrice":0,"ownerTicketIsActive":false,"ownerTicketColor":"String","seriesName":"String","ownerName":"String","eventName":"String","eventDescription":"String","timeOfEvent":"0001-01-01T00:00:00.0000000","eventOwnerId":0}],"statusCode":0,"message":"String"}