TicketUserServices

<back to all web services

DiscountCodeTypeValidTicketTypeGetRequest

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

public class dtos
{

    public static class DiscountCodeTypeValidTicketTypeGetRequest
    {
        public Integer id = null;
        
        public Integer getId() { return id; }
        public DiscountCodeTypeValidTicketTypeGetRequest setId(Integer value) { this.id = value; return this; }
    }

    public static class DiscountCodeTypeValidTicketTypeResult
    {
        public DiscountCodeTypeValidTicketType item = null;
        public Integer statusCode = null;
        public String message = null;
        
        public DiscountCodeTypeValidTicketType getItem() { return item; }
        public DiscountCodeTypeValidTicketTypeResult setItem(DiscountCodeTypeValidTicketType value) { this.item = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public DiscountCodeTypeValidTicketTypeResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public DiscountCodeTypeValidTicketTypeResult setMessage(String value) { this.message = value; return this; }
    }

    public static class DiscountCodeTypeValidTicketType
    {
        public Integer id = null;
        public Integer discountCodeTypeId = null;
        public Integer eventSeriesOwnerTicketType = null;
        public Boolean isValid = null;
        
        public Integer getId() { return id; }
        public DiscountCodeTypeValidTicketType setId(Integer value) { this.id = value; return this; }
        public Integer getDiscountCodeTypeId() { return discountCodeTypeId; }
        public DiscountCodeTypeValidTicketType setDiscountCodeTypeId(Integer value) { this.discountCodeTypeId = value; return this; }
        public Integer getEventSeriesOwnerTicketType() { return eventSeriesOwnerTicketType; }
        public DiscountCodeTypeValidTicketType setEventSeriesOwnerTicketType(Integer value) { this.eventSeriesOwnerTicketType = value; return this; }
        public Boolean getIsValid() { return isValid; }
        public DiscountCodeTypeValidTicketType setIsValid(Boolean value) { this.isValid = value; return this; }
    }

}

Java DiscountCodeTypeValidTicketTypeGetRequest 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.

GET /DiscountCodeTypeValidTicketType/{Id} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	item: 
	{
		id: 0,
		discountCodeTypeId: 0,
		eventSeriesOwnerTicketType: 0,
		isValid: False
	},
	statusCode: 0,
	message: String
}