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

<ReseatQuoteRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <EventId>0</EventId>
  <Moves>
    <ReseatMovePair>
      <FromSeatId>0</FromSeatId>
      <ToOwnerTicketTypeId>0</ToOwnerTicketTypeId>
      <ToSeatId>0</ToSeatId>
    </ReseatMovePair>
  </Moves>
</ReseatQuoteRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ReseatQuoteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Direction>String</Direction>
  <Message>String</Message>
  <Ok>false</Ok>
  <PaymentReference>String</PaymentReference>
  <PriceDifference>0</PriceDifference>
  <RefundableViaBorgun>false</RefundableViaBorgun>
  <Seats>
    <ReseatSeatQuote>
      <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>
      <ToSectionName>String</ToSectionName>
    </ReseatSeatQuote>
  </Seats>
  <StatusCode>0</StatusCode>
  <TotalFromPrice>0</TotalFromPrice>
  <TotalToPrice>0</TotalToPrice>
</ReseatQuoteResult>