Trendsic Platform Service

<back to all web services

KpiV2VisitsRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/dashboard/kpiv2/visits
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class KpiV2VisitsRequest
    {
        public UUID BranchId = null;
        public Date FromDate = null;
        public Date ToDate = null;
        public UUID StationId = null;
        public UUID EmployeeId = null;
        public String Outcome = null;
        public UUID LineId = null;
        public Integer Page = null;
        public Integer PageSize = null;
        
        public UUID getBranchId() { return BranchId; }
        public KpiV2VisitsRequest setBranchId(UUID value) { this.BranchId = value; return this; }
        public Date getFromDate() { return FromDate; }
        public KpiV2VisitsRequest setFromDate(Date value) { this.FromDate = value; return this; }
        public Date getToDate() { return ToDate; }
        public KpiV2VisitsRequest setToDate(Date value) { this.ToDate = value; return this; }
        public UUID getStationId() { return StationId; }
        public KpiV2VisitsRequest setStationId(UUID value) { this.StationId = value; return this; }
        public UUID getEmployeeId() { return EmployeeId; }
        public KpiV2VisitsRequest setEmployeeId(UUID value) { this.EmployeeId = value; return this; }
        public String getOutcome() { return Outcome; }
        public KpiV2VisitsRequest setOutcome(String value) { this.Outcome = value; return this; }
        public UUID getLineId() { return LineId; }
        public KpiV2VisitsRequest setLineId(UUID value) { this.LineId = value; return this; }
        public Integer getPage() { return Page; }
        public KpiV2VisitsRequest setPage(Integer value) { this.Page = value; return this; }
        public Integer getPageSize() { return PageSize; }
        public KpiV2VisitsRequest setPageSize(Integer value) { this.PageSize = value; return this; }
    }

    public static class KpiV2VisitsResponse
    {
        public ResponseStatus ResponseStatus = null;
        public SvcVisitPage Visits = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public KpiV2VisitsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public SvcVisitPage getVisits() { return Visits; }
        public KpiV2VisitsResponse setVisits(SvcVisitPage value) { this.Visits = value; return this; }
    }

    public static class SvcVisitPage
    {
        public ArrayList<SvcVisitRow> Rows = new ArrayList<SvcVisitRow>();
        public Integer TotalRows = null;
        public Integer Page = null;
        public Integer PageSize = null;
        public HashMap<String,Integer> OutcomeCounts = new HashMap<String,Integer>();
        public ArrayList<SvcChip> Services = new ArrayList<SvcChip>();
        public Boolean CanSeeStaff = null;
        public Boolean CanSeeFinancial = null;
        
        public ArrayList<SvcVisitRow> getRows() { return Rows; }
        public SvcVisitPage setRows(ArrayList<SvcVisitRow> value) { this.Rows = value; return this; }
        public Integer getTotalRows() { return TotalRows; }
        public SvcVisitPage setTotalRows(Integer value) { this.TotalRows = value; return this; }
        public Integer getPage() { return Page; }
        public SvcVisitPage setPage(Integer value) { this.Page = value; return this; }
        public Integer getPageSize() { return PageSize; }
        public SvcVisitPage setPageSize(Integer value) { this.PageSize = value; return this; }
        public HashMap<String,Integer> getOutcomeCounts() { return OutcomeCounts; }
        public SvcVisitPage setOutcomeCounts(HashMap<String,Integer> value) { this.OutcomeCounts = value; return this; }
        public ArrayList<SvcChip> getServices() { return Services; }
        public SvcVisitPage setServices(ArrayList<SvcChip> value) { this.Services = value; return this; }
        public Boolean isCanSeeStaff() { return CanSeeStaff; }
        public SvcVisitPage setCanSeeStaff(Boolean value) { this.CanSeeStaff = value; return this; }
        public Boolean isCanSeeFinancial() { return CanSeeFinancial; }
        public SvcVisitPage setCanSeeFinancial(Boolean value) { this.CanSeeFinancial = 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 SvcChip
    {
        public UUID LineId = null;
        public String Name = null;
        public Integer N = null;
        
        public UUID getLineId() { return LineId; }
        public SvcChip setLineId(UUID value) { this.LineId = value; return this; }
        public String getName() { return Name; }
        public SvcChip setName(String value) { this.Name = value; return this; }
        public Integer getN() { return N; }
        public SvcChip setN(Integer value) { this.N = value; return this; }
    }

}

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

POST /v1/dashboard/kpiv2/visits HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<KpiV2VisitsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <BranchId>00000000-0000-0000-0000-000000000000</BranchId>
  <EmployeeId>00000000-0000-0000-0000-000000000000</EmployeeId>
  <FromDate>0001-01-01T00:00:00</FromDate>
  <LineId>00000000-0000-0000-0000-000000000000</LineId>
  <Outcome>String</Outcome>
  <Page>0</Page>
  <PageSize>0</PageSize>
  <StationId>00000000-0000-0000-0000-000000000000</StationId>
  <ToDate>0001-01-01T00:00:00</ToDate>
</KpiV2VisitsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<KpiV2VisitsResponse 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>
  <Visits>
    <CanSeeFinancial>false</CanSeeFinancial>
    <CanSeeStaff>false</CanSeeStaff>
    <OutcomeCounts xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringint>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>0</d3p1:Value>
      </d3p1:KeyValueOfstringint>
    </OutcomeCounts>
    <Page>0</Page>
    <PageSize>0</PageSize>
    <Rows>
      <SvcVisitRow>
        <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>
      </SvcVisitRow>
    </Rows>
    <Services>
      <SvcChip>
        <LineId>00000000-0000-0000-0000-000000000000</LineId>
        <N>0</N>
        <Name>String</Name>
      </SvcChip>
    </Services>
    <TotalRows>0</TotalRows>
  </Visits>
</KpiV2VisitsResponse>