| Requires any of the roles: | Agent, Administrator |
| POST,OPTIONS | /v1/Rfp/{RfpDocumentUID}/Refine |
|---|
<?php namespace dtos;
use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};
class RfpLocation implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $Description=null,
/** @var string|null */
public ?string $City=null,
/** @var string|null */
public ?string $State=null,
/** @var string|null */
public ?string $Identifier=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Description'])) $this->Description = $o['Description'];
if (isset($o['City'])) $this->City = $o['City'];
if (isset($o['State'])) $this->State = $o['State'];
if (isset($o['Identifier'])) $this->Identifier = $o['Identifier'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Description)) $o['Description'] = $this->Description;
if (isset($this->City)) $o['City'] = $this->City;
if (isset($this->State)) $o['State'] = $this->State;
if (isset($this->Identifier)) $o['Identifier'] = $this->Identifier;
return empty($o) ? new class(){} : $o;
}
}
class RfpSchedule implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $BidDueDate=null,
/** @var string|null */
public ?string $EstimatedStartDate=null,
/** @var string|null */
public ?string $QuestionsDueDate=null,
/** @var int|null */
public ?int $ContractDurationDays=null,
/** @var string|null */
public ?string $Notes=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['BidDueDate'])) $this->BidDueDate = $o['BidDueDate'];
if (isset($o['EstimatedStartDate'])) $this->EstimatedStartDate = $o['EstimatedStartDate'];
if (isset($o['QuestionsDueDate'])) $this->QuestionsDueDate = $o['QuestionsDueDate'];
if (isset($o['ContractDurationDays'])) $this->ContractDurationDays = $o['ContractDurationDays'];
if (isset($o['Notes'])) $this->Notes = $o['Notes'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->BidDueDate)) $o['BidDueDate'] = $this->BidDueDate;
if (isset($this->EstimatedStartDate)) $o['EstimatedStartDate'] = $this->EstimatedStartDate;
if (isset($this->QuestionsDueDate)) $o['QuestionsDueDate'] = $this->QuestionsDueDate;
if (isset($this->ContractDurationDays)) $o['ContractDurationDays'] = $this->ContractDurationDays;
if (isset($this->Notes)) $o['Notes'] = $this->Notes;
return empty($o) ? new class(){} : $o;
}
}
class RfpLineItem implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $ItemNumber=null,
/** @var string|null */
public ?string $Description=null,
/** @var float|null */
public ?float $Quantity=null,
/** @var string|null */
public ?string $Unit=null,
/** @var string|null */
public ?string $Category=null,
/** @var string|null */
public ?string $SourceReference=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ItemNumber'])) $this->ItemNumber = $o['ItemNumber'];
if (isset($o['Description'])) $this->Description = $o['Description'];
if (isset($o['Quantity'])) $this->Quantity = $o['Quantity'];
if (isset($o['Unit'])) $this->Unit = $o['Unit'];
if (isset($o['Category'])) $this->Category = $o['Category'];
if (isset($o['SourceReference'])) $this->SourceReference = $o['SourceReference'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ItemNumber)) $o['ItemNumber'] = $this->ItemNumber;
if (isset($this->Description)) $o['Description'] = $this->Description;
if (isset($this->Quantity)) $o['Quantity'] = $this->Quantity;
if (isset($this->Unit)) $o['Unit'] = $this->Unit;
if (isset($this->Category)) $o['Category'] = $this->Category;
if (isset($this->SourceReference)) $o['SourceReference'] = $this->SourceReference;
return empty($o) ? new class(){} : $o;
}
}
class RfpBidConstraint implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $Constraint=null,
/** @var string|null */
public ?string $Detail=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Constraint'])) $this->Constraint = $o['Constraint'];
if (isset($o['Detail'])) $this->Detail = $o['Detail'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Constraint)) $o['Constraint'] = $this->Constraint;
if (isset($this->Detail)) $o['Detail'] = $this->Detail;
return empty($o) ? new class(){} : $o;
}
}
class RfpBrief implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $ProjectTitle=null,
/** @var string|null */
public ?string $SolicitationNumber=null,
/** @var string|null */
public ?string $IssuingOrganization=null,
/** @var string|null */
public ?string $ProjectType=null,
/** @var string|null */
public ?string $Summary=null,
/** @var array<RfpLocation>|null */
public ?array $Locations=null,
/** @var RfpSchedule|null */
public ?RfpSchedule $Schedule=null,
/** @var array<RfpLineItem>|null */
public ?array $LineItems=null,
/** @var array<RfpBidConstraint>|null */
public ?array $BidConstraints=null,
/** @var array<string>|null */
public ?array $SpecialRequirements=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ProjectTitle'])) $this->ProjectTitle = $o['ProjectTitle'];
if (isset($o['SolicitationNumber'])) $this->SolicitationNumber = $o['SolicitationNumber'];
if (isset($o['IssuingOrganization'])) $this->IssuingOrganization = $o['IssuingOrganization'];
if (isset($o['ProjectType'])) $this->ProjectType = $o['ProjectType'];
if (isset($o['Summary'])) $this->Summary = $o['Summary'];
if (isset($o['Locations'])) $this->Locations = JsonConverters::fromArray('RfpLocation', $o['Locations']);
if (isset($o['Schedule'])) $this->Schedule = JsonConverters::from('RfpSchedule', $o['Schedule']);
if (isset($o['LineItems'])) $this->LineItems = JsonConverters::fromArray('RfpLineItem', $o['LineItems']);
if (isset($o['BidConstraints'])) $this->BidConstraints = JsonConverters::fromArray('RfpBidConstraint', $o['BidConstraints']);
if (isset($o['SpecialRequirements'])) $this->SpecialRequirements = JsonConverters::fromArray('string', $o['SpecialRequirements']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ProjectTitle)) $o['ProjectTitle'] = $this->ProjectTitle;
if (isset($this->SolicitationNumber)) $o['SolicitationNumber'] = $this->SolicitationNumber;
if (isset($this->IssuingOrganization)) $o['IssuingOrganization'] = $this->IssuingOrganization;
if (isset($this->ProjectType)) $o['ProjectType'] = $this->ProjectType;
if (isset($this->Summary)) $o['Summary'] = $this->Summary;
if (isset($this->Locations)) $o['Locations'] = JsonConverters::toArray('RfpLocation', $this->Locations);
if (isset($this->Schedule)) $o['Schedule'] = JsonConverters::to('RfpSchedule', $this->Schedule);
if (isset($this->LineItems)) $o['LineItems'] = JsonConverters::toArray('RfpLineItem', $this->LineItems);
if (isset($this->BidConstraints)) $o['BidConstraints'] = JsonConverters::toArray('RfpBidConstraint', $this->BidConstraints);
if (isset($this->SpecialRequirements)) $o['SpecialRequirements'] = JsonConverters::toArray('string', $this->SpecialRequirements);
return empty($o) ? new class(){} : $o;
}
}
class ResourcedPosition implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $PositionTag=null,
/** @var float|null */
public ?float $Hours=null,
/** @var int|null */
public ?int $Headcount=null,
/** @var string|null */
public ?string $SourceReference=null,
/** @var string|null */
public ?string $Notes=null,
/** @var bool|null */
public ?bool $IsInCatalog=null,
/** @var int|null */
public ?int $ContactID=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['PositionTag'])) $this->PositionTag = $o['PositionTag'];
if (isset($o['Hours'])) $this->Hours = $o['Hours'];
if (isset($o['Headcount'])) $this->Headcount = $o['Headcount'];
if (isset($o['SourceReference'])) $this->SourceReference = $o['SourceReference'];
if (isset($o['Notes'])) $this->Notes = $o['Notes'];
if (isset($o['IsInCatalog'])) $this->IsInCatalog = $o['IsInCatalog'];
if (isset($o['ContactID'])) $this->ContactID = $o['ContactID'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->PositionTag)) $o['PositionTag'] = $this->PositionTag;
if (isset($this->Hours)) $o['Hours'] = $this->Hours;
if (isset($this->Headcount)) $o['Headcount'] = $this->Headcount;
if (isset($this->SourceReference)) $o['SourceReference'] = $this->SourceReference;
if (isset($this->Notes)) $o['Notes'] = $this->Notes;
if (isset($this->IsInCatalog)) $o['IsInCatalog'] = $this->IsInCatalog;
if (isset($this->ContactID)) $o['ContactID'] = $this->ContactID;
return empty($o) ? new class(){} : $o;
}
}
class ResourcedEquipment implements JsonSerializable
{
public function __construct(
/** @var int */
public int $EquipmentID=0,
/** @var string|null */
public ?string $EquipmentName=null,
/** @var string|null */
public ?string $MakeModel=null,
/** @var float|null */
public ?float $Quantity=null,
/** @var float|null */
public ?float $DurationDays=null,
/** @var string|null */
public ?string $SourceReference=null,
/** @var string|null */
public ?string $Notes=null,
/** @var bool|null */
public ?bool $IsInCatalog=null,
/** @var int */
public int $SuggestedEquipmentID=0,
/** @var string|null */
public ?string $SuggestedEquipmentName=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['EquipmentID'])) $this->EquipmentID = $o['EquipmentID'];
if (isset($o['EquipmentName'])) $this->EquipmentName = $o['EquipmentName'];
if (isset($o['MakeModel'])) $this->MakeModel = $o['MakeModel'];
if (isset($o['Quantity'])) $this->Quantity = $o['Quantity'];
if (isset($o['DurationDays'])) $this->DurationDays = $o['DurationDays'];
if (isset($o['SourceReference'])) $this->SourceReference = $o['SourceReference'];
if (isset($o['Notes'])) $this->Notes = $o['Notes'];
if (isset($o['IsInCatalog'])) $this->IsInCatalog = $o['IsInCatalog'];
if (isset($o['SuggestedEquipmentID'])) $this->SuggestedEquipmentID = $o['SuggestedEquipmentID'];
if (isset($o['SuggestedEquipmentName'])) $this->SuggestedEquipmentName = $o['SuggestedEquipmentName'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->EquipmentID)) $o['EquipmentID'] = $this->EquipmentID;
if (isset($this->EquipmentName)) $o['EquipmentName'] = $this->EquipmentName;
if (isset($this->MakeModel)) $o['MakeModel'] = $this->MakeModel;
if (isset($this->Quantity)) $o['Quantity'] = $this->Quantity;
if (isset($this->DurationDays)) $o['DurationDays'] = $this->DurationDays;
if (isset($this->SourceReference)) $o['SourceReference'] = $this->SourceReference;
if (isset($this->Notes)) $o['Notes'] = $this->Notes;
if (isset($this->IsInCatalog)) $o['IsInCatalog'] = $this->IsInCatalog;
if (isset($this->SuggestedEquipmentID)) $o['SuggestedEquipmentID'] = $this->SuggestedEquipmentID;
if (isset($this->SuggestedEquipmentName)) $o['SuggestedEquipmentName'] = $this->SuggestedEquipmentName;
return empty($o) ? new class(){} : $o;
}
}
class ResourcedMaterial implements JsonSerializable
{
public function __construct(
/** @var int */
public int $MaterialID=0,
/** @var string|null */
public ?string $MaterialName=null,
/** @var string|null */
public ?string $MakeModel=null,
/** @var float|null */
public ?float $Quantity=null,
/** @var string|null */
public ?string $Unit=null,
/** @var string|null */
public ?string $SourceReference=null,
/** @var string|null */
public ?string $Notes=null,
/** @var bool|null */
public ?bool $IsInCatalog=null,
/** @var int */
public int $SuggestedMaterialID=0,
/** @var string|null */
public ?string $SuggestedMaterialName=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['MaterialID'])) $this->MaterialID = $o['MaterialID'];
if (isset($o['MaterialName'])) $this->MaterialName = $o['MaterialName'];
if (isset($o['MakeModel'])) $this->MakeModel = $o['MakeModel'];
if (isset($o['Quantity'])) $this->Quantity = $o['Quantity'];
if (isset($o['Unit'])) $this->Unit = $o['Unit'];
if (isset($o['SourceReference'])) $this->SourceReference = $o['SourceReference'];
if (isset($o['Notes'])) $this->Notes = $o['Notes'];
if (isset($o['IsInCatalog'])) $this->IsInCatalog = $o['IsInCatalog'];
if (isset($o['SuggestedMaterialID'])) $this->SuggestedMaterialID = $o['SuggestedMaterialID'];
if (isset($o['SuggestedMaterialName'])) $this->SuggestedMaterialName = $o['SuggestedMaterialName'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->MaterialID)) $o['MaterialID'] = $this->MaterialID;
if (isset($this->MaterialName)) $o['MaterialName'] = $this->MaterialName;
if (isset($this->MakeModel)) $o['MakeModel'] = $this->MakeModel;
if (isset($this->Quantity)) $o['Quantity'] = $this->Quantity;
if (isset($this->Unit)) $o['Unit'] = $this->Unit;
if (isset($this->SourceReference)) $o['SourceReference'] = $this->SourceReference;
if (isset($this->Notes)) $o['Notes'] = $this->Notes;
if (isset($this->IsInCatalog)) $o['IsInCatalog'] = $this->IsInCatalog;
if (isset($this->SuggestedMaterialID)) $o['SuggestedMaterialID'] = $this->SuggestedMaterialID;
if (isset($this->SuggestedMaterialName)) $o['SuggestedMaterialName'] = $this->SuggestedMaterialName;
return empty($o) ? new class(){} : $o;
}
}
class TaskResourcing implements JsonSerializable
{
public function __construct(
/** @var array<ResourcedPosition>|null */
public ?array $Positions=null,
/** @var array<ResourcedEquipment>|null */
public ?array $Equipment=null,
/** @var array<ResourcedMaterial>|null */
public ?array $Materials=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Positions'])) $this->Positions = JsonConverters::fromArray('ResourcedPosition', $o['Positions']);
if (isset($o['Equipment'])) $this->Equipment = JsonConverters::fromArray('ResourcedEquipment', $o['Equipment']);
if (isset($o['Materials'])) $this->Materials = JsonConverters::fromArray('ResourcedMaterial', $o['Materials']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Positions)) $o['Positions'] = JsonConverters::toArray('ResourcedPosition', $this->Positions);
if (isset($this->Equipment)) $o['Equipment'] = JsonConverters::toArray('ResourcedEquipment', $this->Equipment);
if (isset($this->Materials)) $o['Materials'] = JsonConverters::toArray('ResourcedMaterial', $this->Materials);
return empty($o) ? new class(){} : $o;
}
}
class ProposedTask implements JsonSerializable
{
public function __construct(
/** @var int */
public int $Seq=0,
/** @var string|null */
public ?string $Name=null,
/** @var string|null */
public ?string $Category=null,
/** @var float|null */
public ?float $Quantity=null,
/** @var string|null */
public ?string $Unit=null,
/** @var string|null */
public ?string $SourceItemNumber=null,
/** @var string|null */
public ?string $SourceReference=null,
/** @var string|null */
public ?string $Notes=null,
/** @var TaskResourcing|null */
public ?TaskResourcing $Resourcing=null,
/** @var float|null */
public ?float $DurationDays=null,
/** @var array<int>|null */
public ?array $DependsOn=null,
/** @var DateTime|null */
public ?DateTime $EstimatedStartDate=null,
/** @var DateTime|null */
public ?DateTime $EstimatedEndDate=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Seq'])) $this->Seq = $o['Seq'];
if (isset($o['Name'])) $this->Name = $o['Name'];
if (isset($o['Category'])) $this->Category = $o['Category'];
if (isset($o['Quantity'])) $this->Quantity = $o['Quantity'];
if (isset($o['Unit'])) $this->Unit = $o['Unit'];
if (isset($o['SourceItemNumber'])) $this->SourceItemNumber = $o['SourceItemNumber'];
if (isset($o['SourceReference'])) $this->SourceReference = $o['SourceReference'];
if (isset($o['Notes'])) $this->Notes = $o['Notes'];
if (isset($o['Resourcing'])) $this->Resourcing = JsonConverters::from('TaskResourcing', $o['Resourcing']);
if (isset($o['DurationDays'])) $this->DurationDays = $o['DurationDays'];
if (isset($o['DependsOn'])) $this->DependsOn = JsonConverters::fromArray('int', $o['DependsOn']);
if (isset($o['EstimatedStartDate'])) $this->EstimatedStartDate = JsonConverters::from('DateTime', $o['EstimatedStartDate']);
if (isset($o['EstimatedEndDate'])) $this->EstimatedEndDate = JsonConverters::from('DateTime', $o['EstimatedEndDate']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Seq)) $o['Seq'] = $this->Seq;
if (isset($this->Name)) $o['Name'] = $this->Name;
if (isset($this->Category)) $o['Category'] = $this->Category;
if (isset($this->Quantity)) $o['Quantity'] = $this->Quantity;
if (isset($this->Unit)) $o['Unit'] = $this->Unit;
if (isset($this->SourceItemNumber)) $o['SourceItemNumber'] = $this->SourceItemNumber;
if (isset($this->SourceReference)) $o['SourceReference'] = $this->SourceReference;
if (isset($this->Notes)) $o['Notes'] = $this->Notes;
if (isset($this->Resourcing)) $o['Resourcing'] = JsonConverters::to('TaskResourcing', $this->Resourcing);
if (isset($this->DurationDays)) $o['DurationDays'] = $this->DurationDays;
if (isset($this->DependsOn)) $o['DependsOn'] = JsonConverters::toArray('int', $this->DependsOn);
if (isset($this->EstimatedStartDate)) $o['EstimatedStartDate'] = JsonConverters::to('DateTime', $this->EstimatedStartDate);
if (isset($this->EstimatedEndDate)) $o['EstimatedEndDate'] = JsonConverters::to('DateTime', $this->EstimatedEndDate);
return empty($o) ? new class(){} : $o;
}
}
class ProjectProposal implements JsonSerializable
{
public function __construct(
/** @var int */
public int $RfpDocumentID=0,
/** @var string|null */
public ?string $Mode=null,
/** @var int|null */
public ?int $ProjectID=null,
/** @var int|null */
public ?int $ChangeOrderID=null,
/** @var string|null */
public ?string $ProjectName=null,
/** @var string|null */
public ?string $ClientName=null,
/** @var string|null */
public ?string $ProjectType=null,
/** @var string|null */
public ?string $ProjectLocation=null,
/** @var string|null */
public ?string $Scope=null,
/** @var string|null */
public ?string $ProjectDescription=null,
/** @var int|null */
public ?int $ContractDurationDays=null,
/** @var string|null */
public ?string $BidDueDate=null,
/** @var DateTime|null */
public ?DateTime $EstimatedStartDate=null,
/** @var DateTime|null */
public ?DateTime $EstimatedEndDate=null,
/** @var array<ProposedTask>|null */
public ?array $Tasks=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['RfpDocumentID'])) $this->RfpDocumentID = $o['RfpDocumentID'];
if (isset($o['Mode'])) $this->Mode = $o['Mode'];
if (isset($o['ProjectID'])) $this->ProjectID = $o['ProjectID'];
if (isset($o['ChangeOrderID'])) $this->ChangeOrderID = $o['ChangeOrderID'];
if (isset($o['ProjectName'])) $this->ProjectName = $o['ProjectName'];
if (isset($o['ClientName'])) $this->ClientName = $o['ClientName'];
if (isset($o['ProjectType'])) $this->ProjectType = $o['ProjectType'];
if (isset($o['ProjectLocation'])) $this->ProjectLocation = $o['ProjectLocation'];
if (isset($o['Scope'])) $this->Scope = $o['Scope'];
if (isset($o['ProjectDescription'])) $this->ProjectDescription = $o['ProjectDescription'];
if (isset($o['ContractDurationDays'])) $this->ContractDurationDays = $o['ContractDurationDays'];
if (isset($o['BidDueDate'])) $this->BidDueDate = $o['BidDueDate'];
if (isset($o['EstimatedStartDate'])) $this->EstimatedStartDate = JsonConverters::from('DateTime', $o['EstimatedStartDate']);
if (isset($o['EstimatedEndDate'])) $this->EstimatedEndDate = JsonConverters::from('DateTime', $o['EstimatedEndDate']);
if (isset($o['Tasks'])) $this->Tasks = JsonConverters::fromArray('ProposedTask', $o['Tasks']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->RfpDocumentID)) $o['RfpDocumentID'] = $this->RfpDocumentID;
if (isset($this->Mode)) $o['Mode'] = $this->Mode;
if (isset($this->ProjectID)) $o['ProjectID'] = $this->ProjectID;
if (isset($this->ChangeOrderID)) $o['ChangeOrderID'] = $this->ChangeOrderID;
if (isset($this->ProjectName)) $o['ProjectName'] = $this->ProjectName;
if (isset($this->ClientName)) $o['ClientName'] = $this->ClientName;
if (isset($this->ProjectType)) $o['ProjectType'] = $this->ProjectType;
if (isset($this->ProjectLocation)) $o['ProjectLocation'] = $this->ProjectLocation;
if (isset($this->Scope)) $o['Scope'] = $this->Scope;
if (isset($this->ProjectDescription)) $o['ProjectDescription'] = $this->ProjectDescription;
if (isset($this->ContractDurationDays)) $o['ContractDurationDays'] = $this->ContractDurationDays;
if (isset($this->BidDueDate)) $o['BidDueDate'] = $this->BidDueDate;
if (isset($this->EstimatedStartDate)) $o['EstimatedStartDate'] = JsonConverters::to('DateTime', $this->EstimatedStartDate);
if (isset($this->EstimatedEndDate)) $o['EstimatedEndDate'] = JsonConverters::to('DateTime', $this->EstimatedEndDate);
if (isset($this->Tasks)) $o['Tasks'] = JsonConverters::toArray('ProposedTask', $this->Tasks);
return empty($o) ? new class(){} : $o;
}
}
class CostRange implements JsonSerializable
{
public function __construct(
/** @var float */
public float $Min=0.0,
/** @var float */
public float $Max=0.0,
/** @var float */
public float $Mid=0.0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Min'])) $this->Min = $o['Min'];
if (isset($o['Max'])) $this->Max = $o['Max'];
if (isset($o['Mid'])) $this->Mid = $o['Mid'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Min)) $o['Min'] = $this->Min;
if (isset($this->Max)) $o['Max'] = $this->Max;
if (isset($this->Mid)) $o['Mid'] = $this->Mid;
return empty($o) ? new class(){} : $o;
}
}
class PricedPosition implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $PositionTag=null,
/** @var float */
public float $Hours=0.0,
/** @var bool|null */
public ?bool $HasInternalRate=null,
/** @var float|null */
public ?float $RateMin=null,
/** @var float|null */
public ?float $RateMax=null,
/** @var float|null */
public ?float $RateAvg=null,
/** @var int */
public int $ContactCount=0,
/** @var CostRange|null */
public ?CostRange $Cost=null,
/** @var float|null */
public ?float $MarketRateReference=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['PositionTag'])) $this->PositionTag = $o['PositionTag'];
if (isset($o['Hours'])) $this->Hours = $o['Hours'];
if (isset($o['HasInternalRate'])) $this->HasInternalRate = $o['HasInternalRate'];
if (isset($o['RateMin'])) $this->RateMin = $o['RateMin'];
if (isset($o['RateMax'])) $this->RateMax = $o['RateMax'];
if (isset($o['RateAvg'])) $this->RateAvg = $o['RateAvg'];
if (isset($o['ContactCount'])) $this->ContactCount = $o['ContactCount'];
if (isset($o['Cost'])) $this->Cost = JsonConverters::from('CostRange', $o['Cost']);
if (isset($o['MarketRateReference'])) $this->MarketRateReference = $o['MarketRateReference'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->PositionTag)) $o['PositionTag'] = $this->PositionTag;
if (isset($this->Hours)) $o['Hours'] = $this->Hours;
if (isset($this->HasInternalRate)) $o['HasInternalRate'] = $this->HasInternalRate;
if (isset($this->RateMin)) $o['RateMin'] = $this->RateMin;
if (isset($this->RateMax)) $o['RateMax'] = $this->RateMax;
if (isset($this->RateAvg)) $o['RateAvg'] = $this->RateAvg;
if (isset($this->ContactCount)) $o['ContactCount'] = $this->ContactCount;
if (isset($this->Cost)) $o['Cost'] = JsonConverters::to('CostRange', $this->Cost);
if (isset($this->MarketRateReference)) $o['MarketRateReference'] = $this->MarketRateReference;
return empty($o) ? new class(){} : $o;
}
}
class PricedEquipment implements JsonSerializable
{
public function __construct(
/** @var int */
public int $EquipmentID=0,
/** @var string|null */
public ?string $EquipmentName=null,
/** @var float */
public float $Quantity=0.0,
/** @var float|null */
public ?float $DurationDays=null,
/** @var string|null */
public ?string $RateType=null,
/** @var float|null */
public ?float $BilledRate=null,
/** @var float|null */
public ?float $CostRate=null,
/** @var bool|null */
public ?bool $HasRate=null,
/** @var bool|null */
public ?bool $IsInCatalog=null,
/** @var float */
public float $Cost=0.0,
/** @var float */
public float $CompanyCost=0.0,
/** @var float */
public float $Margin=0.0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['EquipmentID'])) $this->EquipmentID = $o['EquipmentID'];
if (isset($o['EquipmentName'])) $this->EquipmentName = $o['EquipmentName'];
if (isset($o['Quantity'])) $this->Quantity = $o['Quantity'];
if (isset($o['DurationDays'])) $this->DurationDays = $o['DurationDays'];
if (isset($o['RateType'])) $this->RateType = $o['RateType'];
if (isset($o['BilledRate'])) $this->BilledRate = $o['BilledRate'];
if (isset($o['CostRate'])) $this->CostRate = $o['CostRate'];
if (isset($o['HasRate'])) $this->HasRate = $o['HasRate'];
if (isset($o['IsInCatalog'])) $this->IsInCatalog = $o['IsInCatalog'];
if (isset($o['Cost'])) $this->Cost = $o['Cost'];
if (isset($o['CompanyCost'])) $this->CompanyCost = $o['CompanyCost'];
if (isset($o['Margin'])) $this->Margin = $o['Margin'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->EquipmentID)) $o['EquipmentID'] = $this->EquipmentID;
if (isset($this->EquipmentName)) $o['EquipmentName'] = $this->EquipmentName;
if (isset($this->Quantity)) $o['Quantity'] = $this->Quantity;
if (isset($this->DurationDays)) $o['DurationDays'] = $this->DurationDays;
if (isset($this->RateType)) $o['RateType'] = $this->RateType;
if (isset($this->BilledRate)) $o['BilledRate'] = $this->BilledRate;
if (isset($this->CostRate)) $o['CostRate'] = $this->CostRate;
if (isset($this->HasRate)) $o['HasRate'] = $this->HasRate;
if (isset($this->IsInCatalog)) $o['IsInCatalog'] = $this->IsInCatalog;
if (isset($this->Cost)) $o['Cost'] = $this->Cost;
if (isset($this->CompanyCost)) $o['CompanyCost'] = $this->CompanyCost;
if (isset($this->Margin)) $o['Margin'] = $this->Margin;
return empty($o) ? new class(){} : $o;
}
}
class PricedMaterial implements JsonSerializable
{
public function __construct(
/** @var int */
public int $MaterialID=0,
/** @var string|null */
public ?string $MaterialName=null,
/** @var float */
public float $Quantity=0.0,
/** @var float|null */
public ?float $UnitCost=null,
/** @var bool|null */
public ?bool $HasRate=null,
/** @var bool|null */
public ?bool $IsInCatalog=null,
/** @var float */
public float $Cost=0.0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['MaterialID'])) $this->MaterialID = $o['MaterialID'];
if (isset($o['MaterialName'])) $this->MaterialName = $o['MaterialName'];
if (isset($o['Quantity'])) $this->Quantity = $o['Quantity'];
if (isset($o['UnitCost'])) $this->UnitCost = $o['UnitCost'];
if (isset($o['HasRate'])) $this->HasRate = $o['HasRate'];
if (isset($o['IsInCatalog'])) $this->IsInCatalog = $o['IsInCatalog'];
if (isset($o['Cost'])) $this->Cost = $o['Cost'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->MaterialID)) $o['MaterialID'] = $this->MaterialID;
if (isset($this->MaterialName)) $o['MaterialName'] = $this->MaterialName;
if (isset($this->Quantity)) $o['Quantity'] = $this->Quantity;
if (isset($this->UnitCost)) $o['UnitCost'] = $this->UnitCost;
if (isset($this->HasRate)) $o['HasRate'] = $this->HasRate;
if (isset($this->IsInCatalog)) $o['IsInCatalog'] = $this->IsInCatalog;
if (isset($this->Cost)) $o['Cost'] = $this->Cost;
return empty($o) ? new class(){} : $o;
}
}
class PricedTask implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $Name=null,
/** @var string|null */
public ?string $Category=null,
/** @var array<PricedPosition>|null */
public ?array $Positions=null,
/** @var array<PricedEquipment>|null */
public ?array $Equipment=null,
/** @var array<PricedMaterial>|null */
public ?array $Materials=null,
/** @var CostRange|null */
public ?CostRange $Subtotal=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Name'])) $this->Name = $o['Name'];
if (isset($o['Category'])) $this->Category = $o['Category'];
if (isset($o['Positions'])) $this->Positions = JsonConverters::fromArray('PricedPosition', $o['Positions']);
if (isset($o['Equipment'])) $this->Equipment = JsonConverters::fromArray('PricedEquipment', $o['Equipment']);
if (isset($o['Materials'])) $this->Materials = JsonConverters::fromArray('PricedMaterial', $o['Materials']);
if (isset($o['Subtotal'])) $this->Subtotal = JsonConverters::from('CostRange', $o['Subtotal']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Name)) $o['Name'] = $this->Name;
if (isset($this->Category)) $o['Category'] = $this->Category;
if (isset($this->Positions)) $o['Positions'] = JsonConverters::toArray('PricedPosition', $this->Positions);
if (isset($this->Equipment)) $o['Equipment'] = JsonConverters::toArray('PricedEquipment', $this->Equipment);
if (isset($this->Materials)) $o['Materials'] = JsonConverters::toArray('PricedMaterial', $this->Materials);
if (isset($this->Subtotal)) $o['Subtotal'] = JsonConverters::to('CostRange', $this->Subtotal);
return empty($o) ? new class(){} : $o;
}
}
class PricedProposal implements JsonSerializable
{
public function __construct(
/** @var int */
public int $RfpDocumentID=0,
/** @var string|null */
public ?string $ProjectName=null,
/** @var string|null */
public ?string $Currency=null,
/** @var array<PricedTask>|null */
public ?array $Tasks=null,
/** @var CostRange|null */
public ?CostRange $Total=null,
/** @var int */
public int $PositionsNeedingRate=0,
/** @var int */
public int $EquipmentNotInCatalog=0,
/** @var int */
public int $MaterialsNotInCatalog=0,
/** @var int */
public int $PositionsNotInCatalog=0,
/** @var float */
public float $EquipmentMargin=0.0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['RfpDocumentID'])) $this->RfpDocumentID = $o['RfpDocumentID'];
if (isset($o['ProjectName'])) $this->ProjectName = $o['ProjectName'];
if (isset($o['Currency'])) $this->Currency = $o['Currency'];
if (isset($o['Tasks'])) $this->Tasks = JsonConverters::fromArray('PricedTask', $o['Tasks']);
if (isset($o['Total'])) $this->Total = JsonConverters::from('CostRange', $o['Total']);
if (isset($o['PositionsNeedingRate'])) $this->PositionsNeedingRate = $o['PositionsNeedingRate'];
if (isset($o['EquipmentNotInCatalog'])) $this->EquipmentNotInCatalog = $o['EquipmentNotInCatalog'];
if (isset($o['MaterialsNotInCatalog'])) $this->MaterialsNotInCatalog = $o['MaterialsNotInCatalog'];
if (isset($o['PositionsNotInCatalog'])) $this->PositionsNotInCatalog = $o['PositionsNotInCatalog'];
if (isset($o['EquipmentMargin'])) $this->EquipmentMargin = $o['EquipmentMargin'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->RfpDocumentID)) $o['RfpDocumentID'] = $this->RfpDocumentID;
if (isset($this->ProjectName)) $o['ProjectName'] = $this->ProjectName;
if (isset($this->Currency)) $o['Currency'] = $this->Currency;
if (isset($this->Tasks)) $o['Tasks'] = JsonConverters::toArray('PricedTask', $this->Tasks);
if (isset($this->Total)) $o['Total'] = JsonConverters::to('CostRange', $this->Total);
if (isset($this->PositionsNeedingRate)) $o['PositionsNeedingRate'] = $this->PositionsNeedingRate;
if (isset($this->EquipmentNotInCatalog)) $o['EquipmentNotInCatalog'] = $this->EquipmentNotInCatalog;
if (isset($this->MaterialsNotInCatalog)) $o['MaterialsNotInCatalog'] = $this->MaterialsNotInCatalog;
if (isset($this->PositionsNotInCatalog)) $o['PositionsNotInCatalog'] = $this->PositionsNotInCatalog;
if (isset($this->EquipmentMargin)) $o['EquipmentMargin'] = $this->EquipmentMargin;
return empty($o) ? new class(){} : $o;
}
}
class CrewPlanLine implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $PositionTag=null,
/** @var int */
public int $Needed=0,
/** @var int */
public int $NaiveTotal=0,
/** @var int */
public int $TaskAssignments=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['PositionTag'])) $this->PositionTag = $o['PositionTag'];
if (isset($o['Needed'])) $this->Needed = $o['Needed'];
if (isset($o['NaiveTotal'])) $this->NaiveTotal = $o['NaiveTotal'];
if (isset($o['TaskAssignments'])) $this->TaskAssignments = $o['TaskAssignments'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->PositionTag)) $o['PositionTag'] = $this->PositionTag;
if (isset($this->Needed)) $o['Needed'] = $this->Needed;
if (isset($this->NaiveTotal)) $o['NaiveTotal'] = $this->NaiveTotal;
if (isset($this->TaskAssignments)) $o['TaskAssignments'] = $this->TaskAssignments;
return empty($o) ? new class(){} : $o;
}
}
class RfpRefineResponse implements JsonSerializable
{
public function __construct(
/** @var ResponseStatus|null */
public ?ResponseStatus $ResponseStatus=null,
/** @var int */
public int $RfpDocumentID=0,
/** @var string|null */
public ?string $Layer=null,
/** @var string|null */
public ?string $Mode=null,
/** @var int */
public int $TurnCount=0,
/** @var RfpBrief|null */
public ?RfpBrief $Brief=null,
/** @var ProjectProposal|null */
public ?ProjectProposal $Proposal=null,
/** @var PricedProposal|null */
public ?PricedProposal $Pricing=null,
/** @var array<CrewPlanLine>|null */
public ?array $CrewPlan=null,
/** @var int */
public int $CacheReadTokens=0,
/** @var int */
public int $CacheCreationTokens=0,
/** @var int */
public int $InputTokens=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ResponseStatus'])) $this->ResponseStatus = JsonConverters::from('ResponseStatus', $o['ResponseStatus']);
if (isset($o['RfpDocumentID'])) $this->RfpDocumentID = $o['RfpDocumentID'];
if (isset($o['Layer'])) $this->Layer = $o['Layer'];
if (isset($o['Mode'])) $this->Mode = $o['Mode'];
if (isset($o['TurnCount'])) $this->TurnCount = $o['TurnCount'];
if (isset($o['Brief'])) $this->Brief = JsonConverters::from('RfpBrief', $o['Brief']);
if (isset($o['Proposal'])) $this->Proposal = JsonConverters::from('ProjectProposal', $o['Proposal']);
if (isset($o['Pricing'])) $this->Pricing = JsonConverters::from('PricedProposal', $o['Pricing']);
if (isset($o['CrewPlan'])) $this->CrewPlan = JsonConverters::fromArray('CrewPlanLine', $o['CrewPlan']);
if (isset($o['CacheReadTokens'])) $this->CacheReadTokens = $o['CacheReadTokens'];
if (isset($o['CacheCreationTokens'])) $this->CacheCreationTokens = $o['CacheCreationTokens'];
if (isset($o['InputTokens'])) $this->InputTokens = $o['InputTokens'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ResponseStatus)) $o['ResponseStatus'] = JsonConverters::to('ResponseStatus', $this->ResponseStatus);
if (isset($this->RfpDocumentID)) $o['RfpDocumentID'] = $this->RfpDocumentID;
if (isset($this->Layer)) $o['Layer'] = $this->Layer;
if (isset($this->Mode)) $o['Mode'] = $this->Mode;
if (isset($this->TurnCount)) $o['TurnCount'] = $this->TurnCount;
if (isset($this->Brief)) $o['Brief'] = JsonConverters::to('RfpBrief', $this->Brief);
if (isset($this->Proposal)) $o['Proposal'] = JsonConverters::to('ProjectProposal', $this->Proposal);
if (isset($this->Pricing)) $o['Pricing'] = JsonConverters::to('PricedProposal', $this->Pricing);
if (isset($this->CrewPlan)) $o['CrewPlan'] = JsonConverters::toArray('CrewPlanLine', $this->CrewPlan);
if (isset($this->CacheReadTokens)) $o['CacheReadTokens'] = $this->CacheReadTokens;
if (isset($this->CacheCreationTokens)) $o['CacheCreationTokens'] = $this->CacheCreationTokens;
if (isset($this->InputTokens)) $o['InputTokens'] = $this->InputTokens;
return empty($o) ? new class(){} : $o;
}
}
class RfpRefineRequest implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $RfpDocumentUID=null,
/** @var string|null */
public ?string $Layer=null,
/** @var string|null */
public ?string $Mode=null,
/** @var string|null */
public ?string $Instruction=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['RfpDocumentUID'])) $this->RfpDocumentUID = $o['RfpDocumentUID'];
if (isset($o['Layer'])) $this->Layer = $o['Layer'];
if (isset($o['Mode'])) $this->Mode = $o['Mode'];
if (isset($o['Instruction'])) $this->Instruction = $o['Instruction'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->RfpDocumentUID)) $o['RfpDocumentUID'] = $this->RfpDocumentUID;
if (isset($this->Layer)) $o['Layer'] = $this->Layer;
if (isset($this->Mode)) $o['Mode'] = $this->Mode;
if (isset($this->Instruction)) $o['Instruction'] = $this->Instruction;
return empty($o) ? new class(){} : $o;
}
}
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.
POST /v1/Rfp/{RfpDocumentUID}/Refine HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<RfpRefineRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Instruction>String</Instruction>
<Layer>String</Layer>
<Mode>String</Mode>
<RfpDocumentUID>String</RfpDocumentUID>
</RfpRefineRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<RfpRefineResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Brief>
<BidConstraints>
<RfpBidConstraint>
<Constraint>String</Constraint>
<Detail>String</Detail>
</RfpBidConstraint>
</BidConstraints>
<IssuingOrganization>String</IssuingOrganization>
<LineItems>
<RfpLineItem>
<Category>String</Category>
<Description>String</Description>
<ItemNumber>String</ItemNumber>
<Quantity>0</Quantity>
<SourceReference>String</SourceReference>
<Unit>String</Unit>
</RfpLineItem>
</LineItems>
<Locations>
<RfpLocation>
<City>String</City>
<Description>String</Description>
<Identifier>String</Identifier>
<State>String</State>
</RfpLocation>
</Locations>
<ProjectTitle>String</ProjectTitle>
<ProjectType>String</ProjectType>
<Schedule>
<BidDueDate>String</BidDueDate>
<ContractDurationDays>0</ContractDurationDays>
<EstimatedStartDate>String</EstimatedStartDate>
<Notes>String</Notes>
<QuestionsDueDate>String</QuestionsDueDate>
</Schedule>
<SolicitationNumber>String</SolicitationNumber>
<SpecialRequirements xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</SpecialRequirements>
<Summary>String</Summary>
</Brief>
<CacheCreationTokens>0</CacheCreationTokens>
<CacheReadTokens>0</CacheReadTokens>
<CrewPlan>
<CrewPlanLine>
<NaiveTotal>0</NaiveTotal>
<Needed>0</Needed>
<PositionTag>String</PositionTag>
<TaskAssignments>0</TaskAssignments>
</CrewPlanLine>
</CrewPlan>
<InputTokens>0</InputTokens>
<Layer>String</Layer>
<Mode>String</Mode>
<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>
<Proposal>
<BidDueDate>String</BidDueDate>
<ChangeOrderID>0</ChangeOrderID>
<ClientName>String</ClientName>
<ContractDurationDays>0</ContractDurationDays>
<EstimatedEndDate>0001-01-01T00:00:00</EstimatedEndDate>
<EstimatedStartDate>0001-01-01T00:00:00</EstimatedStartDate>
<Mode>String</Mode>
<ProjectDescription>String</ProjectDescription>
<ProjectID>0</ProjectID>
<ProjectLocation>String</ProjectLocation>
<ProjectName>String</ProjectName>
<ProjectType>String</ProjectType>
<RfpDocumentID>0</RfpDocumentID>
<Scope>String</Scope>
<Tasks>
<ProposedTask>
<Category>String</Category>
<DependsOn xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:int>0</d5p1:int>
</DependsOn>
<DurationDays>0</DurationDays>
<EstimatedEndDate>0001-01-01T00:00:00</EstimatedEndDate>
<EstimatedStartDate>0001-01-01T00:00:00</EstimatedStartDate>
<Name>String</Name>
<Notes>String</Notes>
<Quantity>0</Quantity>
<Resourcing>
<Equipment>
<ResourcedEquipment>
<DurationDays>0</DurationDays>
<EquipmentID>0</EquipmentID>
<EquipmentName>String</EquipmentName>
<IsInCatalog>false</IsInCatalog>
<MakeModel>String</MakeModel>
<Notes>String</Notes>
<Quantity>0</Quantity>
<SourceReference>String</SourceReference>
<SuggestedEquipmentID>0</SuggestedEquipmentID>
<SuggestedEquipmentName>String</SuggestedEquipmentName>
</ResourcedEquipment>
</Equipment>
<Materials>
<ResourcedMaterial>
<IsInCatalog>false</IsInCatalog>
<MakeModel>String</MakeModel>
<MaterialID>0</MaterialID>
<MaterialName>String</MaterialName>
<Notes>String</Notes>
<Quantity>0</Quantity>
<SourceReference>String</SourceReference>
<SuggestedMaterialID>0</SuggestedMaterialID>
<SuggestedMaterialName>String</SuggestedMaterialName>
<Unit>String</Unit>
</ResourcedMaterial>
</Materials>
<Positions>
<ResourcedPosition>
<ContactID>0</ContactID>
<Headcount>0</Headcount>
<Hours>0</Hours>
<IsInCatalog>false</IsInCatalog>
<Notes>String</Notes>
<PositionTag>String</PositionTag>
<SourceReference>String</SourceReference>
</ResourcedPosition>
</Positions>
</Resourcing>
<Seq>0</Seq>
<SourceItemNumber>String</SourceItemNumber>
<SourceReference>String</SourceReference>
<Unit>String</Unit>
</ProposedTask>
</Tasks>
</Proposal>
<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>
<TurnCount>0</TurnCount>
</RfpRefineResponse>