| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| POST | /GiftCardType/Search |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GiftCardTypesSearchRequest
{
public String scope = null;
public Integer ownerId = null;
public String getScope() { return scope; }
public GiftCardTypesSearchRequest setScope(String value) { this.scope = value; return this; }
public Integer getOwnerId() { return ownerId; }
public GiftCardTypesSearchRequest setOwnerId(Integer value) { this.ownerId = value; return this; }
}
public static class GiftCardTypesResult
{
public ArrayList<GiftCardType> items = null;
public Integer statusCode = null;
public String message = null;
public ArrayList<GiftCardType> getItems() { return items; }
public GiftCardTypesResult setItems(ArrayList<GiftCardType> value) { this.items = value; return this; }
public Integer getStatusCode() { return statusCode; }
public GiftCardTypesResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public GiftCardTypesResult setMessage(String value) { this.message = value; return this; }
}
public static class GiftCardType
{
public Integer id = null;
public String name = null;
public String scope = null;
public Integer ownerId = null;
public String currency = null;
public Integer defaultExpiryMonths = null;
public Boolean isActive = null;
public Date createdAt = null;
public Integer getId() { return id; }
public GiftCardType setId(Integer value) { this.id = value; return this; }
public String getName() { return name; }
public GiftCardType setName(String value) { this.name = value; return this; }
public String getScope() { return scope; }
public GiftCardType setScope(String value) { this.scope = value; return this; }
public Integer getOwnerId() { return ownerId; }
public GiftCardType setOwnerId(Integer value) { this.ownerId = value; return this; }
public String getCurrency() { return currency; }
public GiftCardType setCurrency(String value) { this.currency = value; return this; }
public Integer getDefaultExpiryMonths() { return defaultExpiryMonths; }
public GiftCardType setDefaultExpiryMonths(Integer value) { this.defaultExpiryMonths = value; return this; }
public Boolean getIsActive() { return isActive; }
public GiftCardType setIsActive(Boolean value) { this.isActive = value; return this; }
public Date getCreatedAt() { return createdAt; }
public GiftCardType setCreatedAt(Date value) { this.createdAt = value; return this; }
}
}
Java GiftCardTypesSearchRequest 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 /GiftCardType/Search HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"scope":"String","ownerId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"items":[{"id":0,"name":"String","scope":"String","ownerId":0,"currency":"String","defaultExpiryMonths":0,"isActive":false,"createdAt":"0001-01-01T00:00:00.0000000"}],"statusCode":0,"message":"String"}