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
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class AddendaChange
            Public Overridable Property ChangeId As String
            Public Overridable Property ChangeType As String
            Public Overridable Property TargetSeq As Integer?
            Public Overridable Property ItemNumber As String
            Public Overridable Property ItemName As String
            Public Overridable Property Field As String
            Public Overridable Property OldValue As String
            Public Overridable Property NewValue As String
            Public Overridable Property Description As String
            Public Overridable Property Status As String
        End Class

        Public Partial Class AddendaChangeSet
            Public Overridable Property ChangeSetId As String
            Public Overridable Property SourceRfpDocumentID As Integer
            Public Overridable Property SourceFileName As String
            Public Overridable Property DocumentType As String
            Public Overridable Property ExtractedAtUtc As Date?
            Public Overridable Property Summary As String
            Public Overridable Property Changes As List(Of AddendaChange) = New List(Of AddendaChange)
        End Class

        Public Partial Class CostRange
            Public Overridable Property Min As Double
            Public Overridable Property Max As Double
            Public Overridable Property Mid As Double
        End Class

        Public Partial Class PricedEquipment
            Public Overridable Property EquipmentID As Integer
            Public Overridable Property EquipmentName As String
            Public Overridable Property Quantity As Double
            Public Overridable Property DurationDays As Double?
            Public Overridable Property RateType As String
            Public Overridable Property BilledRate As Double?
            Public Overridable Property CostRate As Double?
            Public Overridable Property HasRate As Boolean
            Public Overridable Property IsInCatalog As Boolean
            Public Overridable Property Cost As Double
            Public Overridable Property CompanyCost As Double
            Public Overridable Property Margin As Double
        End Class

        Public Partial Class PricedMaterial
            Public Overridable Property MaterialID As Integer
            Public Overridable Property MaterialName As String
            Public Overridable Property Quantity As Double
            Public Overridable Property UnitCost As Double?
            Public Overridable Property HasRate As Boolean
            Public Overridable Property IsInCatalog As Boolean
            Public Overridable Property Cost As Double
        End Class

        Public Partial Class PricedPosition
            Public Overridable Property PositionTag As String
            Public Overridable Property Hours As Double
            Public Overridable Property HasInternalRate As Boolean
            Public Overridable Property RateMin As Double?
            Public Overridable Property RateMax As Double?
            Public Overridable Property RateAvg As Double?
            Public Overridable Property ContactCount As Integer
            Public Overridable Property Cost As CostRange
            Public Overridable Property MarketRateReference As Double?
        End Class

        Public Partial Class PricedProposal
            Public Overridable Property RfpDocumentID As Integer
            Public Overridable Property ProjectName As String
            Public Overridable Property Currency As String
            Public Overridable Property Tasks As List(Of PricedTask) = New List(Of PricedTask)
            Public Overridable Property Total As CostRange
            Public Overridable Property PositionsNeedingRate As Integer
            Public Overridable Property EquipmentNotInCatalog As Integer
            Public Overridable Property MaterialsNotInCatalog As Integer
            Public Overridable Property PositionsNotInCatalog As Integer
            Public Overridable Property EquipmentMargin As Double
        End Class

        Public Partial Class PricedTask
            Public Overridable Property Name As String
            Public Overridable Property Category As String
            Public Overridable Property Positions As List(Of PricedPosition) = New List(Of PricedPosition)
            Public Overridable Property Equipment As List(Of PricedEquipment) = New List(Of PricedEquipment)
            Public Overridable Property Materials As List(Of PricedMaterial) = New List(Of PricedMaterial)
            Public Overridable Property Subtotal As CostRange
        End Class

        Public Partial Class ProjectProposal
            Public Overridable Property RfpDocumentID As Integer
            Public Overridable Property Mode As String
            Public Overridable Property ProjectID As Integer?
            Public Overridable Property ChangeOrderID As Integer?
            Public Overridable Property ProjectName As String
            Public Overridable Property ClientName As String
            Public Overridable Property ProjectType As String
            Public Overridable Property ProjectLocation As String
            Public Overridable Property Scope As String
            Public Overridable Property ProjectDescription As String
            Public Overridable Property ContractDurationDays As Integer?
            Public Overridable Property BidDueDate As String
            Public Overridable Property EstimatedStartDate As Date?
            Public Overridable Property EstimatedEndDate As Date?
            Public Overridable Property Tasks As List(Of ProposedTask) = New List(Of ProposedTask)
            Public Overridable Property PendingAddendaDiffs As List(Of AddendaChangeSet) = New List(Of AddendaChangeSet)
            Public Overridable Property WageDeterminations As List(Of WageDeterminationResult) = New List(Of WageDeterminationResult)
        End Class

        Public Partial Class ProposedTask
            Public Overridable Property Seq As Integer
            Public Overridable Property Name As String
            Public Overridable Property Category As String
            Public Overridable Property Quantity As Double?
            Public Overridable Property Unit As String
            Public Overridable Property SourceItemNumber As String
            Public Overridable Property SourceReference As String
            Public Overridable Property Notes As String
            Public Overridable Property Resourcing As TaskResourcing
            Public Overridable Property DurationDays As Double?
            Public Overridable Property DependsOn As List(Of Integer) = New List(Of Integer)
            Public Overridable Property EstimatedStartDate As Date?
            Public Overridable Property EstimatedEndDate As Date?
            Public Overridable Property WorkPackage As TaskWorkPackage
            Public Overridable Property CreatedJobID As Integer?
        End Class

        Public Partial Class ResourcedEquipment
            Public Overridable Property EquipmentID As Integer
            Public Overridable Property EquipmentName As String
            Public Overridable Property MakeModel As String
            Public Overridable Property Quantity As Double?
            Public Overridable Property DurationDays As Double?
            Public Overridable Property Utilization As Double?
            Public Overridable Property FixedDays As Double?
            Public Overridable Property SourceReference As String
            Public Overridable Property Notes As String
            Public Overridable Property IsInCatalog As Boolean
            Public Overridable Property SuggestedEquipmentID As Integer
            Public Overridable Property SuggestedEquipmentName As String
        End Class

        Public Partial Class ResourcedMaterial
            Public Overridable Property MaterialID As Integer
            Public Overridable Property MaterialName As String
            Public Overridable Property MakeModel As String
            Public Overridable Property Quantity As Double?
            Public Overridable Property QuantityPerUnit As Double?
            Public Overridable Property Unit As String
            Public Overridable Property SourceReference As String
            Public Overridable Property Notes As String
            Public Overridable Property IsInCatalog As Boolean
            Public Overridable Property SuggestedMaterialID As Integer
            Public Overridable Property SuggestedMaterialName As String
        End Class

        Public Partial Class ResourcedPosition
            Public Overridable Property PositionTag As String
            Public Overridable Property Hours As Double?
            Public Overridable Property CrewSize As Double?
            Public Overridable Property Utilization As Double?
            Public Overridable Property FixedDays As Double?
            Public Overridable Property Headcount As Integer?
            Public Overridable Property SourceReference As String
            Public Overridable Property Notes As String
            Public Overridable Property IsInCatalog As Boolean
            Public Overridable Property ContactID As Integer?
        End Class

        Public Partial Class RfpPricePreviewRequest
            Public Overridable Property Proposal As ProjectProposal
        End Class

        Public Partial Class RfpPricingResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property RfpDocumentID As Integer
            Public Overridable Property Pricing As PricedProposal
        End Class

        Public Partial Class TaskResourcing
            Public Overridable Property Positions As List(Of ResourcedPosition) = New List(Of ResourcedPosition)
            Public Overridable Property Equipment As List(Of ResourcedEquipment) = New List(Of ResourcedEquipment)
            Public Overridable Property Materials As List(Of ResourcedMaterial) = New List(Of ResourcedMaterial)
            Public Overridable Property ResourcedForQuantity As Double?
            Public Overridable Property ProductionRatePerDay As Double?
            Public Overridable Property FixedDays As Double?
        End Class

        Public Partial Class TaskWorkPackage
            Public Overridable Property Scope As String
            Public Overridable Property LimitsOfWork As String
            Public Overridable Property SpecRefs As List(Of WorkPackageSpecRef) = New List(Of WorkPackageSpecRef)
            Public Overridable Property Constraints As List(Of String) = New List(Of String)
            Public Overridable Property HoldPoints As List(Of String) = New List(Of String)
            Public Overridable Property DefinitionOfDone As List(Of String) = New List(Of String)
            Public Overridable Property SafetyNote As String
            Public Overridable Property RfpRef As String
            Public Overridable Property Confidence As Integer?
            Public Overridable Property SpecBook As String
            Public Overridable Property UserScope As String
            Public Overridable Property DodRemoved As List(Of Integer) = New List(Of Integer)
            Public Overridable Property DodExtra As List(Of String) = New List(Of String)
            Public Overridable Property UserEdited As Boolean
            Public Overridable Property DodChecked As List(Of String) = New List(Of String)
            Public Overridable Property RedraftNote As String
        End Class

        Public Partial Class WageClassification
            Public Overridable Property Title As String
            Public Overridable Property BaseRate As Decimal?
            Public Overridable Property FringeRate As Decimal?
            Public Overridable Property ParishNote As String
            Public Overridable Property SourceLine As String
            Public Overridable Property BenchmarkFringeRate As Decimal?
            Public Overridable Property FringeCompareNote As String
        End Class

        Public Partial Class WageDeterminationResult
            Public Overridable Property SourceRfpDocumentID As Integer
            Public Overridable Property SourceFileName As String
            Public Overridable Property WdNumber As String
            Public Overridable Property ExtractedAtUtc As Date?
            Public Overridable Property Classifications As List(Of WageClassification) = New List(Of WageClassification)
            Public Overridable Property Source As String
            Public Overridable Property IsTrustworthy As Boolean
            Public Overridable Property ExecutiveOrderFloor As Decimal?
            Public Overridable Property PublishedDate As String
            Public Overridable Property ProjectParish As String
            Public Overridable Property Warnings As List(Of String) = New List(Of String)
        End Class

        Public Partial Class WorkPackageSpecRef
            Public Overridable Property Section As String
            Public Overridable Property Title As String
        End Class
    End Namespace
End Namespace

VB.NET RfpPricePreviewRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
Content-Type: application/json
Content-Length: length

{"Proposal":{"RfpDocumentID":0,"Mode":"String","ProjectID":0,"ChangeOrderID":0,"ProjectName":"String","ClientName":"String","ProjectType":"String","ProjectLocation":"String","Scope":"String","ProjectDescription":"String","ContractDurationDays":0,"BidDueDate":"String","EstimatedStartDate":"0001-01-01T00:00:00.0000000","EstimatedEndDate":"0001-01-01T00:00:00.0000000","Tasks":[{"Seq":0,"Name":"String","Category":"String","Quantity":0,"Unit":"String","SourceItemNumber":"String","SourceReference":"String","Notes":"String","Resourcing":{"Positions":[{"PositionTag":"String","Hours":0,"CrewSize":0,"Utilization":0,"FixedDays":0,"Headcount":0,"SourceReference":"String","Notes":"String","IsInCatalog":false,"ContactID":0}],"Equipment":[{"EquipmentID":0,"EquipmentName":"String","MakeModel":"String","Quantity":0,"DurationDays":0,"Utilization":0,"FixedDays":0,"SourceReference":"String","Notes":"String","IsInCatalog":false,"SuggestedEquipmentID":0,"SuggestedEquipmentName":"String"}],"Materials":[{"MaterialID":0,"MaterialName":"String","MakeModel":"String","Quantity":0,"QuantityPerUnit":0,"Unit":"String","SourceReference":"String","Notes":"String","IsInCatalog":false,"SuggestedMaterialID":0,"SuggestedMaterialName":"String"}],"ResourcedForQuantity":0,"ProductionRatePerDay":0,"FixedDays":0},"DurationDays":0,"DependsOn":[0],"EstimatedStartDate":"0001-01-01T00:00:00.0000000","EstimatedEndDate":"0001-01-01T00:00:00.0000000","WorkPackage":{"Scope":"String","LimitsOfWork":"String","SpecRefs":[{"Section":"String","Title":"String"}],"Constraints":["String"],"HoldPoints":["String"],"DefinitionOfDone":["String"],"SafetyNote":"String","RfpRef":"String","Confidence":0,"SpecBook":"String","UserScope":"String","DodRemoved":[0],"DodExtra":["String"],"UserEdited":false,"DodChecked":["String"],"RedraftNote":"String"},"CreatedJobID":0}],"PendingAddendaDiffs":[{"ChangeSetId":"String","SourceRfpDocumentID":0,"SourceFileName":"String","DocumentType":"String","ExtractedAtUtc":"0001-01-01T00:00:00.0000000","Summary":"String","Changes":[{"ChangeId":"String","ChangeType":"String","TargetSeq":0,"ItemNumber":"String","ItemName":"String","Field":"String","OldValue":"String","NewValue":"String","Description":"String","Status":"String"}]}],"WageDeterminations":[{"SourceRfpDocumentID":0,"SourceFileName":"String","WdNumber":"String","ExtractedAtUtc":"0001-01-01T00:00:00.0000000","Classifications":[{"Title":"String","BaseRate":0,"FringeRate":0,"ParishNote":"String","SourceLine":"String","BenchmarkFringeRate":0,"FringeCompareNote":"String"}],"Source":"String","IsTrustworthy":false,"ExecutiveOrderFloor":0,"PublishedDate":"String","ProjectParish":"String","Warnings":["String"]}]}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"RfpDocumentID":0,"Pricing":{"RfpDocumentID":0,"ProjectName":"String","Currency":"String","Tasks":[{"Name":"String","Category":"String","Positions":[{"PositionTag":"String","Hours":0,"HasInternalRate":false,"RateMin":0,"RateMax":0,"RateAvg":0,"ContactCount":0,"Cost":{"Min":0,"Max":0,"Mid":0},"MarketRateReference":0}],"Equipment":[{"EquipmentID":0,"EquipmentName":"String","Quantity":0,"DurationDays":0,"RateType":"String","BilledRate":0,"CostRate":0,"HasRate":false,"IsInCatalog":false,"Cost":0,"CompanyCost":0,"Margin":0}],"Materials":[{"MaterialID":0,"MaterialName":"String","Quantity":0,"UnitCost":0,"HasRate":false,"IsInCatalog":false,"Cost":0}],"Subtotal":{"Min":0,"Max":0,"Mid":0}}],"Total":{"Min":0,"Max":0,"Mid":0},"PositionsNeedingRate":0,"EquipmentNotInCatalog":0,"MaterialsNotInCatalog":0,"PositionsNotInCatalog":0,"EquipmentMargin":0}}