| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/Rfp/{RfpDocumentUID}/Pricing |
|---|
namespace CRM.AgencyPlatform.API.Internal
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type CostRange() =
member val Min:Double = new Double() with get,set
member val Max:Double = new Double() with get,set
member val Mid:Double = new Double() with get,set
[<AllowNullLiteral>]
type PricedPosition() =
member val PositionTag:String = null with get,set
member val Hours:Double = new Double() with get,set
member val HasInternalRate:Boolean = new Boolean() with get,set
member val RateMin:Nullable<Double> = new Nullable<Double>() with get,set
member val RateMax:Nullable<Double> = new Nullable<Double>() with get,set
member val RateAvg:Nullable<Double> = new Nullable<Double>() with get,set
member val ContactCount:Int32 = new Int32() with get,set
member val Cost:CostRange = null with get,set
member val MarketRateReference:Nullable<Double> = new Nullable<Double>() with get,set
[<AllowNullLiteral>]
type PricedEquipment() =
member val EquipmentID:Int32 = new Int32() with get,set
member val EquipmentName:String = null with get,set
member val Quantity:Double = new Double() with get,set
member val DurationDays:Nullable<Double> = new Nullable<Double>() with get,set
member val RateType:String = null with get,set
member val BilledRate:Nullable<Double> = new Nullable<Double>() with get,set
member val CostRate:Nullable<Double> = new Nullable<Double>() with get,set
member val HasRate:Boolean = new Boolean() with get,set
member val IsInCatalog:Boolean = new Boolean() with get,set
member val Cost:Double = new Double() with get,set
member val CompanyCost:Double = new Double() with get,set
member val Margin:Double = new Double() with get,set
[<AllowNullLiteral>]
type PricedMaterial() =
member val MaterialID:Int32 = new Int32() with get,set
member val MaterialName:String = null with get,set
member val Quantity:Double = new Double() with get,set
member val UnitCost:Nullable<Double> = new Nullable<Double>() with get,set
member val HasRate:Boolean = new Boolean() with get,set
member val IsInCatalog:Boolean = new Boolean() with get,set
member val Cost:Double = new Double() with get,set
[<AllowNullLiteral>]
type PricedTask() =
member val Name:String = null with get,set
member val Category:String = null with get,set
member val Positions:ResizeArray<PricedPosition> = new ResizeArray<PricedPosition>() with get,set
member val Equipment:ResizeArray<PricedEquipment> = new ResizeArray<PricedEquipment>() with get,set
member val Materials:ResizeArray<PricedMaterial> = new ResizeArray<PricedMaterial>() with get,set
member val Subtotal:CostRange = null with get,set
[<AllowNullLiteral>]
type PricedProposal() =
member val RfpDocumentID:Int32 = new Int32() with get,set
member val ProjectName:String = null with get,set
member val Currency:String = null with get,set
member val Tasks:ResizeArray<PricedTask> = new ResizeArray<PricedTask>() with get,set
member val Total:CostRange = null with get,set
member val PositionsNeedingRate:Int32 = new Int32() with get,set
member val EquipmentNotInCatalog:Int32 = new Int32() with get,set
member val MaterialsNotInCatalog:Int32 = new Int32() with get,set
member val PositionsNotInCatalog:Int32 = new Int32() with get,set
member val EquipmentMargin:Double = new Double() with get,set
[<AllowNullLiteral>]
type RfpPricingResponse() =
member val ResponseStatus:ResponseStatus = null with get,set
member val RfpDocumentID:Int32 = new Int32() with get,set
member val Pricing:PricedProposal = null with get,set
[<AllowNullLiteral>]
type RfpPricingRequest() =
member val RfpDocumentUID:Guid = new Guid() with get,set
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}/Pricing HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
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>