Trendsic Platform Service

<back to all web services

LaborSalesSummaryRequest

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

public class dtos
{

    public static class LaborSalesSummaryRequest
    {
        public String FromDate = null;
        public String ToDate = null;
        
        public String getFromDate() { return FromDate; }
        public LaborSalesSummaryRequest setFromDate(String value) { this.FromDate = value; return this; }
        public String getToDate() { return ToDate; }
        public LaborSalesSummaryRequest setToDate(String value) { this.ToDate = value; return this; }
    }

    public static class LaborSalesSummaryResponse
    {
        public SummaryView Summary = null;
        public String FromDate = null;
        public String ToDate = null;
        public ResponseStatus ResponseStatus = null;
        
        public SummaryView getSummary() { return Summary; }
        public LaborSalesSummaryResponse setSummary(SummaryView value) { this.Summary = value; return this; }
        public String getFromDate() { return FromDate; }
        public LaborSalesSummaryResponse setFromDate(String value) { this.FromDate = value; return this; }
        public String getToDate() { return ToDate; }
        public LaborSalesSummaryResponse setToDate(String value) { this.ToDate = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public LaborSalesSummaryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class SummaryView
    {
        public Boolean Configured = null;
        public Boolean Connected = null;
        public Boolean NeedsReconnect = null;
        public String Currency = null;
        public ArrayList<DayView> Days = new ArrayList<DayView>();
        public ArrayList<LocationView> Locations = new ArrayList<LocationView>();
        public TotalsView Totals = null;
        public TotalsView PriorTotals = null;
        public String AttributionNote = null;
        
        public Boolean isConfigured() { return Configured; }
        public SummaryView setConfigured(Boolean value) { this.Configured = value; return this; }
        public Boolean isConnected() { return Connected; }
        public SummaryView setConnected(Boolean value) { this.Connected = value; return this; }
        public Boolean isNeedsReconnect() { return NeedsReconnect; }
        public SummaryView setNeedsReconnect(Boolean value) { this.NeedsReconnect = value; return this; }
        public String getCurrency() { return Currency; }
        public SummaryView setCurrency(String value) { this.Currency = value; return this; }
        public ArrayList<DayView> getDays() { return Days; }
        public SummaryView setDays(ArrayList<DayView> value) { this.Days = value; return this; }
        public ArrayList<LocationView> getLocations() { return Locations; }
        public SummaryView setLocations(ArrayList<LocationView> value) { this.Locations = value; return this; }
        public TotalsView getTotals() { return Totals; }
        public SummaryView setTotals(TotalsView value) { this.Totals = value; return this; }
        public TotalsView getPriorTotals() { return PriorTotals; }
        public SummaryView setPriorTotals(TotalsView value) { this.PriorTotals = value; return this; }
        public String getAttributionNote() { return AttributionNote; }
        public SummaryView setAttributionNote(String value) { this.AttributionNote = value; return this; }
    }

    public static class DayView
    {
        public String DateIso = null;
        public BigDecimal GrossSales = null;
        public Integer TransactionCount = null;
        public BigDecimal LaborHours = null;
        public BigDecimal CostedHours = null;
        public BigDecimal LaborCost = null;
        public Integer WorkerCount = null;
        public BigDecimal LaborPct = null;
        public BigDecimal Splh = null;
        
        public String getDateIso() { return DateIso; }
        public DayView setDateIso(String value) { this.DateIso = value; return this; }
        public BigDecimal getGrossSales() { return GrossSales; }
        public DayView setGrossSales(BigDecimal value) { this.GrossSales = value; return this; }
        public Integer getTransactionCount() { return TransactionCount; }
        public DayView setTransactionCount(Integer value) { this.TransactionCount = value; return this; }
        public BigDecimal getLaborHours() { return LaborHours; }
        public DayView setLaborHours(BigDecimal value) { this.LaborHours = value; return this; }
        public BigDecimal getCostedHours() { return CostedHours; }
        public DayView setCostedHours(BigDecimal value) { this.CostedHours = value; return this; }
        public BigDecimal getLaborCost() { return LaborCost; }
        public DayView setLaborCost(BigDecimal value) { this.LaborCost = value; return this; }
        public Integer getWorkerCount() { return WorkerCount; }
        public DayView setWorkerCount(Integer value) { this.WorkerCount = value; return this; }
        public BigDecimal getLaborPct() { return LaborPct; }
        public DayView setLaborPct(BigDecimal value) { this.LaborPct = value; return this; }
        public BigDecimal getSplh() { return Splh; }
        public DayView setSplh(BigDecimal value) { this.Splh = value; return this; }
    }

    public static class LocationView
    {
        public String LocationId = null;
        public String LocationName = null;
        public BigDecimal GrossSales = null;
        public Integer TransactionCount = null;
        public BigDecimal SharePct = null;
        public String BranchId = null;
        public String BranchName = null;
        public BigDecimal LaborHours = null;
        public BigDecimal CostedHours = null;
        public BigDecimal LaborCost = null;
        public BigDecimal LaborPct = null;
        public BigDecimal Splh = null;
        
        public String getLocationId() { return LocationId; }
        public LocationView setLocationId(String value) { this.LocationId = value; return this; }
        public String getLocationName() { return LocationName; }
        public LocationView setLocationName(String value) { this.LocationName = value; return this; }
        public BigDecimal getGrossSales() { return GrossSales; }
        public LocationView setGrossSales(BigDecimal value) { this.GrossSales = value; return this; }
        public Integer getTransactionCount() { return TransactionCount; }
        public LocationView setTransactionCount(Integer value) { this.TransactionCount = value; return this; }
        public BigDecimal getSharePct() { return SharePct; }
        public LocationView setSharePct(BigDecimal value) { this.SharePct = value; return this; }
        public String getBranchId() { return BranchId; }
        public LocationView setBranchId(String value) { this.BranchId = value; return this; }
        public String getBranchName() { return BranchName; }
        public LocationView setBranchName(String value) { this.BranchName = value; return this; }
        public BigDecimal getLaborHours() { return LaborHours; }
        public LocationView setLaborHours(BigDecimal value) { this.LaborHours = value; return this; }
        public BigDecimal getCostedHours() { return CostedHours; }
        public LocationView setCostedHours(BigDecimal value) { this.CostedHours = value; return this; }
        public BigDecimal getLaborCost() { return LaborCost; }
        public LocationView setLaborCost(BigDecimal value) { this.LaborCost = value; return this; }
        public BigDecimal getLaborPct() { return LaborPct; }
        public LocationView setLaborPct(BigDecimal value) { this.LaborPct = value; return this; }
        public BigDecimal getSplh() { return Splh; }
        public LocationView setSplh(BigDecimal value) { this.Splh = value; return this; }
    }

    public static class TotalsView
    {
        public BigDecimal GrossSales = null;
        public Integer TransactionCount = null;
        public BigDecimal LaborHours = null;
        public BigDecimal CostedHours = null;
        public BigDecimal LaborCost = null;
        public BigDecimal LaborPct = null;
        public BigDecimal Splh = null;
        public Integer DaysWithSales = null;
        public Integer DaysWithLabor = null;
        
        public BigDecimal getGrossSales() { return GrossSales; }
        public TotalsView setGrossSales(BigDecimal value) { this.GrossSales = value; return this; }
        public Integer getTransactionCount() { return TransactionCount; }
        public TotalsView setTransactionCount(Integer value) { this.TransactionCount = value; return this; }
        public BigDecimal getLaborHours() { return LaborHours; }
        public TotalsView setLaborHours(BigDecimal value) { this.LaborHours = value; return this; }
        public BigDecimal getCostedHours() { return CostedHours; }
        public TotalsView setCostedHours(BigDecimal value) { this.CostedHours = value; return this; }
        public BigDecimal getLaborCost() { return LaborCost; }
        public TotalsView setLaborCost(BigDecimal value) { this.LaborCost = value; return this; }
        public BigDecimal getLaborPct() { return LaborPct; }
        public TotalsView setLaborPct(BigDecimal value) { this.LaborPct = value; return this; }
        public BigDecimal getSplh() { return Splh; }
        public TotalsView setSplh(BigDecimal value) { this.Splh = value; return this; }
        public Integer getDaysWithSales() { return DaysWithSales; }
        public TotalsView setDaysWithSales(Integer value) { this.DaysWithSales = value; return this; }
        public Integer getDaysWithLabor() { return DaysWithLabor; }
        public TotalsView setDaysWithLabor(Integer value) { this.DaysWithLabor = value; return this; }
    }

}

Java LaborSalesSummaryRequest 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/laborsales/summary HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Summary: 
	{
		Configured: False,
		Connected: False,
		NeedsReconnect: False,
		Currency: String,
		Days: 
		[
			{
				DateIso: String,
				GrossSales: 0,
				TransactionCount: 0,
				LaborHours: 0,
				CostedHours: 0,
				LaborCost: 0,
				WorkerCount: 0,
				LaborPct: 0,
				Splh: 0
			}
		],
		Locations: 
		[
			{
				LocationId: String,
				LocationName: String,
				GrossSales: 0,
				TransactionCount: 0,
				SharePct: 0,
				BranchId: String,
				BranchName: String,
				LaborHours: 0,
				CostedHours: 0,
				LaborCost: 0,
				LaborPct: 0,
				Splh: 0
			}
		],
		Totals: 
		{
			GrossSales: 0,
			TransactionCount: 0,
			LaborHours: 0,
			CostedHours: 0,
			LaborCost: 0,
			LaborPct: 0,
			Splh: 0,
			DaysWithSales: 0,
			DaysWithLabor: 0
		},
		PriorTotals: 
		{
			GrossSales: 0,
			TransactionCount: 0,
			LaborHours: 0,
			CostedHours: 0,
			LaborCost: 0,
			LaborPct: 0,
			Splh: 0,
			DaysWithSales: 0,
			DaysWithLabor: 0
		},
		AttributionNote: String
	},
	FromDate: String,
	ToDate: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}