| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/Rfp/{RfpDocumentUID}/Pricing |
|---|
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 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 RfpPricingRequest
Public Overridable Property RfpDocumentUID As Guid
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
End Namespace
End Namespace
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/Rfp/{RfpDocumentUID}/Pricing HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
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}}