Trendsic Platform Service

<back to all web services

CheckinTimelineRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/customercheckins/{Id}/timeline
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class CheckinTimelineRequest
    {
        public UUID Id = null;
        
        public UUID getId() { return Id; }
        public CheckinTimelineRequest setId(UUID value) { this.Id = value; return this; }
    }

    public static class CheckinTimelineResponse
    {
        public ResponseStatus ResponseStatus = null;
        public SvcTimeline Timeline = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public CheckinTimelineResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public SvcTimeline getTimeline() { return Timeline; }
        public CheckinTimelineResponse setTimeline(SvcTimeline value) { this.Timeline = value; return this; }
    }

    public static class SvcTimeline
    {
        public SvcVisitRow Visit = null;
        public ArrayList<SvcTimelineStep> Steps = new ArrayList<SvcTimelineStep>();
        public Integer WalkUpSec = null;
        
        public SvcVisitRow getVisit() { return Visit; }
        public SvcTimeline setVisit(SvcVisitRow value) { this.Visit = value; return this; }
        public ArrayList<SvcTimelineStep> getSteps() { return Steps; }
        public SvcTimeline setSteps(ArrayList<SvcTimelineStep> value) { this.Steps = value; return this; }
        public Integer getWalkUpSec() { return WalkUpSec; }
        public SvcTimeline setWalkUpSec(Integer value) { this.WalkUpSec = value; return this; }
    }

    public static class SvcVisitRow
    {
        public UUID CheckinId = null;
        public String TicketLabel = null;
        public Date LocalDate = null;
        public UUID LineId = null;
        public String ServiceName = null;
        public UUID StationId = null;
        public String StationName = null;
        public UUID EmployeeId = null;
        public String EmployeeName = null;
        public String CustomerName = null;
        public Integer ContactId = null;
        public Integer ContactAgentId = null;
        public UUID CustomerId = null;
        public Boolean IsAppointment = null;
        public Date LocalHere = null;
        public Date LocalCalled = null;
        public Date LocalStart = null;
        public Date LocalEnd = null;
        public Integer WaitSec = null;
        public Integer ServeSec = null;
        public String Outcome = null;
        public BigDecimal Fee = null;
        
        public UUID getCheckinId() { return CheckinId; }
        public SvcVisitRow setCheckinId(UUID value) { this.CheckinId = value; return this; }
        public String getTicketLabel() { return TicketLabel; }
        public SvcVisitRow setTicketLabel(String value) { this.TicketLabel = value; return this; }
        public Date getLocalDate() { return LocalDate; }
        public SvcVisitRow setLocalDate(Date value) { this.LocalDate = value; return this; }
        public UUID getLineId() { return LineId; }
        public SvcVisitRow setLineId(UUID value) { this.LineId = value; return this; }
        public String getServiceName() { return ServiceName; }
        public SvcVisitRow setServiceName(String value) { this.ServiceName = value; return this; }
        public UUID getStationId() { return StationId; }
        public SvcVisitRow setStationId(UUID value) { this.StationId = value; return this; }
        public String getStationName() { return StationName; }
        public SvcVisitRow setStationName(String value) { this.StationName = value; return this; }
        public UUID getEmployeeId() { return EmployeeId; }
        public SvcVisitRow setEmployeeId(UUID value) { this.EmployeeId = value; return this; }
        public String getEmployeeName() { return EmployeeName; }
        public SvcVisitRow setEmployeeName(String value) { this.EmployeeName = value; return this; }
        public String getCustomerName() { return CustomerName; }
        public SvcVisitRow setCustomerName(String value) { this.CustomerName = value; return this; }
        public Integer getContactId() { return ContactId; }
        public SvcVisitRow setContactId(Integer value) { this.ContactId = value; return this; }
        public Integer getContactAgentId() { return ContactAgentId; }
        public SvcVisitRow setContactAgentId(Integer value) { this.ContactAgentId = value; return this; }
        public UUID getCustomerId() { return CustomerId; }
        public SvcVisitRow setCustomerId(UUID value) { this.CustomerId = value; return this; }
        public Boolean getIsAppointment() { return IsAppointment; }
        public SvcVisitRow setIsAppointment(Boolean value) { this.IsAppointment = value; return this; }
        public Date getLocalHere() { return LocalHere; }
        public SvcVisitRow setLocalHere(Date value) { this.LocalHere = value; return this; }
        public Date getLocalCalled() { return LocalCalled; }
        public SvcVisitRow setLocalCalled(Date value) { this.LocalCalled = value; return this; }
        public Date getLocalStart() { return LocalStart; }
        public SvcVisitRow setLocalStart(Date value) { this.LocalStart = value; return this; }
        public Date getLocalEnd() { return LocalEnd; }
        public SvcVisitRow setLocalEnd(Date value) { this.LocalEnd = value; return this; }
        public Integer getWaitSec() { return WaitSec; }
        public SvcVisitRow setWaitSec(Integer value) { this.WaitSec = value; return this; }
        public Integer getServeSec() { return ServeSec; }
        public SvcVisitRow setServeSec(Integer value) { this.ServeSec = value; return this; }
        public String getOutcome() { return Outcome; }
        public SvcVisitRow setOutcome(String value) { this.Outcome = value; return this; }
        public BigDecimal getFee() { return Fee; }
        public SvcVisitRow setFee(BigDecimal value) { this.Fee = value; return this; }
    }

    public static class SvcTimelineStep
    {
        public Date AtUtc = null;
        public Date LocalAt = null;
        public String Kind = null;
        public String StationName = null;
        public String EmployeeName = null;
        
        public Date getAtUtc() { return AtUtc; }
        public SvcTimelineStep setAtUtc(Date value) { this.AtUtc = value; return this; }
        public Date getLocalAt() { return LocalAt; }
        public SvcTimelineStep setLocalAt(Date value) { this.LocalAt = value; return this; }
        public String getKind() { return Kind; }
        public SvcTimelineStep setKind(String value) { this.Kind = value; return this; }
        public String getStationName() { return StationName; }
        public SvcTimelineStep setStationName(String value) { this.StationName = value; return this; }
        public String getEmployeeName() { return EmployeeName; }
        public SvcTimelineStep setEmployeeName(String value) { this.EmployeeName = value; return this; }
    }

}

Java CheckinTimelineRequest 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.

GET /v1/customercheckins/{Id}/timeline 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
		}
	},
	Timeline: 
	{
		Visit: 
		{
			CheckinId: 00000000000000000000000000000000,
			TicketLabel: String,
			LocalDate: 0001-01-01,
			LineId: 00000000000000000000000000000000,
			ServiceName: String,
			StationId: 00000000000000000000000000000000,
			StationName: String,
			EmployeeId: 00000000000000000000000000000000,
			EmployeeName: String,
			CustomerName: String,
			ContactId: 0,
			ContactAgentId: 0,
			CustomerId: 00000000000000000000000000000000,
			IsAppointment: False,
			LocalHere: 0001-01-01,
			LocalCalled: 0001-01-01,
			LocalStart: 0001-01-01,
			LocalEnd: 0001-01-01,
			WaitSec: 0,
			ServeSec: 0,
			Outcome: String,
			Fee: 0
		},
		Steps: 
		[
			{
				AtUtc: 0001-01-01,
				LocalAt: 0001-01-01,
				Kind: String,
				StationName: String,
				EmployeeName: String
			}
		],
		WalkUpSec: 0
	}
}