| POST | /ticketHold/extend |
|---|
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 CategoryAvailability
{
public virtual int? EventSeriesTicketType { get; set; }
public virtual int? EventSeriesOwnerTicketType { get; set; }
public virtual int? MaxTickets { get; set; }
public virtual int Remaining { get; set; }
}
public partial class CategoryHoldLine
{
public virtual int? EventSeriesTicketType { get; set; }
public virtual int? EventSeriesOwnerTicketType { get; set; }
public virtual int Quantity { get; set; }
}
public partial class RequestSignature
{
public virtual string SystemId { get; set; }
public virtual string SystemSecret { get; set; }
public virtual string Signature { get; set; }
}
public partial class TicketHoldExtendRequest
{
public virtual string ReservationTokenId { get; set; }
public virtual long RequestUnixUTCTimeStamp { get; set; }
public virtual RequestSignature Signature { get; set; }
}
public partial class TicketHoldResult
{
public TicketHoldResult()
{
Lines = new List<CategoryHoldLine>{};
PerCategory = new List<CategoryAvailability>{};
}
public virtual int StatusCode { get; set; }
public virtual string Message { get; set; }
public virtual string ReservationTokenId { get; set; }
public virtual DateTime? ExpiresUtc { get; set; }
public virtual List<CategoryHoldLine> Lines { get; set; }
public virtual List<CategoryAvailability> PerCategory { get; set; }
public virtual bool Scarcity { get; set; }
}
}
C# TicketHoldExtendRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ticketHold/extend HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"reservationTokenId":"String","requestUnixUTCTimeStamp":0,"signature":{"systemId":"String","systemSecret":"String","signature":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"statusCode":0,"message":"String","reservationTokenId":"String","expiresUtc":"0001-01-01T00:00:00.0000000","lines":[{"eventSeriesTicketType":0,"eventSeriesOwnerTicketType":0,"quantity":0}],"perCategory":[{"eventSeriesTicketType":0,"eventSeriesOwnerTicketType":0,"maxTickets":0,"remaining":0}],"scarcity":false}