Requires the role: | Admin |
GET POST | /createExternalGateCodes |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ExternalGatesCreateCodesRequest
{
public Integer eventOwnerId = null;
public Integer eventId = null;
public Date fromDate = null;
public Date toDate = null;
public Integer minimumTotalCodes = null;
public Integer minimumAvalableCodes = null;
public Integer getEventOwnerId() { return eventOwnerId; }
public ExternalGatesCreateCodesRequest setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
public Integer getEventId() { return eventId; }
public ExternalGatesCreateCodesRequest setEventId(Integer value) { this.eventId = value; return this; }
public Date getFromDate() { return fromDate; }
public ExternalGatesCreateCodesRequest setFromDate(Date value) { this.fromDate = value; return this; }
public Date getToDate() { return toDate; }
public ExternalGatesCreateCodesRequest setToDate(Date value) { this.toDate = value; return this; }
public Integer getMinimumTotalCodes() { return minimumTotalCodes; }
public ExternalGatesCreateCodesRequest setMinimumTotalCodes(Integer value) { this.minimumTotalCodes = value; return this; }
public Integer getMinimumAvalableCodes() { return minimumAvalableCodes; }
public ExternalGatesCreateCodesRequest setMinimumAvalableCodes(Integer value) { this.minimumAvalableCodes = value; return this; }
}
public static class ExternalGatesCreateCodesResponse
{
public Integer codesCreated = null;
public Integer ownersCreated = null;
public Integer eventsCreated = null;
public Integer statusCode = null;
public String message = null;
public Integer getCodesCreated() { return codesCreated; }
public ExternalGatesCreateCodesResponse setCodesCreated(Integer value) { this.codesCreated = value; return this; }
public Integer getOwnersCreated() { return ownersCreated; }
public ExternalGatesCreateCodesResponse setOwnersCreated(Integer value) { this.ownersCreated = value; return this; }
public Integer getEventsCreated() { return eventsCreated; }
public ExternalGatesCreateCodesResponse setEventsCreated(Integer value) { this.eventsCreated = value; return this; }
public Integer getStatusCode() { return statusCode; }
public ExternalGatesCreateCodesResponse setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public ExternalGatesCreateCodesResponse setMessage(String value) { this.message = value; return this; }
}
}
Java ExternalGatesCreateCodesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /createExternalGateCodes HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ExternalGatesCreateCodesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<EventId>0</EventId>
<EventOwnerId>0</EventOwnerId>
<FromDate>0001-01-01T00:00:00</FromDate>
<MinimumAvalableCodes>0</MinimumAvalableCodes>
<MinimumTotalCodes>0</MinimumTotalCodes>
<ToDate>0001-01-01T00:00:00</ToDate>
</ExternalGatesCreateCodesRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ExternalGatesCreateCodesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <CodesCreated>0</CodesCreated> <EventsCreated>0</EventsCreated> <Message>String</Message> <OwnersCreated>0</OwnersCreated> <StatusCode>0</StatusCode> </ExternalGatesCreateCodesResponse>