TicketUserServices

<back to all web services

EventSeatingMoveTicketToAnotherEventRequest

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

class MoveTicketToAnotherEventFailure implements IConvertible
{
    int? fromSeatId;
    int? toSeatId;
    String? reason;

    MoveTicketToAnotherEventFailure({this.fromSeatId,this.toSeatId,this.reason});
    MoveTicketToAnotherEventFailure.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class EventSeatingMoveTicketToAnotherEventResult implements IConvertible
{
    int? statusCode;
    String? message;
    List<int>? movedSeatIds;
    List<MoveTicketToAnotherEventFailure>? failures;

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

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

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

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

class MoveTicketToAnotherEventPair implements IConvertible
{
    int? fromSeatId;
    int? toSeatId;
    int? toSeriesTicketTypeId;
    int? toOwnerTicketTypeId;

    MoveTicketToAnotherEventPair({this.fromSeatId,this.toSeatId,this.toSeriesTicketTypeId,this.toOwnerTicketTypeId});
    MoveTicketToAnotherEventPair.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

    getTypeName() => "MoveTicketToAnotherEventPair";
    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 EventSeatingMoveTicketToAnotherEventRequest implements IConvertible
{
    int? fromEventId;
    int? toEventId;
    List<MoveTicketToAnotherEventPair>? moves;
    String? reason;
    int? requestUnixUTCTimeStamp;
    RequestSignature? signature;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
    'MoveTicketToAnotherEventFailure': TypeInfo(TypeOf.Class, create:() => MoveTicketToAnotherEventFailure()),
    'EventSeatingMoveTicketToAnotherEventResult': TypeInfo(TypeOf.Class, create:() => EventSeatingMoveTicketToAnotherEventResult()),
    'List<MoveTicketToAnotherEventFailure>': TypeInfo(TypeOf.Class, create:() => <MoveTicketToAnotherEventFailure>[]),
    'MoveTicketToAnotherEventPair': TypeInfo(TypeOf.Class, create:() => MoveTicketToAnotherEventPair()),
    'RequestSignature': TypeInfo(TypeOf.Class, create:() => RequestSignature()),
    'EventSeatingMoveTicketToAnotherEventRequest': TypeInfo(TypeOf.Class, create:() => EventSeatingMoveTicketToAnotherEventRequest()),
    'List<MoveTicketToAnotherEventPair>': TypeInfo(TypeOf.Class, create:() => <MoveTicketToAnotherEventPair>[]),
});

Dart EventSeatingMoveTicketToAnotherEventRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /EventSeatingMoveTicketToAnotherEventInSeries HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"fromEventId":0,"toEventId":0,"moves":[{"fromSeatId":0,"toSeatId":0,"toSeriesTicketTypeId":0,"toOwnerTicketTypeId":0}],"reason":"String","requestUnixUTCTimeStamp":0,"signature":{"systemId":"String","systemSecret":"String","signature":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"statusCode":0,"message":"String","movedSeatIds":[0],"failures":[{"fromSeatId":0,"toSeatId":0,"reason":"String"}]}