Field Squared API Services

<back to all web services

LaborItem

The following routes are available for this service:
GET,PUT,POST,DELETE/{Workspace}/LaborItem
GET,PUT,POST,DELETE/{Workspace}/LaborItem/{ObjectId}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class LaborItem
    {
        public String ObjectId = null;
        public String Workspace = null;
        public String ItemTypeId = null;
        public Double Price = null;
        public String ItemTypeName = null;
        public Double TimeWorked = null;
        public Double TimeCharged = null;
        public String StartTime = null;
        public String EndTime = null;
        public String UserId = null;
        public Double Rate = null;
        public String OwningTaskId = null;
        public String StartStatus = null;
        public String EndStatus = null;
        public String StartEventId = null;
        public String EndEventId = null;
        public Double Qty = null;
        
        public String getObjectId() { return ObjectId; }
        public LaborItem setObjectId(String value) { this.ObjectId = value; return this; }
        public String getWorkspace() { return Workspace; }
        public LaborItem setWorkspace(String value) { this.Workspace = value; return this; }
        public String getItemTypeId() { return ItemTypeId; }
        public LaborItem setItemTypeId(String value) { this.ItemTypeId = value; return this; }
        public Double getPrice() { return Price; }
        public LaborItem setPrice(Double value) { this.Price = value; return this; }
        public String getItemTypeName() { return ItemTypeName; }
        public LaborItem setItemTypeName(String value) { this.ItemTypeName = value; return this; }
        public Double getTimeWorked() { return TimeWorked; }
        public LaborItem setTimeWorked(Double value) { this.TimeWorked = value; return this; }
        public Double getTimeCharged() { return TimeCharged; }
        public LaborItem setTimeCharged(Double value) { this.TimeCharged = value; return this; }
        public String getStartTime() { return StartTime; }
        public LaborItem setStartTime(String value) { this.StartTime = value; return this; }
        public String getEndTime() { return EndTime; }
        public LaborItem setEndTime(String value) { this.EndTime = value; return this; }
        public String getUserId() { return UserId; }
        public LaborItem setUserId(String value) { this.UserId = value; return this; }
        public Double getRate() { return Rate; }
        public LaborItem setRate(Double value) { this.Rate = value; return this; }
        public String getOwningTaskId() { return OwningTaskId; }
        public LaborItem setOwningTaskId(String value) { this.OwningTaskId = value; return this; }
        public String getStartStatus() { return StartStatus; }
        public LaborItem setStartStatus(String value) { this.StartStatus = value; return this; }
        public String getEndStatus() { return EndStatus; }
        public LaborItem setEndStatus(String value) { this.EndStatus = value; return this; }
        public String getStartEventId() { return StartEventId; }
        public LaborItem setStartEventId(String value) { this.StartEventId = value; return this; }
        public String getEndEventId() { return EndEventId; }
        public LaborItem setEndEventId(String value) { this.EndEventId = value; return this; }
        public Double getQty() { return Qty; }
        public LaborItem setQty(Double value) { this.Qty = value; return this; }
    }

}

Java LaborItem 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 /{Workspace}/LaborItem HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<LaborItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Field2Office.API.Model.PricingEngine">
  <EndEventId>String</EndEventId>
  <EndStatus>String</EndStatus>
  <EndTime>String</EndTime>
  <ItemTypeId>String</ItemTypeId>
  <ItemTypeName>String</ItemTypeName>
  <ObjectId>String</ObjectId>
  <OwningTaskId>String</OwningTaskId>
  <Price>0</Price>
  <Qty>0</Qty>
  <Rate>0</Rate>
  <StartEventId>String</StartEventId>
  <StartStatus>String</StartStatus>
  <StartTime>String</StartTime>
  <TimeCharged>0</TimeCharged>
  <TimeWorked>0</TimeWorked>
  <UserId>String</UserId>
  <Workspace>String</Workspace>
</LaborItem>