TicketUserServices

<back to all web services

DiscountCodeTypesSearchRequest

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

public class dtos
{

    public static class DiscountCodeTypesSearchRequest
    {
        public Integer eventId = null;
        public Integer eventOwnerId = null;
        public Integer ticketTypeId = null;
        
        public Integer getEventId() { return eventId; }
        public DiscountCodeTypesSearchRequest setEventId(Integer value) { this.eventId = value; return this; }
        public Integer getEventOwnerId() { return eventOwnerId; }
        public DiscountCodeTypesSearchRequest setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
        public Integer getTicketTypeId() { return ticketTypeId; }
        public DiscountCodeTypesSearchRequest setTicketTypeId(Integer value) { this.ticketTypeId = value; return this; }
    }

    public static class DiscountCodeTypesResult
    {
        public ArrayList<DiscountCodeType> items = null;
        public Integer statusCode = null;
        public String message = null;
        
        public ArrayList<DiscountCodeType> getItems() { return items; }
        public DiscountCodeTypesResult setItems(ArrayList<DiscountCodeType> value) { this.items = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public DiscountCodeTypesResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public DiscountCodeTypesResult setMessage(String value) { this.message = value; return this; }
    }

    public static class DiscountCodeType
    {
        public Integer id = null;
        public String name = null;
        public Boolean isForEventId = null;
        public Integer eventId = null;
        public Integer eventOwnerId = null;
        public Boolean isForTicketType = null;
        public Integer ticketTypeId = null;
        public Boolean isFixedAmount = null;
        public BigDecimal fixedAmount = null;
        public Boolean isPercent = null;
        public BigDecimal percent = null;
        public Boolean isValid = null;
        
        public Integer getId() { return id; }
        public DiscountCodeType setId(Integer value) { this.id = value; return this; }
        public String getName() { return name; }
        public DiscountCodeType setName(String value) { this.name = value; return this; }
        public Boolean getIsForEventId() { return isForEventId; }
        public DiscountCodeType setIsForEventId(Boolean value) { this.isForEventId = value; return this; }
        public Integer getEventId() { return eventId; }
        public DiscountCodeType setEventId(Integer value) { this.eventId = value; return this; }
        public Integer getEventOwnerId() { return eventOwnerId; }
        public DiscountCodeType setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
        public Boolean getIsForTicketType() { return isForTicketType; }
        public DiscountCodeType setIsForTicketType(Boolean value) { this.isForTicketType = value; return this; }
        public Integer getTicketTypeId() { return ticketTypeId; }
        public DiscountCodeType setTicketTypeId(Integer value) { this.ticketTypeId = value; return this; }
        public Boolean getIsFixedAmount() { return isFixedAmount; }
        public DiscountCodeType setIsFixedAmount(Boolean value) { this.isFixedAmount = value; return this; }
        public BigDecimal getFixedAmount() { return fixedAmount; }
        public DiscountCodeType setFixedAmount(BigDecimal value) { this.fixedAmount = value; return this; }
        public Boolean getIsPercent() { return isPercent; }
        public DiscountCodeType setIsPercent(Boolean value) { this.isPercent = value; return this; }
        public BigDecimal getPercent() { return percent; }
        public DiscountCodeType setPercent(BigDecimal value) { this.percent = value; return this; }
        public Boolean getIsValid() { return isValid; }
        public DiscountCodeType setIsValid(Boolean value) { this.isValid = value; return this; }
    }

}

Java DiscountCodeTypesSearchRequest 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 /DiscountCodeType/Search HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	eventId: 0,
	eventOwnerId: 0,
	ticketTypeId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	items: 
	[
		{
			id: 0,
			name: String,
			isForEventId: False,
			eventId: 0,
			eventOwnerId: 0,
			isForTicketType: False,
			ticketTypeId: 0,
			isFixedAmount: False,
			fixedAmount: 0,
			isPercent: False,
			percent: 0,
			isValid: False
		}
	],
	statusCode: 0,
	message: String
}