| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
| POST | /TicketTypeSaleWindow |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class TicketTypeSaleWindowCreateRequest
{
public Integer ownerId = null;
public TicketTypeSaleWindow item = null;
public Integer getOwnerId() { return ownerId; }
public TicketTypeSaleWindowCreateRequest setOwnerId(Integer value) { this.ownerId = value; return this; }
public TicketTypeSaleWindow getItem() { return item; }
public TicketTypeSaleWindowCreateRequest setItem(TicketTypeSaleWindow value) { this.item = value; return this; }
}
public static class TicketTypeSaleWindow
{
public Integer id = null;
public Integer ticketTypeId = null;
public Boolean isOwnerTicketType = null;
public Integer eventId = null;
public Date saleStartsUTC = null;
public Date saleEndsUTC = null;
public Boolean hideUntilOpen = null;
public Boolean isActive = null;
public Integer createdByUserId = null;
public Date timestampCreated = null;
public Date timestampLastChanged = null;
public Integer getId() { return id; }
public TicketTypeSaleWindow setId(Integer value) { this.id = value; return this; }
public Integer getTicketTypeId() { return ticketTypeId; }
public TicketTypeSaleWindow setTicketTypeId(Integer value) { this.ticketTypeId = value; return this; }
public Boolean getIsOwnerTicketType() { return isOwnerTicketType; }
public TicketTypeSaleWindow setIsOwnerTicketType(Boolean value) { this.isOwnerTicketType = value; return this; }
public Integer getEventId() { return eventId; }
public TicketTypeSaleWindow setEventId(Integer value) { this.eventId = value; return this; }
public Date getSaleStartsUTC() { return saleStartsUTC; }
public TicketTypeSaleWindow setSaleStartsUTC(Date value) { this.saleStartsUTC = value; return this; }
public Date getSaleEndsUTC() { return saleEndsUTC; }
public TicketTypeSaleWindow setSaleEndsUTC(Date value) { this.saleEndsUTC = value; return this; }
public Boolean isHideUntilOpen() { return hideUntilOpen; }
public TicketTypeSaleWindow setHideUntilOpen(Boolean value) { this.hideUntilOpen = value; return this; }
public Boolean getIsActive() { return isActive; }
public TicketTypeSaleWindow setIsActive(Boolean value) { this.isActive = value; return this; }
public Integer getCreatedByUserId() { return createdByUserId; }
public TicketTypeSaleWindow setCreatedByUserId(Integer value) { this.createdByUserId = value; return this; }
public Date getTimestampCreated() { return timestampCreated; }
public TicketTypeSaleWindow setTimestampCreated(Date value) { this.timestampCreated = value; return this; }
public Date getTimestampLastChanged() { return timestampLastChanged; }
public TicketTypeSaleWindow setTimestampLastChanged(Date value) { this.timestampLastChanged = value; return this; }
}
public static class TicketTypeSaleWindowResult
{
public TicketTypeSaleWindowInfo item = null;
public Integer statusCode = null;
public String message = null;
public TicketTypeSaleWindowInfo getItem() { return item; }
public TicketTypeSaleWindowResult setItem(TicketTypeSaleWindowInfo value) { this.item = value; return this; }
public Integer getStatusCode() { return statusCode; }
public TicketTypeSaleWindowResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public TicketTypeSaleWindowResult setMessage(String value) { this.message = value; return this; }
}
public static class TicketTypeSaleWindowInfo
{
public TicketTypeSaleWindow window = null;
public String ticketTypeName = null;
public Integer ownerId = null;
public String saleStatus = null;
public TicketTypeSaleWindow getWindow() { return window; }
public TicketTypeSaleWindowInfo setWindow(TicketTypeSaleWindow value) { this.window = value; return this; }
public String getTicketTypeName() { return ticketTypeName; }
public TicketTypeSaleWindowInfo setTicketTypeName(String value) { this.ticketTypeName = value; return this; }
public Integer getOwnerId() { return ownerId; }
public TicketTypeSaleWindowInfo setOwnerId(Integer value) { this.ownerId = value; return this; }
public String getSaleStatus() { return saleStatus; }
public TicketTypeSaleWindowInfo setSaleStatus(String value) { this.saleStatus = value; return this; }
}
}
Java TicketTypeSaleWindowCreateRequest 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 /TicketTypeSaleWindow HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ownerId":0,"item":{"id":0,"ticketTypeId":0,"isOwnerTicketType":false,"eventId":0,"saleStartsUTC":"0001-01-01T00:00:00.0000000","saleEndsUTC":"0001-01-01T00:00:00.0000000","hideUntilOpen":false,"isActive":false,"createdByUserId":0,"timestampCreated":"0001-01-01T00:00:00.0000000","timestampLastChanged":"0001-01-01T00:00:00.0000000"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"item":{"window":{"id":0,"ticketTypeId":0,"isOwnerTicketType":false,"eventId":0,"saleStartsUTC":"0001-01-01T00:00:00.0000000","saleEndsUTC":"0001-01-01T00:00:00.0000000","hideUntilOpen":false,"isActive":false,"createdByUserId":0,"timestampCreated":"0001-01-01T00:00:00.0000000","timestampLastChanged":"0001-01-01T00:00:00.0000000"},"ticketTypeName":"String","ownerId":0,"saleStatus":"String"},"statusCode":0,"message":"String"}