TicketUserServices

<back to all web services

ExternalGatesCreateCodesRequest

Requires Authentication
Requires the role:Admin
The following routes are available for this service:
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 .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 /createExternalGateCodes HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	eventOwnerId: 0,
	eventId: 0,
	fromDate: 0001-01-01,
	toDate: 0001-01-01,
	minimumTotalCodes: 0,
	minimumAvalableCodes: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	codesCreated: 0,
	ownersCreated: 0,
	eventsCreated: 0,
	statusCode: 0,
	message: String
}