TicketUserServices

<back to all web services

DiscountCodeTypeValidTicketTypeCreateRequest

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

public class dtos
{

    public static class DiscountCodeTypeValidTicketTypeCreateRequest
    {
        public DiscountCodeTypeValidTicketType item = null;
        
        public DiscountCodeTypeValidTicketType getItem() { return item; }
        public DiscountCodeTypeValidTicketTypeCreateRequest setItem(DiscountCodeTypeValidTicketType value) { this.item = 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; }
    }

    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; }
    }

}

Java DiscountCodeTypeValidTicketTypeCreateRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /DiscountCodeTypeValidTicketType HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<DiscountCodeTypeValidTicketTypeCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Item>
    <DiscountCodeTypeId>0</DiscountCodeTypeId>
    <EventSeriesOwnerTicketType>0</EventSeriesOwnerTicketType>
    <ID>0</ID>
    <IsValid>false</IsValid>
  </Item>
</DiscountCodeTypeValidTicketTypeCreateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DiscountCodeTypeValidTicketTypeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Item>
    <DiscountCodeTypeId>0</DiscountCodeTypeId>
    <EventSeriesOwnerTicketType>0</EventSeriesOwnerTicketType>
    <ID>0</ID>
    <IsValid>false</IsValid>
  </Item>
  <Message>String</Message>
  <StatusCode>0</StatusCode>
</DiscountCodeTypeValidTicketTypeResult>