| 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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<LaborSalesSummaryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<FromDate>String</FromDate>
<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>
<Summary>
<AttributionNote>String</AttributionNote>
<Configured>false</Configured>
<Connected>false</Connected>
<Currency>String</Currency>
<Days>
<LaborSalesService.DayView>
<CostedHours>0</CostedHours>
<DateIso>String</DateIso>
<GrossSales>0</GrossSales>
<LaborCost>0</LaborCost>
<LaborHours>0</LaborHours>
<LaborPct>0</LaborPct>
<Splh>0</Splh>
<TransactionCount>0</TransactionCount>
<WorkerCount>0</WorkerCount>
</LaborSalesService.DayView>
</Days>
<Locations>
<LaborSalesService.LocationView>
<BranchId>String</BranchId>
<BranchName>String</BranchName>
<CostedHours>0</CostedHours>
<GrossSales>0</GrossSales>
<LaborCost>0</LaborCost>
<LaborHours>0</LaborHours>
<LaborPct>0</LaborPct>
<LocationId>String</LocationId>
<LocationName>String</LocationName>
<SharePct>0</SharePct>
<Splh>0</Splh>
<TransactionCount>0</TransactionCount>
</LaborSalesService.LocationView>
</Locations>
<NeedsReconnect>false</NeedsReconnect>
<PriorTotals>
<CostedHours>0</CostedHours>
<DaysWithLabor>0</DaysWithLabor>
<DaysWithSales>0</DaysWithSales>
<GrossSales>0</GrossSales>
<LaborCost>0</LaborCost>
<LaborHours>0</LaborHours>
<LaborPct>0</LaborPct>
<Splh>0</Splh>
<TransactionCount>0</TransactionCount>
</PriorTotals>
<Totals>
<CostedHours>0</CostedHours>
<DaysWithLabor>0</DaysWithLabor>
<DaysWithSales>0</DaysWithSales>
<GrossSales>0</GrossSales>
<LaborCost>0</LaborCost>
<LaborHours>0</LaborHours>
<LaborPct>0</LaborPct>
<Splh>0</Splh>
<TransactionCount>0</TransactionCount>
</Totals>
</Summary>
<ToDate>String</ToDate>
</LaborSalesSummaryResponse>