Trendsic Platform Service

<back to all web services

EstimateRevisionCompareRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/Rfp/{RfpDocumentUID}/Estimate/Revisions/{RevisionA}/Compare/{RevisionB}
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 EstimateRevisionCompareRequest
            Public Overridable Property RfpDocumentUID As Guid
            Public Overridable Property RevisionA As Integer
            Public Overridable Property RevisionB As Integer
        End Class

        Public Partial Class EstimateRevisionCompareResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Compare As EstimateRevisionCompareResult
        End Class

        Public Partial Class EstimateRevisionCompareResult
            Public Overridable Property RevisionA As Integer
            Public Overridable Property RevisionB As Integer
            Public Overridable Property LabelA As String
            Public Overridable Property LabelB As String
            Public Overridable Property TotalA As Decimal
            Public Overridable Property TotalB As Decimal
            Public Overridable Property TotalDelta As Decimal
            Public Overridable Property BidTotalA As Decimal
            Public Overridable Property BidTotalB As Decimal
            Public Overridable Property Added As Integer
            Public Overridable Property Removed As Integer
            Public Overridable Property Changed As Integer
            Public Overridable Property Unchanged As Integer
            Public Overridable Property Lines As List(Of RevisionLineDelta) = New List(Of RevisionLineDelta)
            Public Overridable Property Scope As ProposalDiff
            Public Overridable Property Summary As String
        End Class

        Public Partial Class ProposalDiff
            Public Overridable Property TasksAdded As List(Of String) = New List(Of String)
            Public Overridable Property TasksRemoved As List(Of String) = New List(Of String)
            Public Overridable Property Tasks As List(Of TaskDiff) = New List(Of TaskDiff)
            Public Overridable Property HasChanges As Boolean
        End Class

        Public Partial Class RevisionLineDelta
            Public Overridable Property ItemNo As String
            Public Overridable Property Description As String
            Public Overridable Property Unit As String
            Public Overridable Property Change As String
            Public Overridable Property QuantityA As Decimal?
            Public Overridable Property QuantityB As Decimal?
            Public Overridable Property UnitPriceA As Decimal?
            Public Overridable Property UnitPriceB As Decimal?
            Public Overridable Property ExtensionA As Decimal
            Public Overridable Property ExtensionB As Decimal
            Public Overridable Property QuantityDelta As Decimal
            Public Overridable Property UnitPriceDelta As Decimal
            Public Overridable Property ExtensionDelta As Decimal
        End Class

        Public Partial Class TaskDiff
            Public Overridable Property TaskName As String
            Public Overridable Property PositionsAdded As List(Of String) = New List(Of String)
            Public Overridable Property PositionsRemoved As List(Of String) = New List(Of String)
            Public Overridable Property PositionsStaffed As List(Of String) = New List(Of String)
            Public Overridable Property EquipmentAdded As List(Of Integer) = New List(Of Integer)
            Public Overridable Property EquipmentRemoved As List(Of Integer) = New List(Of Integer)
            Public Overridable Property MaterialsAdded As List(Of Integer) = New List(Of Integer)
            Public Overridable Property MaterialsRemoved As List(Of Integer) = New List(Of Integer)
            Public Overridable Property HasChanges As Boolean
        End Class
    End Namespace
End Namespace

VB.NET EstimateRevisionCompareRequest DTOs

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

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/Rfp/{RfpDocumentUID}/Estimate/Revisions/{RevisionA}/Compare/{RevisionB} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Compare":{"RevisionA":0,"RevisionB":0,"LabelA":"String","LabelB":"String","TotalA":0,"TotalB":0,"TotalDelta":0,"BidTotalA":0,"BidTotalB":0,"Added":0,"Removed":0,"Changed":0,"Unchanged":0,"Lines":[{"ItemNo":"String","Description":"String","Unit":"String","Change":"String","QuantityA":0,"QuantityB":0,"UnitPriceA":0,"UnitPriceB":0,"ExtensionA":0,"ExtensionB":0,"QuantityDelta":0,"UnitPriceDelta":0,"ExtensionDelta":0}],"Scope":{"TasksAdded":["String"],"TasksRemoved":["String"],"Tasks":[{"TaskName":"String","PositionsAdded":["String"],"PositionsRemoved":["String"],"PositionsStaffed":["String"],"EquipmentAdded":[0],"EquipmentRemoved":[0],"MaterialsAdded":[0],"MaterialsRemoved":[0],"HasChanges":true}],"HasChanges":true},"Summary":"String"}}