TicketUserServices

<back to all web services

GiftCardTypeGetRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:Tickets.Add
The following routes are available for this service:
GET/GiftCardType/{Id}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GiftCardTypeGetRequest
    {
        public Integer id = null;
        
        public Integer getId() { return id; }
        public GiftCardTypeGetRequest setId(Integer value) { this.id = value; return this; }
    }

    public static class GiftCardTypeResult
    {
        public GiftCardType item = null;
        public Integer statusCode = null;
        public String message = null;
        
        public GiftCardType getItem() { return item; }
        public GiftCardTypeResult setItem(GiftCardType value) { this.item = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public GiftCardTypeResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public GiftCardTypeResult 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 GiftCardTypeGetRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /GiftCardType/{Id} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"item":{"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"}