| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
| GET | /DiscountCode/{Id} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class DiscountCodeGetRequest
{
public Integer id = null;
public Integer getId() { return id; }
public DiscountCodeGetRequest setId(Integer value) { this.id = value; return this; }
}
public static class DiscountCodeResult
{
public DiscountCode item = null;
public Integer statusCode = null;
public String message = null;
public DiscountCode getItem() { return item; }
public DiscountCodeResult setItem(DiscountCode value) { this.item = value; return this; }
public Integer getStatusCode() { return statusCode; }
public DiscountCodeResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public DiscountCodeResult setMessage(String value) { this.message = value; return this; }
}
public static class DiscountCode
{
public Integer id = 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 isValid = null;
public Integer getId() { return id; }
public DiscountCode setId(Integer value) { this.id = value; return this; }
public Integer getDiscountCodeType() { return discountCodeType; }
public DiscountCode setDiscountCodeType(Integer value) { this.discountCodeType = value; return this; }
public String getCode() { return code; }
public DiscountCode setCode(String value) { this.code = value; return this; }
public Boolean getIsMultiUse() { return isMultiUse; }
public DiscountCode setIsMultiUse(Boolean value) { this.isMultiUse = value; return this; }
public Integer getMaxTickets() { return maxTickets; }
public DiscountCode setMaxTickets(Integer value) { this.maxTickets = value; return this; }
public Boolean getIsSingleUse() { return isSingleUse; }
public DiscountCode setIsSingleUse(Boolean value) { this.isSingleUse = value; return this; }
public Boolean getIsForPhoneNumberOnly() { return isForPhoneNumberOnly; }
public DiscountCode setIsForPhoneNumberOnly(Boolean value) { this.isForPhoneNumberOnly = value; return this; }
public String getFullPhoneNumber() { return fullPhoneNumber; }
public DiscountCode setFullPhoneNumber(String value) { this.fullPhoneNumber = value; return this; }
public Boolean getIsUsed() { return isUsed; }
public DiscountCode setIsUsed(Boolean value) { this.isUsed = value; return this; }
public Boolean getIsValid() { return isValid; }
public DiscountCode setIsValid(Boolean value) { this.isValid = value; return this; }
}
}
Java DiscountCodeGetRequest 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.
GET /DiscountCode/{Id} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"item":{"id":0,"discountCodeType":0,"code":"String","isMultiUse":false,"maxTickets":0,"isSingleUse":false,"isForPhoneNumberOnly":false,"fullPhoneNumber":"String","isUsed":false,"isValid":false},"statusCode":0,"message":"String"}