| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
| POST | /EventSeating/ReseatQuote |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TicketUserServices.ServiceModel;
namespace TicketUserServices.ServiceModel
{
public partial class ReseatMovePair
{
public virtual int FromSeatId { get; set; }
public virtual int ToSeatId { get; set; }
public virtual int? ToOwnerTicketTypeId { get; set; }
}
public partial class ReseatQuoteRequest
{
public ReseatQuoteRequest()
{
Moves = new List<ReseatMovePair>{};
}
public virtual int EventId { get; set; }
public virtual List<ReseatMovePair> Moves { get; set; }
}
public partial class ReseatQuoteResult
{
public ReseatQuoteResult()
{
Seats = new List<ReseatSeatQuote>{};
}
public virtual bool Ok { get; set; }
public virtual int StatusCode { get; set; }
public virtual string Message { get; set; }
public virtual decimal TotalFromPrice { get; set; }
public virtual decimal TotalToPrice { get; set; }
public virtual decimal PriceDifference { get; set; }
public virtual string Direction { get; set; }
public virtual bool RefundableViaBorgun { get; set; }
public virtual string PaymentReference { get; set; }
public virtual List<ReseatSeatQuote> Seats { get; set; }
}
public partial class ReseatSeatQuote
{
public virtual int FromSeatId { get; set; }
public virtual int ToSeatId { get; set; }
public virtual string TicketTokenId { get; set; }
public virtual decimal FromPrice { get; set; }
public virtual decimal ToPrice { get; set; }
public virtual decimal Difference { get; set; }
public virtual string ToSectionName { get; set; }
public virtual string ToSeatName { get; set; }
public virtual bool Ok { get; set; }
public virtual string Message { get; set; }
}
}
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
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"}]}