TicketUserServices

<back to all web services

EventActivationRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
GET PUT POST/eventActivationChange Event-Activation and TicketSalesActivation
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 OwnerTicketTypeResult implements IConvertible
{
    EventSeriesOwnerTicketType? ticketType;
    int? statusCode;
    String? message;

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

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

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

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

class EventActivationRequest implements IConvertible
{
    int? eventId;
    int? ownerId;
    bool? eventIsActive;
    bool? ticketSaleIsActive;

    EventActivationRequest({this.eventId,this.ownerId,this.eventIsActive,this.ticketSaleIsActive});
    EventActivationRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

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

Dart EventActivationRequest DTOs

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

HTTP + XML

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

POST /eventActivation HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<EventActivationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <EventId>0</EventId>
  <EventIsActive>false</EventIsActive>
  <OwnerId>0</OwnerId>
  <TicketSaleIsActive>false</TicketSaleIsActive>
</EventActivationRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<OwnerTicketTypeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Message>String</Message>
  <StatusCode>0</StatusCode>
  <TicketType xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
    <d2p1:BlockTransfer>false</d2p1:BlockTransfer>
    <d2p1:CanNotBeBought>false</d2p1:CanNotBeBought>
    <d2p1:CanOnlyBeBought>false</d2p1:CanOnlyBeBought>
    <d2p1:CanOnlyBeBoughtWithTeamPass>false</d2p1:CanOnlyBeBoughtWithTeamPass>
    <d2p1:Currency>String</d2p1:Currency>
    <d2p1:DefaultPrice>0</d2p1:DefaultPrice>
    <d2p1:EventSeriesOwnerSeatingSectionId>0</d2p1:EventSeriesOwnerSeatingSectionId>
    <d2p1:ForceSingleTickets>false</d2p1:ForceSingleTickets>
    <d2p1:HolderInfoRequired>false</d2p1:HolderInfoRequired>
    <d2p1:ID>0</d2p1:ID>
    <d2p1:ImageUrl>String</d2p1:ImageUrl>
    <d2p1:IsActive>false</d2p1:IsActive>
    <d2p1:IsSpecialTicket>false</d2p1:IsSpecialTicket>
    <d2p1:MaxTickets>0</d2p1:MaxTickets>
    <d2p1:MaxTicketsPerTransaction>0</d2p1:MaxTicketsPerTransaction>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:OnlyForEvent>0</d2p1:OnlyForEvent>
    <d2p1:OnlyForKsi>false</d2p1:OnlyForKsi>
    <d2p1:OwnerId>0</d2p1:OwnerId>
    <d2p1:SeriesId>0</d2p1:SeriesId>
    <d2p1:ShowUsedTickets>false</d2p1:ShowUsedTickets>
    <d2p1:SpecialTicketId>String</d2p1:SpecialTicketId>
    <d2p1:TicketColor>String</d2p1:TicketColor>
    <d2p1:TicketTypeListOrder>0</d2p1:TicketTypeListOrder>
    <d2p1:TicketsForSalePerEvent>false</d2p1:TicketsForSalePerEvent>
    <d2p1:TimestampCreated>0001-01-01T00:00:00</d2p1:TimestampCreated>
    <d2p1:TimestampLastChanged>0001-01-01T00:00:00</d2p1:TimestampLastChanged>
  </TicketType>
</OwnerTicketTypeResult>