| 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 .xml suffix or ?format=xml
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/xml
Content-Type: application/xml
Content-Length: length
<DiscountCodeInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Code>String</Code>
</DiscountCodeInfoRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<DiscountCodeInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Info>
<Code>String</Code>
<CodeId>0</CodeId>
<CodeTypeIsValid>false</CodeTypeIsValid>
<DiscountCodeType>0</DiscountCodeType>
<DiscountCodeTypeId>0</DiscountCodeTypeId>
<EventId>0</EventId>
<EventOwnerId>0</EventOwnerId>
<EventSeriesOwnerTicketType>0</EventSeriesOwnerTicketType>
<FixedAmount>0</FixedAmount>
<FullPhoneNumber>String</FullPhoneNumber>
<IsFixedAmount>false</IsFixedAmount>
<IsForEventId>false</IsForEventId>
<IsForPhoneNumberOnly>false</IsForPhoneNumberOnly>
<IsForTicketType>false</IsForTicketType>
<IsMultiUse>false</IsMultiUse>
<IsPercent>false</IsPercent>
<IsSingleUse>false</IsSingleUse>
<IsUsed>false</IsUsed>
<IsValid>false</IsValid>
<MaxTickets>0</MaxTickets>
<Name>String</Name>
<Percent>0</Percent>
<TicketTypeId>0</TicketTypeId>
<TicketTypeIsValid>false</TicketTypeIsValid>
<ValidTicketTypeId>0</ValidTicketTypeId>
</Info>
<Message>String</Message>
<StatusCode>0</StatusCode>
<Success>false</Success>
</DiscountCodeInfoResult>