Trendsic Platform Service

<back to all web services

ApplyAssemblyRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
POST,OPTIONS/v1/Rfp/{RfpDocumentUID}/Estimate/Jobs/{TaskSeq}/assembly
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class ApplyAssemblyRequest
    {
        public UUID RfpDocumentUID = null;
        public Integer TaskSeq = null;
        public UUID TemplateUID = null;
        
        public UUID getRfpDocumentUID() { return RfpDocumentUID; }
        public ApplyAssemblyRequest setRfpDocumentUID(UUID value) { this.RfpDocumentUID = value; return this; }
        public Integer getTaskSeq() { return TaskSeq; }
        public ApplyAssemblyRequest setTaskSeq(Integer value) { this.TaskSeq = value; return this; }
        public UUID getTemplateUID() { return TemplateUID; }
        public ApplyAssemblyRequest setTemplateUID(UUID value) { this.TemplateUID = value; return this; }
    }

    public static class ApplyAssemblyResponse
    {
        public ResponseStatus ResponseStatus = null;
        public Integer TaskSeq = null;
        public UUID TemplateUID = null;
        public String TemplateName = null;
        public BigDecimal Quantity = null;
        public String Unit = null;
        public TaskResourcing Resourcing = null;
        public EstimateJobResult Job = null;
        public String Headline = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ApplyAssemblyResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public Integer getTaskSeq() { return TaskSeq; }
        public ApplyAssemblyResponse setTaskSeq(Integer value) { this.TaskSeq = value; return this; }
        public UUID getTemplateUID() { return TemplateUID; }
        public ApplyAssemblyResponse setTemplateUID(UUID value) { this.TemplateUID = value; return this; }
        public String getTemplateName() { return TemplateName; }
        public ApplyAssemblyResponse setTemplateName(String value) { this.TemplateName = value; return this; }
        public BigDecimal getQuantity() { return Quantity; }
        public ApplyAssemblyResponse setQuantity(BigDecimal value) { this.Quantity = value; return this; }
        public String getUnit() { return Unit; }
        public ApplyAssemblyResponse setUnit(String value) { this.Unit = value; return this; }
        public TaskResourcing getResourcing() { return Resourcing; }
        public ApplyAssemblyResponse setResourcing(TaskResourcing value) { this.Resourcing = value; return this; }
        public EstimateJobResult getJob() { return Job; }
        public ApplyAssemblyResponse setJob(EstimateJobResult value) { this.Job = value; return this; }
        public String getHeadline() { return Headline; }
        public ApplyAssemblyResponse setHeadline(String value) { this.Headline = value; return this; }
    }

    public static class TaskResourcing
    {
        public ArrayList<ResourcedPosition> Positions = new ArrayList<ResourcedPosition>();
        public ArrayList<ResourcedEquipment> Equipment = new ArrayList<ResourcedEquipment>();
        public ArrayList<ResourcedMaterial> Materials = new ArrayList<ResourcedMaterial>();
        public Double ResourcedForQuantity = null;
        public Double ProductionRatePerDay = null;
        public Double FixedDays = null;
        
        public ArrayList<ResourcedPosition> getPositions() { return Positions; }
        public TaskResourcing setPositions(ArrayList<ResourcedPosition> value) { this.Positions = value; return this; }
        public ArrayList<ResourcedEquipment> getEquipment() { return Equipment; }
        public TaskResourcing setEquipment(ArrayList<ResourcedEquipment> value) { this.Equipment = value; return this; }
        public ArrayList<ResourcedMaterial> getMaterials() { return Materials; }
        public TaskResourcing setMaterials(ArrayList<ResourcedMaterial> value) { this.Materials = value; return this; }
        public Double getResourcedForQuantity() { return ResourcedForQuantity; }
        public TaskResourcing setResourcedForQuantity(Double value) { this.ResourcedForQuantity = value; return this; }
        public Double getProductionRatePerDay() { return ProductionRatePerDay; }
        public TaskResourcing setProductionRatePerDay(Double value) { this.ProductionRatePerDay = value; return this; }
        public Double getFixedDays() { return FixedDays; }
        public TaskResourcing setFixedDays(Double value) { this.FixedDays = value; return this; }
    }

    public static class ResourcedPosition
    {
        public String PositionTag = null;
        public Double Hours = null;
        public Double CrewSize = null;
        public Double Utilization = null;
        public Double FixedDays = null;
        public Integer Headcount = null;
        public String SourceReference = null;
        public String Notes = null;
        public Boolean IsInCatalog = null;
        public Integer ContactID = null;
        
        public String getPositionTag() { return PositionTag; }
        public ResourcedPosition setPositionTag(String value) { this.PositionTag = value; return this; }
        public Double getHours() { return Hours; }
        public ResourcedPosition setHours(Double value) { this.Hours = value; return this; }
        public Double getCrewSize() { return CrewSize; }
        public ResourcedPosition setCrewSize(Double value) { this.CrewSize = value; return this; }
        public Double getUtilization() { return Utilization; }
        public ResourcedPosition setUtilization(Double value) { this.Utilization = value; return this; }
        public Double getFixedDays() { return FixedDays; }
        public ResourcedPosition setFixedDays(Double value) { this.FixedDays = value; return this; }
        public Integer getHeadcount() { return Headcount; }
        public ResourcedPosition setHeadcount(Integer value) { this.Headcount = value; return this; }
        public String getSourceReference() { return SourceReference; }
        public ResourcedPosition setSourceReference(String value) { this.SourceReference = value; return this; }
        public String getNotes() { return Notes; }
        public ResourcedPosition setNotes(String value) { this.Notes = value; return this; }
        public Boolean getIsInCatalog() { return IsInCatalog; }
        public ResourcedPosition setIsInCatalog(Boolean value) { this.IsInCatalog = value; return this; }
        public Integer getContactID() { return ContactID; }
        public ResourcedPosition setContactID(Integer value) { this.ContactID = value; return this; }
    }

    public static class ResourcedEquipment
    {
        public Integer EquipmentID = null;
        public String EquipmentName = null;
        public String MakeModel = null;
        public Double Quantity = null;
        public Double DurationDays = null;
        public Double Utilization = null;
        public Double FixedDays = null;
        public String SourceReference = null;
        public String Notes = null;
        public Boolean IsInCatalog = null;
        public Integer SuggestedEquipmentID = null;
        public String SuggestedEquipmentName = null;
        
        public Integer getEquipmentID() { return EquipmentID; }
        public ResourcedEquipment setEquipmentID(Integer value) { this.EquipmentID = value; return this; }
        public String getEquipmentName() { return EquipmentName; }
        public ResourcedEquipment setEquipmentName(String value) { this.EquipmentName = value; return this; }
        public String getMakeModel() { return MakeModel; }
        public ResourcedEquipment setMakeModel(String value) { this.MakeModel = value; return this; }
        public Double getQuantity() { return Quantity; }
        public ResourcedEquipment setQuantity(Double value) { this.Quantity = value; return this; }
        public Double getDurationDays() { return DurationDays; }
        public ResourcedEquipment setDurationDays(Double value) { this.DurationDays = value; return this; }
        public Double getUtilization() { return Utilization; }
        public ResourcedEquipment setUtilization(Double value) { this.Utilization = value; return this; }
        public Double getFixedDays() { return FixedDays; }
        public ResourcedEquipment setFixedDays(Double value) { this.FixedDays = value; return this; }
        public String getSourceReference() { return SourceReference; }
        public ResourcedEquipment setSourceReference(String value) { this.SourceReference = value; return this; }
        public String getNotes() { return Notes; }
        public ResourcedEquipment setNotes(String value) { this.Notes = value; return this; }
        public Boolean getIsInCatalog() { return IsInCatalog; }
        public ResourcedEquipment setIsInCatalog(Boolean value) { this.IsInCatalog = value; return this; }
        public Integer getSuggestedEquipmentID() { return SuggestedEquipmentID; }
        public ResourcedEquipment setSuggestedEquipmentID(Integer value) { this.SuggestedEquipmentID = value; return this; }
        public String getSuggestedEquipmentName() { return SuggestedEquipmentName; }
        public ResourcedEquipment setSuggestedEquipmentName(String value) { this.SuggestedEquipmentName = value; return this; }
    }

    public static class ResourcedMaterial
    {
        public Integer MaterialID = null;
        public String MaterialName = null;
        public String MakeModel = null;
        public Double Quantity = null;
        public Double QuantityPerUnit = null;
        public String Unit = null;
        public String SourceReference = null;
        public String Notes = null;
        public Boolean IsInCatalog = null;
        public Integer SuggestedMaterialID = null;
        public String SuggestedMaterialName = null;
        
        public Integer getMaterialID() { return MaterialID; }
        public ResourcedMaterial setMaterialID(Integer value) { this.MaterialID = value; return this; }
        public String getMaterialName() { return MaterialName; }
        public ResourcedMaterial setMaterialName(String value) { this.MaterialName = value; return this; }
        public String getMakeModel() { return MakeModel; }
        public ResourcedMaterial setMakeModel(String value) { this.MakeModel = value; return this; }
        public Double getQuantity() { return Quantity; }
        public ResourcedMaterial setQuantity(Double value) { this.Quantity = value; return this; }
        public Double getQuantityPerUnit() { return QuantityPerUnit; }
        public ResourcedMaterial setQuantityPerUnit(Double value) { this.QuantityPerUnit = value; return this; }
        public String getUnit() { return Unit; }
        public ResourcedMaterial setUnit(String value) { this.Unit = value; return this; }
        public String getSourceReference() { return SourceReference; }
        public ResourcedMaterial setSourceReference(String value) { this.SourceReference = value; return this; }
        public String getNotes() { return Notes; }
        public ResourcedMaterial setNotes(String value) { this.Notes = value; return this; }
        public Boolean getIsInCatalog() { return IsInCatalog; }
        public ResourcedMaterial setIsInCatalog(Boolean value) { this.IsInCatalog = value; return this; }
        public Integer getSuggestedMaterialID() { return SuggestedMaterialID; }
        public ResourcedMaterial setSuggestedMaterialID(Integer value) { this.SuggestedMaterialID = value; return this; }
        public String getSuggestedMaterialName() { return SuggestedMaterialName; }
        public ResourcedMaterial setSuggestedMaterialName(String value) { this.SuggestedMaterialName = value; return this; }
    }

    public static class EstimateJobResult
    {
        public Integer Seq = null;
        public ArrayList<Integer> DependsOn = new ArrayList<Integer>();
        public String ItemNo = null;
        public String Name = null;
        public String Category = null;
        public String SourceRef = null;
        public String Unit = null;
        public BigDecimal Quantity = null;
        public String PatternCode = null;
        public Integer Workdays = null;
        public BigDecimal HoursPerDay = null;
        public Boolean IsNight = null;
        public BigDecimal WeeklyHours = null;
        public BigDecimal OtFraction = null;
        public BigDecimal Days = null;
        public BigDecimal EffectiveProdPerDay = null;
        public Boolean CrewPremiumApplied = null;
        public WorkPackageView WorkPackage = null;
        public ArrayList<EstimateCrewLineResult> Crew = new ArrayList<EstimateCrewLineResult>();
        public ArrayList<EstimateEquipmentLineResult> Equipment = new ArrayList<EstimateEquipmentLineResult>();
        public ArrayList<EstimateMaterialLineResult> Materials = new ArrayList<EstimateMaterialLineResult>();
        public ArrayList<EstimateSubcontractLine> Subcontracts = new ArrayList<EstimateSubcontractLine>();
        public BigDecimal CrewCost = null;
        public BigDecimal FringeCost = null;
        public BigDecimal EquipmentCost = null;
        public BigDecimal MaterialCost = null;
        public BigDecimal SubcontractCost = null;
        public BigDecimal Direct = null;
        public String PricingBasis = null;
        public String PricingRuleId = null;
        public BigDecimal PricingBandP25 = null;
        public BigDecimal PricingBandP75 = null;
        public Integer PricingBandN = null;
        public String PricingBandLabel = null;
        public BigDecimal BenchmarkUnitPrice = null;
        public BigDecimal BenchmarkRateMin = null;
        public BigDecimal BenchmarkRateMax = null;
        public Integer BenchmarkSampleSize = null;
        public BigDecimal BenchmarkP25 = null;
        public BigDecimal BenchmarkP75 = null;
        public String BenchmarkBasis = null;
        public BigDecimal UnitPriceOverride = null;
        public String OverrideBasis = null;
        public BigDecimal ReferencePrice = null;
        public BigDecimal ReferenceRangeMin = null;
        public BigDecimal ReferenceRangeMax = null;
        public Integer ReferenceN = null;
        public Date ReferenceDate = null;
        public String ReferenceBasis = null;
        public String ReferenceUrl = null;
        
        public Integer getSeq() { return Seq; }
        public EstimateJobResult setSeq(Integer value) { this.Seq = value; return this; }
        public ArrayList<Integer> getDependsOn() { return DependsOn; }
        public EstimateJobResult setDependsOn(ArrayList<Integer> value) { this.DependsOn = value; return this; }
        public String getItemNo() { return ItemNo; }
        public EstimateJobResult setItemNo(String value) { this.ItemNo = value; return this; }
        public String getName() { return Name; }
        public EstimateJobResult setName(String value) { this.Name = value; return this; }
        public String getCategory() { return Category; }
        public EstimateJobResult setCategory(String value) { this.Category = value; return this; }
        public String getSourceRef() { return SourceRef; }
        public EstimateJobResult setSourceRef(String value) { this.SourceRef = value; return this; }
        public String getUnit() { return Unit; }
        public EstimateJobResult setUnit(String value) { this.Unit = value; return this; }
        public BigDecimal getQuantity() { return Quantity; }
        public EstimateJobResult setQuantity(BigDecimal value) { this.Quantity = value; return this; }
        public String getPatternCode() { return PatternCode; }
        public EstimateJobResult setPatternCode(String value) { this.PatternCode = value; return this; }
        public Integer getWorkdays() { return Workdays; }
        public EstimateJobResult setWorkdays(Integer value) { this.Workdays = value; return this; }
        public BigDecimal getHoursPerDay() { return HoursPerDay; }
        public EstimateJobResult setHoursPerDay(BigDecimal value) { this.HoursPerDay = value; return this; }
        public Boolean getIsNight() { return IsNight; }
        public EstimateJobResult setIsNight(Boolean value) { this.IsNight = value; return this; }
        public BigDecimal getWeeklyHours() { return WeeklyHours; }
        public EstimateJobResult setWeeklyHours(BigDecimal value) { this.WeeklyHours = value; return this; }
        public BigDecimal getOtFraction() { return OtFraction; }
        public EstimateJobResult setOtFraction(BigDecimal value) { this.OtFraction = value; return this; }
        public BigDecimal getDays() { return Days; }
        public EstimateJobResult setDays(BigDecimal value) { this.Days = value; return this; }
        public BigDecimal getEffectiveProdPerDay() { return EffectiveProdPerDay; }
        public EstimateJobResult setEffectiveProdPerDay(BigDecimal value) { this.EffectiveProdPerDay = value; return this; }
        public Boolean isCrewPremiumApplied() { return CrewPremiumApplied; }
        public EstimateJobResult setCrewPremiumApplied(Boolean value) { this.CrewPremiumApplied = value; return this; }
        public WorkPackageView getWorkPackage() { return WorkPackage; }
        public EstimateJobResult setWorkPackage(WorkPackageView value) { this.WorkPackage = value; return this; }
        public ArrayList<EstimateCrewLineResult> getCrew() { return Crew; }
        public EstimateJobResult setCrew(ArrayList<EstimateCrewLineResult> value) { this.Crew = value; return this; }
        public ArrayList<EstimateEquipmentLineResult> getEquipment() { return Equipment; }
        public EstimateJobResult setEquipment(ArrayList<EstimateEquipmentLineResult> value) { this.Equipment = value; return this; }
        public ArrayList<EstimateMaterialLineResult> getMaterials() { return Materials; }
        public EstimateJobResult setMaterials(ArrayList<EstimateMaterialLineResult> value) { this.Materials = value; return this; }
        public ArrayList<EstimateSubcontractLine> getSubcontracts() { return Subcontracts; }
        public EstimateJobResult setSubcontracts(ArrayList<EstimateSubcontractLine> value) { this.Subcontracts = value; return this; }
        public BigDecimal getCrewCost() { return CrewCost; }
        public EstimateJobResult setCrewCost(BigDecimal value) { this.CrewCost = value; return this; }
        public BigDecimal getFringeCost() { return FringeCost; }
        public EstimateJobResult setFringeCost(BigDecimal value) { this.FringeCost = value; return this; }
        public BigDecimal getEquipmentCost() { return EquipmentCost; }
        public EstimateJobResult setEquipmentCost(BigDecimal value) { this.EquipmentCost = value; return this; }
        public BigDecimal getMaterialCost() { return MaterialCost; }
        public EstimateJobResult setMaterialCost(BigDecimal value) { this.MaterialCost = value; return this; }
        public BigDecimal getSubcontractCost() { return SubcontractCost; }
        public EstimateJobResult setSubcontractCost(BigDecimal value) { this.SubcontractCost = value; return this; }
        public BigDecimal getDirect() { return Direct; }
        public EstimateJobResult setDirect(BigDecimal value) { this.Direct = value; return this; }
        public String getPricingBasis() { return PricingBasis; }
        public EstimateJobResult setPricingBasis(String value) { this.PricingBasis = value; return this; }
        public String getPricingRuleId() { return PricingRuleId; }
        public EstimateJobResult setPricingRuleId(String value) { this.PricingRuleId = value; return this; }
        public BigDecimal getPricingBandP25() { return PricingBandP25; }
        public EstimateJobResult setPricingBandP25(BigDecimal value) { this.PricingBandP25 = value; return this; }
        public BigDecimal getPricingBandP75() { return PricingBandP75; }
        public EstimateJobResult setPricingBandP75(BigDecimal value) { this.PricingBandP75 = value; return this; }
        public Integer getPricingBandN() { return PricingBandN; }
        public EstimateJobResult setPricingBandN(Integer value) { this.PricingBandN = value; return this; }
        public String getPricingBandLabel() { return PricingBandLabel; }
        public EstimateJobResult setPricingBandLabel(String value) { this.PricingBandLabel = value; return this; }
        public BigDecimal getBenchmarkUnitPrice() { return BenchmarkUnitPrice; }
        public EstimateJobResult setBenchmarkUnitPrice(BigDecimal value) { this.BenchmarkUnitPrice = value; return this; }
        public BigDecimal getBenchmarkRateMin() { return BenchmarkRateMin; }
        public EstimateJobResult setBenchmarkRateMin(BigDecimal value) { this.BenchmarkRateMin = value; return this; }
        public BigDecimal getBenchmarkRateMax() { return BenchmarkRateMax; }
        public EstimateJobResult setBenchmarkRateMax(BigDecimal value) { this.BenchmarkRateMax = value; return this; }
        public Integer getBenchmarkSampleSize() { return BenchmarkSampleSize; }
        public EstimateJobResult setBenchmarkSampleSize(Integer value) { this.BenchmarkSampleSize = value; return this; }
        public BigDecimal getBenchmarkP25() { return BenchmarkP25; }
        public EstimateJobResult setBenchmarkP25(BigDecimal value) { this.BenchmarkP25 = value; return this; }
        public BigDecimal getBenchmarkP75() { return BenchmarkP75; }
        public EstimateJobResult setBenchmarkP75(BigDecimal value) { this.BenchmarkP75 = value; return this; }
        public String getBenchmarkBasis() { return BenchmarkBasis; }
        public EstimateJobResult setBenchmarkBasis(String value) { this.BenchmarkBasis = value; return this; }
        public BigDecimal getUnitPriceOverride() { return UnitPriceOverride; }
        public EstimateJobResult setUnitPriceOverride(BigDecimal value) { this.UnitPriceOverride = value; return this; }
        public String getOverrideBasis() { return OverrideBasis; }
        public EstimateJobResult setOverrideBasis(String value) { this.OverrideBasis = value; return this; }
        public BigDecimal getReferencePrice() { return ReferencePrice; }
        public EstimateJobResult setReferencePrice(BigDecimal value) { this.ReferencePrice = value; return this; }
        public BigDecimal getReferenceRangeMin() { return ReferenceRangeMin; }
        public EstimateJobResult setReferenceRangeMin(BigDecimal value) { this.ReferenceRangeMin = value; return this; }
        public BigDecimal getReferenceRangeMax() { return ReferenceRangeMax; }
        public EstimateJobResult setReferenceRangeMax(BigDecimal value) { this.ReferenceRangeMax = value; return this; }
        public Integer getReferenceN() { return ReferenceN; }
        public EstimateJobResult setReferenceN(Integer value) { this.ReferenceN = value; return this; }
        public Date getReferenceDate() { return ReferenceDate; }
        public EstimateJobResult setReferenceDate(Date value) { this.ReferenceDate = value; return this; }
        public String getReferenceBasis() { return ReferenceBasis; }
        public EstimateJobResult setReferenceBasis(String value) { this.ReferenceBasis = value; return this; }
        public String getReferenceUrl() { return ReferenceUrl; }
        public EstimateJobResult setReferenceUrl(String value) { this.ReferenceUrl = value; return this; }
    }

    public static class WorkPackageView
    {
        public Boolean HasPackage = null;
        public String Scope = null;
        public String LimitsOfWork = null;
        public ArrayList<SpecRefView> SpecRefs = new ArrayList<SpecRefView>();
        public ArrayList<String> Constraints = new ArrayList<String>();
        public ArrayList<String> HoldPoints = new ArrayList<String>();
        public ArrayList<DodItemView> Dod = new ArrayList<DodItemView>();
        public String SafetyNote = null;
        public String Provenance = null;
        public String SpecBook = null;
        public Boolean UserEdited = null;
        public String RedraftNote = null;
        
        public Boolean isHasPackage() { return HasPackage; }
        public WorkPackageView setHasPackage(Boolean value) { this.HasPackage = value; return this; }
        public String getScope() { return Scope; }
        public WorkPackageView setScope(String value) { this.Scope = value; return this; }
        public String getLimitsOfWork() { return LimitsOfWork; }
        public WorkPackageView setLimitsOfWork(String value) { this.LimitsOfWork = value; return this; }
        public ArrayList<SpecRefView> getSpecRefs() { return SpecRefs; }
        public WorkPackageView setSpecRefs(ArrayList<SpecRefView> value) { this.SpecRefs = value; return this; }
        public ArrayList<String> getConstraints() { return Constraints; }
        public WorkPackageView setConstraints(ArrayList<String> value) { this.Constraints = value; return this; }
        public ArrayList<String> getHoldPoints() { return HoldPoints; }
        public WorkPackageView setHoldPoints(ArrayList<String> value) { this.HoldPoints = value; return this; }
        public ArrayList<DodItemView> getDod() { return Dod; }
        public WorkPackageView setDod(ArrayList<DodItemView> value) { this.Dod = value; return this; }
        public String getSafetyNote() { return SafetyNote; }
        public WorkPackageView setSafetyNote(String value) { this.SafetyNote = value; return this; }
        public String getProvenance() { return Provenance; }
        public WorkPackageView setProvenance(String value) { this.Provenance = value; return this; }
        public String getSpecBook() { return SpecBook; }
        public WorkPackageView setSpecBook(String value) { this.SpecBook = value; return this; }
        public Boolean isUserEdited() { return UserEdited; }
        public WorkPackageView setUserEdited(Boolean value) { this.UserEdited = value; return this; }
        public String getRedraftNote() { return RedraftNote; }
        public WorkPackageView setRedraftNote(String value) { this.RedraftNote = value; return this; }
    }

    public static class SpecRefView
    {
        public String Section = null;
        public String Title = null;
        public String Url = null;
        
        public String getSection() { return Section; }
        public SpecRefView setSection(String value) { this.Section = value; return this; }
        public String getTitle() { return Title; }
        public SpecRefView setTitle(String value) { this.Title = value; return this; }
        public String getUrl() { return Url; }
        public SpecRefView setUrl(String value) { this.Url = value; return this; }
    }

    public static class DodItemView
    {
        public String Key = null;
        public String Text = null;
        public Boolean Checked = null;
        public String Source = null;
        
        public String getKey() { return Key; }
        public DodItemView setKey(String value) { this.Key = value; return this; }
        public String getText() { return Text; }
        public DodItemView setText(String value) { this.Text = value; return this; }
        public Boolean isChecked() { return Checked; }
        public DodItemView setChecked(Boolean value) { this.Checked = value; return this; }
        public String getSource() { return Source; }
        public DodItemView setSource(String value) { this.Source = value; return this; }
    }

    public static class EstimateCrewLineResult
    {
        public String Role = null;
        public BigDecimal Hours = null;
        public BigDecimal StHours = null;
        public BigDecimal OtHours = null;
        public BigDecimal Rrop = null;
        public BigDecimal StCost = null;
        public BigDecimal OtCost = null;
        public BigDecimal Cost = null;
        public BigDecimal FringeCost = null;
        public Boolean PremiumApplied = null;
        public Boolean HasOt = null;
        public Boolean NeedsRate = null;
        
        public String getRole() { return Role; }
        public EstimateCrewLineResult setRole(String value) { this.Role = value; return this; }
        public BigDecimal getHours() { return Hours; }
        public EstimateCrewLineResult setHours(BigDecimal value) { this.Hours = value; return this; }
        public BigDecimal getStHours() { return StHours; }
        public EstimateCrewLineResult setStHours(BigDecimal value) { this.StHours = value; return this; }
        public BigDecimal getOtHours() { return OtHours; }
        public EstimateCrewLineResult setOtHours(BigDecimal value) { this.OtHours = value; return this; }
        public BigDecimal getRrop() { return Rrop; }
        public EstimateCrewLineResult setRrop(BigDecimal value) { this.Rrop = value; return this; }
        public BigDecimal getStCost() { return StCost; }
        public EstimateCrewLineResult setStCost(BigDecimal value) { this.StCost = value; return this; }
        public BigDecimal getOtCost() { return OtCost; }
        public EstimateCrewLineResult setOtCost(BigDecimal value) { this.OtCost = value; return this; }
        public BigDecimal getCost() { return Cost; }
        public EstimateCrewLineResult setCost(BigDecimal value) { this.Cost = value; return this; }
        public BigDecimal getFringeCost() { return FringeCost; }
        public EstimateCrewLineResult setFringeCost(BigDecimal value) { this.FringeCost = value; return this; }
        public Boolean isPremiumApplied() { return PremiumApplied; }
        public EstimateCrewLineResult setPremiumApplied(Boolean value) { this.PremiumApplied = value; return this; }
        public Boolean isHasOt() { return HasOt; }
        public EstimateCrewLineResult setHasOt(Boolean value) { this.HasOt = value; return this; }
        public Boolean isNeedsRate() { return NeedsRate; }
        public EstimateCrewLineResult setNeedsRate(Boolean value) { this.NeedsRate = value; return this; }
    }

    public static class EstimateEquipmentLineResult
    {
        public String Name = null;
        public BigDecimal Quantity = null;
        public BigDecimal Rate = null;
        public Boolean NeedsRate = null;
        public BigDecimal MobCost = null;
        public BigDecimal Cost = null;
        public Boolean IsAvailabilityTracked = null;
        public Boolean IsOwned = null;
        public String AvailabilityLabel = null;
        public String FreedFromProject = null;
        public Date AvailableFrom = null;
        public String RateKey = null;
        public String RentalExplain = null;
        public BigDecimal UsageDays = null;
        public BigDecimal BilledDays = null;
        
        public String getName() { return Name; }
        public EstimateEquipmentLineResult setName(String value) { this.Name = value; return this; }
        public BigDecimal getQuantity() { return Quantity; }
        public EstimateEquipmentLineResult setQuantity(BigDecimal value) { this.Quantity = value; return this; }
        public BigDecimal getRate() { return Rate; }
        public EstimateEquipmentLineResult setRate(BigDecimal value) { this.Rate = value; return this; }
        public Boolean isNeedsRate() { return NeedsRate; }
        public EstimateEquipmentLineResult setNeedsRate(Boolean value) { this.NeedsRate = value; return this; }
        public BigDecimal getMobCost() { return MobCost; }
        public EstimateEquipmentLineResult setMobCost(BigDecimal value) { this.MobCost = value; return this; }
        public BigDecimal getCost() { return Cost; }
        public EstimateEquipmentLineResult setCost(BigDecimal value) { this.Cost = value; return this; }
        public Boolean getIsAvailabilityTracked() { return IsAvailabilityTracked; }
        public EstimateEquipmentLineResult setIsAvailabilityTracked(Boolean value) { this.IsAvailabilityTracked = value; return this; }
        public Boolean getIsOwned() { return IsOwned; }
        public EstimateEquipmentLineResult setIsOwned(Boolean value) { this.IsOwned = value; return this; }
        public String getAvailabilityLabel() { return AvailabilityLabel; }
        public EstimateEquipmentLineResult setAvailabilityLabel(String value) { this.AvailabilityLabel = value; return this; }
        public String getFreedFromProject() { return FreedFromProject; }
        public EstimateEquipmentLineResult setFreedFromProject(String value) { this.FreedFromProject = value; return this; }
        public Date getAvailableFrom() { return AvailableFrom; }
        public EstimateEquipmentLineResult setAvailableFrom(Date value) { this.AvailableFrom = value; return this; }
        public String getRateKey() { return RateKey; }
        public EstimateEquipmentLineResult setRateKey(String value) { this.RateKey = value; return this; }
        public String getRentalExplain() { return RentalExplain; }
        public EstimateEquipmentLineResult setRentalExplain(String value) { this.RentalExplain = value; return this; }
        public BigDecimal getUsageDays() { return UsageDays; }
        public EstimateEquipmentLineResult setUsageDays(BigDecimal value) { this.UsageDays = value; return this; }
        public BigDecimal getBilledDays() { return BilledDays; }
        public EstimateEquipmentLineResult setBilledDays(BigDecimal value) { this.BilledDays = value; return this; }
    }

    public static class EstimateMaterialLineResult
    {
        public String Name = null;
        public BigDecimal Quantity = null;
        public String Unit = null;
        public BigDecimal Rate = null;
        public Boolean NeedsRate = null;
        public BigDecimal Cost = null;
        public String RateKey = null;
        
        public String getName() { return Name; }
        public EstimateMaterialLineResult setName(String value) { this.Name = value; return this; }
        public BigDecimal getQuantity() { return Quantity; }
        public EstimateMaterialLineResult setQuantity(BigDecimal value) { this.Quantity = value; return this; }
        public String getUnit() { return Unit; }
        public EstimateMaterialLineResult setUnit(String value) { this.Unit = value; return this; }
        public BigDecimal getRate() { return Rate; }
        public EstimateMaterialLineResult setRate(BigDecimal value) { this.Rate = value; return this; }
        public Boolean isNeedsRate() { return NeedsRate; }
        public EstimateMaterialLineResult setNeedsRate(Boolean value) { this.NeedsRate = value; return this; }
        public BigDecimal getCost() { return Cost; }
        public EstimateMaterialLineResult setCost(BigDecimal value) { this.Cost = value; return this; }
        public String getRateKey() { return RateKey; }
        public EstimateMaterialLineResult setRateKey(String value) { this.RateKey = value; return this; }
    }

    public static class EstimateSubcontractLine
    {
        public String Vendor = null;
        public BigDecimal Amount = null;
        public String Scope = null;
        
        public String getVendor() { return Vendor; }
        public EstimateSubcontractLine setVendor(String value) { this.Vendor = value; return this; }
        public BigDecimal getAmount() { return Amount; }
        public EstimateSubcontractLine setAmount(BigDecimal value) { this.Amount = value; return this; }
        public String getScope() { return Scope; }
        public EstimateSubcontractLine setScope(String value) { this.Scope = value; return this; }
    }

}

Java ApplyAssemblyRequest 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/Rfp/{RfpDocumentUID}/Estimate/Jobs/{TaskSeq}/assembly HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ApplyAssemblyRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <RfpDocumentUID>00000000-0000-0000-0000-000000000000</RfpDocumentUID>
  <TaskSeq>0</TaskSeq>
  <TemplateUID>00000000-0000-0000-0000-000000000000</TemplateUID>
</ApplyAssemblyRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ApplyAssemblyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Headline>String</Headline>
  <Job>
    <BenchmarkBasis>String</BenchmarkBasis>
    <BenchmarkP25>0</BenchmarkP25>
    <BenchmarkP75>0</BenchmarkP75>
    <BenchmarkRateMax>0</BenchmarkRateMax>
    <BenchmarkRateMin>0</BenchmarkRateMin>
    <BenchmarkSampleSize>0</BenchmarkSampleSize>
    <BenchmarkUnitPrice>0</BenchmarkUnitPrice>
    <Category>String</Category>
    <Crew>
      <EstimateCrewLineResult>
        <Cost>0</Cost>
        <FringeCost>0</FringeCost>
        <HasOt>false</HasOt>
        <Hours>0</Hours>
        <NeedsRate>false</NeedsRate>
        <OtCost>0</OtCost>
        <OtHours>0</OtHours>
        <PremiumApplied>false</PremiumApplied>
        <Role>String</Role>
        <Rrop>0</Rrop>
        <StCost>0</StCost>
        <StHours>0</StHours>
      </EstimateCrewLineResult>
    </Crew>
    <CrewCost>0</CrewCost>
    <CrewPremiumApplied>false</CrewPremiumApplied>
    <Days>0</Days>
    <DependsOn xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>0</d3p1:int>
    </DependsOn>
    <Direct>0</Direct>
    <EffectiveProdPerDay>0</EffectiveProdPerDay>
    <Equipment>
      <EstimateEquipmentLineResult>
        <AvailabilityLabel>String</AvailabilityLabel>
        <AvailableFrom>0001-01-01T00:00:00</AvailableFrom>
        <BilledDays>0</BilledDays>
        <Cost>0</Cost>
        <FreedFromProject>String</FreedFromProject>
        <IsAvailabilityTracked>false</IsAvailabilityTracked>
        <IsOwned>false</IsOwned>
        <MobCost>0</MobCost>
        <Name>String</Name>
        <NeedsRate>false</NeedsRate>
        <Quantity>0</Quantity>
        <Rate>0</Rate>
        <RateKey>String</RateKey>
        <RentalExplain>String</RentalExplain>
        <UsageDays>0</UsageDays>
      </EstimateEquipmentLineResult>
    </Equipment>
    <EquipmentCost>0</EquipmentCost>
    <FringeCost>0</FringeCost>
    <HoursPerDay>0</HoursPerDay>
    <IsNight>false</IsNight>
    <ItemNo>String</ItemNo>
    <MaterialCost>0</MaterialCost>
    <Materials>
      <EstimateMaterialLineResult>
        <Cost>0</Cost>
        <Name>String</Name>
        <NeedsRate>false</NeedsRate>
        <Quantity>0</Quantity>
        <Rate>0</Rate>
        <RateKey>String</RateKey>
        <Unit>String</Unit>
      </EstimateMaterialLineResult>
    </Materials>
    <Name>String</Name>
    <OtFraction>0</OtFraction>
    <OverrideBasis>String</OverrideBasis>
    <PatternCode>String</PatternCode>
    <PricingBandLabel>String</PricingBandLabel>
    <PricingBandN>0</PricingBandN>
    <PricingBandP25>0</PricingBandP25>
    <PricingBandP75>0</PricingBandP75>
    <PricingBasis>String</PricingBasis>
    <PricingRuleId>String</PricingRuleId>
    <Quantity>0</Quantity>
    <ReferenceBasis>String</ReferenceBasis>
    <ReferenceDate>0001-01-01T00:00:00</ReferenceDate>
    <ReferenceN>0</ReferenceN>
    <ReferencePrice>0</ReferencePrice>
    <ReferenceRangeMax>0</ReferenceRangeMax>
    <ReferenceRangeMin>0</ReferenceRangeMin>
    <ReferenceUrl>String</ReferenceUrl>
    <Seq>0</Seq>
    <SourceRef>String</SourceRef>
    <SubcontractCost>0</SubcontractCost>
    <Subcontracts>
      <EstimateSubcontractLine>
        <Amount>0</Amount>
        <Scope>String</Scope>
        <Vendor>String</Vendor>
      </EstimateSubcontractLine>
    </Subcontracts>
    <Unit>String</Unit>
    <UnitPriceOverride>0</UnitPriceOverride>
    <WeeklyHours>0</WeeklyHours>
    <WorkPackage>
      <Constraints xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </Constraints>
      <Dod>
        <RfpWorkPackageService.DodItemView>
          <Checked>false</Checked>
          <Key>String</Key>
          <Source>String</Source>
          <Text>String</Text>
        </RfpWorkPackageService.DodItemView>
      </Dod>
      <HasPackage>false</HasPackage>
      <HoldPoints xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </HoldPoints>
      <LimitsOfWork>String</LimitsOfWork>
      <Provenance>String</Provenance>
      <RedraftNote>String</RedraftNote>
      <SafetyNote>String</SafetyNote>
      <Scope>String</Scope>
      <SpecBook>String</SpecBook>
      <SpecRefs>
        <RfpWorkPackageService.SpecRefView>
          <Section>String</Section>
          <Title>String</Title>
          <Url>String</Url>
        </RfpWorkPackageService.SpecRefView>
      </SpecRefs>
      <UserEdited>false</UserEdited>
    </WorkPackage>
    <Workdays>0</Workdays>
  </Job>
  <Quantity>0</Quantity>
  <Resourcing>
    <Equipment>
      <ResourcedEquipment>
        <DurationDays>0</DurationDays>
        <EquipmentID>0</EquipmentID>
        <EquipmentName>String</EquipmentName>
        <FixedDays>0</FixedDays>
        <IsInCatalog>false</IsInCatalog>
        <MakeModel>String</MakeModel>
        <Notes>String</Notes>
        <Quantity>0</Quantity>
        <SourceReference>String</SourceReference>
        <SuggestedEquipmentID>0</SuggestedEquipmentID>
        <SuggestedEquipmentName>String</SuggestedEquipmentName>
        <Utilization>0</Utilization>
      </ResourcedEquipment>
    </Equipment>
    <FixedDays>0</FixedDays>
    <Materials>
      <ResourcedMaterial>
        <IsInCatalog>false</IsInCatalog>
        <MakeModel>String</MakeModel>
        <MaterialID>0</MaterialID>
        <MaterialName>String</MaterialName>
        <Notes>String</Notes>
        <Quantity>0</Quantity>
        <QuantityPerUnit>0</QuantityPerUnit>
        <SourceReference>String</SourceReference>
        <SuggestedMaterialID>0</SuggestedMaterialID>
        <SuggestedMaterialName>String</SuggestedMaterialName>
        <Unit>String</Unit>
      </ResourcedMaterial>
    </Materials>
    <Positions>
      <ResourcedPosition>
        <ContactID>0</ContactID>
        <CrewSize>0</CrewSize>
        <FixedDays>0</FixedDays>
        <Headcount>0</Headcount>
        <Hours>0</Hours>
        <IsInCatalog>false</IsInCatalog>
        <Notes>String</Notes>
        <PositionTag>String</PositionTag>
        <SourceReference>String</SourceReference>
        <Utilization>0</Utilization>
      </ResourcedPosition>
    </Positions>
    <ProductionRatePerDay>0</ProductionRatePerDay>
    <ResourcedForQuantity>0</ResourcedForQuantity>
  </Resourcing>
  <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>
  <TaskSeq>0</TaskSeq>
  <TemplateName>String</TemplateName>
  <TemplateUID>00000000-0000-0000-0000-000000000000</TemplateUID>
  <Unit>String</Unit>
</ApplyAssemblyResponse>