TicketUserServices

<back to all web services

ReseatQuoteRequest

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

class ReseatSeatQuote implements IConvertible
{
    int? fromSeatId;
    int? toSeatId;
    String? ticketTokenId;
    double? fromPrice;
    double? toPrice;
    double? difference;
    String? toSectionName;
    String? toSeatName;
    bool? ok;
    String? message;

    ReseatSeatQuote({this.fromSeatId,this.toSeatId,this.ticketTokenId,this.fromPrice,this.toPrice,this.difference,this.toSectionName,this.toSeatName,this.ok,this.message});
    ReseatSeatQuote.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']);
        toSectionName = json['toSectionName'];
        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,
        'toSectionName': toSectionName,
        'toSeatName': toSeatName,
        'ok': ok,
        'message': message
    };

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

class ReseatQuoteResult implements IConvertible
{
    bool? ok;
    int? statusCode;
    String? message;
    double? totalFromPrice;
    double? totalToPrice;
    double? priceDifference;
    String? direction;
    bool? refundableViaBorgun;
    String? paymentReference;
    List<ReseatSeatQuote>? seats;

    ReseatQuoteResult({this.ok,this.statusCode,this.message,this.totalFromPrice,this.totalToPrice,this.priceDifference,this.direction,this.refundableViaBorgun,this.paymentReference,this.seats});
    ReseatQuoteResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ok = json['ok'];
        statusCode = json['statusCode'];
        message = json['message'];
        totalFromPrice = JsonConverters.toDouble(json['totalFromPrice']);
        totalToPrice = JsonConverters.toDouble(json['totalToPrice']);
        priceDifference = JsonConverters.toDouble(json['priceDifference']);
        direction = json['direction'];
        refundableViaBorgun = json['refundableViaBorgun'];
        paymentReference = json['paymentReference'];
        seats = JsonConverters.fromJson(json['seats'],'List<ReseatSeatQuote>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ok': ok,
        'statusCode': statusCode,
        'message': message,
        'totalFromPrice': totalFromPrice,
        'totalToPrice': totalToPrice,
        'priceDifference': priceDifference,
        'direction': direction,
        'refundableViaBorgun': refundableViaBorgun,
        'paymentReference': paymentReference,
        'seats': JsonConverters.toJson(seats,'List<ReseatSeatQuote>',context!)
    };

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

class ReseatMovePair implements IConvertible
{
    int? fromSeatId;
    int? toSeatId;
    int? toOwnerTicketTypeId;

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

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

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

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

class ReseatQuoteRequest implements IConvertible
{
    int? eventId;
    List<ReseatMovePair>? moves;

    ReseatQuoteRequest({this.eventId,this.moves});
    ReseatQuoteRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        eventId = json['eventId'];
        moves = JsonConverters.fromJson(json['moves'],'List<ReseatMovePair>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'eventId': eventId,
        'moves': JsonConverters.toJson(moves,'List<ReseatMovePair>',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
    'ReseatSeatQuote': TypeInfo(TypeOf.Class, create:() => ReseatSeatQuote()),
    'ReseatQuoteResult': TypeInfo(TypeOf.Class, create:() => ReseatQuoteResult()),
    'List<ReseatSeatQuote>': TypeInfo(TypeOf.Class, create:() => <ReseatSeatQuote>[]),
    'ReseatMovePair': TypeInfo(TypeOf.Class, create:() => ReseatMovePair()),
    'ReseatQuoteRequest': TypeInfo(TypeOf.Class, create:() => ReseatQuoteRequest()),
    'List<ReseatMovePair>': TypeInfo(TypeOf.Class, create:() => <ReseatMovePair>[]),
});

Dart ReseatQuoteRequest 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 /EventSeating/ReseatQuote HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"eventId":0,"moves":[{"fromSeatId":0,"toSeatId":0,"toOwnerTicketTypeId":0}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ok":false,"statusCode":0,"message":"String","totalFromPrice":0,"totalToPrice":0,"priceDifference":0,"direction":"String","refundableViaBorgun":false,"paymentReference":"String","seats":[{"fromSeatId":0,"toSeatId":0,"ticketTokenId":"String","fromPrice":0,"toPrice":0,"difference":0,"toSectionName":"String","toSeatName":"String","ok":false,"message":"String"}]}