| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
| POST | /DiscountCodeTypeValidOwnerCardType/Search |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class DiscountCodeTypeValidOwnerCardTypesSearchRequest
{
public Integer discountCodeTypeId = null;
public Integer ownerCardTypeId = null;
public Integer getDiscountCodeTypeId() { return discountCodeTypeId; }
public DiscountCodeTypeValidOwnerCardTypesSearchRequest setDiscountCodeTypeId(Integer value) { this.discountCodeTypeId = value; return this; }
public Integer getOwnerCardTypeId() { return ownerCardTypeId; }
public DiscountCodeTypeValidOwnerCardTypesSearchRequest setOwnerCardTypeId(Integer value) { this.ownerCardTypeId = value; return this; }
}
public static class DiscountCodeTypeValidOwnerCardTypesResult
{
public ArrayList<DiscountCodeTypeValidOwnerCardType> items = null;
public Integer statusCode = null;
public String message = null;
public ArrayList<DiscountCodeTypeValidOwnerCardType> getItems() { return items; }
public DiscountCodeTypeValidOwnerCardTypesResult setItems(ArrayList<DiscountCodeTypeValidOwnerCardType> value) { this.items = value; return this; }
public Integer getStatusCode() { return statusCode; }
public DiscountCodeTypeValidOwnerCardTypesResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public DiscountCodeTypeValidOwnerCardTypesResult setMessage(String value) { this.message = value; return this; }
}
public static class DiscountCodeTypeValidOwnerCardType
{
public Integer id = null;
public Integer discountCodeTypeId = null;
public Integer ownerCardTypeId = null;
public Boolean isValid = null;
public Integer getId() { return id; }
public DiscountCodeTypeValidOwnerCardType setId(Integer value) { this.id = value; return this; }
public Integer getDiscountCodeTypeId() { return discountCodeTypeId; }
public DiscountCodeTypeValidOwnerCardType setDiscountCodeTypeId(Integer value) { this.discountCodeTypeId = value; return this; }
public Integer getOwnerCardTypeId() { return ownerCardTypeId; }
public DiscountCodeTypeValidOwnerCardType setOwnerCardTypeId(Integer value) { this.ownerCardTypeId = value; return this; }
public Boolean getIsValid() { return isValid; }
public DiscountCodeTypeValidOwnerCardType setIsValid(Boolean value) { this.isValid = value; return this; }
}
}
Java DiscountCodeTypeValidOwnerCardTypesSearchRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /DiscountCodeTypeValidOwnerCardType/Search HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
discountCodeTypeId: 0,
ownerCardTypeId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
items:
[
{
id: 0,
discountCodeTypeId: 0,
ownerCardTypeId: 0,
isValid: False
}
],
statusCode: 0,
message: String
}