| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| GET POST | /ticketOrder/getDiscountCodeInfo |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class DiscountCodeInfoRequest
{
public String code = null;
public String getCode() { return code; }
public DiscountCodeInfoRequest setCode(String value) { this.code = value; return this; }
}
public static class DiscountCodeInfoResult
{
public DiscountCodeInfo info = null;
public Integer statusCode = null;
public Boolean success = null;
public String message = null;
public DiscountCodeInfo getInfo() { return info; }
public DiscountCodeInfoResult setInfo(DiscountCodeInfo value) { this.info = value; return this; }
public Integer getStatusCode() { return statusCode; }
public DiscountCodeInfoResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public Boolean isSuccess() { return success; }
public DiscountCodeInfoResult setSuccess(Boolean value) { this.success = value; return this; }
public String getMessage() { return message; }
public DiscountCodeInfoResult setMessage(String value) { this.message = value; return this; }
}
public static class DiscountCodeInfo
{
public Integer codeId = null;
public Integer discountCodeType = null;
public String code = null;
public Boolean isMultiUse = null;
public Integer maxTickets = null;
public Boolean isSingleUse = null;
public Boolean isForPhoneNumberOnly = null;
public String fullPhoneNumber = null;
public Boolean isUsed = null;
public Boolean codeTypeIsValid = 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 validTicketTypeId = null;
public Integer discountCodeTypeId = null;
public Integer eventSeriesOwnerTicketType = null;
public Boolean ticketTypeIsValid = null;
public Integer getCodeId() { return codeId; }
public DiscountCodeInfo setCodeId(Integer value) { this.codeId = value; return this; }
public Integer getDiscountCodeType() { return discountCodeType; }
public DiscountCodeInfo setDiscountCodeType(Integer value) { this.discountCodeType = value; return this; }
public String getCode() { return code; }
public DiscountCodeInfo setCode(String value) { this.code = value; return this; }
public Boolean getIsMultiUse() { return isMultiUse; }
public DiscountCodeInfo setIsMultiUse(Boolean value) { this.isMultiUse = value; return this; }
public Integer getMaxTickets() { return maxTickets; }
public DiscountCodeInfo setMaxTickets(Integer value) { this.maxTickets = value; return this; }
public Boolean getIsSingleUse() { return isSingleUse; }
public DiscountCodeInfo setIsSingleUse(Boolean value) { this.isSingleUse = value; return this; }
public Boolean getIsForPhoneNumberOnly() { return isForPhoneNumberOnly; }
public DiscountCodeInfo setIsForPhoneNumberOnly(Boolean value) { this.isForPhoneNumberOnly = value; return this; }
public String getFullPhoneNumber() { return fullPhoneNumber; }
public DiscountCodeInfo setFullPhoneNumber(String value) { this.fullPhoneNumber = value; return this; }
public Boolean getIsUsed() { return isUsed; }
public DiscountCodeInfo setIsUsed(Boolean value) { this.isUsed = value; return this; }
public Boolean isCodeTypeIsValid() { return codeTypeIsValid; }
public DiscountCodeInfo setCodeTypeIsValid(Boolean value) { this.codeTypeIsValid = value; return this; }
public String getName() { return name; }
public DiscountCodeInfo setName(String value) { this.name = value; return this; }
public Boolean getIsForEventId() { return isForEventId; }
public DiscountCodeInfo setIsForEventId(Boolean value) { this.isForEventId = value; return this; }
public Integer getEventId() { return eventId; }
public DiscountCodeInfo setEventId(Integer value) { this.eventId = value; return this; }
public Integer getEventOwnerId() { return eventOwnerId; }
public DiscountCodeInfo setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
public Boolean getIsForTicketType() { return isForTicketType; }
public DiscountCodeInfo setIsForTicketType(Boolean value) { this.isForTicketType = value; return this; }
public Integer getTicketTypeId() { return ticketTypeId; }
public DiscountCodeInfo setTicketTypeId(Integer value) { this.ticketTypeId = value; return this; }
public Boolean getIsFixedAmount() { return isFixedAmount; }
public DiscountCodeInfo setIsFixedAmount(Boolean value) { this.isFixedAmount = value; return this; }
public BigDecimal getFixedAmount() { return fixedAmount; }
public DiscountCodeInfo setFixedAmount(BigDecimal value) { this.fixedAmount = value; return this; }
public Boolean getIsPercent() { return isPercent; }
public DiscountCodeInfo setIsPercent(Boolean value) { this.isPercent = value; return this; }
public BigDecimal getPercent() { return percent; }
public DiscountCodeInfo setPercent(BigDecimal value) { this.percent = value; return this; }
public Boolean getIsValid() { return isValid; }
public DiscountCodeInfo setIsValid(Boolean value) { this.isValid = value; return this; }
public Integer getValidTicketTypeId() { return validTicketTypeId; }
public DiscountCodeInfo setValidTicketTypeId(Integer value) { this.validTicketTypeId = value; return this; }
public Integer getDiscountCodeTypeId() { return discountCodeTypeId; }
public DiscountCodeInfo setDiscountCodeTypeId(Integer value) { this.discountCodeTypeId = value; return this; }
public Integer getEventSeriesOwnerTicketType() { return eventSeriesOwnerTicketType; }
public DiscountCodeInfo setEventSeriesOwnerTicketType(Integer value) { this.eventSeriesOwnerTicketType = value; return this; }
public Boolean isTicketTypeIsValid() { return ticketTypeIsValid; }
public DiscountCodeInfo setTicketTypeIsValid(Boolean value) { this.ticketTypeIsValid = value; return this; }
}
}
Java DiscountCodeInfoRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ticketOrder/getDiscountCodeInfo HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"code":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"info":{"codeId":0,"discountCodeType":0,"code":"String","isMultiUse":false,"maxTickets":0,"isSingleUse":false,"isForPhoneNumberOnly":false,"fullPhoneNumber":"String","isUsed":false,"codeTypeIsValid":false,"name":"String","isForEventId":false,"eventId":0,"eventOwnerId":0,"isForTicketType":false,"ticketTypeId":0,"isFixedAmount":false,"fixedAmount":0,"isPercent":false,"percent":0,"isValid":false,"validTicketTypeId":0,"discountCodeTypeId":0,"eventSeriesOwnerTicketType":0,"ticketTypeIsValid":false},"statusCode":0,"success":false,"message":"String"}