TicketUserServices

<back to all web services

MoveTicketsToAnotherEventRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
POST/MoveTicketsToAnotherEventInSeries
import 'package:servicestack/servicestack.dart';

class MoveTicketToAnotherEventTicketFailure implements IConvertible
{
    int? ticketId;
    String? reason;

    MoveTicketToAnotherEventTicketFailure({this.ticketId,this.reason});
    MoveTicketToAnotherEventTicketFailure.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'ticketId': ticketId,
        'reason': reason
    };

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

class MoveTicketsToAnotherEventResult implements IConvertible
{
    int? statusCode;
    String? message;
    List<int>? movedTicketIds;
    List<MoveTicketToAnotherEventTicketFailure>? failures;

    MoveTicketsToAnotherEventResult({this.statusCode,this.message,this.movedTicketIds,this.failures});
    MoveTicketsToAnotherEventResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'statusCode': statusCode,
        'message': message,
        'movedTicketIds': JsonConverters.toJson(movedTicketIds,'List<int>',context!),
        'failures': JsonConverters.toJson(failures,'List<MoveTicketToAnotherEventTicketFailure>',context!)
    };

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

class MoveTicketToAnotherEventEntry implements IConvertible
{
    int? ticketId;
    int? toOwnerTicketTypeId;
    int? toSeriesTicketTypeId;

    MoveTicketToAnotherEventEntry({this.ticketId,this.toOwnerTicketTypeId,this.toSeriesTicketTypeId});
    MoveTicketToAnotherEventEntry.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ticketId = json['ticketId'];
        toOwnerTicketTypeId = json['toOwnerTicketTypeId'];
        toSeriesTicketTypeId = json['toSeriesTicketTypeId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ticketId': ticketId,
        'toOwnerTicketTypeId': toOwnerTicketTypeId,
        'toSeriesTicketTypeId': toSeriesTicketTypeId
    };

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

class RequestSignature implements IConvertible
{
    String? systemId;
    String? systemSecret;
    String? signature;

    RequestSignature({this.systemId,this.systemSecret,this.signature});
    RequestSignature.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        systemId = json['systemId'];
        systemSecret = json['systemSecret'];
        signature = json['signature'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'systemId': systemId,
        'systemSecret': systemSecret,
        'signature': signature
    };

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

class MoveTicketsToAnotherEventRequest implements IConvertible
{
    int? fromEventId;
    int? toEventId;
    List<MoveTicketToAnotherEventEntry>? tickets;
    String? reason;
    int? requestUnixUTCTimeStamp;
    RequestSignature? signature;

    MoveTicketsToAnotherEventRequest({this.fromEventId,this.toEventId,this.tickets,this.reason,this.requestUnixUTCTimeStamp,this.signature});
    MoveTicketsToAnotherEventRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        fromEventId = json['fromEventId'];
        toEventId = json['toEventId'];
        tickets = JsonConverters.fromJson(json['tickets'],'List<MoveTicketToAnotherEventEntry>',context!);
        reason = json['reason'];
        requestUnixUTCTimeStamp = json['requestUnixUTCTimeStamp'];
        signature = JsonConverters.fromJson(json['signature'],'RequestSignature',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'fromEventId': fromEventId,
        'toEventId': toEventId,
        'tickets': JsonConverters.toJson(tickets,'List<MoveTicketToAnotherEventEntry>',context!),
        'reason': reason,
        'requestUnixUTCTimeStamp': requestUnixUTCTimeStamp,
        'signature': JsonConverters.toJson(signature,'RequestSignature',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
    'MoveTicketToAnotherEventTicketFailure': TypeInfo(TypeOf.Class, create:() => MoveTicketToAnotherEventTicketFailure()),
    'MoveTicketsToAnotherEventResult': TypeInfo(TypeOf.Class, create:() => MoveTicketsToAnotherEventResult()),
    'List<MoveTicketToAnotherEventTicketFailure>': TypeInfo(TypeOf.Class, create:() => <MoveTicketToAnotherEventTicketFailure>[]),
    'MoveTicketToAnotherEventEntry': TypeInfo(TypeOf.Class, create:() => MoveTicketToAnotherEventEntry()),
    'RequestSignature': TypeInfo(TypeOf.Class, create:() => RequestSignature()),
    'MoveTicketsToAnotherEventRequest': TypeInfo(TypeOf.Class, create:() => MoveTicketsToAnotherEventRequest()),
    'List<MoveTicketToAnotherEventEntry>': TypeInfo(TypeOf.Class, create:() => <MoveTicketToAnotherEventEntry>[]),
});

Dart MoveTicketsToAnotherEventRequest DTOs

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

HTTP + JSV

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

POST /MoveTicketsToAnotherEventInSeries HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	fromEventId: 0,
	toEventId: 0,
	tickets: 
	[
		{
			ticketId: 0,
			toOwnerTicketTypeId: 0,
			toSeriesTicketTypeId: 0
		}
	],
	reason: String,
	requestUnixUTCTimeStamp: 0,
	signature: 
	{
		systemId: String,
		systemSecret: String,
		signature: String
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	statusCode: 0,
	message: String,
	movedTicketIds: 
	[
		0
	],
	failures: 
	[
		{
			ticketId: 0,
			reason: String
		}
	]
}