Trendsic Platform Service

<back to all web services

KpiV2BranchRequest

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

public class dtos
{

    public static class KpiV2BranchRequest
    {
        public UUID BranchId = null;
        public Date FromDate = null;
        public Date ToDate = null;
        public String Compare = null;
        
        public UUID getBranchId() { return BranchId; }
        public KpiV2BranchRequest setBranchId(UUID value) { this.BranchId = value; return this; }
        public Date getFromDate() { return FromDate; }
        public KpiV2BranchRequest setFromDate(Date value) { this.FromDate = value; return this; }
        public Date getToDate() { return ToDate; }
        public KpiV2BranchRequest setToDate(Date value) { this.ToDate = value; return this; }
        public String getCompare() { return Compare; }
        public KpiV2BranchRequest setCompare(String value) { this.Compare = value; return this; }
    }

    public static class KpiV2BranchResponse
    {
        public ResponseStatus ResponseStatus = null;
        public SvcBranchDetail Branch = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public KpiV2BranchResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public SvcBranchDetail getBranch() { return Branch; }
        public KpiV2BranchResponse setBranch(SvcBranchDetail value) { this.Branch = value; return this; }
    }

    public static class SvcBranchDetail
    {
        public SvcBranchRow Branch = null;
        public ArrayList<SvcWindowRow> Windows = new ArrayList<SvcWindowRow>();
        public ArrayList<SvcClerkRow> Clerks = new ArrayList<SvcClerkRow>();
        public SvcMetrics Unassigned = null;
        public SvcMetrics NoClerk = null;
        public SvcAverage PerWindowAverage = null;
        public SvcAverage PerClerkAverage = null;
        public Integer OpenDays = null;
        public Boolean IsLive = null;
        public SvcComparison Comparison = null;
        public SvcCoverage Coverage = null;
        public ArrayList<SvcServiceRow> Services = new ArrayList<SvcServiceRow>();
        public ArrayList<SvcHourRow> ByHour = new ArrayList<SvcHourRow>();
        public ArrayList<SvcAlert> Alerts = new ArrayList<SvcAlert>();
        public Boolean TotalsAgree = null;
        public Boolean CanSeeStaff = null;
        public Boolean CanSeeFinancial = null;
        public Boolean CanSeePay = null;
        
        public SvcBranchRow getBranch() { return Branch; }
        public SvcBranchDetail setBranch(SvcBranchRow value) { this.Branch = value; return this; }
        public ArrayList<SvcWindowRow> getWindows() { return Windows; }
        public SvcBranchDetail setWindows(ArrayList<SvcWindowRow> value) { this.Windows = value; return this; }
        public ArrayList<SvcClerkRow> getClerks() { return Clerks; }
        public SvcBranchDetail setClerks(ArrayList<SvcClerkRow> value) { this.Clerks = value; return this; }
        public SvcMetrics getUnassigned() { return Unassigned; }
        public SvcBranchDetail setUnassigned(SvcMetrics value) { this.Unassigned = value; return this; }
        public SvcMetrics getNoClerk() { return NoClerk; }
        public SvcBranchDetail setNoClerk(SvcMetrics value) { this.NoClerk = value; return this; }
        public SvcAverage getPerWindowAverage() { return PerWindowAverage; }
        public SvcBranchDetail setPerWindowAverage(SvcAverage value) { this.PerWindowAverage = value; return this; }
        public SvcAverage getPerClerkAverage() { return PerClerkAverage; }
        public SvcBranchDetail setPerClerkAverage(SvcAverage value) { this.PerClerkAverage = value; return this; }
        public Integer getOpenDays() { return OpenDays; }
        public SvcBranchDetail setOpenDays(Integer value) { this.OpenDays = value; return this; }
        public Boolean getIsLive() { return IsLive; }
        public SvcBranchDetail setIsLive(Boolean value) { this.IsLive = value; return this; }
        public SvcComparison getComparison() { return Comparison; }
        public SvcBranchDetail setComparison(SvcComparison value) { this.Comparison = value; return this; }
        public SvcCoverage getCoverage() { return Coverage; }
        public SvcBranchDetail setCoverage(SvcCoverage value) { this.Coverage = value; return this; }
        public ArrayList<SvcServiceRow> getServices() { return Services; }
        public SvcBranchDetail setServices(ArrayList<SvcServiceRow> value) { this.Services = value; return this; }
        public ArrayList<SvcHourRow> getByHour() { return ByHour; }
        public SvcBranchDetail setByHour(ArrayList<SvcHourRow> value) { this.ByHour = value; return this; }
        public ArrayList<SvcAlert> getAlerts() { return Alerts; }
        public SvcBranchDetail setAlerts(ArrayList<SvcAlert> value) { this.Alerts = value; return this; }
        public Boolean isTotalsAgree() { return TotalsAgree; }
        public SvcBranchDetail setTotalsAgree(Boolean value) { this.TotalsAgree = value; return this; }
        public Boolean isCanSeeStaff() { return CanSeeStaff; }
        public SvcBranchDetail setCanSeeStaff(Boolean value) { this.CanSeeStaff = value; return this; }
        public Boolean isCanSeeFinancial() { return CanSeeFinancial; }
        public SvcBranchDetail setCanSeeFinancial(Boolean value) { this.CanSeeFinancial = value; return this; }
        public Boolean isCanSeePay() { return CanSeePay; }
        public SvcBranchDetail setCanSeePay(Boolean value) { this.CanSeePay = value; return this; }
    }

    public static class SvcBranchRow
    {
        public UUID BranchId = null;
        public String Name = null;
        public String StateCode = null;
        public String ZoneCode = null;
        public String TimeZone = null;
        public Integer Windows = null;
        public Date RecordingSinceUtc = null;
        public Date SessionsSinceUtc = null;
        public SvcMetrics Metrics = null;
        
        public UUID getBranchId() { return BranchId; }
        public SvcBranchRow setBranchId(UUID value) { this.BranchId = value; return this; }
        public String getName() { return Name; }
        public SvcBranchRow setName(String value) { this.Name = value; return this; }
        public String getStateCode() { return StateCode; }
        public SvcBranchRow setStateCode(String value) { this.StateCode = value; return this; }
        public String getZoneCode() { return ZoneCode; }
        public SvcBranchRow setZoneCode(String value) { this.ZoneCode = value; return this; }
        public String getTimeZone() { return TimeZone; }
        public SvcBranchRow setTimeZone(String value) { this.TimeZone = value; return this; }
        public Integer getWindows() { return Windows; }
        public SvcBranchRow setWindows(Integer value) { this.Windows = value; return this; }
        public Date getRecordingSinceUtc() { return RecordingSinceUtc; }
        public SvcBranchRow setRecordingSinceUtc(Date value) { this.RecordingSinceUtc = value; return this; }
        public Date getSessionsSinceUtc() { return SessionsSinceUtc; }
        public SvcBranchRow setSessionsSinceUtc(Date value) { this.SessionsSinceUtc = value; return this; }
        public SvcMetrics getMetrics() { return Metrics; }
        public SvcBranchRow setMetrics(SvcMetrics value) { this.Metrics = value; return this; }
    }

    public static class SvcMetrics
    {
        public Integer Checkins = null;
        public Integer Walkins = null;
        public Integer Appts = null;
        public Integer Served = null;
        public Integer NoShows = null;
        public Integer ApptNoShows = null;
        public Integer CancelledAtWindow = null;
        public Integer Abandoned = null;
        public Integer Called = null;
        public Integer CalledUp = null;
        public Double AbandonRate = null;
        public Double NoShowRate = null;
        public Double AvgServiceSec = null;
        public Double MedianServiceSec = null;
        public Double AvgWaitSec = null;
        public Integer MaxWaitSec = null;
        public Double AvgWalkUpSec = null;
        public Double ExpectedServiceSec = null;
        public Long SignedSec = null;
        public Long ServingSec = null;
        public Long PausedSec = null;
        public Long IdleSec = null;
        public Long UnstaffedSec = null;
        public Double Utilization = null;
        public Double IdleShare = null;
        public Double PausedShare = null;
        public Integer Sessions = null;
        public Integer OpenDays = null;
        public BigDecimal FeesEarned = null;
        public BigDecimal AvgFee = null;
        public BigDecimal FeesPerStaffedHour = null;
        public BigDecimal ExpectedFeesPerStaffedHour = null;
        public BigDecimal LaborCost = null;
        public Boolean LaborPartial = null;
        public ArrayList<UUID> MissingCostEmployeeIds = new ArrayList<UUID>();
        public ArrayList<SvcNamedTime> MissingCost = new ArrayList<SvcNamedTime>();
        public Boolean LaborLocked = null;
        public BigDecimal Contribution = null;
        public BigDecimal LostFees = null;
        public BigDecimal LostNoShowFees = null;
        public HashMap<UUID,Integer> Mix = new HashMap<UUID,Integer>();
        public ArrayList<Integer> HourlyServed = new ArrayList<Integer>();
        public ArrayList<BigDecimal> HourlyFees = new ArrayList<BigDecimal>();
        public ArrayList<BigDecimal> HourlyCost = new ArrayList<BigDecimal>();
        public ArrayList<SvcTint> Tints = new ArrayList<SvcTint>();
        
        public Integer getCheckins() { return Checkins; }
        public SvcMetrics setCheckins(Integer value) { this.Checkins = value; return this; }
        public Integer getWalkins() { return Walkins; }
        public SvcMetrics setWalkins(Integer value) { this.Walkins = value; return this; }
        public Integer getAppts() { return Appts; }
        public SvcMetrics setAppts(Integer value) { this.Appts = value; return this; }
        public Integer getServed() { return Served; }
        public SvcMetrics setServed(Integer value) { this.Served = value; return this; }
        public Integer getNoShows() { return NoShows; }
        public SvcMetrics setNoShows(Integer value) { this.NoShows = value; return this; }
        public Integer getApptNoShows() { return ApptNoShows; }
        public SvcMetrics setApptNoShows(Integer value) { this.ApptNoShows = value; return this; }
        public Integer getCancelledAtWindow() { return CancelledAtWindow; }
        public SvcMetrics setCancelledAtWindow(Integer value) { this.CancelledAtWindow = value; return this; }
        public Integer getAbandoned() { return Abandoned; }
        public SvcMetrics setAbandoned(Integer value) { this.Abandoned = value; return this; }
        public Integer getCalled() { return Called; }
        public SvcMetrics setCalled(Integer value) { this.Called = value; return this; }
        public Integer getCalledUp() { return CalledUp; }
        public SvcMetrics setCalledUp(Integer value) { this.CalledUp = value; return this; }
        public Double getAbandonRate() { return AbandonRate; }
        public SvcMetrics setAbandonRate(Double value) { this.AbandonRate = value; return this; }
        public Double getNoShowRate() { return NoShowRate; }
        public SvcMetrics setNoShowRate(Double value) { this.NoShowRate = value; return this; }
        public Double getAvgServiceSec() { return AvgServiceSec; }
        public SvcMetrics setAvgServiceSec(Double value) { this.AvgServiceSec = value; return this; }
        public Double getMedianServiceSec() { return MedianServiceSec; }
        public SvcMetrics setMedianServiceSec(Double value) { this.MedianServiceSec = value; return this; }
        public Double getAvgWaitSec() { return AvgWaitSec; }
        public SvcMetrics setAvgWaitSec(Double value) { this.AvgWaitSec = value; return this; }
        public Integer getMaxWaitSec() { return MaxWaitSec; }
        public SvcMetrics setMaxWaitSec(Integer value) { this.MaxWaitSec = value; return this; }
        public Double getAvgWalkUpSec() { return AvgWalkUpSec; }
        public SvcMetrics setAvgWalkUpSec(Double value) { this.AvgWalkUpSec = value; return this; }
        public Double getExpectedServiceSec() { return ExpectedServiceSec; }
        public SvcMetrics setExpectedServiceSec(Double value) { this.ExpectedServiceSec = value; return this; }
        public Long getSignedSec() { return SignedSec; }
        public SvcMetrics setSignedSec(Long value) { this.SignedSec = value; return this; }
        public Long getServingSec() { return ServingSec; }
        public SvcMetrics setServingSec(Long value) { this.ServingSec = value; return this; }
        public Long getPausedSec() { return PausedSec; }
        public SvcMetrics setPausedSec(Long value) { this.PausedSec = value; return this; }
        public Long getIdleSec() { return IdleSec; }
        public SvcMetrics setIdleSec(Long value) { this.IdleSec = value; return this; }
        public Long getUnstaffedSec() { return UnstaffedSec; }
        public SvcMetrics setUnstaffedSec(Long value) { this.UnstaffedSec = value; return this; }
        public Double getUtilization() { return Utilization; }
        public SvcMetrics setUtilization(Double value) { this.Utilization = value; return this; }
        public Double getIdleShare() { return IdleShare; }
        public SvcMetrics setIdleShare(Double value) { this.IdleShare = value; return this; }
        public Double getPausedShare() { return PausedShare; }
        public SvcMetrics setPausedShare(Double value) { this.PausedShare = value; return this; }
        public Integer getSessions() { return Sessions; }
        public SvcMetrics setSessions(Integer value) { this.Sessions = value; return this; }
        public Integer getOpenDays() { return OpenDays; }
        public SvcMetrics setOpenDays(Integer value) { this.OpenDays = value; return this; }
        public BigDecimal getFeesEarned() { return FeesEarned; }
        public SvcMetrics setFeesEarned(BigDecimal value) { this.FeesEarned = value; return this; }
        public BigDecimal getAvgFee() { return AvgFee; }
        public SvcMetrics setAvgFee(BigDecimal value) { this.AvgFee = value; return this; }
        public BigDecimal getFeesPerStaffedHour() { return FeesPerStaffedHour; }
        public SvcMetrics setFeesPerStaffedHour(BigDecimal value) { this.FeesPerStaffedHour = value; return this; }
        public BigDecimal getExpectedFeesPerStaffedHour() { return ExpectedFeesPerStaffedHour; }
        public SvcMetrics setExpectedFeesPerStaffedHour(BigDecimal value) { this.ExpectedFeesPerStaffedHour = value; return this; }
        public BigDecimal getLaborCost() { return LaborCost; }
        public SvcMetrics setLaborCost(BigDecimal value) { this.LaborCost = value; return this; }
        public Boolean isLaborPartial() { return LaborPartial; }
        public SvcMetrics setLaborPartial(Boolean value) { this.LaborPartial = value; return this; }
        public ArrayList<UUID> getMissingCostEmployeeIds() { return MissingCostEmployeeIds; }
        public SvcMetrics setMissingCostEmployeeIds(ArrayList<UUID> value) { this.MissingCostEmployeeIds = value; return this; }
        public ArrayList<SvcNamedTime> getMissingCost() { return MissingCost; }
        public SvcMetrics setMissingCost(ArrayList<SvcNamedTime> value) { this.MissingCost = value; return this; }
        public Boolean isLaborLocked() { return LaborLocked; }
        public SvcMetrics setLaborLocked(Boolean value) { this.LaborLocked = value; return this; }
        public BigDecimal getContribution() { return Contribution; }
        public SvcMetrics setContribution(BigDecimal value) { this.Contribution = value; return this; }
        public BigDecimal getLostFees() { return LostFees; }
        public SvcMetrics setLostFees(BigDecimal value) { this.LostFees = value; return this; }
        public BigDecimal getLostNoShowFees() { return LostNoShowFees; }
        public SvcMetrics setLostNoShowFees(BigDecimal value) { this.LostNoShowFees = value; return this; }
        public HashMap<UUID,Integer> getMix() { return Mix; }
        public SvcMetrics setMix(HashMap<UUID,Integer> value) { this.Mix = value; return this; }
        public ArrayList<Integer> getHourlyServed() { return HourlyServed; }
        public SvcMetrics setHourlyServed(ArrayList<Integer> value) { this.HourlyServed = value; return this; }
        public ArrayList<BigDecimal> getHourlyFees() { return HourlyFees; }
        public SvcMetrics setHourlyFees(ArrayList<BigDecimal> value) { this.HourlyFees = value; return this; }
        public ArrayList<BigDecimal> getHourlyCost() { return HourlyCost; }
        public SvcMetrics setHourlyCost(ArrayList<BigDecimal> value) { this.HourlyCost = value; return this; }
        public ArrayList<SvcTint> getTints() { return Tints; }
        public SvcMetrics setTints(ArrayList<SvcTint> value) { this.Tints = value; return this; }
    }

    public static class SvcNamedTime
    {
        public UUID Id = null;
        public String Name = null;
        public Long SignedSec = null;
        public Integer Served = null;
        
        public UUID getId() { return Id; }
        public SvcNamedTime setId(UUID value) { this.Id = value; return this; }
        public String getName() { return Name; }
        public SvcNamedTime setName(String value) { this.Name = value; return this; }
        public Long getSignedSec() { return SignedSec; }
        public SvcNamedTime setSignedSec(Long value) { this.SignedSec = value; return this; }
        public Integer getServed() { return Served; }
        public SvcNamedTime setServed(Integer value) { this.Served = value; return this; }
    }

    public static class SvcTint
    {
        public String Field = null;
        public String Tone = null;
        public String Reason = null;
        public Double Value = null;
        public Double Reference = null;
        public Double BranchValue = null;
        
        public String getField() { return Field; }
        public SvcTint setField(String value) { this.Field = value; return this; }
        public String getTone() { return Tone; }
        public SvcTint setTone(String value) { this.Tone = value; return this; }
        public String getReason() { return Reason; }
        public SvcTint setReason(String value) { this.Reason = value; return this; }
        public Double getValue() { return Value; }
        public SvcTint setValue(Double value) { this.Value = value; return this; }
        public Double getReference() { return Reference; }
        public SvcTint setReference(Double value) { this.Reference = value; return this; }
        public Double getBranchValue() { return BranchValue; }
        public SvcTint setBranchValue(Double value) { this.BranchValue = value; return this; }
    }

    public static class SvcWindowRow
    {
        public UUID StationId = null;
        public String Name = null;
        public ArrayList<SvcNamedTime> Clerks = new ArrayList<SvcNamedTime>();
        public Boolean NeverStaffed = null;
        public Date LastStaffedUtc = null;
        public String LastStaffedBy = null;
        public SvcMetrics Metrics = null;
        
        public UUID getStationId() { return StationId; }
        public SvcWindowRow setStationId(UUID value) { this.StationId = value; return this; }
        public String getName() { return Name; }
        public SvcWindowRow setName(String value) { this.Name = value; return this; }
        public ArrayList<SvcNamedTime> getClerks() { return Clerks; }
        public SvcWindowRow setClerks(ArrayList<SvcNamedTime> value) { this.Clerks = value; return this; }
        public Boolean isNeverStaffed() { return NeverStaffed; }
        public SvcWindowRow setNeverStaffed(Boolean value) { this.NeverStaffed = value; return this; }
        public Date getLastStaffedUtc() { return LastStaffedUtc; }
        public SvcWindowRow setLastStaffedUtc(Date value) { this.LastStaffedUtc = value; return this; }
        public String getLastStaffedBy() { return LastStaffedBy; }
        public SvcWindowRow setLastStaffedBy(String value) { this.LastStaffedBy = value; return this; }
        public SvcMetrics getMetrics() { return Metrics; }
        public SvcWindowRow setMetrics(SvcMetrics value) { this.Metrics = value; return this; }
    }

    public static class SvcClerkRow
    {
        public UUID EmployeeId = null;
        public String Name = null;
        public ArrayList<SvcNamedTime> Windows = new ArrayList<SvcNamedTime>();
        public BigDecimal LoadedRate = null;
        public Boolean RateSet = null;
        public Boolean RateLocked = null;
        public SvcMetrics Metrics = null;
        
        public UUID getEmployeeId() { return EmployeeId; }
        public SvcClerkRow setEmployeeId(UUID value) { this.EmployeeId = value; return this; }
        public String getName() { return Name; }
        public SvcClerkRow setName(String value) { this.Name = value; return this; }
        public ArrayList<SvcNamedTime> getWindows() { return Windows; }
        public SvcClerkRow setWindows(ArrayList<SvcNamedTime> value) { this.Windows = value; return this; }
        public BigDecimal getLoadedRate() { return LoadedRate; }
        public SvcClerkRow setLoadedRate(BigDecimal value) { this.LoadedRate = value; return this; }
        public Boolean isRateSet() { return RateSet; }
        public SvcClerkRow setRateSet(Boolean value) { this.RateSet = value; return this; }
        public Boolean isRateLocked() { return RateLocked; }
        public SvcClerkRow setRateLocked(Boolean value) { this.RateLocked = value; return this; }
        public SvcMetrics getMetrics() { return Metrics; }
        public SvcClerkRow setMetrics(SvcMetrics value) { this.Metrics = value; return this; }
    }

    public static class SvcAverage
    {
        public Integer Count = null;
        public Double Served = null;
        public Double AvgServiceSec = null;
        public Double MedianServiceSec = null;
        public Double AvgWaitSec = null;
        public Double Utilization = null;
        public Double IdleSec = null;
        public Double PausedSec = null;
        public Double NoShows = null;
        public Double SignedSec = null;
        public BigDecimal FeesEarned = null;
        public BigDecimal FeesPerStaffedHour = null;
        public BigDecimal LaborCost = null;
        public BigDecimal Contribution = null;
        public BigDecimal LostNoShowFees = null;
        
        public Integer getCount() { return Count; }
        public SvcAverage setCount(Integer value) { this.Count = value; return this; }
        public Double getServed() { return Served; }
        public SvcAverage setServed(Double value) { this.Served = value; return this; }
        public Double getAvgServiceSec() { return AvgServiceSec; }
        public SvcAverage setAvgServiceSec(Double value) { this.AvgServiceSec = value; return this; }
        public Double getMedianServiceSec() { return MedianServiceSec; }
        public SvcAverage setMedianServiceSec(Double value) { this.MedianServiceSec = value; return this; }
        public Double getAvgWaitSec() { return AvgWaitSec; }
        public SvcAverage setAvgWaitSec(Double value) { this.AvgWaitSec = value; return this; }
        public Double getUtilization() { return Utilization; }
        public SvcAverage setUtilization(Double value) { this.Utilization = value; return this; }
        public Double getIdleSec() { return IdleSec; }
        public SvcAverage setIdleSec(Double value) { this.IdleSec = value; return this; }
        public Double getPausedSec() { return PausedSec; }
        public SvcAverage setPausedSec(Double value) { this.PausedSec = value; return this; }
        public Double getNoShows() { return NoShows; }
        public SvcAverage setNoShows(Double value) { this.NoShows = value; return this; }
        public Double getSignedSec() { return SignedSec; }
        public SvcAverage setSignedSec(Double value) { this.SignedSec = value; return this; }
        public BigDecimal getFeesEarned() { return FeesEarned; }
        public SvcAverage setFeesEarned(BigDecimal value) { this.FeesEarned = value; return this; }
        public BigDecimal getFeesPerStaffedHour() { return FeesPerStaffedHour; }
        public SvcAverage setFeesPerStaffedHour(BigDecimal value) { this.FeesPerStaffedHour = value; return this; }
        public BigDecimal getLaborCost() { return LaborCost; }
        public SvcAverage setLaborCost(BigDecimal value) { this.LaborCost = value; return this; }
        public BigDecimal getContribution() { return Contribution; }
        public SvcAverage setContribution(BigDecimal value) { this.Contribution = value; return this; }
        public BigDecimal getLostNoShowFees() { return LostNoShowFees; }
        public SvcAverage setLostNoShowFees(BigDecimal value) { this.LostNoShowFees = value; return this; }
    }

    public static class SvcComparison
    {
        public String Mode = null;
        public Date FromDate = null;
        public Date ToDate = null;
        public Integer CutoffMinute = null;
        public Boolean HasData = null;
        public SvcMetrics Metrics = null;
        
        public String getMode() { return Mode; }
        public SvcComparison setMode(String value) { this.Mode = value; return this; }
        public Date getFromDate() { return FromDate; }
        public SvcComparison setFromDate(Date value) { this.FromDate = value; return this; }
        public Date getToDate() { return ToDate; }
        public SvcComparison setToDate(Date value) { this.ToDate = value; return this; }
        public Integer getCutoffMinute() { return CutoffMinute; }
        public SvcComparison setCutoffMinute(Integer value) { this.CutoffMinute = value; return this; }
        public Boolean isHasData() { return HasData; }
        public SvcComparison setHasData(Boolean value) { this.HasData = value; return this; }
        public SvcMetrics getMetrics() { return Metrics; }
        public SvcComparison setMetrics(SvcMetrics value) { this.Metrics = value; return this; }
    }

    public static class SvcCoverage
    {
        public Integer StartLocalMinute = null;
        public Integer BucketMinutes = null;
        public ArrayList<SvcCoverageRow> Rows = new ArrayList<SvcCoverageRow>();
        public ArrayList<Double> InLine = new ArrayList<Double>();
        public ArrayList<ArrayList<Integer>> GapBands = new ArrayList<ArrayList<Integer>>();
        public Integer Days = null;
        public Boolean NotRecorded = null;
        public Integer FutureFromIndex = null;
        
        public Integer getStartLocalMinute() { return StartLocalMinute; }
        public SvcCoverage setStartLocalMinute(Integer value) { this.StartLocalMinute = value; return this; }
        public Integer getBucketMinutes() { return BucketMinutes; }
        public SvcCoverage setBucketMinutes(Integer value) { this.BucketMinutes = value; return this; }
        public ArrayList<SvcCoverageRow> getRows() { return Rows; }
        public SvcCoverage setRows(ArrayList<SvcCoverageRow> value) { this.Rows = value; return this; }
        public ArrayList<Double> getInLine() { return InLine; }
        public SvcCoverage setInLine(ArrayList<Double> value) { this.InLine = value; return this; }
        public ArrayList<ArrayList<Integer>> getGapBands() { return GapBands; }
        public SvcCoverage setGapBands(ArrayList<ArrayList<Integer>> value) { this.GapBands = value; return this; }
        public Integer getDays() { return Days; }
        public SvcCoverage setDays(Integer value) { this.Days = value; return this; }
        public Boolean isNotRecorded() { return NotRecorded; }
        public SvcCoverage setNotRecorded(Boolean value) { this.NotRecorded = value; return this; }
        public Integer getFutureFromIndex() { return FutureFromIndex; }
        public SvcCoverage setFutureFromIndex(Integer value) { this.FutureFromIndex = value; return this; }
    }

    public static class SvcCoverageRow
    {
        public UUID StationId = null;
        public String Name = null;
        public ArrayList<SvcCoverageBucket> Buckets = new ArrayList<SvcCoverageBucket>();
        
        public UUID getStationId() { return StationId; }
        public SvcCoverageRow setStationId(UUID value) { this.StationId = value; return this; }
        public String getName() { return Name; }
        public SvcCoverageRow setName(String value) { this.Name = value; return this; }
        public ArrayList<SvcCoverageBucket> getBuckets() { return Buckets; }
        public SvcCoverageRow setBuckets(ArrayList<SvcCoverageBucket> value) { this.Buckets = value; return this; }
    }

    public static class SvcCoverageBucket
    {
        public Double ServingPct = null;
        public Double IdlePct = null;
        public Double PausedPct = null;
        public Double UnstaffedPct = null;
        
        public Double getServingPct() { return ServingPct; }
        public SvcCoverageBucket setServingPct(Double value) { this.ServingPct = value; return this; }
        public Double getIdlePct() { return IdlePct; }
        public SvcCoverageBucket setIdlePct(Double value) { this.IdlePct = value; return this; }
        public Double getPausedPct() { return PausedPct; }
        public SvcCoverageBucket setPausedPct(Double value) { this.PausedPct = value; return this; }
        public Double getUnstaffedPct() { return UnstaffedPct; }
        public SvcCoverageBucket setUnstaffedPct(Double value) { this.UnstaffedPct = value; return this; }
    }

    public static class SvcServiceRow
    {
        public UUID LineId = null;
        public String Name = null;
        public Integer Completed = null;
        public Double AvgServiceSec = null;
        public Double BranchAvgServiceSec = null;
        public BigDecimal FeesEarned = null;
        public BigDecimal FeeCurrent = null;
        public BigDecimal FeeMin = null;
        public BigDecimal FeeMax = null;
        public BigDecimal FeePerMinute = null;
        public BigDecimal BranchFeePerMinute = null;
        public ArrayList<SvcFeeChange> FeeChanges = new ArrayList<SvcFeeChange>();
        
        public UUID getLineId() { return LineId; }
        public SvcServiceRow setLineId(UUID value) { this.LineId = value; return this; }
        public String getName() { return Name; }
        public SvcServiceRow setName(String value) { this.Name = value; return this; }
        public Integer getCompleted() { return Completed; }
        public SvcServiceRow setCompleted(Integer value) { this.Completed = value; return this; }
        public Double getAvgServiceSec() { return AvgServiceSec; }
        public SvcServiceRow setAvgServiceSec(Double value) { this.AvgServiceSec = value; return this; }
        public Double getBranchAvgServiceSec() { return BranchAvgServiceSec; }
        public SvcServiceRow setBranchAvgServiceSec(Double value) { this.BranchAvgServiceSec = value; return this; }
        public BigDecimal getFeesEarned() { return FeesEarned; }
        public SvcServiceRow setFeesEarned(BigDecimal value) { this.FeesEarned = value; return this; }
        public BigDecimal getFeeCurrent() { return FeeCurrent; }
        public SvcServiceRow setFeeCurrent(BigDecimal value) { this.FeeCurrent = value; return this; }
        public BigDecimal getFeeMin() { return FeeMin; }
        public SvcServiceRow setFeeMin(BigDecimal value) { this.FeeMin = value; return this; }
        public BigDecimal getFeeMax() { return FeeMax; }
        public SvcServiceRow setFeeMax(BigDecimal value) { this.FeeMax = value; return this; }
        public BigDecimal getFeePerMinute() { return FeePerMinute; }
        public SvcServiceRow setFeePerMinute(BigDecimal value) { this.FeePerMinute = value; return this; }
        public BigDecimal getBranchFeePerMinute() { return BranchFeePerMinute; }
        public SvcServiceRow setBranchFeePerMinute(BigDecimal value) { this.BranchFeePerMinute = value; return this; }
        public ArrayList<SvcFeeChange> getFeeChanges() { return FeeChanges; }
        public SvcServiceRow setFeeChanges(ArrayList<SvcFeeChange> value) { this.FeeChanges = value; return this; }
    }

    public static class SvcFeeChange
    {
        public UUID LocationId = null;
        public Date OnDate = null;
        public BigDecimal FromFee = null;
        public BigDecimal ToFee = null;
        
        public UUID getLocationId() { return LocationId; }
        public SvcFeeChange setLocationId(UUID value) { this.LocationId = value; return this; }
        public Date getOnDate() { return OnDate; }
        public SvcFeeChange setOnDate(Date value) { this.OnDate = value; return this; }
        public BigDecimal getFromFee() { return FromFee; }
        public SvcFeeChange setFromFee(BigDecimal value) { this.FromFee = value; return this; }
        public BigDecimal getToFee() { return ToFee; }
        public SvcFeeChange setToFee(BigDecimal value) { this.ToFee = value; return this; }
    }

    public static class SvcHourRow
    {
        public Integer LocalHour = null;
        public Integer Served = null;
        public BigDecimal FeesEarned = null;
        public BigDecimal CostToStaff = null;
        
        public Integer getLocalHour() { return LocalHour; }
        public SvcHourRow setLocalHour(Integer value) { this.LocalHour = value; return this; }
        public Integer getServed() { return Served; }
        public SvcHourRow setServed(Integer value) { this.Served = value; return this; }
        public BigDecimal getFeesEarned() { return FeesEarned; }
        public SvcHourRow setFeesEarned(BigDecimal value) { this.FeesEarned = value; return this; }
        public BigDecimal getCostToStaff() { return CostToStaff; }
        public SvcHourRow setCostToStaff(BigDecimal value) { this.CostToStaff = value; return this; }
    }

    public static class SvcAlert
    {
        public String Level = null;
        public String View = null;
        public String Code = null;
        public UUID StationId = null;
        public UUID EmployeeId = null;
        public UUID BranchId = null;
        public UUID LineId = null;
        public String Name = null;
        public UUID OtherLineId = null;
        public String OtherName = null;
        public ArrayList<UUID> StationIds = new ArrayList<UUID>();
        public HashMap<String,Double> Values = new HashMap<String,Double>();
        
        public String getLevel() { return Level; }
        public SvcAlert setLevel(String value) { this.Level = value; return this; }
        public String getView() { return View; }
        public SvcAlert setView(String value) { this.View = value; return this; }
        public String getCode() { return Code; }
        public SvcAlert setCode(String value) { this.Code = value; return this; }
        public UUID getStationId() { return StationId; }
        public SvcAlert setStationId(UUID value) { this.StationId = value; return this; }
        public UUID getEmployeeId() { return EmployeeId; }
        public SvcAlert setEmployeeId(UUID value) { this.EmployeeId = value; return this; }
        public UUID getBranchId() { return BranchId; }
        public SvcAlert setBranchId(UUID value) { this.BranchId = value; return this; }
        public UUID getLineId() { return LineId; }
        public SvcAlert setLineId(UUID value) { this.LineId = value; return this; }
        public String getName() { return Name; }
        public SvcAlert setName(String value) { this.Name = value; return this; }
        public UUID getOtherLineId() { return OtherLineId; }
        public SvcAlert setOtherLineId(UUID value) { this.OtherLineId = value; return this; }
        public String getOtherName() { return OtherName; }
        public SvcAlert setOtherName(String value) { this.OtherName = value; return this; }
        public ArrayList<UUID> getStationIds() { return StationIds; }
        public SvcAlert setStationIds(ArrayList<UUID> value) { this.StationIds = value; return this; }
        public HashMap<String,Double> getValues() { return Values; }
        public SvcAlert setValues(HashMap<String,Double> value) { this.Values = value; return this; }
    }

}

Java KpiV2BranchRequest DTOs

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

HTTP + OTHER

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

POST /v1/dashboard/kpiv2/branch HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"BranchId":"00000000000000000000000000000000","FromDate":"0001-01-01T00:00:00.0000000","ToDate":"0001-01-01T00:00:00.0000000","Compare":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Branch":{"Branch":{"BranchId":"00000000000000000000000000000000","Name":"String","StateCode":"String","ZoneCode":"String","TimeZone":"String","Windows":0,"RecordingSinceUtc":"0001-01-01T00:00:00.0000000","SessionsSinceUtc":"0001-01-01T00:00:00.0000000","Metrics":{"Checkins":0,"Walkins":0,"Appts":0,"Served":0,"NoShows":0,"ApptNoShows":0,"CancelledAtWindow":0,"Abandoned":0,"Called":0,"CalledUp":0,"AbandonRate":0,"NoShowRate":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"MaxWaitSec":0,"AvgWalkUpSec":0,"ExpectedServiceSec":0,"SignedSec":0,"ServingSec":0,"PausedSec":0,"IdleSec":0,"UnstaffedSec":0,"Utilization":0,"IdleShare":0,"PausedShare":0,"Sessions":0,"OpenDays":0,"FeesEarned":0,"AvgFee":0,"FeesPerStaffedHour":0,"ExpectedFeesPerStaffedHour":0,"LaborCost":0,"LaborPartial":false,"MissingCostEmployeeIds":["00000000000000000000000000000000"],"MissingCost":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"LaborLocked":false,"Contribution":0,"LostFees":0,"LostNoShowFees":0,"Mix":{"00000000000000000000000000000000":0},"HourlyServed":[0],"HourlyFees":[0],"HourlyCost":[0],"Tints":[{"Field":"String","Tone":"String","Reason":"String","Value":0,"Reference":0,"BranchValue":0}]}},"Windows":[{"StationId":"00000000000000000000000000000000","Name":"String","Clerks":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"NeverStaffed":false,"LastStaffedUtc":"0001-01-01T00:00:00.0000000","LastStaffedBy":"String","Metrics":{"Checkins":0,"Walkins":0,"Appts":0,"Served":0,"NoShows":0,"ApptNoShows":0,"CancelledAtWindow":0,"Abandoned":0,"Called":0,"CalledUp":0,"AbandonRate":0,"NoShowRate":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"MaxWaitSec":0,"AvgWalkUpSec":0,"ExpectedServiceSec":0,"SignedSec":0,"ServingSec":0,"PausedSec":0,"IdleSec":0,"UnstaffedSec":0,"Utilization":0,"IdleShare":0,"PausedShare":0,"Sessions":0,"OpenDays":0,"FeesEarned":0,"AvgFee":0,"FeesPerStaffedHour":0,"ExpectedFeesPerStaffedHour":0,"LaborCost":0,"LaborPartial":false,"MissingCostEmployeeIds":["00000000000000000000000000000000"],"MissingCost":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"LaborLocked":false,"Contribution":0,"LostFees":0,"LostNoShowFees":0,"Mix":{"00000000000000000000000000000000":0},"HourlyServed":[0],"HourlyFees":[0],"HourlyCost":[0],"Tints":[{"Field":"String","Tone":"String","Reason":"String","Value":0,"Reference":0,"BranchValue":0}]}}],"Clerks":[{"EmployeeId":"00000000000000000000000000000000","Name":"String","Windows":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"LoadedRate":0,"RateSet":false,"RateLocked":false,"Metrics":{"Checkins":0,"Walkins":0,"Appts":0,"Served":0,"NoShows":0,"ApptNoShows":0,"CancelledAtWindow":0,"Abandoned":0,"Called":0,"CalledUp":0,"AbandonRate":0,"NoShowRate":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"MaxWaitSec":0,"AvgWalkUpSec":0,"ExpectedServiceSec":0,"SignedSec":0,"ServingSec":0,"PausedSec":0,"IdleSec":0,"UnstaffedSec":0,"Utilization":0,"IdleShare":0,"PausedShare":0,"Sessions":0,"OpenDays":0,"FeesEarned":0,"AvgFee":0,"FeesPerStaffedHour":0,"ExpectedFeesPerStaffedHour":0,"LaborCost":0,"LaborPartial":false,"MissingCostEmployeeIds":["00000000000000000000000000000000"],"MissingCost":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"LaborLocked":false,"Contribution":0,"LostFees":0,"LostNoShowFees":0,"Mix":{"00000000000000000000000000000000":0},"HourlyServed":[0],"HourlyFees":[0],"HourlyCost":[0],"Tints":[{"Field":"String","Tone":"String","Reason":"String","Value":0,"Reference":0,"BranchValue":0}]}}],"Unassigned":{"Checkins":0,"Walkins":0,"Appts":0,"Served":0,"NoShows":0,"ApptNoShows":0,"CancelledAtWindow":0,"Abandoned":0,"Called":0,"CalledUp":0,"AbandonRate":0,"NoShowRate":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"MaxWaitSec":0,"AvgWalkUpSec":0,"ExpectedServiceSec":0,"SignedSec":0,"ServingSec":0,"PausedSec":0,"IdleSec":0,"UnstaffedSec":0,"Utilization":0,"IdleShare":0,"PausedShare":0,"Sessions":0,"OpenDays":0,"FeesEarned":0,"AvgFee":0,"FeesPerStaffedHour":0,"ExpectedFeesPerStaffedHour":0,"LaborCost":0,"LaborPartial":false,"MissingCostEmployeeIds":["00000000000000000000000000000000"],"MissingCost":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"LaborLocked":false,"Contribution":0,"LostFees":0,"LostNoShowFees":0,"Mix":{"00000000000000000000000000000000":0},"HourlyServed":[0],"HourlyFees":[0],"HourlyCost":[0],"Tints":[{"Field":"String","Tone":"String","Reason":"String","Value":0,"Reference":0,"BranchValue":0}]},"NoClerk":{"Checkins":0,"Walkins":0,"Appts":0,"Served":0,"NoShows":0,"ApptNoShows":0,"CancelledAtWindow":0,"Abandoned":0,"Called":0,"CalledUp":0,"AbandonRate":0,"NoShowRate":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"MaxWaitSec":0,"AvgWalkUpSec":0,"ExpectedServiceSec":0,"SignedSec":0,"ServingSec":0,"PausedSec":0,"IdleSec":0,"UnstaffedSec":0,"Utilization":0,"IdleShare":0,"PausedShare":0,"Sessions":0,"OpenDays":0,"FeesEarned":0,"AvgFee":0,"FeesPerStaffedHour":0,"ExpectedFeesPerStaffedHour":0,"LaborCost":0,"LaborPartial":false,"MissingCostEmployeeIds":["00000000000000000000000000000000"],"MissingCost":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"LaborLocked":false,"Contribution":0,"LostFees":0,"LostNoShowFees":0,"Mix":{"00000000000000000000000000000000":0},"HourlyServed":[0],"HourlyFees":[0],"HourlyCost":[0],"Tints":[{"Field":"String","Tone":"String","Reason":"String","Value":0,"Reference":0,"BranchValue":0}]},"PerWindowAverage":{"Count":0,"Served":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"Utilization":0,"IdleSec":0,"PausedSec":0,"NoShows":0,"SignedSec":0,"FeesEarned":0,"FeesPerStaffedHour":0,"LaborCost":0,"Contribution":0,"LostNoShowFees":0},"PerClerkAverage":{"Count":0,"Served":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"Utilization":0,"IdleSec":0,"PausedSec":0,"NoShows":0,"SignedSec":0,"FeesEarned":0,"FeesPerStaffedHour":0,"LaborCost":0,"Contribution":0,"LostNoShowFees":0},"OpenDays":0,"IsLive":false,"Comparison":{"Mode":"String","FromDate":"0001-01-01T00:00:00.0000000","ToDate":"0001-01-01T00:00:00.0000000","CutoffMinute":0,"HasData":false,"Metrics":{"Checkins":0,"Walkins":0,"Appts":0,"Served":0,"NoShows":0,"ApptNoShows":0,"CancelledAtWindow":0,"Abandoned":0,"Called":0,"CalledUp":0,"AbandonRate":0,"NoShowRate":0,"AvgServiceSec":0,"MedianServiceSec":0,"AvgWaitSec":0,"MaxWaitSec":0,"AvgWalkUpSec":0,"ExpectedServiceSec":0,"SignedSec":0,"ServingSec":0,"PausedSec":0,"IdleSec":0,"UnstaffedSec":0,"Utilization":0,"IdleShare":0,"PausedShare":0,"Sessions":0,"OpenDays":0,"FeesEarned":0,"AvgFee":0,"FeesPerStaffedHour":0,"ExpectedFeesPerStaffedHour":0,"LaborCost":0,"LaborPartial":false,"MissingCostEmployeeIds":["00000000000000000000000000000000"],"MissingCost":[{"Id":"00000000000000000000000000000000","Name":"String","SignedSec":0,"Served":0}],"LaborLocked":false,"Contribution":0,"LostFees":0,"LostNoShowFees":0,"Mix":{"00000000000000000000000000000000":0},"HourlyServed":[0],"HourlyFees":[0],"HourlyCost":[0],"Tints":[{"Field":"String","Tone":"String","Reason":"String","Value":0,"Reference":0,"BranchValue":0}]}},"Coverage":{"StartLocalMinute":0,"BucketMinutes":0,"Rows":[{"StationId":"00000000000000000000000000000000","Name":"String","Buckets":[{"ServingPct":0,"IdlePct":0,"PausedPct":0,"UnstaffedPct":0}]}],"InLine":[0],"GapBands":[[0]],"Days":0,"NotRecorded":false,"FutureFromIndex":0},"Services":[{"LineId":"00000000000000000000000000000000","Name":"String","Completed":0,"AvgServiceSec":0,"BranchAvgServiceSec":0,"FeesEarned":0,"FeeCurrent":0,"FeeMin":0,"FeeMax":0,"FeePerMinute":0,"BranchFeePerMinute":0,"FeeChanges":[{"LocationId":"00000000000000000000000000000000","OnDate":"0001-01-01T00:00:00.0000000","FromFee":0,"ToFee":0}]}],"ByHour":[{"LocalHour":0,"Served":0,"FeesEarned":0,"CostToStaff":0}],"Alerts":[{"Level":"String","View":"String","Code":"String","StationId":"00000000000000000000000000000000","EmployeeId":"00000000000000000000000000000000","BranchId":"00000000000000000000000000000000","LineId":"00000000000000000000000000000000","Name":"String","OtherLineId":"00000000000000000000000000000000","OtherName":"String","StationIds":["00000000000000000000000000000000"],"Values":{"String":0}}],"TotalsAgree":false,"CanSeeStaff":false,"CanSeeFinancial":false,"CanSeePay":false}}