| Requires any of the roles: | Agent, Administrator |
| 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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<EstimateRevisionCompareResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Compare>
<Added>0</Added>
<BidTotalA>0</BidTotalA>
<BidTotalB>0</BidTotalB>
<Changed>0</Changed>
<LabelA>String</LabelA>
<LabelB>String</LabelB>
<Lines>
<RevisionLineDelta>
<Change>String</Change>
<Description>String</Description>
<ExtensionA>0</ExtensionA>
<ExtensionB>0</ExtensionB>
<ItemNo>String</ItemNo>
<QuantityA>0</QuantityA>
<QuantityB>0</QuantityB>
<Unit>String</Unit>
<UnitPriceA>0</UnitPriceA>
<UnitPriceB>0</UnitPriceB>
</RevisionLineDelta>
</Lines>
<Removed>0</Removed>
<RevisionA>0</RevisionA>
<RevisionB>0</RevisionB>
<Scope>
<Tasks>
<TaskDiff>
<EquipmentAdded xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:int>0</d6p1:int>
</EquipmentAdded>
<EquipmentRemoved xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:int>0</d6p1:int>
</EquipmentRemoved>
<MaterialsAdded xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:int>0</d6p1:int>
</MaterialsAdded>
<MaterialsRemoved xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:int>0</d6p1:int>
</MaterialsRemoved>
<PositionsAdded xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</PositionsAdded>
<PositionsRemoved xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</PositionsRemoved>
<PositionsStaffed xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</PositionsStaffed>
<TaskName>String</TaskName>
</TaskDiff>
</Tasks>
<TasksAdded xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</TasksAdded>
<TasksRemoved xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</TasksRemoved>
</Scope>
<Summary>String</Summary>
<TotalA>0</TotalA>
<TotalB>0</TotalB>
<Unchanged>0</Unchanged>
</Compare>
<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>
</EstimateRevisionCompareResponse>