| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/Rfp/{RfpDocumentUID}/Proposal |
|---|
<?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 ResourcedPosition implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $PositionTag=null,
/** @var float|null */
public ?float $Hours=null,
/** @var float|null */
public ?float $CrewSize=null,
/** @var float|null */
public ?float $Utilization=null,
/** @var float|null */
public ?float $FixedDays=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['CrewSize'])) $this->CrewSize = $o['CrewSize'];
if (isset($o['Utilization'])) $this->Utilization = $o['Utilization'];
if (isset($o['FixedDays'])) $this->FixedDays = $o['FixedDays'];
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->CrewSize)) $o['CrewSize'] = $this->CrewSize;
if (isset($this->Utilization)) $o['Utilization'] = $this->Utilization;
if (isset($this->FixedDays)) $o['FixedDays'] = $this->FixedDays;
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 float|null */
public ?float $Utilization=null,
/** @var float|null */
public ?float $FixedDays=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['Utilization'])) $this->Utilization = $o['Utilization'];
if (isset($o['FixedDays'])) $this->FixedDays = $o['FixedDays'];
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->Utilization)) $o['Utilization'] = $this->Utilization;
if (isset($this->FixedDays)) $o['FixedDays'] = $this->FixedDays;
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 float|null */
public ?float $QuantityPerUnit=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['QuantityPerUnit'])) $this->QuantityPerUnit = $o['QuantityPerUnit'];
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->QuantityPerUnit)) $o['QuantityPerUnit'] = $this->QuantityPerUnit;
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,
/** @var float|null */
public ?float $ResourcedForQuantity=null,
/** @var float|null */
public ?float $ProductionRatePerDay=null,
/** @var float|null */
public ?float $FixedDays=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']);
if (isset($o['ResourcedForQuantity'])) $this->ResourcedForQuantity = $o['ResourcedForQuantity'];
if (isset($o['ProductionRatePerDay'])) $this->ProductionRatePerDay = $o['ProductionRatePerDay'];
if (isset($o['FixedDays'])) $this->FixedDays = $o['FixedDays'];
}
/** @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);
if (isset($this->ResourcedForQuantity)) $o['ResourcedForQuantity'] = $this->ResourcedForQuantity;
if (isset($this->ProductionRatePerDay)) $o['ProductionRatePerDay'] = $this->ProductionRatePerDay;
if (isset($this->FixedDays)) $o['FixedDays'] = $this->FixedDays;
return empty($o) ? new class(){} : $o;
}
}
class WorkPackageSpecRef implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $Section=null,
/** @var string|null */
public ?string $Title=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Section'])) $this->Section = $o['Section'];
if (isset($o['Title'])) $this->Title = $o['Title'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Section)) $o['Section'] = $this->Section;
if (isset($this->Title)) $o['Title'] = $this->Title;
return empty($o) ? new class(){} : $o;
}
}
class TaskWorkPackage implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $Scope=null,
/** @var string|null */
public ?string $LimitsOfWork=null,
/** @var array<WorkPackageSpecRef>|null */
public ?array $SpecRefs=null,
/** @var array<string>|null */
public ?array $Constraints=null,
/** @var array<string>|null */
public ?array $HoldPoints=null,
/** @var array<string>|null */
public ?array $DefinitionOfDone=null,
/** @var string|null */
public ?string $SafetyNote=null,
/** @var string|null */
public ?string $RfpRef=null,
/** @var int|null */
public ?int $Confidence=null,
/** @var string|null */
public ?string $SpecBook=null,
/** @var string|null */
public ?string $UserScope=null,
/** @var array<int>|null */
public ?array $DodRemoved=null,
/** @var array<string>|null */
public ?array $DodExtra=null,
/** @var bool|null */
public ?bool $UserEdited=null,
/** @var array<string>|null */
public ?array $DodChecked=null,
/** @var string|null */
public ?string $RedraftNote=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Scope'])) $this->Scope = $o['Scope'];
if (isset($o['LimitsOfWork'])) $this->LimitsOfWork = $o['LimitsOfWork'];
if (isset($o['SpecRefs'])) $this->SpecRefs = JsonConverters::fromArray('WorkPackageSpecRef', $o['SpecRefs']);
if (isset($o['Constraints'])) $this->Constraints = JsonConverters::fromArray('string', $o['Constraints']);
if (isset($o['HoldPoints'])) $this->HoldPoints = JsonConverters::fromArray('string', $o['HoldPoints']);
if (isset($o['DefinitionOfDone'])) $this->DefinitionOfDone = JsonConverters::fromArray('string', $o['DefinitionOfDone']);
if (isset($o['SafetyNote'])) $this->SafetyNote = $o['SafetyNote'];
if (isset($o['RfpRef'])) $this->RfpRef = $o['RfpRef'];
if (isset($o['Confidence'])) $this->Confidence = $o['Confidence'];
if (isset($o['SpecBook'])) $this->SpecBook = $o['SpecBook'];
if (isset($o['UserScope'])) $this->UserScope = $o['UserScope'];
if (isset($o['DodRemoved'])) $this->DodRemoved = JsonConverters::fromArray('int', $o['DodRemoved']);
if (isset($o['DodExtra'])) $this->DodExtra = JsonConverters::fromArray('string', $o['DodExtra']);
if (isset($o['UserEdited'])) $this->UserEdited = $o['UserEdited'];
if (isset($o['DodChecked'])) $this->DodChecked = JsonConverters::fromArray('string', $o['DodChecked']);
if (isset($o['RedraftNote'])) $this->RedraftNote = $o['RedraftNote'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Scope)) $o['Scope'] = $this->Scope;
if (isset($this->LimitsOfWork)) $o['LimitsOfWork'] = $this->LimitsOfWork;
if (isset($this->SpecRefs)) $o['SpecRefs'] = JsonConverters::toArray('WorkPackageSpecRef', $this->SpecRefs);
if (isset($this->Constraints)) $o['Constraints'] = JsonConverters::toArray('string', $this->Constraints);
if (isset($this->HoldPoints)) $o['HoldPoints'] = JsonConverters::toArray('string', $this->HoldPoints);
if (isset($this->DefinitionOfDone)) $o['DefinitionOfDone'] = JsonConverters::toArray('string', $this->DefinitionOfDone);
if (isset($this->SafetyNote)) $o['SafetyNote'] = $this->SafetyNote;
if (isset($this->RfpRef)) $o['RfpRef'] = $this->RfpRef;
if (isset($this->Confidence)) $o['Confidence'] = $this->Confidence;
if (isset($this->SpecBook)) $o['SpecBook'] = $this->SpecBook;
if (isset($this->UserScope)) $o['UserScope'] = $this->UserScope;
if (isset($this->DodRemoved)) $o['DodRemoved'] = JsonConverters::toArray('int', $this->DodRemoved);
if (isset($this->DodExtra)) $o['DodExtra'] = JsonConverters::toArray('string', $this->DodExtra);
if (isset($this->UserEdited)) $o['UserEdited'] = $this->UserEdited;
if (isset($this->DodChecked)) $o['DodChecked'] = JsonConverters::toArray('string', $this->DodChecked);
if (isset($this->RedraftNote)) $o['RedraftNote'] = $this->RedraftNote;
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,
/** @var TaskWorkPackage|null */
public ?TaskWorkPackage $WorkPackage=null,
/** @var int|null */
public ?int $CreatedJobID=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']);
if (isset($o['WorkPackage'])) $this->WorkPackage = JsonConverters::from('TaskWorkPackage', $o['WorkPackage']);
if (isset($o['CreatedJobID'])) $this->CreatedJobID = $o['CreatedJobID'];
}
/** @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);
if (isset($this->WorkPackage)) $o['WorkPackage'] = JsonConverters::to('TaskWorkPackage', $this->WorkPackage);
if (isset($this->CreatedJobID)) $o['CreatedJobID'] = $this->CreatedJobID;
return empty($o) ? new class(){} : $o;
}
}
class AddendaChange implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $ChangeId=null,
/** @var string|null */
public ?string $ChangeType=null,
/** @var int|null */
public ?int $TargetSeq=null,
/** @var string|null */
public ?string $ItemNumber=null,
/** @var string|null */
public ?string $ItemName=null,
/** @var string|null */
public ?string $Field=null,
/** @var string|null */
public ?string $OldValue=null,
/** @var string|null */
public ?string $NewValue=null,
/** @var string|null */
public ?string $Description=null,
/** @var string|null */
public ?string $Status=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ChangeId'])) $this->ChangeId = $o['ChangeId'];
if (isset($o['ChangeType'])) $this->ChangeType = $o['ChangeType'];
if (isset($o['TargetSeq'])) $this->TargetSeq = $o['TargetSeq'];
if (isset($o['ItemNumber'])) $this->ItemNumber = $o['ItemNumber'];
if (isset($o['ItemName'])) $this->ItemName = $o['ItemName'];
if (isset($o['Field'])) $this->Field = $o['Field'];
if (isset($o['OldValue'])) $this->OldValue = $o['OldValue'];
if (isset($o['NewValue'])) $this->NewValue = $o['NewValue'];
if (isset($o['Description'])) $this->Description = $o['Description'];
if (isset($o['Status'])) $this->Status = $o['Status'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ChangeId)) $o['ChangeId'] = $this->ChangeId;
if (isset($this->ChangeType)) $o['ChangeType'] = $this->ChangeType;
if (isset($this->TargetSeq)) $o['TargetSeq'] = $this->TargetSeq;
if (isset($this->ItemNumber)) $o['ItemNumber'] = $this->ItemNumber;
if (isset($this->ItemName)) $o['ItemName'] = $this->ItemName;
if (isset($this->Field)) $o['Field'] = $this->Field;
if (isset($this->OldValue)) $o['OldValue'] = $this->OldValue;
if (isset($this->NewValue)) $o['NewValue'] = $this->NewValue;
if (isset($this->Description)) $o['Description'] = $this->Description;
if (isset($this->Status)) $o['Status'] = $this->Status;
return empty($o) ? new class(){} : $o;
}
}
class AddendaChangeSet implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $ChangeSetId=null,
/** @var int */
public int $SourceRfpDocumentID=0,
/** @var string|null */
public ?string $SourceFileName=null,
/** @var string|null */
public ?string $DocumentType=null,
/** @var DateTime|null */
public ?DateTime $ExtractedAtUtc=null,
/** @var string|null */
public ?string $Summary=null,
/** @var array<AddendaChange>|null */
public ?array $Changes=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ChangeSetId'])) $this->ChangeSetId = $o['ChangeSetId'];
if (isset($o['SourceRfpDocumentID'])) $this->SourceRfpDocumentID = $o['SourceRfpDocumentID'];
if (isset($o['SourceFileName'])) $this->SourceFileName = $o['SourceFileName'];
if (isset($o['DocumentType'])) $this->DocumentType = $o['DocumentType'];
if (isset($o['ExtractedAtUtc'])) $this->ExtractedAtUtc = JsonConverters::from('DateTime', $o['ExtractedAtUtc']);
if (isset($o['Summary'])) $this->Summary = $o['Summary'];
if (isset($o['Changes'])) $this->Changes = JsonConverters::fromArray('AddendaChange', $o['Changes']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ChangeSetId)) $o['ChangeSetId'] = $this->ChangeSetId;
if (isset($this->SourceRfpDocumentID)) $o['SourceRfpDocumentID'] = $this->SourceRfpDocumentID;
if (isset($this->SourceFileName)) $o['SourceFileName'] = $this->SourceFileName;
if (isset($this->DocumentType)) $o['DocumentType'] = $this->DocumentType;
if (isset($this->ExtractedAtUtc)) $o['ExtractedAtUtc'] = JsonConverters::to('DateTime', $this->ExtractedAtUtc);
if (isset($this->Summary)) $o['Summary'] = $this->Summary;
if (isset($this->Changes)) $o['Changes'] = JsonConverters::toArray('AddendaChange', $this->Changes);
return empty($o) ? new class(){} : $o;
}
}
class WageClassification implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $Title=null,
/** @var float|null */
public ?float $BaseRate=null,
/** @var float|null */
public ?float $FringeRate=null,
/** @var string|null */
public ?string $ParishNote=null,
/** @var string|null */
public ?string $SourceLine=null,
/** @var float|null */
public ?float $BenchmarkFringeRate=null,
/** @var string|null */
public ?string $FringeCompareNote=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Title'])) $this->Title = $o['Title'];
if (isset($o['BaseRate'])) $this->BaseRate = $o['BaseRate'];
if (isset($o['FringeRate'])) $this->FringeRate = $o['FringeRate'];
if (isset($o['ParishNote'])) $this->ParishNote = $o['ParishNote'];
if (isset($o['SourceLine'])) $this->SourceLine = $o['SourceLine'];
if (isset($o['BenchmarkFringeRate'])) $this->BenchmarkFringeRate = $o['BenchmarkFringeRate'];
if (isset($o['FringeCompareNote'])) $this->FringeCompareNote = $o['FringeCompareNote'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Title)) $o['Title'] = $this->Title;
if (isset($this->BaseRate)) $o['BaseRate'] = $this->BaseRate;
if (isset($this->FringeRate)) $o['FringeRate'] = $this->FringeRate;
if (isset($this->ParishNote)) $o['ParishNote'] = $this->ParishNote;
if (isset($this->SourceLine)) $o['SourceLine'] = $this->SourceLine;
if (isset($this->BenchmarkFringeRate)) $o['BenchmarkFringeRate'] = $this->BenchmarkFringeRate;
if (isset($this->FringeCompareNote)) $o['FringeCompareNote'] = $this->FringeCompareNote;
return empty($o) ? new class(){} : $o;
}
}
class WageDeterminationResult implements JsonSerializable
{
public function __construct(
/** @var int */
public int $SourceRfpDocumentID=0,
/** @var string|null */
public ?string $SourceFileName=null,
/** @var string|null */
public ?string $WdNumber=null,
/** @var DateTime|null */
public ?DateTime $ExtractedAtUtc=null,
/** @var array<WageClassification>|null */
public ?array $Classifications=null,
/** @var string|null */
public ?string $Source=null,
/** @var bool|null */
public ?bool $IsTrustworthy=null,
/** @var float|null */
public ?float $ExecutiveOrderFloor=null,
/** @var string|null */
public ?string $PublishedDate=null,
/** @var string|null */
public ?string $ProjectParish=null,
/** @var array<string>|null */
public ?array $Warnings=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['SourceRfpDocumentID'])) $this->SourceRfpDocumentID = $o['SourceRfpDocumentID'];
if (isset($o['SourceFileName'])) $this->SourceFileName = $o['SourceFileName'];
if (isset($o['WdNumber'])) $this->WdNumber = $o['WdNumber'];
if (isset($o['ExtractedAtUtc'])) $this->ExtractedAtUtc = JsonConverters::from('DateTime', $o['ExtractedAtUtc']);
if (isset($o['Classifications'])) $this->Classifications = JsonConverters::fromArray('WageClassification', $o['Classifications']);
if (isset($o['Source'])) $this->Source = $o['Source'];
if (isset($o['IsTrustworthy'])) $this->IsTrustworthy = $o['IsTrustworthy'];
if (isset($o['ExecutiveOrderFloor'])) $this->ExecutiveOrderFloor = $o['ExecutiveOrderFloor'];
if (isset($o['PublishedDate'])) $this->PublishedDate = $o['PublishedDate'];
if (isset($o['ProjectParish'])) $this->ProjectParish = $o['ProjectParish'];
if (isset($o['Warnings'])) $this->Warnings = JsonConverters::fromArray('string', $o['Warnings']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->SourceRfpDocumentID)) $o['SourceRfpDocumentID'] = $this->SourceRfpDocumentID;
if (isset($this->SourceFileName)) $o['SourceFileName'] = $this->SourceFileName;
if (isset($this->WdNumber)) $o['WdNumber'] = $this->WdNumber;
if (isset($this->ExtractedAtUtc)) $o['ExtractedAtUtc'] = JsonConverters::to('DateTime', $this->ExtractedAtUtc);
if (isset($this->Classifications)) $o['Classifications'] = JsonConverters::toArray('WageClassification', $this->Classifications);
if (isset($this->Source)) $o['Source'] = $this->Source;
if (isset($this->IsTrustworthy)) $o['IsTrustworthy'] = $this->IsTrustworthy;
if (isset($this->ExecutiveOrderFloor)) $o['ExecutiveOrderFloor'] = $this->ExecutiveOrderFloor;
if (isset($this->PublishedDate)) $o['PublishedDate'] = $this->PublishedDate;
if (isset($this->ProjectParish)) $o['ProjectParish'] = $this->ProjectParish;
if (isset($this->Warnings)) $o['Warnings'] = JsonConverters::toArray('string', $this->Warnings);
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,
/** @var array<AddendaChangeSet>|null */
public ?array $PendingAddendaDiffs=null,
/** @var array<WageDeterminationResult>|null */
public ?array $WageDeterminations=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']);
if (isset($o['PendingAddendaDiffs'])) $this->PendingAddendaDiffs = JsonConverters::fromArray('AddendaChangeSet', $o['PendingAddendaDiffs']);
if (isset($o['WageDeterminations'])) $this->WageDeterminations = JsonConverters::fromArray('WageDeterminationResult', $o['WageDeterminations']);
}
/** @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);
if (isset($this->PendingAddendaDiffs)) $o['PendingAddendaDiffs'] = JsonConverters::toArray('AddendaChangeSet', $this->PendingAddendaDiffs);
if (isset($this->WageDeterminations)) $o['WageDeterminations'] = JsonConverters::toArray('WageDeterminationResult', $this->WageDeterminations);
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 RfpProposalResponse implements JsonSerializable
{
public function __construct(
/** @var ResponseStatus|null */
public ?ResponseStatus $ResponseStatus=null,
/** @var int */
public int $RfpDocumentID=0,
/** @var ProjectProposal|null */
public ?ProjectProposal $Proposal=null,
/** @var array<CrewPlanLine>|null */
public ?array $CrewPlan=null
) {
}
/** @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['Proposal'])) $this->Proposal = JsonConverters::from('ProjectProposal', $o['Proposal']);
if (isset($o['CrewPlan'])) $this->CrewPlan = JsonConverters::fromArray('CrewPlanLine', $o['CrewPlan']);
}
/** @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->Proposal)) $o['Proposal'] = JsonConverters::to('ProjectProposal', $this->Proposal);
if (isset($this->CrewPlan)) $o['CrewPlan'] = JsonConverters::toArray('CrewPlanLine', $this->CrewPlan);
return empty($o) ? new class(){} : $o;
}
}
class RfpProposalRequest implements JsonSerializable
{
public function __construct(
/** @var string */
public string $RfpDocumentUID=''
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['RfpDocumentUID'])) $this->RfpDocumentUID = $o['RfpDocumentUID'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->RfpDocumentUID)) $o['RfpDocumentUID'] = $this->RfpDocumentUID;
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.
GET /v1/Rfp/{RfpDocumentUID}/Proposal HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<RfpProposalResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<CrewPlan>
<CrewPlanLine>
<NaiveTotal>0</NaiveTotal>
<Needed>0</Needed>
<PositionTag>String</PositionTag>
<TaskAssignments>0</TaskAssignments>
</CrewPlanLine>
</CrewPlan>
<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>
<PendingAddendaDiffs>
<AddendaChangeSet>
<ChangeSetId>String</ChangeSetId>
<Changes>
<AddendaChange>
<ChangeId>String</ChangeId>
<ChangeType>String</ChangeType>
<Description>String</Description>
<Field>String</Field>
<ItemName>String</ItemName>
<ItemNumber>String</ItemNumber>
<NewValue>String</NewValue>
<OldValue>String</OldValue>
<Status>String</Status>
<TargetSeq>0</TargetSeq>
</AddendaChange>
</Changes>
<DocumentType>String</DocumentType>
<ExtractedAtUtc>0001-01-01T00:00:00</ExtractedAtUtc>
<SourceFileName>String</SourceFileName>
<SourceRfpDocumentID>0</SourceRfpDocumentID>
<Summary>String</Summary>
</AddendaChangeSet>
</PendingAddendaDiffs>
<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>
<CreatedJobID>0</CreatedJobID>
<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>
<FixedDays>0</FixedDays>
<IsInCatalog>false</IsInCatalog>
<MakeModel>String</MakeModel>
<Notes>String</Notes>
<Quantity>0</Quantity>
<SourceReference>String</SourceReference>
<SuggestedEquipmentID>0</SuggestedEquipmentID>
<SuggestedEquipmentName>String</SuggestedEquipmentName>
<Utilization>0</Utilization>
</ResourcedEquipment>
</Equipment>
<FixedDays>0</FixedDays>
<Materials>
<ResourcedMaterial>
<IsInCatalog>false</IsInCatalog>
<MakeModel>String</MakeModel>
<MaterialID>0</MaterialID>
<MaterialName>String</MaterialName>
<Notes>String</Notes>
<Quantity>0</Quantity>
<QuantityPerUnit>0</QuantityPerUnit>
<SourceReference>String</SourceReference>
<SuggestedMaterialID>0</SuggestedMaterialID>
<SuggestedMaterialName>String</SuggestedMaterialName>
<Unit>String</Unit>
</ResourcedMaterial>
</Materials>
<Positions>
<ResourcedPosition>
<ContactID>0</ContactID>
<CrewSize>0</CrewSize>
<FixedDays>0</FixedDays>
<Headcount>0</Headcount>
<Hours>0</Hours>
<IsInCatalog>false</IsInCatalog>
<Notes>String</Notes>
<PositionTag>String</PositionTag>
<SourceReference>String</SourceReference>
<Utilization>0</Utilization>
</ResourcedPosition>
</Positions>
<ProductionRatePerDay>0</ProductionRatePerDay>
<ResourcedForQuantity>0</ResourcedForQuantity>
</Resourcing>
<Seq>0</Seq>
<SourceItemNumber>String</SourceItemNumber>
<SourceReference>String</SourceReference>
<Unit>String</Unit>
<WorkPackage>
<Confidence>0</Confidence>
<Constraints xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</Constraints>
<DefinitionOfDone xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</DefinitionOfDone>
<DodChecked xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</DodChecked>
<DodExtra xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</DodExtra>
<DodRemoved xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:int>0</d6p1:int>
</DodRemoved>
<HoldPoints xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</HoldPoints>
<LimitsOfWork>String</LimitsOfWork>
<RedraftNote>String</RedraftNote>
<RfpRef>String</RfpRef>
<SafetyNote>String</SafetyNote>
<Scope>String</Scope>
<SpecBook>String</SpecBook>
<SpecRefs>
<WorkPackageSpecRef>
<Section>String</Section>
<Title>String</Title>
</WorkPackageSpecRef>
</SpecRefs>
<UserEdited>false</UserEdited>
<UserScope>String</UserScope>
</WorkPackage>
</ProposedTask>
</Tasks>
<WageDeterminations>
<WageDeterminationResult>
<Classifications>
<WageClassification>
<BaseRate>0</BaseRate>
<BenchmarkFringeRate>0</BenchmarkFringeRate>
<FringeCompareNote>String</FringeCompareNote>
<FringeRate>0</FringeRate>
<ParishNote>String</ParishNote>
<SourceLine>String</SourceLine>
<Title>String</Title>
</WageClassification>
</Classifications>
<ExecutiveOrderFloor>0</ExecutiveOrderFloor>
<ExtractedAtUtc>0001-01-01T00:00:00</ExtractedAtUtc>
<IsTrustworthy>false</IsTrustworthy>
<ProjectParish>String</ProjectParish>
<PublishedDate>String</PublishedDate>
<Source>String</Source>
<SourceFileName>String</SourceFileName>
<SourceRfpDocumentID>0</SourceRfpDocumentID>
<Warnings xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</Warnings>
<WdNumber>String</WdNumber>
</WageDeterminationResult>
</WageDeterminations>
</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>
</RfpProposalResponse>