| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
| GET | /DiscountCodeType/{Id} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class DiscountCodeTypeGetRequest
{
public Integer id = null;
public Integer getId() { return id; }
public DiscountCodeTypeGetRequest setId(Integer value) { this.id = value; return this; }
}
public static class DiscountCodeTypeResult
{
public DiscountCodeType item = null;
public Integer statusCode = null;
public String message = null;
public DiscountCodeType getItem() { return item; }
public DiscountCodeTypeResult setItem(DiscountCodeType value) { this.item = value; return this; }
public Integer getStatusCode() { return statusCode; }
public DiscountCodeTypeResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public DiscountCodeTypeResult 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 DiscountCodeTypeGetRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /DiscountCodeType/{Id} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"item":{"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"}