| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
| 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 MoveTicketToAnotherEventSeatQuote implements IConvertible
{
int? fromSeatId;
int? toSeatId;
String? ticketTokenId;
double? fromPrice;
double? toPrice;
double? difference;
String? toSeatName;
bool? ok;
String? message;
MoveTicketToAnotherEventSeatQuote({this.fromSeatId,this.toSeatId,this.ticketTokenId,this.fromPrice,this.toPrice,this.difference,this.toSeatName,this.ok,this.message});
MoveTicketToAnotherEventSeatQuote.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
fromSeatId = json['fromSeatId'];
toSeatId = json['toSeatId'];
ticketTokenId = json['ticketTokenId'];
fromPrice = JsonConverters.toDouble(json['fromPrice']);
toPrice = JsonConverters.toDouble(json['toPrice']);
difference = JsonConverters.toDouble(json['difference']);
toSeatName = json['toSeatName'];
ok = json['ok'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'fromSeatId': fromSeatId,
'toSeatId': toSeatId,
'ticketTokenId': ticketTokenId,
'fromPrice': fromPrice,
'toPrice': toPrice,
'difference': difference,
'toSeatName': toSeatName,
'ok': ok,
'message': message
};
getTypeName() => "MoveTicketToAnotherEventSeatQuote";
TypeContext? context = _ctx;
}
class EventSeatingMoveTicketToAnotherEventResult implements IConvertible
{
int? statusCode;
String? message;
List<int>? movedSeatIds;
List<MoveTicketToAnotherEventFailure>? failures;
String? direction;
double? priceDifference;
bool? reconciliationSkipped;
bool? sourceEventPaidOut;
bool? outstandingCostHandledByServer;
int? reconciliationLogId;
double? refundAmount;
String? refundPaymentReference;
List<MoveTicketToAnotherEventSeatQuote>? seats;
EventSeatingMoveTicketToAnotherEventResult({this.statusCode,this.message,this.movedSeatIds,this.failures,this.direction,this.priceDifference,this.reconciliationSkipped,this.sourceEventPaidOut,this.outstandingCostHandledByServer,this.reconciliationLogId,this.refundAmount,this.refundPaymentReference,this.seats});
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!);
direction = json['direction'];
priceDifference = JsonConverters.toDouble(json['priceDifference']);
reconciliationSkipped = json['reconciliationSkipped'];
sourceEventPaidOut = json['sourceEventPaidOut'];
outstandingCostHandledByServer = json['outstandingCostHandledByServer'];
reconciliationLogId = json['reconciliationLogId'];
refundAmount = JsonConverters.toDouble(json['refundAmount']);
refundPaymentReference = json['refundPaymentReference'];
seats = JsonConverters.fromJson(json['seats'],'List<MoveTicketToAnotherEventSeatQuote>',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!),
'direction': direction,
'priceDifference': priceDifference,
'reconciliationSkipped': reconciliationSkipped,
'sourceEventPaidOut': sourceEventPaidOut,
'outstandingCostHandledByServer': outstandingCostHandledByServer,
'reconciliationLogId': reconciliationLogId,
'refundAmount': refundAmount,
'refundPaymentReference': refundPaymentReference,
'seats': JsonConverters.toJson(seats,'List<MoveTicketToAnotherEventSeatQuote>',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;
bool? quoteOnly;
double? expectedPriceDifference;
bool? skipReconciliation;
String? idempotencyKey;
int? userId;
int? requestUnixUTCTimeStamp;
RequestSignature? signature;
EventSeatingMoveTicketToAnotherEventRequest({this.fromEventId,this.toEventId,this.moves,this.reason,this.quoteOnly,this.expectedPriceDifference,this.skipReconciliation,this.idempotencyKey,this.userId,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'];
quoteOnly = json['quoteOnly'];
expectedPriceDifference = JsonConverters.toDouble(json['expectedPriceDifference']);
skipReconciliation = json['skipReconciliation'];
idempotencyKey = json['idempotencyKey'];
userId = json['userId'];
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,
'quoteOnly': quoteOnly,
'expectedPriceDifference': expectedPriceDifference,
'skipReconciliation': skipReconciliation,
'idempotencyKey': idempotencyKey,
'userId': userId,
'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()),
'MoveTicketToAnotherEventSeatQuote': TypeInfo(TypeOf.Class, create:() => MoveTicketToAnotherEventSeatQuote()),
'EventSeatingMoveTicketToAnotherEventResult': TypeInfo(TypeOf.Class, create:() => EventSeatingMoveTicketToAnotherEventResult()),
'List<MoveTicketToAnotherEventFailure>': TypeInfo(TypeOf.Class, create:() => <MoveTicketToAnotherEventFailure>[]),
'List<MoveTicketToAnotherEventSeatQuote>': TypeInfo(TypeOf.Class, create:() => <MoveTicketToAnotherEventSeatQuote>[]),
'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 .xml suffix or ?format=xml
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/xml
Content-Type: application/xml
Content-Length: length
<EventSeatingMoveTicketToAnotherEventRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<ExpectedPriceDifference>0</ExpectedPriceDifference>
<FromEventId>0</FromEventId>
<IdempotencyKey>String</IdempotencyKey>
<Moves>
<MoveTicketToAnotherEventPair>
<FromSeatId>0</FromSeatId>
<ToOwnerTicketTypeId>0</ToOwnerTicketTypeId>
<ToSeatId>0</ToSeatId>
<ToSeriesTicketTypeId>0</ToSeriesTicketTypeId>
</MoveTicketToAnotherEventPair>
</Moves>
<QuoteOnly>false</QuoteOnly>
<Reason>String</Reason>
<RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
<Signature>
<Signature>String</Signature>
<SystemId>String</SystemId>
<SystemSecret>String</SystemSecret>
</Signature>
<SkipReconciliation>false</SkipReconciliation>
<ToEventId>0</ToEventId>
<UserId>0</UserId>
</EventSeatingMoveTicketToAnotherEventRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<EventSeatingMoveTicketToAnotherEventResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Direction>String</Direction>
<Failures>
<MoveTicketToAnotherEventFailure>
<FromSeatId>0</FromSeatId>
<Reason>String</Reason>
<ToSeatId>0</ToSeatId>
</MoveTicketToAnotherEventFailure>
</Failures>
<Message>String</Message>
<MovedSeatIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</MovedSeatIds>
<OutstandingCostHandledByServer>false</OutstandingCostHandledByServer>
<PriceDifference>0</PriceDifference>
<ReconciliationLogId>0</ReconciliationLogId>
<ReconciliationSkipped>false</ReconciliationSkipped>
<RefundAmount>0</RefundAmount>
<RefundPaymentReference>String</RefundPaymentReference>
<Seats>
<MoveTicketToAnotherEventSeatQuote>
<Difference>0</Difference>
<FromPrice>0</FromPrice>
<FromSeatId>0</FromSeatId>
<Message>String</Message>
<Ok>false</Ok>
<TicketTokenId>String</TicketTokenId>
<ToPrice>0</ToPrice>
<ToSeatId>0</ToSeatId>
<ToSeatName>String</ToSeatName>
</MoveTicketToAnotherEventSeatQuote>
</Seats>
<SourceEventPaidOut>false</SourceEventPaidOut>
<StatusCode>0</StatusCode>
</EventSeatingMoveTicketToAnotherEventResult>