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 .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 /MoveTicketsToAnotherEventInSeries HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<MoveTicketsToAnotherEventRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <FromEventId>0</FromEventId>
  <Reason>String</Reason>
  <RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
  <Signature>
    <Signature>String</Signature>
    <SystemId>String</SystemId>
    <SystemSecret>String</SystemSecret>
  </Signature>
  <Tickets>
    <MoveTicketToAnotherEventEntry>
      <TicketId>0</TicketId>
      <ToOwnerTicketTypeId>0</ToOwnerTicketTypeId>
      <ToSeriesTicketTypeId>0</ToSeriesTicketTypeId>
    </MoveTicketToAnotherEventEntry>
  </Tickets>
  <ToEventId>0</ToEventId>
</MoveTicketsToAnotherEventRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<MoveTicketsToAnotherEventResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Failures>
    <MoveTicketToAnotherEventTicketFailure>
      <Reason>String</Reason>
      <TicketId>0</TicketId>
    </MoveTicketToAnotherEventTicketFailure>
  </Failures>
  <Message>String</Message>
  <MovedTicketIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </MovedTicketIds>
  <StatusCode>0</StatusCode>
</MoveTicketsToAnotherEventResult>