| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/AvailableGiftCard/{AgentId} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class AvailableGiftCardRequest
{
public Integer AgentId = null;
public Integer getAgentId() { return AgentId; }
public AvailableGiftCardRequest setAgentId(Integer value) { this.AgentId = value; return this; }
}
public static class GiftCardResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<GiftCard> GiftCard = new ArrayList<GiftCard>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public GiftCardResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<GiftCard> getGiftCard() { return GiftCard; }
public GiftCardResponse setGiftCard(ArrayList<GiftCard> value) { this.GiftCard = value; return this; }
}
public static class GiftCard
{
public Integer GiftCardId = null;
public Integer AgentId = null;
public String CardType = null;
public String CardNumber = null;
public Integer ContactId = null;
public Date DateCreated = null;
public Date DateModified = null;
public Date DateDeleted = null;
public String GiftCardGameSetId = null;
public Date FirstApptDate = null;
public Boolean IsReferrerCard = null;
public String AgentName = null;
public String ContactName = null;
public Integer getGiftCardId() { return GiftCardId; }
public GiftCard setGiftCardId(Integer value) { this.GiftCardId = value; return this; }
public Integer getAgentId() { return AgentId; }
public GiftCard setAgentId(Integer value) { this.AgentId = value; return this; }
public String getCardType() { return CardType; }
public GiftCard setCardType(String value) { this.CardType = value; return this; }
public String getCardNumber() { return CardNumber; }
public GiftCard setCardNumber(String value) { this.CardNumber = value; return this; }
public Integer getContactId() { return ContactId; }
public GiftCard setContactId(Integer value) { this.ContactId = value; return this; }
public Date getDateCreated() { return DateCreated; }
public GiftCard setDateCreated(Date value) { this.DateCreated = value; return this; }
public Date getDateModified() { return DateModified; }
public GiftCard setDateModified(Date value) { this.DateModified = value; return this; }
public Date getDateDeleted() { return DateDeleted; }
public GiftCard setDateDeleted(Date value) { this.DateDeleted = value; return this; }
public String getGiftCardGameSetId() { return GiftCardGameSetId; }
public GiftCard setGiftCardGameSetId(String value) { this.GiftCardGameSetId = value; return this; }
public Date getFirstApptDate() { return FirstApptDate; }
public GiftCard setFirstApptDate(Date value) { this.FirstApptDate = value; return this; }
public Boolean getIsReferrerCard() { return IsReferrerCard; }
public GiftCard setIsReferrerCard(Boolean value) { this.IsReferrerCard = value; return this; }
public String getAgentName() { return AgentName; }
public GiftCard setAgentName(String value) { this.AgentName = value; return this; }
public String getContactName() { return ContactName; }
public GiftCard setContactName(String value) { this.ContactName = value; return this; }
}
}
Java AvailableGiftCardRequest 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.
GET /v1/AvailableGiftCard/{AgentId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
GiftCard:
[
{
GiftCardId: 0,
AgentId: 0,
CardType: String,
CardNumber: String,
ContactId: 0,
DateCreated: 0001-01-01,
DateModified: 0001-01-01,
DateDeleted: 0001-01-01,
GiftCardGameSetId: String,
FirstApptDate: 0001-01-01,
IsReferrerCard: False,
AgentName: String,
ContactName: String
}
]
}