Trendsic Platform Service

<back to all web services

GiftCardRequest

Requires Authentication
Requires any of the roles:Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator
The following routes are available for this service:
GET,DELETE,OPTIONS/v1/GiftCard/{GiftCardId}
GET,POST,PUT,OPTIONS/v1/GiftCard
GET,OPTIONS/v1/GiftCard/ByGameSet/{GiftCardGameSetId}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class GiftCardRequest
    {
        public ArrayList<GiftCard> GiftCard = new ArrayList<GiftCard>();
        public Integer GiftCardId = null;
        public Integer GiftCardGameSetId = null;
        
        public ArrayList<GiftCard> getGiftCard() { return GiftCard; }
        public GiftCardRequest setGiftCard(ArrayList<GiftCard> value) { this.GiftCard = value; return this; }
        public Integer getGiftCardId() { return GiftCardId; }
        public GiftCardRequest setGiftCardId(Integer value) { this.GiftCardId = value; return this; }
        public Integer getGiftCardGameSetId() { return GiftCardGameSetId; }
        public GiftCardRequest setGiftCardGameSetId(Integer value) { this.GiftCardGameSetId = 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; }
    }

    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; }
    }

}

Java GiftCardRequest DTOs

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

HTTP + JSV

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

POST /v1/GiftCard HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	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
		}
	],
	GiftCardId: 0,
	GiftCardGameSetId: 0
}
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
		}
	]
}