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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CheckinTimelineResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Timeline>
    <Steps>
      <SvcTimelineStep>
        <AtUtc>0001-01-01T00:00:00</AtUtc>
        <EmployeeName>String</EmployeeName>
        <Kind>String</Kind>
        <LocalAt>0001-01-01T00:00:00</LocalAt>
        <StationName>String</StationName>
      </SvcTimelineStep>
    </Steps>
    <Visit>
      <CheckinId>00000000-0000-0000-0000-000000000000</CheckinId>
      <ContactAgentId>0</ContactAgentId>
      <ContactId>0</ContactId>
      <CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
      <CustomerName>String</CustomerName>
      <EmployeeId>00000000-0000-0000-0000-000000000000</EmployeeId>
      <EmployeeName>String</EmployeeName>
      <Fee>0</Fee>
      <IsAppointment>false</IsAppointment>
      <LineId>00000000-0000-0000-0000-000000000000</LineId>
      <LocalCalled>0001-01-01T00:00:00</LocalCalled>
      <LocalDate>0001-01-01T00:00:00</LocalDate>
      <LocalEnd>0001-01-01T00:00:00</LocalEnd>
      <LocalHere>0001-01-01T00:00:00</LocalHere>
      <LocalStart>0001-01-01T00:00:00</LocalStart>
      <Outcome>String</Outcome>
      <ServeSec>0</ServeSec>
      <ServiceName>String</ServiceName>
      <StationId>00000000-0000-0000-0000-000000000000</StationId>
      <StationName>String</StationName>
      <TicketLabel>String</TicketLabel>
      <WaitSec>0</WaitSec>
    </Visit>
    <WalkUpSec>0</WalkUpSec>
  </Timeline>
</CheckinTimelineResponse>