Trendsic Platform Service

<back to all web services

RfpPricePreviewRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
POST,OPTIONS/v1/Rfp/PricePreview
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class RfpPricePreviewRequest
{
    open var Proposal:ProjectProposal? = null
}

open class ProjectProposal
{
    open var RfpDocumentID:Int? = null
    open var Mode:String? = null
    open var ProjectID:Int? = null
    open var ChangeOrderID:Int? = null
    open var ProjectName:String? = null
    open var ClientName:String? = null
    open var ProjectType:String? = null
    open var ProjectLocation:String? = null
    open var Scope:String? = null
    open var ProjectDescription:String? = null
    open var ContractDurationDays:Int? = null
    open var BidDueDate:String? = null
    open var EstimatedStartDate:Date? = null
    open var EstimatedEndDate:Date? = null
    open var Tasks:ArrayList<ProposedTask> = ArrayList<ProposedTask>()
    open var PendingAddendaDiffs:ArrayList<AddendaChangeSet> = ArrayList<AddendaChangeSet>()
    open var WageDeterminations:ArrayList<WageDeterminationResult> = ArrayList<WageDeterminationResult>()
}

open class ProposedTask
{
    open var Seq:Int? = null
    open var Name:String? = null
    open var Category:String? = null
    open var Quantity:Double? = null
    open var Unit:String? = null
    open var SourceItemNumber:String? = null
    open var SourceReference:String? = null
    open var Notes:String? = null
    open var Resourcing:TaskResourcing? = null
    open var DurationDays:Double? = null
    open var DependsOn:ArrayList<Int> = ArrayList<Int>()
    open var EstimatedStartDate:Date? = null
    open var EstimatedEndDate:Date? = null
    open var WorkPackage:TaskWorkPackage? = null
    open var CreatedJobID:Int? = null
}

open class TaskResourcing
{
    open var Positions:ArrayList<ResourcedPosition> = ArrayList<ResourcedPosition>()
    open var Equipment:ArrayList<ResourcedEquipment> = ArrayList<ResourcedEquipment>()
    open var Materials:ArrayList<ResourcedMaterial> = ArrayList<ResourcedMaterial>()
    open var ResourcedForQuantity:Double? = null
    open var ProductionRatePerDay:Double? = null
    open var FixedDays:Double? = null
}

open class ResourcedPosition
{
    open var PositionTag:String? = null
    open var Hours:Double? = null
    open var CrewSize:Double? = null
    open var Utilization:Double? = null
    open var FixedDays:Double? = null
    open var Headcount:Int? = null
    open var SourceReference:String? = null
    open var Notes:String? = null
    open var IsInCatalog:Boolean? = null
    open var ContactID:Int? = null
}

open class ResourcedEquipment
{
    open var EquipmentID:Int? = null
    open var EquipmentName:String? = null
    open var MakeModel:String? = null
    open var Quantity:Double? = null
    open var DurationDays:Double? = null
    open var Utilization:Double? = null
    open var FixedDays:Double? = null
    open var SourceReference:String? = null
    open var Notes:String? = null
    open var IsInCatalog:Boolean? = null
    open var SuggestedEquipmentID:Int? = null
    open var SuggestedEquipmentName:String? = null
}

open class ResourcedMaterial
{
    open var MaterialID:Int? = null
    open var MaterialName:String? = null
    open var MakeModel:String? = null
    open var Quantity:Double? = null
    open var QuantityPerUnit:Double? = null
    open var Unit:String? = null
    open var SourceReference:String? = null
    open var Notes:String? = null
    open var IsInCatalog:Boolean? = null
    open var SuggestedMaterialID:Int? = null
    open var SuggestedMaterialName:String? = null
}

open class TaskWorkPackage
{
    open var Scope:String? = null
    open var LimitsOfWork:String? = null
    open var SpecRefs:ArrayList<WorkPackageSpecRef> = ArrayList<WorkPackageSpecRef>()
    open var Constraints:ArrayList<String> = ArrayList<String>()
    open var HoldPoints:ArrayList<String> = ArrayList<String>()
    open var DefinitionOfDone:ArrayList<String> = ArrayList<String>()
    open var SafetyNote:String? = null
    open var RfpRef:String? = null
    open var Confidence:Int? = null
    open var SpecBook:String? = null
    open var UserScope:String? = null
    open var DodRemoved:ArrayList<Int> = ArrayList<Int>()
    open var DodExtra:ArrayList<String> = ArrayList<String>()
    open var UserEdited:Boolean? = null
    open var DodChecked:ArrayList<String> = ArrayList<String>()
    open var RedraftNote:String? = null
}

open class WorkPackageSpecRef
{
    open var Section:String? = null
    open var Title:String? = null
}

open class AddendaChangeSet
{
    open var ChangeSetId:String? = null
    open var SourceRfpDocumentID:Int? = null
    open var SourceFileName:String? = null
    open var DocumentType:String? = null
    open var ExtractedAtUtc:Date? = null
    open var Summary:String? = null
    open var Changes:ArrayList<AddendaChange> = ArrayList<AddendaChange>()
}

open class AddendaChange
{
    open var ChangeId:String? = null
    open var ChangeType:String? = null
    open var TargetSeq:Int? = null
    open var ItemNumber:String? = null
    open var ItemName:String? = null
    open var Field:String? = null
    open var OldValue:String? = null
    open var NewValue:String? = null
    open var Description:String? = null
    open var Status:String? = null
}

open class WageDeterminationResult
{
    open var SourceRfpDocumentID:Int? = null
    open var SourceFileName:String? = null
    open var WdNumber:String? = null
    open var ExtractedAtUtc:Date? = null
    open var Classifications:ArrayList<WageClassification> = ArrayList<WageClassification>()
    open var Source:String? = null
    open var IsTrustworthy:Boolean? = null
    open var ExecutiveOrderFloor:BigDecimal? = null
    open var PublishedDate:String? = null
    open var ProjectParish:String? = null
    open var Warnings:ArrayList<String> = ArrayList<String>()
}

open class WageClassification
{
    open var Title:String? = null
    open var BaseRate:BigDecimal? = null
    open var FringeRate:BigDecimal? = null
    open var ParishNote:String? = null
    open var SourceLine:String? = null
    open var BenchmarkFringeRate:BigDecimal? = null
    open var FringeCompareNote:String? = null
}

open class RfpPricingResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var RfpDocumentID:Int? = null
    open var Pricing:PricedProposal? = null
}

open class PricedProposal
{
    open var RfpDocumentID:Int? = null
    open var ProjectName:String? = null
    open var Currency:String? = null
    open var Tasks:ArrayList<PricedTask> = ArrayList<PricedTask>()
    open var Total:CostRange? = null
    open var PositionsNeedingRate:Int? = null
    open var EquipmentNotInCatalog:Int? = null
    open var MaterialsNotInCatalog:Int? = null
    open var PositionsNotInCatalog:Int? = null
    open var EquipmentMargin:Double? = null
}

open class PricedTask
{
    open var Name:String? = null
    open var Category:String? = null
    open var Positions:ArrayList<PricedPosition> = ArrayList<PricedPosition>()
    open var Equipment:ArrayList<PricedEquipment> = ArrayList<PricedEquipment>()
    open var Materials:ArrayList<PricedMaterial> = ArrayList<PricedMaterial>()
    open var Subtotal:CostRange? = null
}

open class PricedPosition
{
    open var PositionTag:String? = null
    open var Hours:Double? = null
    open var HasInternalRate:Boolean? = null
    open var RateMin:Double? = null
    open var RateMax:Double? = null
    open var RateAvg:Double? = null
    open var ContactCount:Int? = null
    open var Cost:CostRange? = null
    open var MarketRateReference:Double? = null
}

open class CostRange
{
    open var Min:Double? = null
    open var Max:Double? = null
    open var Mid:Double? = null
}

open class PricedEquipment
{
    open var EquipmentID:Int? = null
    open var EquipmentName:String? = null
    open var Quantity:Double? = null
    open var DurationDays:Double? = null
    open var RateType:String? = null
    open var BilledRate:Double? = null
    open var CostRate:Double? = null
    open var HasRate:Boolean? = null
    open var IsInCatalog:Boolean? = null
    open var Cost:Double? = null
    open var CompanyCost:Double? = null
    open var Margin:Double? = null
}

open class PricedMaterial
{
    open var MaterialID:Int? = null
    open var MaterialName:String? = null
    open var Quantity:Double? = null
    open var UnitCost:Double? = null
    open var HasRate:Boolean? = null
    open var IsInCatalog:Boolean? = null
    open var Cost:Double? = null
}

Kotlin RfpPricePreviewRequest 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/PricePreview HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<RfpPricePreviewRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Proposal>
    <BidDueDate>String</BidDueDate>
    <ChangeOrderID>0</ChangeOrderID>
    <ClientName>String</ClientName>
    <ContractDurationDays>0</ContractDurationDays>
    <EstimatedEndDate>0001-01-01T00:00:00</EstimatedEndDate>
    <EstimatedStartDate>0001-01-01T00:00:00</EstimatedStartDate>
    <Mode>String</Mode>
    <PendingAddendaDiffs>
      <AddendaChangeSet>
        <ChangeSetId>String</ChangeSetId>
        <Changes>
          <AddendaChange>
            <ChangeId>String</ChangeId>
            <ChangeType>String</ChangeType>
            <Description>String</Description>
            <Field>String</Field>
            <ItemName>String</ItemName>
            <ItemNumber>String</ItemNumber>
            <NewValue>String</NewValue>
            <OldValue>String</OldValue>
            <Status>String</Status>
            <TargetSeq>0</TargetSeq>
          </AddendaChange>
        </Changes>
        <DocumentType>String</DocumentType>
        <ExtractedAtUtc>0001-01-01T00:00:00</ExtractedAtUtc>
        <SourceFileName>String</SourceFileName>
        <SourceRfpDocumentID>0</SourceRfpDocumentID>
        <Summary>String</Summary>
      </AddendaChangeSet>
    </PendingAddendaDiffs>
    <ProjectDescription>String</ProjectDescription>
    <ProjectID>0</ProjectID>
    <ProjectLocation>String</ProjectLocation>
    <ProjectName>String</ProjectName>
    <ProjectType>String</ProjectType>
    <RfpDocumentID>0</RfpDocumentID>
    <Scope>String</Scope>
    <Tasks>
      <ProposedTask>
        <Category>String</Category>
        <CreatedJobID>0</CreatedJobID>
        <DependsOn xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>0</d5p1:int>
        </DependsOn>
        <DurationDays>0</DurationDays>
        <EstimatedEndDate>0001-01-01T00:00:00</EstimatedEndDate>
        <EstimatedStartDate>0001-01-01T00:00:00</EstimatedStartDate>
        <Name>String</Name>
        <Notes>String</Notes>
        <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>
        <Seq>0</Seq>
        <SourceItemNumber>String</SourceItemNumber>
        <SourceReference>String</SourceReference>
        <Unit>String</Unit>
        <WorkPackage>
          <Confidence>0</Confidence>
          <Constraints xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>String</d6p1:string>
          </Constraints>
          <DefinitionOfDone xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>String</d6p1:string>
          </DefinitionOfDone>
          <DodChecked xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>String</d6p1:string>
          </DodChecked>
          <DodExtra xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>String</d6p1:string>
          </DodExtra>
          <DodRemoved xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:int>0</d6p1:int>
          </DodRemoved>
          <HoldPoints xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>String</d6p1:string>
          </HoldPoints>
          <LimitsOfWork>String</LimitsOfWork>
          <RedraftNote>String</RedraftNote>
          <RfpRef>String</RfpRef>
          <SafetyNote>String</SafetyNote>
          <Scope>String</Scope>
          <SpecBook>String</SpecBook>
          <SpecRefs>
            <WorkPackageSpecRef>
              <Section>String</Section>
              <Title>String</Title>
            </WorkPackageSpecRef>
          </SpecRefs>
          <UserEdited>false</UserEdited>
          <UserScope>String</UserScope>
        </WorkPackage>
      </ProposedTask>
    </Tasks>
    <WageDeterminations>
      <WageDeterminationResult>
        <Classifications>
          <WageClassification>
            <BaseRate>0</BaseRate>
            <BenchmarkFringeRate>0</BenchmarkFringeRate>
            <FringeCompareNote>String</FringeCompareNote>
            <FringeRate>0</FringeRate>
            <ParishNote>String</ParishNote>
            <SourceLine>String</SourceLine>
            <Title>String</Title>
          </WageClassification>
        </Classifications>
        <ExecutiveOrderFloor>0</ExecutiveOrderFloor>
        <ExtractedAtUtc>0001-01-01T00:00:00</ExtractedAtUtc>
        <IsTrustworthy>false</IsTrustworthy>
        <ProjectParish>String</ProjectParish>
        <PublishedDate>String</PublishedDate>
        <Source>String</Source>
        <SourceFileName>String</SourceFileName>
        <SourceRfpDocumentID>0</SourceRfpDocumentID>
        <Warnings xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>String</d5p1:string>
        </Warnings>
        <WdNumber>String</WdNumber>
      </WageDeterminationResult>
    </WageDeterminations>
  </Proposal>
</RfpPricePreviewRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<RfpPricingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Pricing>
    <Currency>String</Currency>
    <EquipmentMargin>0</EquipmentMargin>
    <EquipmentNotInCatalog>0</EquipmentNotInCatalog>
    <MaterialsNotInCatalog>0</MaterialsNotInCatalog>
    <PositionsNeedingRate>0</PositionsNeedingRate>
    <PositionsNotInCatalog>0</PositionsNotInCatalog>
    <ProjectName>String</ProjectName>
    <RfpDocumentID>0</RfpDocumentID>
    <Tasks>
      <PricedTask>
        <Category>String</Category>
        <Equipment>
          <PricedEquipment>
            <BilledRate>0</BilledRate>
            <CompanyCost>0</CompanyCost>
            <Cost>0</Cost>
            <CostRate>0</CostRate>
            <DurationDays>0</DurationDays>
            <EquipmentID>0</EquipmentID>
            <EquipmentName>String</EquipmentName>
            <HasRate>false</HasRate>
            <IsInCatalog>false</IsInCatalog>
            <Quantity>0</Quantity>
            <RateType>String</RateType>
          </PricedEquipment>
        </Equipment>
        <Materials>
          <PricedMaterial>
            <Cost>0</Cost>
            <HasRate>false</HasRate>
            <IsInCatalog>false</IsInCatalog>
            <MaterialID>0</MaterialID>
            <MaterialName>String</MaterialName>
            <Quantity>0</Quantity>
            <UnitCost>0</UnitCost>
          </PricedMaterial>
        </Materials>
        <Name>String</Name>
        <Positions>
          <PricedPosition>
            <ContactCount>0</ContactCount>
            <Cost>
              <Max>0</Max>
              <Min>0</Min>
            </Cost>
            <HasInternalRate>false</HasInternalRate>
            <Hours>0</Hours>
            <MarketRateReference>0</MarketRateReference>
            <PositionTag>String</PositionTag>
            <RateAvg>0</RateAvg>
            <RateMax>0</RateMax>
            <RateMin>0</RateMin>
          </PricedPosition>
        </Positions>
        <Subtotal>
          <Max>0</Max>
          <Min>0</Min>
        </Subtotal>
      </PricedTask>
    </Tasks>
    <Total>
      <Max>0</Max>
      <Min>0</Min>
    </Total>
  </Pricing>
  <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>
  <RfpDocumentID>0</RfpDocumentID>
</RfpPricingResponse>