TicketUserServices

<back to all web services

SharedTicketLinkCreateRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:Tickets.Add
The following routes are available for this service:
POST/SharedTicketLink/Create
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SharedTicketLinkCreateRequest
    {
        public Integer eventId = null;
        public Integer ticketOwnerTypeId = null;
        public Integer count = null;
        public Integer sectionId = null;
        public ArrayList<Integer> seatIds = null;
        public String recipientEmail = null;
        public String recipientPhone = null;
        public Integer validToDays = null;
        
        public Integer getEventId() { return eventId; }
        public SharedTicketLinkCreateRequest setEventId(Integer value) { this.eventId = value; return this; }
        public Integer getTicketOwnerTypeId() { return ticketOwnerTypeId; }
        public SharedTicketLinkCreateRequest setTicketOwnerTypeId(Integer value) { this.ticketOwnerTypeId = value; return this; }
        public Integer getCount() { return count; }
        public SharedTicketLinkCreateRequest setCount(Integer value) { this.count = value; return this; }
        public Integer getSectionId() { return sectionId; }
        public SharedTicketLinkCreateRequest setSectionId(Integer value) { this.sectionId = value; return this; }
        public ArrayList<Integer> getSeatIds() { return seatIds; }
        public SharedTicketLinkCreateRequest setSeatIds(ArrayList<Integer> value) { this.seatIds = value; return this; }
        public String getRecipientEmail() { return recipientEmail; }
        public SharedTicketLinkCreateRequest setRecipientEmail(String value) { this.recipientEmail = value; return this; }
        public String getRecipientPhone() { return recipientPhone; }
        public SharedTicketLinkCreateRequest setRecipientPhone(String value) { this.recipientPhone = value; return this; }
        public Integer getValidToDays() { return validToDays; }
        public SharedTicketLinkCreateRequest setValidToDays(Integer value) { this.validToDays = value; return this; }
    }

    public static class SharedTicketLinkCreateResult
    {
        public Boolean success = null;
        public Integer id = null;
        public String token = null;
        public String url = null;
        public Date validTo = null;
        public String status = null;
        public ArrayList<SharedTicketLinkSeatInfo> seats = null;
        public Integer statusCode = null;
        public String message = null;
        
        public Boolean isSuccess() { return success; }
        public SharedTicketLinkCreateResult setSuccess(Boolean value) { this.success = value; return this; }
        public Integer getId() { return id; }
        public SharedTicketLinkCreateResult setId(Integer value) { this.id = value; return this; }
        public String getToken() { return token; }
        public SharedTicketLinkCreateResult setToken(String value) { this.token = value; return this; }
        public String getUrl() { return url; }
        public SharedTicketLinkCreateResult setUrl(String value) { this.url = value; return this; }
        public Date getValidTo() { return validTo; }
        public SharedTicketLinkCreateResult setValidTo(Date value) { this.validTo = value; return this; }
        public String getStatus() { return status; }
        public SharedTicketLinkCreateResult setStatus(String value) { this.status = value; return this; }
        public ArrayList<SharedTicketLinkSeatInfo> getSeats() { return seats; }
        public SharedTicketLinkCreateResult setSeats(ArrayList<SharedTicketLinkSeatInfo> value) { this.seats = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public SharedTicketLinkCreateResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public SharedTicketLinkCreateResult setMessage(String value) { this.message = value; return this; }
    }

    public static class SharedTicketLinkSeatInfo
    {
        public Integer seatId = null;
        public String sectionName = null;
        public String rowName = null;
        public String seatName = null;
        
        public Integer getSeatId() { return seatId; }
        public SharedTicketLinkSeatInfo setSeatId(Integer value) { this.seatId = value; return this; }
        public String getSectionName() { return sectionName; }
        public SharedTicketLinkSeatInfo setSectionName(String value) { this.sectionName = value; return this; }
        public String getRowName() { return rowName; }
        public SharedTicketLinkSeatInfo setRowName(String value) { this.rowName = value; return this; }
        public String getSeatName() { return seatName; }
        public SharedTicketLinkSeatInfo setSeatName(String value) { this.seatName = value; return this; }
    }

}

Java SharedTicketLinkCreateRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /SharedTicketLink/Create HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	eventId: 0,
	ticketOwnerTypeId: 0,
	count: 0,
	sectionId: 0,
	seatIds: 
	[
		0
	],
	recipientEmail: String,
	recipientPhone: String,
	validToDays: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	success: False,
	id: 0,
	token: String,
	url: String,
	validTo: 0001-01-01,
	status: String,
	seats: 
	[
		{
			seatId: 0,
			sectionName: String,
			rowName: String,
			seatName: String
		}
	],
	statusCode: 0,
	message: String
}